WebSite hosting

Absolut Engine Hosting

PunBB Host

Fle3 Hosting

Fusion News Host

Logicampus Host

Dcp Portal Host

Cmsimple Host

Order Now

 


Flyspray New to hosting?
Check out the step-by-step guides to help you get started.
Setting up your 1st website
Transferring your website

 

Advertiser's links

 

 

Php5 Secure your email
Accessing email from public places and wireless networks can pose a huge security risk! Anyone can get your password..
Learn how you can secure your email

 

 

 

Domain Search: www.

SERVERS & NETWORK  |  SUPPORT  |  WHY OXXUS  |  TESTIMONIALS  |  ABOUT US  |  CONTACT |  ORDER NOW

 

 

 

I didn't think you had to save a session? adding anything to the $_SESSION was automatically saved?

Is there a check to see if the database host exists?

a simple example to be able to use mysql as well as mysqli if the server supports it : http://pastebin.ca/568507

deviance, i just told you what to do

IG you do header redirection, you *MUST* save it.

hi everybody

*If

Ok, but surely if there is nothing in the database it will return empty?

deviance, the scrip you has look fine but use mysql_num_rows rather than isset, because you get 1 row if the table exists else you get 0

ahh, i see

Oh, is there one row by default in a table/;

A friend has written a small portion of php code ; I am sure it is bugged ; can I paste the two lines here ?

deviance, are you stupid or not reading what I'm saying?

I am stupid

ok
well i'll talk slower

^^

table summary="" width="100%" class="maintitle" style="background-image: url(' php echo $_SESSION["CfgHeader"] ; ?');background-repeat: repeat;" cellspacing="0" cellpadding="5"

there isn't an java api hosting way for checking if table exists

Ah, ok.

so in order to do it you need to run a query, its always going to return a value, it either lists tables that match or returns an empty result set
so isset wont work because an empty set gets returned if the table doesn't exist

Ah

so if you use mysql_num_rows and check to see if the result has either 1 row or 0 rows

the problem come with the style table tag ; it contains a script in it

that clearer?

Yes, I am with you
Thanks alot

Describe the "problem"

deviance, no problem

Wolfpaws, this chunk of xhtml code own a php script in the table tag
as executed on apache server host code is literaly written

When someone submits a form with a large textbox, i don't seem to get newlines in the $_POST var. How come?

I suspect of an error syntax

Ah, there we go. Is the file .html or .php?

.htm

Rename it into .php

How do you know you don't?

How can I run quick command line on WAMP? php hosting -r 'echo "1234";' - gives syntax error and there are no smaples

Wolfpaws, it is ldap2mysql.htm

Are you echo'ing the text that's returned?

I think you need to turn it aroun in Windows. Quotes.
yes, and?

Wolf, bingo thanks

no problem

and there is already a ldap2mysql.php

gesman, works here
gesman, what Wolfpaws said

Your server isn't configured to parse .htm files as .php

ldap2mysql.htm is just a call for the main php script (95.4ko)

Scoot, on linux, on Win php web hosting need to be surrounded by double quotes

i use linux a proper operating system

"scoot" XD

Windows is a proper OS.

Canada has a proper army.

heh

Now you're just being silly.

GZA, what you talking aboot?

I don't really know.

well yeah

didnt read the last word.
hah

echo the text with nl2br() ... eg echo nl2br($text);

heh he quickly ran off
VisualBasicAssassin
wtf is that about

lol

he's not a visual basic assasin, hes a vagina black assassin

unless he plans to assassinate the people who code in Visual Basic

Stop it, kids. Stick to the topic.

tags

Wolfpaws, what topic?

So nl2br makes "\n"s /br /'s ?

"PHP" :P

oh sure.

Yes

Wolfpaws, Pretty Horny People ?

Is anyone here anal (no offense) or just really picky about tabs, and if so do you use multiple "\t\t\t\t" 's in order for your formatted php code to look correct?

Parents Helping Parent, fool. :

!+##php

"PHP"? But that's RUBBISH! No, wait, the other one ... "PHP"? That's the thing I've been obsessing over for the last 7 years.

##php isn't a social channel. Please join #phpc forthat or join #php.thinktank to discuss how things work in PHP.

Wolfpaws.?

GZA, we use tabs because it lets developers pick there preference for how many spaces they represent
some developers like their IDE to show a tab as 4 spaces, some like 8

Wolfpaws, i have AddType application/x-httpd-php .php .phtml in etc/apache2.conf and ...

I'm not talking about the code view in an editor
I'm talking about viewing the source in a browser

AddType text/html .shtml

I like 2

GZA, ok thats anal :P

Does anyone make sure their code looks good in a view source? Because usually its never newlined, indented

http://pastebin.com/929661 - when I comment out the $create-createRadioButton() it works fine. What's wrong with this?

I do :p

Sending tabs in HTML is a waste of bandwidth.

Hey, I've been playing around drupal, and wondering why a bit of behaviour is the way it is.. When you go to the root of the site eg blah.com it shows a blank directory listing for root /. In the .htaccess file there's a clause stating DirectoryIndex index.php

But it makes it look pwetty
and readable.

Browsers don't care.

sure
then lets all put html in 1 line

if I go to blah.com/index.php then it works fine..am I forgetting to add something?

and put our css in 1 line
and our js in one line

Indeed. I do.

since browsers dont care
does anyone know of some server side alternative to sIFR

You can tell what bits of my sites are generated... there's no whitespace.
GD2, or Ming.

Ming?

Flazsh

http://ming.sourceforge.net/ oh

*flash

Ming is PHP's Flash generator.

does the php.ini get cached or anything? i am editing /usr/local/php5-fcgi/lib/php.ini , which my php_info(); says is the loaded configuration. I make changes, restart lighttpd and don't see the changes

morning

It's an amusing name ... Ming the Merciless was Flash Gordon's nemisis. Hence Ming/Flash in PHP.

hoi

ghento, you'd need to restar the fastcgi

* hi

hi

ghento, presuming your fastcgi processes are spawned seperately

ahhhh, yea it's using fastcgi

anyone know how to validate xml against a dtd/schema in php4? any good libs out there?

g'morning

quick question - I've got a server with sendmail and I'm using the mail() function but it only seems to be able to send e-mails to the domain of the website - is there a way around this?

Thanks for pointing that out... It's of absolutely no practical value.
... but still nice to know.

you can send them whereever you want

='g\'morning'?

DJTrey-work: $create-createRadioButton(radiobutton, Radio Button Value Test); .. shouldn't that be $create-createRadioButton('radiobutton', 'Radio Button Value Test'); smae goes for $create-createTextField
&same

maxo, that's probably a server configuration issue, not a ##php issue. ask #apache or #yourdistro

