Re: [PHP] PHP Header issue

2009-09-18 Thread Angus Mann
Your code does not make sense (to me anyway). It flags an error because you are sending HTML before the header command. Don't bother looking for whitespace etc...the etc is more than enough to produce this error. Using "Location" redirects to another URL. It does not make sense to redirect in

Re: [PHP] Does anyone here use TCPDF?

2009-09-18 Thread Paul M Foster
On Sat, Sep 19, 2009 at 02:58:52AM +0900, Dave M G wrote: > PHP List, > > > I posted this question on the TCPDF forum on SourceForge, but it's > getting no response. I'm not even sure how active their list is. > http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/3400663 > > So I'm

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
> I will look into getting from one page to the next page after a Submit If it's any help, I've got a light-weight contact-form code on github, that's meant to be dropped into an otherwise-static site with minimal fuss: http://github.com/bdunlap/Drop-in-Widgets/tree/master/contactform/ It uses a

Re: [PHP] Configure PHP 5.2.8 on AIX 5.3 With LDAP

2009-09-18 Thread Ben Dunlap
Sounds like you have 64-bit LDAP libraries installed on your system. Do you also have 32-bit libraries installed, but PHP is ignoring them? The --with-ldap configure option tells PHP where to look for ldap.h and libldap.a -- but not directly. Here's the relevant bit from php-src/trunk/ext/ldap/con

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
n your code before this statement, or > you have > output_buffering option enabled in the php configuration. > > Now, with that said, using output buffering to "fix" this "problem" is > the wrong > solution. But it does work. > > Jim I thought of that

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
> The fundamental idea was to fill in a contact forum , submit it and then go > to an upload page. By "upload", do you mean "transmit the information that the user entered into the contact form"? Or is the upload page supposed to do something separate from the contact form? Ben -- PHP General

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
> > > > > > > > Isn't that the truth! > > > > > > > >> Winston S. Churchill > > > > > > > > > > > > > > > > > > Just to point out to everybody, you can actually do this. And most > of

RE: [PHP] PHP Header issue

2009-09-18 Thread Ashley Sheridan
output_buffering option enabled in the php configuration. > > > > Now, with that said, using output buffering to "fix" this "problem" is > > the wrong > > solution. But it does work. > > > > Jim > > > > I thought of that t

RE: [PHP] A little slow lately???

2009-09-18 Thread Jay Blanchard
[snip] If anybody is interested, give it a call (541) 323-9089 [/snip] That is awesome! Happy weekend everybody! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
ou have > output_buffering option enabled in the php configuration. > > Now, with that said, using output buffering to "fix" this "problem" is > the wrong > solution. But it does work. > > Jim I thought of that too and I ran a test on my server

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
lution. But it does work. > > Jim I thought of that too and I ran a test on my server just to make sure - guess what? it doesn't work either and I am assuming that is because I have it turned off in my php.ini I prefer not to use the ob because I do a lot of development on m

[PHP] Does anyone here use TCPDF?

2009-09-18 Thread Dave M G
PHP List, I posted this question on the TCPDF forum on SourceForge, but it's getting no response. I'm not even sure how active their list is. http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/3400663 So I'm hoping someone here might be able to help if they are using TCPDF. I just n

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
I think you may have something there Ben. This code is in my php.ini file. This was 'on' by default. ; Output buffering allows you to send header lines (including cookies) even ; after you send body content, at the price of slowing PHP's output layer a ; bit. You can enable output buffering duri

[PHP] Configure PHP 5.2.8 on AIX 5.3 With LDAP

2009-09-18 Thread Ginny Jaworski
I am having problems configuring PHP 5.2.8 with ldap on a AIX 5.3 ldap server. I have also downloaded openldap to try to configure PHP. LDAP is installed in /opt/IBM/ldap/V6.0 and openldap in /opt/freeware. PATH=/opt/freeware/bin:/usr/local/apache/build/libtool:/usr/bin:/etc:/usr/sbin:/usr/uc

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
> if ... you have > output_buffering option enabled in the php configuration. Which is probably the case on the OP's local machine, and would explain why the code doesn't fail for him there. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] PHP Header issue

