Re: [PHP] PHP Form Help

2006-04-05 Thread Chris
Jai Rangi wrote: Dear Chris, Thank you for your response. I will make sure to start a new thread for future. I tried this but it did not work if (isset($_POST['title'])) { $title = htmlentities($_POST['title']); echo $title; } else { $title = ''; } This part of my code seems to be t

Re: [PHP] IF or SWITCH

2006-04-05 Thread Joe Wollard
On 4/5/06, Ray Hauge <[EMAIL PROTECTED]> wrote: > > Hello World! wait, not coding... (sorry, long night) > > Okay, I finally finished hashing out all the logic for a very complex set > of > rules to determine what "type" an application should be set to. I won't > bore > you with the details of it,

RE: [PHP] IF or SWITCH

2006-04-05 Thread ray . hauge
> Original Message > Subject: Re: [PHP] IF or SWITCH > From: Chris <[EMAIL PROTECTED]> > Date: Wed, April 05, 2006 8:32 pm > To: Ray Hauge <[EMAIL PROTECTED]> > Cc: PHP-General > > Ray Hauge wrote: > > Hello World! wait, not coding... (sorry, long night) > > > > Okay, I finall

[PHP] Php Script Stumped!

2006-04-05 Thread marvin hunkin
Hi. doing this script for an assignment, and got it basically working. the only problems are: 1. wen i load the user form, the focus goes to the login button, and not the first form field. did try putting one it, did not like it. so how do i do this? is there a basic dom example, how to set fo

Re: [PHP] IF or SWITCH

2006-04-05 Thread Jochem Maas
Chris wrote: Ray Hauge wrote: Hello World! wait, not coding... (sorry, long night) ... if ($count_lenders > 1) I would take it even further and setup a load of variables that hold the boolean states that you what to check in the 50 odd if/else statements... something like: $ffelpEQ

Re: [PHP] PHP Form Help

2006-04-05 Thread Jai Rangi
Dear Chris, Thank you for your response. I will make sure to start a new thread for future. I tried this but it did not work if (isset($_POST['title'])) { $title = htmlentities($_POST['title']); echo $title; } else { $title = ''; } This part of my code seems to be the problem, Though

[PHP] Faking Boolean

2006-04-05 Thread John Taylor-Johnston
How can I take enquiry: or and parse its value to come up with this to do a boolean search +"john" or +"john" +"johnston" Does there exist a function yet :) ? I suppose I could explode $searchenquiry for spaces and reassemble the bits? -- PHP General Mailing List (http://www.php.net/) To

[PHP] Wired WSDL Error

2006-04-05 Thread Venkat Venkataraju
Hi All I'm currently developing a SOAP server/client using NuSOAP. I have rigged my apache so that i can work on multiple applications at the same time. So, as all my apps are in virtual hosts, i'm getting 404 error while parsing the WSDL file. The wired thing is, the parsing breaks somewher

Re: [PHP] PHP post data

2006-04-05 Thread Chris
John Taylor-Johnston wrote: Scrolling back and forward through my PHP generated search engine, my browser (FF) alerts to remind me that I have post data. What kind of header can I add to avoid it doing that? This has been discussed a few times in the past. Here's a couple of threads which migh

[PHP] PHP post data

2006-04-05 Thread John Taylor-Johnston
Scrolling back and forward through my PHP generated search engine, my browser (FF) alerts to remind me that I have post data. What kind of header can I add to avoid it doing that? Else what is the problem? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] IF or SWITCH

2006-04-05 Thread Chris
Ray Hauge wrote: Hello World! wait, not coding... (sorry, long night) Okay, I finally finished hashing out all the logic for a very complex set of rules to determine what "type" an application should be set to. I won't bore you with the details of it, but the question is... I have 57 if/els

Re: [PHP] IF or SWITCH