maxo, you'd better ask Sendmail guys on how to enable relay

what's relay involve?

Anyone good at marking up stuff? Pm me

well....I think either will work. Because the textfield one works without the single quotes.

GZA, the people in #css are

abstrakt. i know.

GZA, how much are you paying?

eh?
i'm asking an opinion, heh

DJTrey-work: When I said "shouldn't that be" I really meant "That should be" .. you need the quotes

that did the trick - thanks a lot!

heh, ok. changing now

maxo, I think that Relay is how they call when it sends to other domains.

DJTrey-work: The methods take strings as parameters, firstname isn't a string .. 'firstname' is.

how would you markup a numbered FAQ?

ok thanks

ol

#html maybe?

i began using a definition list for the question/answers, but then i might want to use a dang ul again
err, ol

GZA, with ol

as readen in firefox

GZA, yeh definition list would be fine too

if this didnt have numbers though, i could use this definition list. damn it.

Interesting question, I am storing history in session for the last query I made, ploblem is I cant run multiple browsers with multiple queries. Is there a a specific browser ID query?

makes more sense imo
because i can hide the DD's with js and show the DT's

GZA, you could still use a definition list. actually a definition list makes more sense I would say.

or i can use a block level element and a paragraph in the LI

I told you what to do. You failed to listen.

yeah, but id have to manually type the numbers
and that makes it seem .. not.. useful i dunno

GZA, so? you have to manually type the questions and answers

its not like its something big but still
yeah..

well, it doesn't crash now. just wondering why it won't show the radio button now. any ideas?

i added the numbers in there

a .html file will not parse as php

alright ill do it this way ;p

Wolfpaws, can you repeat slowly please
AlexC_, but there's php in it !

a .htm file will not parse as php

GZA, how bout just take the numbers off since there's no *real* reason to have them

add .html and .htm in your apache thing

DJTrey-work: Tried doing a 'view source' in your browser? See what it's actually output?

a php file will parse as php,

AlexC_, it will if you tell apache to parse it as such

oh yes it will parse anything you tell it to, but by default

lambda_, any file will parse as PHP if you tell Apache to parse it as PHP

AddType application/x-httpd-php .php .htm .html
like that

yeah, no radio button. the createRadioButton() makes it die. It won't even print the closing /body/html

ok GZA

httpd.conf

would you expect a text-document that contains php, to be parsed as php? :P

or .htaccess

apache2.conf

eh?

urgh yeah that made no sense haha

AlexC_, .php files are in fact text documents that contain php

yeah that just came to me after I hit enter,

I think you meant a .txt file for example

either way, so what if he does expect that?
if he does, all he has to do is put the AddHandler in there for each type he expects to be parsed as PHP

Whatever .. otherwise you just get a radio button with no text.

DJTrey-work: Make sure you have error_reporting(E_ALL); as the first line of the script too so you can see if there's any problems.

what error reporting do you guys suggest for a live site?
aka, not in testing/demo/beta mode

0

GZA, E_ALL always
GZA, or E_STRICT, but it's display_errors you should be concerned about. for a production site turn display_errors off and turn error logging on

and you can reset the error reporting right? say you're including a file that has it set to E_ALL, but on your page after the include statement you put 0, it will override, yes?

i disagree abstrakt, you dont want your users seeing NOTICE errors

and whats with the ini error thing or display_errors off?
how is it different

ManOfVirtues, perhaps you should re-read what i *just* said

that's why display errors is off. abstrakt is right.

lol sorry started typing before your second line
all I saw was E_ALL and im like WTF??

if your site is properly coded, you shouldn't even be seeing warnings anyway

anybody? dtd/xsd validation in php4?

true, but because you forgot to declare a variable on one line could ruin your entire site

tis why you code for E_STRICT :P

the old law of right vs right now really is the deciding factor

ManOfVirtues, which is why you have dev test and prod environments

abstrakt, right E_ALL on DEV and TEST
0 on Prod

ManOfVirtues, it *could* ruin your site, that is if you were unobservant enough to let that notice slip by while coding in dev with display_errors turned on

wrong. E_ALL on everything. display_errors set to 0 on production.

E_ALL and E_STRICT on production as well

humm no It doesn't work

the smart person uses php5 with exceptions, and then handles those exceptions. putting the backtrace in an exception log.

did you restart apache?

Do this chunk of code strictly php valid ?table summary="" width="100%" class="maintitle" style="background-image: url(' php echo $_SESSION["CfgHeader"] ; ?');background-repeat: repeat;" cellspacing="0" cellpadding="5"
AlexC_, sure

wow
horrible markup

lambda_, if you're going to use the style attribute don't use the cellspacing attribute

see #web if you want to critique html

can't.
Can't visit #html #web or #css

why?

GZA, big surprise

can't imagine why.

because i drank too much coffee

because GZA = theGZA = the famed enter key whacker

OL

oh him!

oh, so you dont recognize me without the?

not really, though my mind has been all over the place recently .... well, weeks!

GZA, you are teh master of teh disguize

for like 2 weeks i was "unbanmoi"
lol..
i rejoined like 50 times
no one did anything