2009-09-18 Thread Jim Lucas
Jim Lucas wrote: > Ernie Kemp wrote: >> >> >> >> >> >> >> Contact Us >> >> >> >> >> >> >> >> >> >> >> >> The above is just snippet of the code but even this simple example throws >> the Header Warning / Error. >> >> Warning: Cannot modify header information - headers already sent by

Re: [PHP] A little slow lately???

2009-09-18 Thread Jim Lucas
HallMarc Websites wrote: > yay for the infinite monkeys! We have a monkey line here at the office. We created it just as a gage line to transfer the techs to just to goof around. Well, we have found that it works really well for those "annoying sales calls"! If anybody is interested, give it a

RE: [PHP] Re: PHP Header issue

2009-09-18 Thread Andrea Giammarchi
> I think this sort of issue arises particularly because of the > misconception that PHP is embedded inside HTML pages. Once a person has > that idea in their head, they will start to work with an HTML template > and add PHP as necessary. While that can work, in cases such as this, > it's best to

RE: [PHP] PHP Header issue

2009-09-18 Thread Ashley Sheridan
On Fri, 2009-09-18 at 13:12 -0400, Ernie Kemp wrote: > Thanks for your reply Andrew. > I think you can add the "Header" in your body. > > The code working on my local system. > > Thanks, > .../Ernie > > -Original Message- > From: Andrew Ballard [mailto:aball...@gmail.com] > Sent: Septem

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
I'm bewildered, bemused, astonished and am trying really hard not to lash out Thank you, Marc Hall HallMarc Websites 610.446.3346 __ Information from ESET Smart Security, version of virus signature database 4438 (20090918) __ The message was checked by ESET

RE: [PHP] Re: PHP Header issue

2009-09-18 Thread Bob McConnell
From: Ashley Sheridan > On Fri, 2009-09-18 at 19:01 +0200, Ralph Deffke wrote: >> sorry man, but no blancs etc. means NOTHING should be send before the header >> >> it should look like this: >> > >> header("Location: advertise2.php"); >> >> ?> >> >> here u can do ur html >> >> >> >> not one

RE: [PHP] A little slow lately???

2009-09-18 Thread HallMarc Websites
yay for the infinite monkeys! I just had a client ask if I have 3-5 years experience developing websites in Linux. I agree with Jim - I hope you all have a great weekend! Thank you, Marc Hall HallMarc Websites 610.446.3346

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
Thanks for your reply Andrew. I think you can add the "Header" in your body. The code working on my local system. Thanks, .../Ernie -Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] Sent: September-18-09 12:44 PM To: Ernie Kemp Cc: php-general@lists.php.net Subject: Re

RE: [PHP] A little slow lately???

2009-09-18 Thread Andrea Giammarchi
> Maybe people really have started to rtfm! > > Ash well, apparently not everybody, somebody put right now a header call in the middle of the page declaring "there're no white space around, I've checked it!" maybe other realized that a search in the manual takes less time than a mail here ..

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
http://us3.php.net/manual/en/function.header.php Thank you, Marc Hall HallMarc Websites 610.446.3346 __ Information from ESET Smart Security, version of virus signature database 4438 (20090918) __ The message was checked by ESET Smart Security. http://www.eset.com

Re: [PHP] Re: PHP Header issue

2009-09-18 Thread Ashley Sheridan
On Fri, 2009-09-18 at 19:01 +0200, Ralph Deffke wrote: > sorry man, but no blancs etc. means NOTHING should be send before the header > > it should look like this: > > header("Location: advertise2.php"); > > ?> > > here u can do ur html > > > > not one! single char incl. space should be ou

Re: [PHP] PHP Header issue