2006-04-05 Thread Ray Hauge
On Wednesday 05 April 2006 20:11, Robert Cummings wrote: > Well I'd use if/elseif/else but I don't format like you... > > if( $numFFELP > 1 > && > count( $FFELP_Lenders ) > 1 > && > $numFFELP == $numTotal ) > { > $retVal = array( TRUE, 'A' ); > } > else > if( $numFFELP > 0 >

Re: [PHP] IF or SWITCH

2006-04-05 Thread Robert Cummings
On Wed, 2006-04-05 at 22:48, Ray Hauge wrote: > Hello World! wait, not coding... (sorry, long night) > > Okay, I finally finished hashing out all the logic for a very complex set of > rules to determine what "type" an application should be set to. I won't bore > you with the details of it, but

[PHP] IF or SWITCH

2006-04-05 Thread Ray Hauge
Hello World! wait, not coding... (sorry, long night) Okay, I finally finished hashing out all the logic for a very complex set of rules to determine what "type" an application should be set to. I won't bore you with the details of it, but the question is... I have 57 if/elseif/else statements

Re: [PHP] PHP Form Help

2006-04-05 Thread Chris
Jai Rangi wrote: Greeting, I hope this is the right place for this. If not please guide me. I am having problem with my "Form". Code is below. I want to generate an error message if the required fields are not filled. If they are filled then I want to add them to the database and display the fo

[PHP] PHP Form Help

2006-04-05 Thread Jai Rangi
Greeting, I hope this is the right place for this. If not please guide me. I am having problem with my "Form". Code is below. I want to generate an error message if the required fields are not filled. If they are filled then I want to add them to the database and display the form again to make

Re: [PHP] int to string

2006-04-05 Thread Robert Cummings
On Wed, 2006-04-05 at 21:27, Philip Hallstrom wrote: > > I don't think it's built in, so I was wondering ya'll would recommend as the > > best way to convert int to string, not basic type casting, but converting to > > the english word the int represents. > > > > Something like this: > > > > 5 = "F

Re: [PHP] int to string

2006-04-05 Thread Philip Hallstrom
I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = "Five" or 20 = "Twenty" If you wanted a full solution (well maybe, I didn't re

Re: [PHP] Re: int to string

2006-04-05 Thread Robert Cummings
On Wed, 2006-04-05 at 20:09, Al wrote: > Tanner Postert wrote: > > I don't think it's built in, so I was wondering ya'll would recommend as the > > best way to convert int to string, not basic type casting, but converting to > > the english word the int represents. > > > > Something like this: > >

Re: [PHP] Re: int to string

2006-04-05 Thread Tanner Postert
number range is relatively small... i'll just make an array, and reference it by index; $INT2STRING = array( 1=> "One", 2=>"Two", 30 = "Thirty"); Then reference it by: print ($x ."=". $INT2STRING[$x]); should work just fine. just wondering if there was an easier solution. thanx for the help t

Re: [PHP] int to string

2006-04-05 Thread Ray Hauge
On Wednesday 05 April 2006 16:47, Peter Hoskin wrote: > Tanner Postert wrote: > > I don't think it's built in, so I was wondering ya'll would recommend as > > the best way to convert int to string, not basic type casting, but > > converting to the english word the int represents. > > > > Something

RE: [PHP] int to string

2006-04-05 Thread Chrome
Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1474 (20060405) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: int to string

2006-04-05 Thread Tanner Postert
number range is relatively small... i'll just make an array, and reference it by index; $INT2STRING = array( 1=> "One", 2=>"Two", 30 = "Thirty"); Then reference it by: print ($x ."=". $INT2STRING[$x]); should work just fine. just wondering if there was an easier solution. thanx for the help t

[PHP] Re: int to string

2006-04-05 Thread Al
Tanner Postert wrote: I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = "Five" or 20 = "Twenty" What is your number range? 1..

Re: [PHP] int to string

2006-04-05 Thread Peter Hoskin
Chrome wrote: Won't work 20 would become 'two zero' not 'twenty' as the for loop identifies 1 character at a time Don't have any suggestions... Just critisms :-D... hehe sorry You don't say... it won't even convert 2 to 'two' so obviously this is an EXAMPLE and not a COMPLETE SOLUTION.

RE: [PHP] int to string

2006-04-05 Thread Chrome
eral Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1474 (20060405) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] int to string

2006-04-05 Thread Peter Hoskin
Tanner Postert wrote: I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = "Five" or 20 = "Twenty" You're right - its not built

Re: [PHP] Magic quotes good or Bad?

2006-04-05 Thread Peter Hoskin
tedd wrote: I do it by placing a text file at root named ".htaccess" with the following php_value magic_quotes_gpc 0 php_value magic_quotes_sybase 0 php_value magic_quotes_runtime 0 Only works if your web server allows you to do this. In Apache the controlling option for this is: Allow

[PHP] int to string

2006-04-05 Thread Tanner Postert
I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = "Five" or 20 = "Twenty"

Re: [PHP] Problems creating images

2006-04-05 Thread Tom Rogers
Hi, Thursday, April 6, 2006, 5:42:05 AM, you wrote: AB> Hi, AB> I added image confirmation to a guestbook and even though it works AB> greate for most people, some people have problem and I can't seem to AB> figure out why this happens. Note that I'm not talking about the same AB> guestbook on

Re: [Fwd: Re: [PHP] redirect using php]

2006-04-05 Thread Schalk
Thanks everyone for your help. In the end the simplest one that works for this specific project was: echo ""; Andrei wrote: Andrei wrote: It works with document.location = '...'; too. I use only this method and it worked on all browsers... Assuming the end user has JS turned on. JS an

Re: [PHP] open / check SSL activation

2006-04-05 Thread Jochem Maas
Thomas Munz wrote: if request come from port 443, SSL = Active 443 is the default port for SSL connections but there is no garantee that a connection on port 443 is actually encrypted. therefore I would suggest that using the port number to determine whether SSL is active is a bad idea. see m

Re: [PHP] open / check SSL activation

2006-04-05 Thread Jochem Maas
Alain Roger wrote: Hi, I would like to ebsure that my user has SSL activated. for that i would like to do something like that : 1. after lo-in button click, application will check if SSL is already activated. 1.a if no, php code should activate SSL 1.b if yes, php code should control logi

Re: [PHP] Sessions and Frames

2006-04-05 Thread Shaun
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, April 5, 2006 1:33 pm, Joe Wollard wrote: >> If you can't avoid them, keep it simple - just store the ID in one >> place, >> like a session cookie. Doing so will make sure that if the session ID >> gets >> cha

[PHP] Problems creating images

2006-04-05 Thread Age Bosma
Hi, I added image confirmation to a guestbook and even though it works greate for most people, some people have problem and I can't seem to figure out why this happens. Note that I'm not talking about the same guestbook on one server but the guestbook is on people's own hosting server. The p

Re: [PHP] Problems creating images

2006-04-05 Thread Philip Hallstrom
I added image confirmation to a guestbook and even though it works greate for most people, some people have problem and I can't seem to figure out why this happens. Note that I'm not talking about the same guestbook on one server but the guestbook is on people's own hosting server. The php cod

Re: [PHP] IP Address Filtering - Problem Continues

2006-04-05 Thread tedd
At 5:58 PM +0200 4/5/06, Jochem Maas wrote: Jay Blanchard wrote: [snip] The problem is, the spammer is using multiple IP Address. His IP Address changes every 6 - 8 entries. I have so far recorded 5 different IP Addresses of the spammer. Although I can create a Database and keep adding his IP Ad

RE: [PHP] Failed MySQL queries

2006-04-05 Thread Jay Blanchard
[snip] Rather than using the following, which simply displays a white screen with the die message, is there a way to add the die message to the body of the original form page, such as in a variable, so that I can display the message on the original form page with all the values already filled out,

RE: [PHP] Failed MySQL queries

2006-04-05 Thread Jim Moseby
> > Rather than using the following, which simply displays a > white screen with > the die message, is there a way to add the die message to the > body of the > original form page, such as in a variable, so that I can > display the message > on the original form page with all the values already

[PHP] Failed MySQL queries

2006-04-05 Thread Ben Miller
Rather than using the following, which simply displays a white screen with the die message, is there a way to add the die message to the body of the original form page, such as in a variable, so that I can display the message on the original form page with all the values already filled out, so that

Re: [PHP] Sessions and Frames

2006-04-05 Thread Richard Lynch
On Wed, April 5, 2006 1:33 pm, Joe Wollard wrote: > If you can't avoid them, keep it simple - just store the ID in one > place, > like a session cookie. Doing so will make sure that if the session ID > gets > changed in one frame it will still be correct in all of the other > frames. No, it won't.

Re: [PHP] Sessions and Frames

2006-04-05 Thread Joe Wollard
I agree with Richard on this one. Frames should really be avoided if for no other reason than they cause headaches like the one you have right now. ;-) If you can't avoid them, keep it simple - just store the ID in one place, like a session cookie. Doing so will make sure that if the session ID ge