HEY! I thought that was MY job. :[

oh that was you hahahah

Lol.

YOU're the one that constantly kept on PMing me?

i was wondering when you would finally get banned from here, knew it was just a matter of time

no
was my brother.

Yeah. Sure.
Mine too.

that's what they all say

"it was my cat, i swear!"

if i'm going to link a youtube video on a page .. obviously it needs to be embedded ... but i want to show a screenshot of it -- such as youtube has .... yes i know youtube has an api .. but that is for videos that are going to be uploaded to an actual server ... but i'm just going to link to it .. so how would i go around getting a screenshot of the video being embedded?
i know the image names are exactly the same as the videos on youtube just in a different dir so i was thinking i could execute a system command to retrieve it but that doesn't seem like a viable solution

I haven't seen jazzrocker around for a while. I don't mind, though.

that was long
buy a camera? ;p

My cat was able to log into my DOS box. :

-GZA- must be automated! :P

hmm

c0m--: if your going to link a youtube video, does that not mean it's uploaded to the server, so you could infact use the API?

hire a servant.
he will be an automatic screenshotter

Ok... that password thingie just summed up some ASCII codes and I was only using some random digits on the keypad... but still...

hire me. $150 / hr for screenshots.

if you don't have a viable answer, go sit in a corner and be quiet.

fine
lunch time.

-AlexC_- it is uploaded to their server

ah i have a viable question, what's one way i can shorten a long hash? like sha1?

i am going to embed it in mine using their link .. so i won't physically have access to it

just divide it?

c0m--: yes, so why wouldn't you be able to use the api?

c0m--: i'm confused. the api has a method to get thumbnails.

substr,

-caffinated- from their server??

c0m--: yes

o rry

what? lol

c0m--: you have to pass it the video id iirc.
c0m--: and an API key i think

If i want a hash thats 8 chars and random, its good to use a substr on sha1/md5'd string? yes?

??

-caffinated- if that works ... you're the man

Uhm.. span?

gza

yeah?

c0m--: i know it does, i wrote a library to interface with youtube

lambda_ - nothing as long as there is a $msg object and it has a read() method

that is outside of the php

is literaly written

we all did at once point!

in FF

its not a function then
uh..

oh

is your page .html

it's not parsing your PHP

oh, maybe you're not using localhost

yes it is

whats your URL
is it Cblababla\\abalbabla

just make it .php!

a local URL

should be localhost/bla/bla

c0m--: the only drawback is they pick the capture frame. you don't have any control over which frame is the thumbnail.

-caffinated- i don't really think that is a major issue

GZA, I use an internel squi proxy
internal squid sorry

-GZA- substr(md5(time()), 0, 5)

c0m--: sec, i'll find the method

internal squid haha, lol

why time()?

lambda_ - if it's just echoing that PHP string back to the page, it's not set up right

because it is constantly changing
so it will always be random

of uniqid()
s/of/or

so I should always try to use time() when making a random string?

if you want it to be truly random

or microtime

uniqid()

don't sha1/md5 have some time randomization in them?
ok

microtime would be a better choice

internal squid haha, lol

uniqid is only php5 tho

AlexC_, hum can you explain ?

why would they? they're hashing, not encryption

it just sounded funny

c0m--: http://www.youtube.com/dev_api_ref?m=youtube.videos.get_details

theres a difference?

yup

c0m--: have a look near the bottom of the return result

-caffinated- !! ty .. let me review it

I just imagined this giant squid running around an office somewhere when you said it,

same
when someone said squirrel mail today i thought of like 3000 squirrrels runnin around in a buildin with mails in their.. hands

lol

php echo '" What should I eat's for lunch?'; ?
that doesnt work, why?

YEEEEEEEEEEES

escape the extra '
eat\'s

do i always have to?

c0m--: only other thing i could suggest, is save yourself some grief and use the REST interface instead of SOAP or XMLRPC

yes, because look at it - you started it with a ' and then you have a random ' in the middle,

-caffinated- yup .. that xml response looks easy enough to parse
thanks again for the advice/link

no problem

browser instance id, any ideas how I can get this?

Call to a member function read() on a non-object in /var/www/promethee-5.7rc1/ldap2mysql.htm on line 26
26 span class="small"php print($msg-read($LDA2MYSQL_TITLE)); ?/span

then $msg is not a var and so is not an object
er it could be a var,

$msg may be a var, but it's not an object, you mean

yeah =D

I dont know how I am going to fix this ... driving me nuts

I need to get away from computers, driving my mind mad .... hopefully going to learn to fly then go the the raf instead! Now that'll be sweet :P

7 day canoe trip up north would do it AlexC
hell you will be lucky if you find an outlet
let alone a computer

heh, save a lot of money. flying lessons are not cheap

How declaring $msg as an object ? by passing it as script argument ?

My father takes flying lessons, trying to get his license

I looked in to getting a private license here, it was going to cost me about $10k over the course of a year.

yeah thats true, found a 'trail' lesson for £65 for half an hour ... fun :P

But then again he's "sort of" old anyways :P

it's not just the lessons, it's the gear.
and you usually wind up paying for the aircraft fuel when you go up.

of course you got to have the red baron scarf

how long does it take to roughly get one?
yeah you do have to pay for the furl
furl? fuel

I have no idea, but I think he's aiming for 6 months or something

ah thats not to bad,

the headset alone might cost you as much as $300 CAD, depending on what you get

Can I set "fetch_assoc" attribute for all statements?

shit starting to sound cheaper then pc gaming

lol

and you're usually required to have a flight calculator, which isn't cheap either

flying calculator?
flight*

throw it hard enough anything flies

It's onerous to always type PDO::FETCH_* - and I think other users can have some problems with it.

haha, oh god I've got a giant squid runing around an office, now a flying calculator .. man I need to get away lol

Is it better to unit test the $objQueryList with each queries or to test each query with it's related unit please ?

it's for calculating fuel consumption, logging flight time, and a bunch of other things.
if you have the cash, and the time, go for it though. it's a hell of a lot of fun from what I've seen.

I'm defiantly going to go for it, you only live once!

I was thinking of doing mine, and working in to a commercial license
backup in case i ever get sick of coding.

and I don't want to spend it sitting infront of a monitor all day coding things that don't exist :P
yeah I'd probably end up going into the raf side of it
fast-jet pilot, sweet =D

anyone ?

eh, i don't want to go in to the millitary
but a commercial small cargo pilot wouldn't be too bad

that'd be fun to

I want to be the first pilot to do a loop in a 737
is that unreasonable?

if you want to die, sure.
it'll stall before you can even hit the apex

a test pilot did a barrel roll in a boeing, not sure if it was a 737 though

see the evolution of flight
like the x games

*hrhr* Think about some random 767 pilot just doing a loop for fun... with a fully loaded passenger machine.

see Slash and I are on the same page

haha yeah, same page of the death certificate

do a barrel roll

erm, you seem to be missing the point that commercial passenger aircraft are *not* designed for airial tricks.
you'll probably stall, and if you didn't hit the ground, you'd likely shit yourself

well if they pimp my ride they can sure pimp my plane

making my dinner in the air could be classed as an arial trick

is there a way to stop this laging when the server isnt up http://pastebin.ca/568618
is there a way to stop this laging when the server isnt up a href="http://pastebin.ca/568618"http://pastebin.ca/568618/a

I think you should say it once more aaa801 :P

lol
so any ideas

hello
who can help me?

with

no one if you don't ask :P

Can I set PDO::FETCH_ASSOC attribute for all statements in PDO?

:|
som1 answer my question lol

aaa801, we heard you the first two times. if someone can answer your question and wants to answer your question they will answer your question. be patient.

lol

aaa801, gimme sum ur lolz

xD

I've got an xD card reader!

Hi, everybody

lol

morning,

moo!

and now he's turned into a cow,

meow!

no i think he was a cow to begin with

baaaaa!

that would explain his unrestrained glee and n00bish actions. must be a cow.

I'd say squirrel
ah, away he goes

... i miss cupcake ....

most random statement of the day away goes to, ManOfVirtues!
s/away/award

oh wow I wasnt expecting this
I didnt even prepare a speech

no need, your award is a life time trip to hell,
I must go, cya! legs are going to fall off, been sitting down to long

hey guys, does anyone recall/know which js wysiwyg supports embedding php? as in, it doesnt mangle it on submit...i believe it's either tinymce or fckeditor, but i dont recall which

try them :P

I would like to thank my beautiful wife for putting up wih those endless Invader zim nights, I love you sweetie. Thomas Vasquez for making the Girr charecter.....

i dont have shell access, i'd rather not take 15 minutes to upload a million files if someone knows the answer.

Nooone can help me

-caffinated- so to parse the xml response .. what did you do .. did you curl the link to get the reponse and then parse that?

Can u repeat your question ?

Can I set PDO::FETCH_ASSOC attribute for all statements in PDO?
I don't know if PDO is a good solution - what do you think about it?
I have to type too much code

i always write wrappers around those types of libraries
so write your own little lib that sets the options you want

pdo is already a wraper, isn't it

if I define INT and ASSOC constants, could I use them in Fetch method?
define('INT', PDO-FETCH_ASSOC);

mmm, i dont use fedora
er

or PDO::FETCH_ASSOC

wrong channel yet again
those defines wont work the way you would want them to

you certainly can make an alias like that, but personally i don't see the point

yeah but there's always those extra things that you want done... i had a class that extends Smarty that i use for templating, and i set all kinds of default values for stuff and change the functionality of some things, it really makes things nice

plus i'd choose a different name, INT will give you parse errors in some cases

but how can I make that alias?

like you said

Other users who could make some modifications of plugins

isn't smarty a rewrite of php in php anyway?

no

it sure looks like one

Kobaz, you extended smarty?
Kobaz, talk about a bad idea lol

:|

smarty is way more powerful than just using php, and much cleaner

scratch that. you wrote a wrapper around Smarty. so you wrote a wrapper around a wrapper around an interpreted language. way to accomplish efficiency in performance

Kobaz, name one thin smarty can do that php can not

but PDO::FETCH_NUM or PDO-FETCH_NUM? Is "NUM" name good for constant?

errr... see the feature list

i did to make advanced caching

abstrakt, php is a compiled at runtime executed at vm language

ditto of arpad

"smarty is way more powerful than just using php" I don't even know where to BEGIN responding to a statement like that

henke37, but PHP is not "compiled" in the same way that C programs are compiled

fine, then don't

You're telling me that "A", which is entirely encapsulated by "B" is somehow more powerful than "B"?

abstrakt, yes it is, just you never explitaly ask php to be compiled

So.... God created man, ergo Man is more powerful than God?

how do I set a variable within a class's function?

but since there is no god, your point is invalid :P
but besids that

define('NUM',PDO::FETCH_NUM);
define('ASSOC',PDO::FETCH_ASSOC);

Oh, but there is a God, Me.

It's working in use in Fetch()!

MattKelly, $this-var ?

so you're saying that since linux is writtin in c, than it cant possibly be more powerful than c itself

Show me ONE thing smarty can do that PHP can't, and your point has merit. Otherwise, step off son

I want to set it when I create a new class object

Yes, I am saying that.

like $test = new test();

is it interresting to make a query class and iterator+query list class to let freedom of DB-layer ?

and you would be wrong

MattKelly, make a function, name it __construct

that's a particularly anal definition of powerful :p

that will be your constructor

ok

...

now you can do new class($var);

(A) You're comparing an OS to a language, so you're way off track to begin with, and (B) Show me ONE example.
Back up your claims, man

...yes?

ok, cool

(language please)

i'm working on your new point though

Kobaz, smarty sucks http://www.phppatterns.com/docs/design/templates_and_template_engines http://www.massassi.com/php/articles/template_engines/

smarty is like the os for php

Uh... no.

hahahah @ Kobaz

do note that you may want stuff like this in your constructor:
function __construct($name) {
$this-name=$name;
}

it adds functionality that php doesnt already have

Kobaz, false

That's called a library you half-wit

As?

like cacheing, custom block compilers, etc

i lke smarty code, i think it's powerfull (even though base-caching functions aren't advanced)