2009-09-18 Thread Jim Lucas
Ernie Kemp wrote: > > > > > > > Contact Us > > > > > > > > > > > > The above is just snippet of the code but even this simple example throws > the Header Warning / Error. > > Warning: Cannot modify header information - headers already sent by (output > started at /home/cont

[PHP] Re: PHP Header issue

2009-09-18 Thread Ralph Deffke
sorry man, but no blancs etc. means NOTHING should be send before the header it should look like this: here u can do ur html not one! single char incl. space should be outputted before the header e.g. before the php open tag. ralph_def...@yahoo.de ""Ernie Kemp"" wrote in message ne

Re: [PHP] A little slow lately???

2009-09-18 Thread Jim Lucas
Ashley Sheridan wrote: > On Fri, 2009-09-18 at 12:49 -0400, HallMarc Websites wrote: > >> Slower than I was used to.. I wonder if it is because the economy is still >> sucking.. >> >> >> >> __ Information from ESET Smart Security, version of

RE: [PHP] A little slow lately???

2009-09-18 Thread Ashley Sheridan
On Fri, 2009-09-18 at 12:49 -0400, HallMarc Websites wrote: > Slower than I was used to.. I wonder if it is because the economy is still > sucking.. > > > > __ Information from ESET Smart Security, version of virus signature > database 4437 (20090918) __

RE: [PHP] A little slow lately???

2009-09-18 Thread HallMarc Websites
Slower than I was used to.. I wonder if it is because the economy is still sucking.. __ Information from ESET Smart Security, version of virus signature database 4437 (20090918) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing

Re: [PHP] PHP Header issue

2009-09-18 Thread Andrew Ballard
On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp wrote: > > > > > > Contact Us > > > > > > > > > > > > The above is just snippet of the code but even this simple example throws the > Header Warning / Error. > > > > Warning: Cannot modify header information - headers already sent by (output >

[PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
Contact Us The above is just snippet of the code but even this simple example throws the Header Warning / Error. Warning: Cannot modify header information - headers already sent by (output started at /home/content/g/t/a /html/yourestate/advertise.php:6) in/home/content/g

[PHP] A little slow lately???

2009-09-18 Thread Jim Lucas
Has this ML been a little slow lately, or is it just me? And, is that good or bad? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Andrea Giammarchi
> You can not pass this myPHPvar javascript var as an input in a form. if you > want to change its value and maintein it, must to use an static var, and > only can access to this values via javascript functions where an event is > invoked (in case you want to read or write values) with all due

Re: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Jonathan Vivero
And of course, sorry for my english!!! I correct!! Imagine you have an assoc. array that you encode with json and save into the > js var. Ok. > > This way is perfect. But you can do less with this values than using my > solution. Important: Each case is different, and may be studied in > particul

Re: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Jonathan Vivero
imagine you have an assoc. array that you encode with json and save in the js var. Ok. This way is perfect. But you can do less with this values than using my solution. Important: Each case is different, and may be studied in particular. You can not pass this myPHPvar javascript var as an input i

RE: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Andrea Giammarchi
Actually, it's even more simple ... forgive me: echo 'var myPHPvar='.json_encode($myPHPvar).';'; that's pretty much it > From: an_...@hotmail.com > To: jonathan.desarro...@gmail.com; mail2gautambha...@gmail.com > CC: saeed@gmail.com; php-general@lists.php.net > Date: Fri, 18 Sep 2009 13:01

RE: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Andrea Giammarchi
> basicly is use hidden inputs as a container for php variables, and transform > through js. really? I though the other way round was extremely simple: echo 'var myPHPvar=eval("('.addslashes(json_encode($myPHPvar)).')");'; why would you use hidden input, plus DOM to get data, etc, etc? _

Re: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Jonathan Vivero
Or you can also do this way: on loading "; [...] echo " functino recalculateValue(){ var myText = document.getElementById("myphpvar"); var myValue = myText.value; /* operations with myText */ myText.value = myRecalcValue; } once changed, you choose how to proceed, maybe executing any other

Re: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Gautam Bhatia
hello, You can also try using AJAX technology to communicate with the server side code that is your php :). Regards, Gautam Bhatia Punjab,India mail2gautambha...@gmail.com On Fri, 2009-09-18 at 02:16 +0700, saeed ahmed wrote: > hello guys, > > i'm new here in this list. guys i need a help