[PHP] ZEND Certification

2006-04-05 Thread Bobby Matthis
I'm sure this has been asked in the past, but I figured up to date info never hurts. I'm going to be scheduling my certification soon, but I wanted to hear from any of you that recently got zend certified recently and if you had any advice. Is there any particular portion I should make sure I hav

Re: [PHP] Sessions and Frames

2006-04-05 Thread Richard Lynch
On Wed, April 5, 2006 1:02 pm, Shaun wrote: > I have a site that uses frames. The frameset loads another site (both > on the > same server) in the lower frame window. Every time the page changes in > the > lower frame the session id changes, how can I stop this happening? You might be able to redu

[PHP] Sessions and Frames

2006-04-05 Thread Shaun
Hi, I have a site that uses frames. The frameset loads another site (both on the same server) in the lower frame window. Every time the page changes in the lower frame the session id changes, how can I stop this happening? Thanks for your help -- PHP General Mailing List (http://www.php.net/

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Alain Roger
thanks a lot Brad... i was updating the php.ini from PHP installation folder and not the one that apache was reading. so i replace the php.ini in my C:\Windows folder and in my Phpinfo page i have a new part regarding MySQL. it's ok now. thanks a lot, Alain On 4/5/06, Brad Bonkoski <[EMAIL PROTE

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Brad Bonkoski
One alternative is to try this: http://www.en.wampserver.com Otherwise, make sure the php.ini file you are editing is the one pointed to by the line: Configuration File (php.ini) Path from the phpinfo generated file Also, you could check any Apache log files to see if they output any erro

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread John Nichel
Alain Roger wrote: nothing about MySQL...only what is in my path variable :-( 1. i stopped apache server 2. i uncomment --> extension=php_mysql.dll and extension=php_mysqli.dll in my php.ini file 3. i updated my extension_dir like that --> extension_dir = "F:\WebServer\PHP511\ext" 4. i restarted

[PHP] Oracle stored procedures

2006-04-05 Thread Jay Blanchard
Howdy group... I have a stored procedure in Oracle; p_BILL_TO_ADDRESS1 IN CONT_ADDRESS.ADDRESS1%TYPE Default NULL, --VC(50) With a condition; IF p_BILL_TO_ADDRESS1 is NULL THEN Raise_Application_Error(-20100,'BILL TO Address cannot be a NULL Value'); END IF; I have some PHP code

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Alain Roger
nothing about MySQL...only what is in my path variable :-( 1. i stopped apache server 2. i uncomment --> extension=php_mysql.dll and extension=php_mysqli.dll in my php.ini file 3. i updated my extension_dir like that --> extension_dir = "F:\WebServer\PHP511\ext" 4. i restarted apache 5. phpinfo sti

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Brad Bonkoski
Create a page like this: and see what the output tells you about mysql...might shed some light on it. -B Alain Roger wrote: i've seen that non of extension are activated...neither mysql.dll nor mysqli.dll after uncommenting them and restarting Apache, it still does not work :-( On 4/5/06, J

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Alain Roger
i've seen that non of extension are activated...neither mysql.dll nor mysqli.dll after uncommenting them and restarting Apache, it still does not work :-( On 4/5/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Alain Roger wrote: > > Hi, > > > > i wrote a simple testing page. it should test if it c

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Jochem Maas
Alain Roger wrote: Hi, i wrote a simple testing page. it should test if it can connect to MySQL db. however, i have an error message as followed : *Fatal error*: Call to undefined function mysql_connect() in *F:\Mes documents\Development\Website\Immense\checklogin.php* on line *23 *on line 23,

[PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Alain Roger
Hi, i wrote a simple testing page. it should test if it can connect to MySQL db. however, i have an error message as followed : *Fatal error*: Call to undefined function mysql_connect() in *F:\Mes documents\Development\Website\Immense\checklogin.php* on line *23 *on line 23, i have the following

Re: [PHP] calling php script from C - pclose problem

2006-04-05 Thread Ysidro
Jochem Maas wrote: Ysidro wrote: Hello, Calling a php script from legacy c code using popen(), works great. Problem: when php script is done, pclose() in c code fails with ECHILD, No child process, wait4() failed. This is because the php script does not hang around to be wait'ed for; any i

Re: [PHP] calling php script from C - pclose problem

2006-04-05 Thread Jochem Maas
Ysidro wrote: Hello, Calling a php script from legacy c code using popen(), works great. Problem: when php script is done, pclose() in c code fails with ECHILD, No child process, wait4() failed. This is because the php script does not hang around to be wait'ed for; any idea how to make a com

Re: [PHP] Download image in PHP

2006-04-05 Thread Jochem Maas
Russell Jones wrote: I have an image library on one site that I want to be able to access from another, but I actually want the image downloaded and cached to the new site (so that it doesnt keep taxing the image server). I allow the file() command to pull from other sites, can I do this with ju

Re: [PHP] IP Address Filtering - Problem Continues

2006-04-05 Thread Jochem Maas
Jay Blanchard wrote: [snip] The problem is, the spammer is using multiple IP Address. His IP Address changes every 6 - 8 entries. I have so far recorded 5 different IP Addresses of the spammer. Although I can create a Database and keep adding his IP Address to the database, and run a check from t

Re: [PHP] newbie question

2006-04-05 Thread John Wells
On 4/5/06, David Doonan <[EMAIL PROTECTED]> wrote: > The only difference is the textarea tag from the form. What am I > missing? "nl2br" is short for "newline to ". If you pass a string of content that contains newline characters (these signal the ending of a line of text) to nl2br(), it will rep

Re: [PHP] no,no,no,Re: [PHP] HTML_AJAX and formSubmit method - Yes ! But why ?

2006-04-05 Thread Jochem Maas
Georgi Ivanov wrote: I didn't understood what are you saying at first. I don't control the JS code . It is generated from the HTML_AJAX code. The problem was fixed when calling formSubmit method like this : HTML_AJAX.formSubmit(this,target) // No quotes here; target is just a string ! instead

Re: [PHP] newbie question

2006-04-05 Thread David Doonan
On Apr 5, 2006, at 11:51 AM, Evan Priestley wrote: On Apr 5, 2006, at 11:41 AM, Jay Blanchard wrote: ^ Not sure if this is just a transcription error, but that should be an 'l' (ell), not a '1' (one) in "nl2br". Evan Grazi! Exactly what I'm looking for! a very grate

Re: [PHP] newbie question

2006-04-05 Thread David Doonan
Writings_Text is the field in the d/b that contains the text I'm trying to return. I've done a couple of dozen ColdFusion sites and would format like this: #ParagraphFormat(Writings_Text)# and the results would be retuned exactly as stored in the d/b. What I'm searching for is the php equileva

Re: [PHP] newbie question

2006-04-05 Thread Evan Priestley
On Apr 5, 2006, at 11:41 AM, Jay Blanchard wrote: ^ Not sure if this is just a transcription error, but that should be an 'l' (ell), not a '1' (one) in "nl2br". Evan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] newbie question

2006-04-05 Thread Jay Blanchard
[snip] Read this http://www.php.net/nl2br The page stops writing once it hits this line: [/snip] And? What is the content of 'Writings Text'? Is there anything there? [helpful hint] When responding to e-mails on the list you must hit replay all or the list will never see the response and ther

RE: [PHP] IP Address Filtering - Problem Continues

2006-04-05 Thread Jay Blanchard
[snip] The problem is, the spammer is using multiple IP Address. His IP Address changes every 6 - 8 entries. I have so far recorded 5 different IP Addresses of the spammer. Although I can create a Database and keep adding his IP Address to the database, and run a check from the Guestbook script to

Re: [PHP] Download image in PHP

2006-04-05 Thread Joe Henry
On Wednesday 05 April 2006 7:16 am, mbneto wrote: > Hi, > > If all you want to do is this as a suggestion (altough not php > related) you could call wget from your php script to fetch this image > without having to worry with other things. > > Something like this > > exec ('/path/to/wget http://www

[PHP] IP Address Filtering - Problem Continues

2006-04-05 Thread Rahul S. Johari
Ave, Unfortunately my problem persists. The reason my script was recording "NULL" as IP address was because I was using $REMOTE_ADDR. When I started using the correct syntax, i.e., $SERVER['REMOTE_ADDR'], it actually did start recording the IP Address of the spammer. The problem is, the spammer

RE: [PHP] newbie question

2006-04-05 Thread Jay Blanchard
[snip] I'm developing my first php mysql site and have hit a stumbling block regarding how text is being returned out of the database. This is the code that I'm using on the display page. It is displaying the returned text as one long paragraph, instead of mulitiple paragraphs: -

[PHP] newbie question

2006-04-05 Thread David Doonan
I'm developing my first php mysql site and have hit a stumbling block regarding how text is being returned out of the database. This is the code that I'm using on the display page. It is displaying the returned text as one long paragraph, instead of mulitiple paragraphs: --- Th

Re: [PHP] Error when compiling PHP from source on Mac OS X 10.4 server

2006-04-05 Thread Frank Arensmeier
I tried to install PHP 4 with darwinports yesterday. And it gave me the same error. Configuring the install seems not to be the problem, but the install make. It has definitely something to do with the absence of some developer packages from Apache on my machine. I actually found a rather b

[PHP] no,no,no,Re: [PHP] HTML_AJAX and formSubmit method - Yes ! But why ?

2006-04-05 Thread Georgi Ivanov
I didn't understood what are you saying at first. I don't control the JS code . It is generated from the HTML_AJAX code. The problem was fixed when calling formSubmit method like this : HTML_AJAX.formSubmit(this,target) // No quotes here; target is just a string ! instead of : HTML_AJAX.formSu

[Fwd: Re: [PHP] redirect using php]

2006-04-05 Thread Andrei
Andrei wrote: It works with document.location = '...'; too. I use only this method and it worked on all browsers... Assuming the end user has JS turned on. JS and Meta Refreshes are not acceptable when you need to be sure the redirect works. Depends on your user target... I gener

Re: [PHP] Magic quotes good or Bad?

2006-04-05 Thread John Nichel
Angelo Zanetti wrote: Hi guys. I've just read an article that gives a good explanation about escaping single quote characters with slashes, the author then says that magic_quotes_gpc can do this for you if enabled on your server, he then he also mentions how if your magic_quotes_gpc are not t

Re: [PHP] redirect using php

2006-04-05 Thread John Nichel
Andrei wrote: It works with document.location = '...'; too. I use only this method and it worked on all browsers... Assuming the end user has JS turned on. JS and Meta Refreshes are not acceptable when you need to be sure the redirect works. -- John C. Nichel IV Programmer/System Admin

Re: [PHP] redirect using php

2006-04-05 Thread Mark Kelly
On Wednesday 05 April 2006 14:33, Chris Shiflett wrote: > Mark Kelly wrote: > > > > You can also use something like: > > > > > > > > echo ""; > > > > > > There's no need to use a meta tag to mimic HTTP headers. PHP > > > provides the header() function. > > > > I have been using that method when I g

Re: [PHP] redirect using php

2006-04-05 Thread Thomas Munz
Function that will work also, when JS is not activate and headers are allready send :) : '; } else { // no headers sent... much nicer header redirect

Re: [PHP] redirect using php

2006-04-05 Thread Chris Shiflett
Mark Kelly wrote: > > You can also use something like: > > > > echo ""; > > There's no need to use a meta tag to mimic HTTP headers. PHP > provides the header() function. I have been using that method when I got part-way through some processing that produces output, and hit something that requir

Re: [PHP] redirect using php

2006-04-05 Thread tedd
At 11:21 PM +0200 4/4/06, Schalk wrote: Greetings All, In JSP I have access to a function called sendRedirect() to send a user from one page to another, usually after some processing completed. Is there a similar function in PHP? After processing a form and sending the data via email, I need

RE: [PHP] redirect using php

2006-04-05 Thread Dan Parry
If it helps here's the code I use to redirect '; } else { // no headers sent... much nicer header redirect header('location: ' . $url); die(); } } ?> HTH Dan - Dan Parry Senior Developer Virtua W

Re: [PHP] open / check SSL activation

2006-04-05 Thread Thomas Munz
if request come from port 443, SSL = Active you can get the port from $_SERVER["SERVER_PORT"] on Wednesday 05 April 2006 15:12, Alain Roger wrote: > Hi, > > I would like to ebsure that my user has SSL activated. > > for that i would like to do something like that : > 1. after lo-in button click,

Re: [PHP] redirect using php

2006-04-05 Thread Mark Kelly
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote: > Mark Kelly wrote: > > You can also use something like: > > > > echo ""; > > There's no need to use a meta tag to mimic HTTP headers. PHP provides > the header() function. I have been using that method when I got part-way through some proces

Re: [PHP] Magic quotes good or Bad?

2006-04-05 Thread tedd
At 2:37 PM -0800 4/5/06, Angelo Zanetti wrote: Hi guys. I've just read an article that gives a good explanation about escaping single quote characters with slashes, the author then says that magic_quotes_gpc can do this for you if enabled on your server, he then he also mentions how if your m

Re: [PHP] Download image in PHP

2006-04-05 Thread mbneto
Hi, If all you want to do is this as a suggestion (altough not php related) you could call wget from your php script to fetch this image without having to worry with other things. Something like this exec ('/path/to/wget http://www.foo.com/bar.jpg'); Of course you'd have to check if everything

[PHP] open / check SSL activation

2006-04-05 Thread Alain Roger
Hi, I would like to ebsure that my user has SSL activated. for that i would like to do something like that : 1. after lo-in button click, application will check if SSL is already activated. 1.a if no, php code should activate SSL 1.b if yes, php code should control login and password entere

Re: [PHP] Magic quotes good or Bad?

2006-04-05 Thread Chris Shiflett
Angelo Zanetti wrote: So should i avoid magic_quotes_gpc all together? In my opinion, yes. my local development server has them enabled and when testing the input of a textfield that does a select query I input 'hello' (including single quotes) and it works really well with the single quotes

Re: [PHP] HTML_AJAX and formSubmit method - Yes ! But why ?

2006-04-05 Thread Georgi Ivanov
> does the following make it work? ... Yes it did ! But why ? I'm passing string ... not variable... I don't understand > > Georgi Ivanov wrote: > > ... > > > formSubmit: function (form, target, customRequest) > > { > > if (typeof form == 'string') { > > form = documen

Re: [PHP] redirect using php

2006-04-05 Thread Chris Shiflett
Mark Kelly wrote: You can also use something like: echo ""; There's no need to use a meta tag to mimic HTTP headers. PHP provides the header() function. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Download image in PHP

2006-04-05 Thread Russell Jones
I have an image library on one site that I want to be able to access from another, but I actually want the image downloaded and cached to the new site (so that it doesnt keep taxing the image server). I allow the file() command to pull from other sites, can I do this with just the file('http://www

Re: [PHP] Magic quotes good or Bad?

2006-04-05 Thread Brad Bonkoski
IMHO, it really depends on a couple of things... 1). how you use it and 2). How much control you want... If you have a single point of entry for database actions, like a class that mimics the database structure and handles updates, inserts, deletes, then it makes sense to turn them off to give

[PHP] Magic quotes good or Bad?

2006-04-05 Thread Angelo Zanetti
Hi guys. I've just read an article that gives a good explanation about escaping single quote characters with slashes, the author then says that magic_quotes_gpc can do this for you if enabled on your server, he then he also mentions how if your magic_quotes_gpc are not turned on/enabled that you

Re: [PHP] HTML_AJAX and formSubmit method

2006-04-05 Thread Jochem Maas
does the following make it work? ... Georgi Ivanov wrote: ... formSubmit: function (form, target, customRequest) { if (typeof form == 'string') { form = document.getElementById(form); if (!form) { // let the submit be processed normally

Re: [PHP] test for illegal characters and consequences

2006-04-05 Thread Angelo Zanetti
Paul Scott wrote: On Wed, 2006-04-05 at 13:34 -0800, Angelo Zanetti wrote: Thanks for the reply. So what do you do if someone enters illegal characters in one of your form? Do you inform the user and prompt them to enter the fields again or do you just strip out all the bad characters and ent

Re: [PHP] test for illegal characters and consequences

2006-04-05 Thread Paul Scott
On Wed, 2006-04-05 at 13:34 -0800, Angelo Zanetti wrote: > Thanks for the reply. So what do you do if someone enters illegal characters > in one of your form? Do you inform the user and prompt them to enter the > fields again or do you just strip out all the bad > characters and enter the rest

Re: [PHP] test for illegal characters and consequences

2006-04-05 Thread Angelo Zanetti
Paul Scott wrote: On Tue, 2006-04-04 at 15:32 -0800, Angelo Zanetti wrote: Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? In our

Re: [PHP] Error when compiling PHP from source on Mac OS X 10.4 server

2006-04-05 Thread T.Lensselink
Maybe try to configure with the direct path to the apache source files... --with-apxs=/path/to/apache/bin/apxs Frank Arensmeier said: > Hello. > > I try to compile PHP 4.4.2 from source on Mac OS X 10.4 server but I > am getting error messages. The the install configuration runs just > fine using

Re: [PHP] Error when compiling PHP from source on Mac OS X 10.4 server

2006-04-05 Thread Georgi Ivanov
I think you are missing httpd-devel package. At least on Linux is called something like this. Also look for /usr/sbin/apxs(2) If you are with apache 2.x you should use --with-apxs2[=/usr/sbin/apxs2] Good luck On Wednesday April 5 2006 12:54, Frank Arensmeier wrote: > Hello. > > I try to compile

[PHP] HTML_AJAX and formSubmit method

2006-04-05 Thread Georgi Ivanov
Hi List ! I'm playing around with HTML_AJAX PEAR module and came to a strange situation . Consider following code :  This is where the result will be printed Login User: Password:

[PHP] Error when compiling PHP from source on Mac OS X 10.4 server

2006-04-05 Thread Frank Arensmeier
Hello. I try to compile PHP 4.4.2 from source on Mac OS X 10.4 server but I am getting error messages. The the install configuration runs just fine using the following options: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/lib --with-apxs --with-iconv=/usr/local

Re: [PHP] redirect using php

2006-04-05 Thread Andrei
It works with document.location = '...'; too. I use only this method and it worked on all browsers... Andy Barry wrote: Andrei wrote: document.location = 'http://where.to.go.com/example.php?param1='; Wasn't it -> document.location.href ='www.example.com'; o_O ? Barry -- PHP Gene

Re: [PHP] redirect using php

2006-04-05 Thread Barry
Andrei wrote: document.location = 'http://where.to.go.com/example.php?param1='; Wasn't it -> document.location.href ='www.example.com'; o_O ? Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscri

  1   2   >