Kobaz, what functionality does Smarty add that PHP doesn't have?

All things I can do with PHP

duh
obviously it's a library

nobody ?

If I use :: operator, isn't PDO the main class?

Of you couldn't, Smarty couldn't either. :

Which was my point.

*If

Smarty isn't "more powerful" than PHP. It can't be.
It *can*, however, be more CONVENIENT

so you can rewrite Smarty in PHP, which Smarty is written in to start with. what a useful point

i'm just trying to equate the c/linux comparison which you didn't get
okay so now your moving your argument to semantics

What is better? A Ferrari or a caterpillar?

It's not semantics if we're saying completely different things.

and this is relevant how?

And I'm not moving my argument.

arpad, no you don't need to rewrite Smarty in PHP in order to do what Smarty can do, just by using PHP in the first place

"Smarty is not more powerful than PHP"

They're more related than the things you compare.

Kobaz, you still haven't shown us anything that Smarty does that you can't do with PHP

i never said that you couldn't also do it with php
but it's more work
it's there for you, might as well use it, sort of thing

my point was that you'd have to implement it yourself, which is on the path to building something like smarty..

Some things are easier in Smarty, yes. But they tend to be slower too.

Kobaz, there are other better things than Smarty so "might as well use Smarty" sort of thing is not a good point

this argument is idiotic

i know

if you like smarty, use it.. if you don't, then don't

Of course, some people don't care about performance. So smarty is "good enough" for them.

this is your brain. this is your brain on Smarty. any questions?

it's more about having the tools versus having the language to write the tools

yeah, can we get a visual representation?

caffinated, over IRC? not without spamming the channel with some ASCII art :P

So smarty provides you with every tool you could possibly need?
That sounds swell.

no but it provides tools that i would have written anyway

Still doesn't resolve the lack of performance

okay so your "performance problem" is only an issue when the template is changed

In fact, given the relative lack of performance, I'd say it's safe to say that PHP by itself is more powerful than Smarty
No, it's always a problem.

and it's recompiled

It has nothing to do with template caching

Kobaz, A) you can do all your templating with PHP and you don't need Smarty to do it B) you can use helper function libraries in your templates C) neither of the previous two things requires slowing down your app with an extra compiler to compile a second form of syntax for half the PHP language

Compiled smarty templates are slower too

um, aren't compiled smarty templates essentially a bunch of echo statements?

compiled smarty templates are written in php, how can they be slower than any other code writtein in php
exactly

they need to be generatted

Because of the generalization overhead

Smarty is a nice scripting language... Just needs a better template engine. :

you wind up with the mostly the same code if you write it yourself, or if you have smarty generate it for you

No, you don't.

key word being *mostly*

"For very large values of mostly"

Pollita++ no you don't. i've looked at the templates_c files

for any value of mostly

that's some f'd up spit right there

Again, you clearly aren't concerned about maximizing your performance, which is fine for you.

arpad, i in fact have used Smarty in depth. even written my own custom smarty plugins

you don't have to use any of the advanced features of smarty, and doing a foreach in smarty works out to be just about the same as a regular php foreach
i can work on maximizing performance all i want and it wont get the code written any faster
i can work on maximizing performance all i want and it wont get the code written any faster

"aw man, I have to learn a whole new language to do the same stuff I could just do with PHP"

"It's just as good if I don't do anything complicated"
How specious is that?

then I realized that the Smarty syntax is "cleaner" and I liked Smarty for a while.

yeah, but then once you learn it, it's like wholy crap this is great

so I used Smarty and i thought it was nice.

here's the thing

and now I've realized that my original conclusion was pretty much correct and that Smarty is just a big load of un-needed overhead and it's really coding style that makes your templates clean or not

you do a foreach in php, and do a load of echo statements

Amen brother

Kobaz, and given that there are other better alternatives to Smarty, there's no good reason to keep using Smarty

you write the same foreach in smarty, you also get the same echo statements
obviosly it's the same

Yes, for extremely simple microbenchmarks you can get the same output.

but if you use the advanced stuff, there is obviously more overhead, since it's doing more work for you, that you would have *written anyway*

How about REAL applications.
Except you would have written it CORRECTLY

i was talking about generated code comparison for simple code

well, I would have anyway
Maybe I'm giving you too much credit

Mhh... why is smarty still distributed through the PHP page btw? :]

Because a lot of people find it useful.

php echo 'koonichiwa'; ?

PHP has a low barrier to entry and smarty lowers it for some.

'oo'?

so with your reasoning i might as well write everything in assembler

C will do.

Sometimes I'm thinking it's a bit _too_ low. :/

since it doesn't have any overhead
no but you can't, c is just a layer around assembler, so it's worthless

Kobaz, naw, these days most C compilers can do a better job of optimizing the generated assembly than you can by hand coding

Good luck writing your networking stuff.

Kobaz, most

Good point, ASM it is then.

and you will take 100 times longer to write your application than if you wrote it in php

100 times?

i'm just using your reasonining

Kobaz, and so it takes you less time to write apps in Smarty than it does to write them in PHP?

Don't mind Kobaz, his argument is barely treading water so he's fighting back with flippant responses

Meh! You're a goddamn experienced Assembler coder then.

it does actually

hah, flippant

i'm just using your exact same reasoning that you are using, so if you don't like what i'm saying then i would start rethinking your logic

I 3 Kobaz

Argh! Pollita makes me constantly use my dictionary.

I have a better idea.
Ah, I like that idea.

and that is very mature :P

Yep.
Now watch this!

Kobaz, mature, like your development strategies

it's called rapid development

Those who behave childish deserve to be trated like children.

SHAZAM!

And this is IRCs version of house arrest.

that was rapid
ooooh teats! gimme a teat! in fact give me a pair of em!
uooooh teats! gimme a teat! in fact give me a pair of em!/u

Guy just couldn't keep track of the argument

I wonder if youtube uses smarty. I had seen it there once, in the Hiring page...
bI wonder if youtube uses smarty. I had seen it there once, in the Hiring page.../b

mornins

at least the front-end is -- unless they were fooling me with fake .php pages

Kobaz ate a ban for lunch.
oh, n/m
he threw it up

apparently you guys don't like smarty, so, i'll just sit here and watch

evening all

and finish my lunch :P

Lunch. O_o

I should be making some popcorn

I should buy some dinner... I'm getting hungry.

Kobaz, you are correct, we don't like Smarty
Kobaz, but now you know

henke37, for a second I thought you said some copporn

I like smarties
:P

Actually, I think smarty is cute
Not something I'd use personally, but a handy crutch
Kobaz just makes too many assumptions and has a hard time revising them when he gets new info

i wasn't making any assumptions other than what was already on the table

Kobaz, http://phpsavant.com/ or roll your own
Kobaz, writing HTML form generation functions isn't that tough
Kobaz, hint, let it go. unless you really enjoyed being banned

yeah i've used quickforms and stuff like that
i'm working on it

its technically called scafolding in rails

Thank you for proviing my statement.

Jeanre, yeah but we're not in #rubyonrails we're in ##php

yeah
but something like that for php will be pretty cool

i think cakephp does something like that

once my hibernate port is complete I might work on that

Jeanre, doesn't Cake provide scafolding?

yuck, CakePHP is teh bad
Symfony provides scaffolding

use CodeIgniter

cakephp is crap

Symofny is teh bad

oh noes!

way too much bulk

sounds like another flame war worthy of #phpc

*/me doesn't enjoy mine is bigger discussion

NS|Glock_Coma, i'd be interested to hear your rationale behind Symfony sucking in #phpc
but I'm at least with Jeanre on this one. CakePHP is teh bad.

it is?
how about codeigniter

CodeIgniter: 58.51, CakePHP: 37.46, Symfony: 22.78

NS|Glock_Coma, happen to benchmark the Zend Framework too?

Symfony is great for rapid development, but you incur a cost
it depends on how lean you want to be

hello whats the function to display exact date and time?

date()

semprix, http://php.net/date

thanks

if you're new to mvcs, i suggest using codeigniter before examining the others since it's the most basic out of all of them
the others are great in terms of database integration and misc. other functions

the reality of frameworks is that they don't really offload *that* much development work. you still have to design your DB schema, integrate it with your app, write your business logic for your controller and write the markup for each of your views.
nice integration, provides some handy tools for repetetive tasks, makes your code theoretically more stable and secure, but still doesn't reduce the bulk amount of programming which usually lies in the area of business logic
so you write your DB schema in XML instead of SQL. you write your controllers about the same, and you write your views with whatever templating language the framework provides.
aside from CRUD generation, there's not much that you get from any framework except a performance hit.

what sorta interview questions do you think i'll be asked for a sr programmer position that uses mostly php

.oO( Job interviews... pffft.

heh
i havent had a serious interview in awhile
actually the last few jobs were more convincing me to work there heh

Lann, that's a better topic for #phpc

oh how the tables are turning
my new favorite channel

uh oh

What does that % mean btw?

modulus?
oh ;p

You fail. :P
(Again. )

yeah i just saw.
thats why i said oh
yesterday i failed in efnet php cuz i didnt know what a DBA is
well, took me a second to get it

!

but thats a stupid acronym, should be DA or something
Database Admin
not Data Base Admin
or DataBase Admin

\o/

DA is already deviantart.com

or district attorney :P

is it possible receive GET and POST in the same request?

sure

hmm
where would you see those?
both

in cases where a form submits to a url containing get values
action="index.php?op=login"

ah
so how does $_REQUEST differentiate? it sides with one over the other?

Ky|ratix, i believe it checks GET first
Ky|ratix, but it will use whichever exists

is
er, i see

Ky|ratix, if it exists in POST but not GET it'll use POST, if it exists in GET but not POST it'll use GET

but what if it exists in both

Ky|ratix, if it exists in both i don't know what one it'll use first but it'll use one of them first

is what I assumed was the question
test it

Ky|ratix, honestly if it exists in both i would say you should re-think your logic

abstrakt, i'd agree
looks like it includes cookie as well
er, _COOKIE

bloody script kiddies

Does letter greatness (FetchColumn or fetchColumn) make any difference in performance?

hi
Method Not Allowed The requested method POST is not allowed for the URL /login.php.
what i need to do for php5 work? i use (K)ubuntu

can someone help help with thiss error i am getting after upgrading php?

Can sombody ponit me in the right direction for this, I wish to include an entire website (actually sphpblog (for my weblog (php based))) like a frame below my header file, is there an easy way to do this like frames, or do i have to add a include("/src/head") to every relevent file?

the ERROR is 'extension_dir does not exists /usr/lib/php/modules/'

That's a problem with your server.

server? apache? but is work (ghostdog.homelinux.org)

is this not the correct chatroom for a question like mine?

Or - to use the correct vocabulary: With your HTTP daemon.
Yeah, then with Apache.

is complicate lol

Find out why it's denying POST requests.

Where in the manual, or in another other page would be a good place to look on how to display a fully functional(by this i mean links work and it stays the way it opend up with) webpage in my webpage?

Hello
Can I type $db-exec('SELECT COUNT(...)'); to get amount of records
?

SettlerX, yes, but you have to fetch the result

exec() gives amount of affected rows
but not of count()?

hm possible

this is the first time ive used this program so please, if you can read this dont give me a hard time but....... is this message getting through?

through what

the ERROR is 'extension_dir does not exists /usr/lib/php/modules/'
anyone have idea

are you able to read it... i can only assume you can archivist...

I have php.ini and apache.conf setup correct.

i cant see anything

i can t cant seem to fix this

eddie__, there error states the problem clearly

Thanks...

does that directory exist? what are the permissions? who is the owner?

one sec.

Simy, thats an http/html question not a php one

How can I get an interactive php shell on the command line?

3

Simy, i dont think its possible to include just the script

I was hoping to do it in php (i dont wana use frames)

are those correct.?
ill pastebin the whole directory.

Simy, just echo the required html

I can just rewrite the code and make it so it displays my links at the top, i just dont wana put that much effort into it, i downloaded this script so i wouldnt have to write a blog in the first place...

Simy, then ask the developers of the script

see i have blog.me.org and me.org/news i want me.org/news to display my banner (bassily my name and a few links) and then the rest of the page be what would normally be on blog.me.org

http://paste.uni.cc/16365
those are permissions.

so there is no php related cheat then hu?
that would explain why google turned up unrelated things, lol

PDO::ERRMODE_WARNING causes E_WARNING. Is it possible to cause E_ERROR without additional code (e.g. Fetch() or Exit(...))?

i see the issue i can t fix it tho :/

well, I think O+RX should work there.

owenm yeah the files are there dirctory is there.... not sure what permission have tobe tho
have any idea tho?

hello does someone knows a search or query script who will be able to bring files out of a backup file, a .bkf

not sure, honestly. pastebucket your php conf and I can glance

sure!

Who can help me?

hi, is there a way to load a PHP file without opening a separate window?

http://pastebin.com/929789
owenm
there you go buddy.

I mean, to have a link with onclick that would open a page but immediately close it sorta.

can mod_security break this?

(it's for marking a message 'read' without having checkboxes 'n stuff)

can someone help me?

take a look at http://amarilloauctions.com/
other sites do work.
just 5 or 5 that dont :?
4 or 5*

hmm I guess I should use some Ajax?

how do i get the channel list for freenode?
/list doesn't work

Hi, is there any designers/developers that would like to join our company as a partner?

nm ignore me :p

we have created a server / client remote backup software and need a web person to create the site and make it work with the server

"List rooms" button

no luck :/

honestly, I don't know.

CoolGuy21 tell me more

good luch, sorry I can't figure it out.

Saberu we have a colo rack in downtown

hrmhmrm

and have made a secure software that will be aimed for home - small business clients

yah lol

ok

and its monthly

can some security scripts break this?

they buy packages that we will provide
ranging from 1 gig to 100

ok

we have found from our clients that there is a need
i own a IT Consulting company
my partner and i created the software but we do not do web
so another parthner for the web would be ideal

hello guys

I'm interested, do u have msn? u can tell me more about it

Saberu i have AIM and ICQ
do you have xlite? that way you can do a voip call
or are you in the states?

i don't, i have skyp though

hi, I have a string problem in PHP. I have two identical strings, but when I compare them it returns false. Why could that be?

are you in the states?

nope, uk

hummmm
one sec plz

say, can anybody help me with this counter http://paste.husk.org/8524 -- i need it to not just write "number" to counter.txt but "number:ip", how do i do that?

andys, perhaps special chars which are not echod?

or maybe write the ips to ips.txt

how would I check for them, or remove them?

andys, you could print the ascii code for each char of each string

Saberu
PM me

ok

proc_close seems to hang forever if the child process hangs. Is there any way of killing the child process first?

hangon
i'm not registered user
i'll give u my aim or something just a sec

GREAT

saberu1987

hm.. segfault in 5.2.3.. trying to figure out how to debug/isolate this error

augh i cant fix this crap

CoolGuy21
that was my aim

lol

whats so funny

Saberu are u logge don

yep

GZA the love me and u have is funny

there is no love between me and you
yo

anyone have a tutorial or link that i can use that will show how to parse xml from a datasource -- such as a web page that loads from a URL -- and not a .xml file on a local server?

Are exceptions always shown without TRY and CATCH instructions?

yeah
afaik

c0m--: php.net/dom
c0m--: you can use the DOMDocument-load() to open from a URL

o rly

I dont know how to output the ascii, but when I do a strlen, they are both the same length

i was using curl
to get the response

http://pastebin.com/929838
god damn it
i need tog et this fixed

c0m--: hm, i might've misread that comment.
c0m--: not 100% familiar with it, and I think they said it would work, not that it does. subtle distinction there.

andys, ord()

is there an article on using commas in echo statements.
is echo even a statement?

its a constract
*construct

but probably there is something different wrong..

whats a construct
echo or ,

c0m--: ya, looks like I misread that. probably your best option would be to read the webpage into a string/file and then load it. sorry :/

a statement has a value / returns a value
: i believe
a language construct doesnt
or at least doesnt have to

ord() is only for the first character of a string.

dump using Regex.

andys,use for-loop

php is making all my £'s as ?
im guessing its the character set, but cant find the specific fix

the strings are both the same length though, so there cant be any hidden character then?

yes i think

I remeber I had the same problem in Javascript. I fixed it by wrapping my regex in a "String()" function

hello

hi

Why is it needed to unset($stmt) in PDO using MySQL?
What's wrong?
Is it PDO bug or MySQL bug?

What? Why do you need to unset() it?

somebody knows some site of code under demand?

i want to somehow edit some data that will be queried from a database whats the best thing to do it?

hey guys, how do you get the full path in xquery ? I matched a value of a bunch of node, and I need the path of each match

Can someone please direct me to a simple, easy to understand PHP session id tutorial? Thanks in advance.

why don't you ask in efnet #php

do you know?

http://us.php.net/session

sorry

k

anyone ever use SOAP?

why is this like the shit php channel?

or know if there's an irc channel for php+soap

and efnet is better or something

thank you

Using DOM in PHP does anyone have an example of setIdAttribute?
Say I want the attribute "id" to be the id for the node listing

PDO sometimes has problems with MySQL 4.1. We have to delete object manually.
If I don't unset object, will it exist after closeCursor() usage?

Anyone? If I have to setIdAttribute on each node then why wouldn't I just filter through with getAttribute? Looking for a specific node to delete.

http://developers.slashdot.org/comments.pl?sid=236381&cid=19293083
"However, in my experience, twiddling the apache configs for "AllowOverride" and stuff like that will never get you as big a speed up as moving PHP code to C."
Has anyone done this?
Move the code from PHP to C and load that as a PHP extension?

That sounds a touch extreme.

PHP3

http://developers.slashdot.org/comments.pl?sid=236381&cid=19296511

"then going through it and removing all dollar signs with a search-and-replace, and then making a second pass to declare all types"

Right....

... how incredibly stupid. :
Would've been much smarter to do it vice versa...

C

What's the difference between bindParam and bindValue?

Do one or the other! Spend your time writing *good PHP* or *good C* or good... whatever. Don't say "well, the PHP isn't working, so... let's half-ass a conversion to C"

owenm, I agree
Most people that I've seen (who aren't seasoned developers) hack up php until it works, then walk away

C++ \o(
so bent my left arm. :

Whoa, is this even possible? http://developers.slashdot.org/comments.pl?sid=236381&cid=19292273

hehe... YHBT

That's what's commonly known as a "joke"

can you expand that? I work for IBM and my acronym soup doesn't compute that one

Java Opcode KHTML Extension?

^^

But seriously, back on track... I see Gallery, Wordpress and Drupal all have their own twiddles for "Performance", where there are either boolean or tri-state levels.
oniion, Not your TLA, owenm's TLA
er, FLA

lol

you have been trolled

What kind of problems? PDOStatement::closeCursor() just closes the resource out so you can execute the query again, similar to mysql_free_resource()...

more fun than calling a joke a joke

but doesn't it delete $stmt object?
What is faster? PDO or MySQLi?

s/What/Which/

depends on what driver you're using

e.g. MySQL

eg. enodb, myisam
*inno

I have read that MySQLi is faster (except prepared statements). I'm using MyISAM.
but I will implement MySQL and SQLite to my CMS.

MyISAM is fine, as long as you don't care about your data

how can I read a cookie using PHP?

but if PDO is slow?

Irs321" http://us.php.net/manual/en/features.cookies.php

I'd like to find out what is the difference between bindValue and bindParam in PDO.
I can't understand it now.

$_COOKIE...

oniions make me cry

me too :/

Hello

but i 3 oniion, i guess. i mean I have no reason to /3 oniion
ubut i 3 oniion, i guess. i mean I have no reason to /3 oniion/u
bubut i 3 oniion, i guess. i mean I have no reason to /3 oniion/u/b

is there a php function to remove all entries in an associative array with value = 0?

hmm. *thinks/checks*

just go through the array in a loop and remove?

can do that, just didn't know if there was a function already made

1

[bindParam] "Unlike PDOStatement-bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement-execute() is called"

from the manual, it looks like bindparam binds as a reference and is only triggered on a execute(), while bindValue doesn't.

Faster to create a new array than destroy from an existing one, no?

while (strstr($arrResult[0],'Binary') || $arrResult[0]=="")

$result = array_filter ($array, create_function('$value','return (bool) $value;'));

is there a better way to write this?
I think it's not working

you think?

Okay.

hmm, thx Vystrix_Nexoth

could you suggest something different?

while ($arrResult[0] == '' or strpos($arrResult[0],'Binary') !== false)
or something. what are you trying to do?

while binary exist... enter in the while loop
string 'Binary'

well, what you wrote was:

=~ /binary/ig :]

if the strong contains 'Binary', or if it's empty, enter the loop
PHP, not perl

I know
just kiding.
but php has the sames functions

yeah, but for plain string matching, regexes in any form are overkill
such as "does X contain Y?"

plus they have unexpected side effects
like making your eyes bleed from looking at them.

yeah, such as that /g flag you put there
that too
while "string 'Binary' exist?" what do you mean by that?

yes

anyone ever used nuSOAP?

but this loop sometimes exec forever

is there any reason why i can't get $_SERVER['HTTP_REFERER']; to return anything?

no, *what* do you mean by that? do you mean, if it contains the string 'Binary', or if it *is* the string 'Binary', or what?
well, maybe the browser never sent a Referer header

is this normal with firefox + ie7?

no, they send Referer headers by default.
you'd have to specially configure them *not* to

unless you typed in the URL by hand, it should work

*smacks self* I was thinking of it as User-Agent for some reason.
yeah... if you clicked on a link to go to the page, it should send a Referer header by default

is there any way of getting the previous url another way?

if you typed it in by hand, or pasted it, or from a bookmark

basically the script has to take the previous url and do something with it

if the browser doesn't send it, you're SOL.

if contains

but the url for the script would be typed in mnaually

the string 'Binary
'

ok nevermind
thanks anyway

I find that it's non of site B's business to know what I've been doing at site A anyways.

while (strpos($arrResult[0],'Binary') !== false) {

yep, thats your problem.

its for a tinyurl type thing
to save people having to go to the actual website and input into the form

so... they input into your form?
?

tinyurl is evil

yes but i wanted referal to be an option

care to explain why strstr() is bad?

well, people that misuse it are, anyway

thats why it needs making better

GTFO phisher ^^

bada-bing!

quoth php.net/strstr: "Note: If you only want to determine if a particular needle occurs within haystack, use the faster and less memory intensive function strpos() instead."

for referal to work, they have to be refered to the page.

("needle" and "haystack" are the two strings you pass to the functions)

enough said
thanks

$results = array_diff($array,array("")); worked

I nee help!

Quick! He needs a 'd' key!

haha

I have a page i'm working on. and i'm getting a syntax error
or something like that

don't make me laugh out loud, the bosses might get angry
ok, what does it say?

Undefined variable: fileName in Gserverfiles\kaiser\public_html\test\foto_upload.php on line 7
i'd post the script but.. I don't know if it would kick me fro mthe chan for flooding

it would. pastebin.ca
but, without even looking, I would say that you haven't defined fileName anywhere.

want me to post the whole thing?
or just that little piece

Ah, post the whole thing to pastebin.ca. Why not.

website appears to be inactive

use rafb.net/paste

my pastebin.ca died? :

hi
whats wrong with '$_POST[anr]' == '$result[anr]'+1 ?

seens to be unresponsive

well, maybe the ''
but it alwys times out

paste.husk.org
are you assigning?
or checking values?

http://rafb.net/paste/
Works for me

checking
basically the left side -1

okay here it is
http://rafb.net/p/wXXBBf29.html

why not substr($string, -3)

the function is supposed to convert a image file type to another using imagemagick

well, you never define $fileName.

from tga to png

Yeah, you're right.

$origfile = $_FILES['upload']['name'];

If you don't have registerGlobals on, then you're script is broken right there.
you're = your

that's not to say that turning register_globals on would be a good idea.

by no means

lol. not one bit.

Never a good idea to do that.

Well, if you do things right, it's okay.
But def. not a good idea usually.

ok, that's cool, but where do you define $fileName? ^^

So easy to spl0it.
:P

$filename = $this-upload_dir.$this-file_copy;

$filename != $fileName

hum

not the capitalization
* note

bomp!

O.o

This Ain't DOS

Even then, that happens down at line 37. PHP is gonna open your file and go down, line by line.
It will read line 7 and squeal like a pig, because you haven't defined $fileName before line 7.

okay so how do I get the $filename for a file being uploaded?

(plus it will never see inside the class due to the scope of that variable... being inside the class)

first of all, you need to make up your mind whether the variable should be $filename or $fileName, then make sure all instances of it use the same form.

Techku, tsk tsk

it's not my original script..
i'm just modifiying it to do what I want

oh, marvelous.

First, don't use a var called 'fileName' (or 'filename'), pick something unique

Is the user uploading the file? You could read $_GET or $_POST.
Wow.

well, go through and fix it anyway. you're the one wanting to modify it.

$Florb = 'myfile.txt'

So, the entire Foto_upload isn't even... used?
wow

it is

Where?

the whole script is being uswed.
used*

Ok, my bad
I didn't read past the class declaration

can i speak

HELLO

lol

http://www.php.lt/benchmark/phpbench.php

wow, #php lets me talk now weird .

What do you think about Foreach() loop?
Is it slow as in the test?

##php technically. :P

=o lol

foreach loop is good for mysql query as far as I know..
foreach row blah blah..

Have you ever heard the old saying about optimization?
Rule 1: Don't. Rule 2 (advanced users only): Not yet.
Don't. Rule 2 (advanced users only): Not yet.

just the $ext stuff there is my work

making it work is a great optimization over it not working.

www.websiteurl.com "); after session_start() is called?

Write your code with an eye to efficiency, but don't sweat a difference of a few MS here and there. Write it first, then benchmark. Find your problem areas and fix those.

is it possible to access session variables without calling session_start()

well, a few microsofts here and there can make a big difference. a few ms here and there, though, won't.

This is true ;-)

so how can I define the $filename for the upload exactly

have you sorted out $filename vs. $fileName yet?

Without _explicitly_ calling session_start or without calling it at all?

yessir
fixed that error and still the same issue

acessing it before it's called, this is because when its called the headers are sent

wait, I think I see...
$filename = $this-upload_dir.$this-file_copy;
"$this" means you're calling that within a class method
that $filename won't be visible in the global scope

Actually it should only prepare a header, not yet sending it.

i'll try adding that and seeing what happens than

SlashLife - Oh, hmmh, my reason is because I'm trying to redirect after session_start() preps the header

here is your problem.

That should be no problem.
Can't you do the redirecting w/o the session data?

owenm, i'm all eyes

Because everything session_start should do is to add a cookie setting request to the header.
Unless the session already exists, of course.

You are trying to process images and do work before you have done anything else. Take a look around lines 120-146. Look around there and you can see where it puts filenames, etc. In honesty, if you want the $filename from line 37 you would have to get it from the object. but in all honesty, look to those lines to see what is going on.

Though it might re-set the cookie to a newer expiration date...
Anyway, it should - if at all - only interfere with cookie headers.

SlashLife, hmmh, that's weird,
'.$url); after session_start is called - for some reason it gives me errors when i do

it makes sense to go ahead and put that code in line with the rest of the code to process images... after the object to handle image processing is made, etc.
but you don't have to, just might be a good idea.

SlashLife, perhaps I should look at header() in the php manual

okay so should I mash it in there somehow?

more pertinent, I think, is that you need to make sure $filename becomes assigned to in the global scope.

this my first time working with any script that delt with imagemagick converting crap

hi. ive got many problems with charsets and POSTs. sometimes special chars work perfectly, sometimes not... how can i say that EVERYTHING is forced to be utf8?

probably the best way would be to return it from the function that comes up with it, and then use that return value to assign it to the global variable.

or make an accessor from your class.

Do you include any files between session_start and redirecting?
Oh. Wait. It even TELLS you where the output started.

how can I pass a search string as being "all", if the value entered in it is nothing

if ($search == '') { ... }

SlashLife, I include a functions.inc.php which contains a doRedirect() function

in a text field

wenas noches !!!

or rather, $_GET['q'] or $_POST['q'] or whatever

made some changes running test.

if (empty($_POST['query'])) $_POST['query'] = 'all';

This file does only contain PHP code, correct?

alguien podria decirme q servidor encontrar en el cual aya canales sobre php-nuke??

 

Related pages:
Hey I am having trouble with my PHP-MySQL IIS Server more the trouble is setting it up I hoenstly dont know the
_MarkL_ thanks Im just looking for a good way to pass my messages to the page Im redirecting to via sessions I
Im checking if_SESSION[logged_in] when someone tries to access my index page and if its true i use headerback

 

 

 

  Technologies 

 

 

Copyright ® 2003-2007 Oxxus.Net * USA * UK * AUP * Best web hosting solutions from internets leading web hosting provider * Tutorials * Resources * Blog * FAQ