Re: [PHP] quotes in php.ini

2003-10-29 Thread Curt Zirzow
* Thus wrote Evan Nemerson ([EMAIL PROTECTED]): On Tuesday 28 October 2003 11:29 pm, Rolf Brusletto wrote: Evan Nemerson wrote: Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to font color=\#ff\ (which

Re: [PHP] Generate Thumbnail gif's

2003-10-29 Thread Mike Migurski
Is there any pre-written code available on the net to generate thumbnail images for a picture. I mean I send the path of the image and my PHP Script should be able to generate a gif file of size 100x71 or something like that. If your server has Imagemagick installed (it seems pretty common), try:

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the

Re: [PHP] quotes in php.ini

2003-10-29 Thread Evan Nemerson
On Tuesday 28 October 2003 11:10 pm, Leif K-Brooks wrote: Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). Yup. I've got the highlight_file thing from earlier working with ini entries, and I'm

Re: [PHP] quotes in php.ini

2003-10-29 Thread Evan Nemerson
On Tuesday 28 October 2003 10:46 pm, [EMAIL PROTECTED] wrote: Evan Nemerson wrote: Is anyone aware of a way to get double quotes in the php.ini file? For instance, I'd like to be able to set error_prepend_string to font color=\#ff\ (which doesn't work). The only work-around I can think

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). Why not? - E -

[PHP] Calendar Script

2003-10-29 Thread Vijay Killu
Dear PHP, Where can I find the Calendar script that has been used on the PHP.net site. I believe I can use it on my website since it is open source :-) Thanks Regards, ___ PHPLover * : [EMAIL PROTECTED] Göd döësn't pläy dícë. - Älbërt Ëínstëín -- PHP

Re: [PHP] Calendar Script

2003-10-29 Thread Leif K-Brooks
Vijay Killu wrote: Where can I find the Calendar script that has been used on the PHP.net site. I believe I can use it on my website since it is open source :-) I don't seeany calendar, but you should be able to use the show source link whereever it is. -- The above message is encrypted with

Re: [PHP] Calendar Script

2003-10-29 Thread Evan Nemerson
On Wednesday 29 October 2003 12:01 am, Vijay Killu wrote: Dear PHP, Where can I find the Calendar script that has been used on the PHP.net site. I believe I can use it on my website since it is open source :-) From php.net. There is a show source link on the bottom of every page, plus the

Re: [PHP] quotes in php.ini

2003-10-29 Thread Evan Nemerson
On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). Why

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
- Edwin - wrote: Why not? Because that's what the standard says. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
On Wed, 29 Oct 2003 03:22:54 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: - Edwin - wrote: Why not? Because that's what the standard says. Interesting. Where? - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo!

Re: [PHP] quotes in php.ini

2003-10-29 Thread - Edwin -
On Tue, 28 Oct 2003 22:05:56 -0800 Evan Nemerson [EMAIL PROTECTED] wrote: On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: Curt Zirzow wrote: Try reversing the quotes: error_prepend_string =

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
- Edwin - wrote: Interesting. Where? www.w3.org -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] quotes in php.ini

2003-10-29 Thread Evan Nemerson
On Wednesday 29 October 2003 12:30 am, - Edwin - wrote: On Tue, 28 Oct 2003 22:05:56 -0800 Evan Nemerson [EMAIL PROTECTED] wrote: On Tuesday 28 October 2003 11:59 pm, - Edwin - wrote: Hi, On Wed, 29 Oct 2003 02:10:49 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: Curt Zirzow

Re: [PHP] Session Timeout

2003-10-29 Thread Marek Kilimajer
Better solution would be to display your login form together with all get and post variables in hidden fields. If the user logs in sucessfully, your script can continue with processing the form data. [EMAIL PROTECTED] wrote: right of course, 1440 is only 24 minutes. On Tuesday, October 28,

Re: [PHP] installing php onto xitami, HELP!

2003-10-29 Thread Phil Driscoll
On Tuesday 28 October 2003 17:59, Paul Vinten wrote: when trying to access a php file, I just get a 'cannot find server' message from my browser. I don't have Windows or Xitami so I'm far from being an expert, but it sounds like Xitami is not actually running or you have a DNS lookup failure.

Re: [PHP] Echo issue

2003-10-29 Thread David Otton
On Wed, 29 Oct 2003 11:56:11 +1100, you wrote: I have spent about an hour looking at this and have found I can't echo anything with 16 characters or less! It can be over a single line or multiple lines eg. ?php echo(12345678); echo(12345678); ? - but ?php echo(12345678); echo(123456789); ?

[PHP] Re: Calendar Script

2003-10-29 Thread pete M
here's the calendar I use http://dynarch.com/mishoo/calendar/index.html pete Vijay Killu wrote: Dear PHP, Where can I find the Calendar script that has been used on the PHP.net site. I believe I can use it on my website since it is open source :-) Thanks Regards, ___

Re: [PHP] Echo issue

2003-10-29 Thread Payne
Payne Wrtote: \n is what you are needing. \n means new line. So you want a new line you have to do this echo (abc\n); echo (Elm Street\n); echo (Anytown, NY 0 \n); to get abc Elm Street Anytown, NY 0 you can also use a printf then you can use html code to get the same br. You

[PHP] Color / Colour on the command line

2003-10-29 Thread Steve Vernon
Hiya, I have quite a few maitenence php scripts I run on the command line in windows. I realise there are ways to alter the look of the DOS command prompt in windows. But if I reinstall windows, or use the script on another machine they will be lost. I'm thinking of letting users download it as

Re: [PHP] Echo issue

2003-10-29 Thread John Nichel
Payne wrote: Payne Wrtote: \n is what you are needing. \n means new line. So you want a new line you have to do this echo (abc\n); echo (Elm Street\n); echo (Anytown, NY 0 \n); to get abc Elm Street Anytown, NY 0 you can also use a printf then you can use html code to get the same

Re: [PHP] Calendar Script

2003-10-29 Thread David T-G
Vijay -- ...and then Vijay Killu said... % % Where can I find the Calendar script that has been used on the PHP.net site. % I believe I can use it on my website since it is open source :-) I don't know about (or where to find) that one, but I've been fairly happy with WebCalender [sic] from

[PHP] Re: SESSIONMANAGEMENT -- gute php mailing list / gute leute

2003-10-29 Thread Alexander Mueller
Christoph Lockingen wrote: Hallo ! Ich bin auf der Suche nach einer guten PHP Mailing-Liste, am besten in Deutsch...Falls ich hier falsch bin, bitte ich um Entschuldigung. Ist grundsätzlich eine internationale Mailinglist (daher Englisch) :). 1. Wieso kann ich nicht per $_GET['lid']

Re: [PHP] Color / Colour on the command line

2003-10-29 Thread Robert Cummings
Should be able to just output ANSI colour codes and the terminal window will generally interpret them properly and voila!, colour in your terminal. Cheers, Rob. On Wed, 2003-10-29 at 07:39, Steve Vernon wrote: Hiya, I have quite a few maitenence php scripts I run on the command line in

[PHP] upload_max_filesize not honored?

2003-10-29 Thread David T-G
Hi, all -- I am implementing a picture upload page which will accept single pictures or zips of pictures, and I can't send anything bigger than 2M. Because post_max_size must be set in php.ini or httpd.conf I have php_admin_value post_max_size 128M set for my site, and in my code I have

Re: [PHP] upload_max_filesize not honored?

2003-10-29 Thread Marek Kilimajer
upload_max_filesize is INI_SYSTEM, that means it is not honored in your code. Set it the same way you set post_max_size David T-G wrote: Hi, all -- I am implementing a picture upload page which will accept single pictures or zips of pictures, and I can't send anything bigger than 2M. Because

Re: [PHP] quotes in php.ini

2003-10-29 Thread Curt Zirzow
* Thus wrote Leif K-Brooks ([EMAIL PROTECTED]): Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = font color='#ff'; Not valid XHTML (not sure if it's even valid HTML). Sure it is, the quote character can be either ' or and will validate perfectly fine at w3c. now

Re: [PHP] Echo issue

2003-10-29 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: Is this on Windoze or *nix? Sounds like some sort of buffering issue... Yes, it does. what is 'output_buffering' set too in your ini? This shouldn't matter either. I can't think of a reason why he would see the behavior he describes. In fact, this

[PHP] Re: $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR] returns no value

2003-10-29 Thread pete M
its $HTTP_SERVER_VARS['REMOTE_ADDR'] or in php4+ $_SERVER['REMOTE_ADDR'] Randall Perry wrote: Want to grab the client IP after client agrees to a contract, but am getting no value from the $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR] var. Anyone know why this might happen? -- PHP General Mailing List

[PHP] session_regenerate_id()

2003-10-29 Thread Alexander Mueller
I am not entirely sure what the following paragraph at http://at2.php.net/manual/en/function.session-regenerate-id.php shall mean As of PHP 4.3.3, if session cookies are enabled, use of session_regenerate_id() will also submit a new session cookie with the new session id. What did it in

Re: [PHP] upload_max_filesize not honored?

2003-10-29 Thread David T-G
Marek, et al -- ...and then Marek Kilimajer said... % % upload_max_filesize is INI_SYSTEM, that means it is not honored in your *slaps forehead* Why, so it is. That certainly does explain things. It's interesting to me, though, is that phpinfo() reported it as 128M even when set from the

[PHP] include problem

2003-10-29 Thread Pablo S. Torralba
Hi, I have a weird problem which must be stupid for sure. I'm trying to do an include in my code run as a cgi. The include works fine in the form: include (directory/file); even it works as: include (directory/../directory/file); but it doesn't work as: include (./directory/file); nor

Re: [PHP] Echo issue

2003-10-29 Thread John Nichel
Chris Shiflett wrote: --- John Nichel [EMAIL PROTECTED] wrote: Is this on Windoze or *nix? Sounds like some sort of buffering issue... Yes, it does. what is 'output_buffering' set too in your ini? This shouldn't matter either. I can't think of a reason why he would see the behavior he

[PHP]eventKey

2003-10-29 Thread LINGUA
Hello, One of my friends wants to create a page that shows current time by pressing space key or enter key. What is the best way to do this with PHP? Thank you in advance. David - Original Message - From: John Nichel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 29,

RE: [PHP]eventKey

2003-10-29 Thread Pablo Gosse
On Wednesday, October 29, 2003 8:04 AM David wrote: One of my friends wants to create a page that shows current time by pressing space key or enter key. What is the best way to do this with PHP? PHP is a server-side technology, and what you want to do is on the client side. Your friend will

[PHP] Query explanation

2003-10-29 Thread Robb Kerr
I am attempting to hack a tutorial from the Zend site. I have found the tutorial/project to be excellent, but I don't completely understand what's being done in the following Query statement. //query database, assemble data for selectors $Query = SELECT s.ID, s.Name, a.Code . FROM

[PHP] imap_set_quota() function

2003-10-29 Thread dimon
Hello, I asked that question a week ago but didn't get any response. So I'll try again :-) I'm trying to use PHP's imap_set_quota() function to manage user's quotas. I can set user's quota to 0 with: imap_set_quota($mbox, user/afif, none); or imap_set_quota($mbox, user/afif, 0); And for sure I

[PHP] Posting variable in url

2003-10-29 Thread Frank Tudor
I have a redirect that if conditions are right it will pass the user to a new page via $_POST. so for instance the redirect looks like this: header(Location: more_registration.php?username=.$_POST[username].email=.$_POST[email]); the url will look like this:

[PHP] Re: Query explanation

2003-10-29 Thread Alexander Mueller
Robb Kerr wrote: I am attempting to hack a tutorial from the Zend site. I have found the tutorial/project to be excellent, but I don't completely understand what's being done in the following Query statement. //query database, assemble data for selectors $Query = SELECT s.ID, s.Name,

RE: [PHP] Query explanation

2003-10-29 Thread Pablo Gosse
On Wednesday, October 29, 2003 8:20 AM Robb Kerr wrote: I am attempting to hack a tutorial from the Zend site. I have found the tutorial/project to be excellent, but I don't completely understand what's being done in the following Query statement. //query database, assemble data for

[PHP] Re: Posting variable in url

2003-10-29 Thread Alexander Mueller
Frank Tudor wrote: I have a redirect that if conditions are right it will pass the user to a new page via $_POST. I am posting variables in the url and on this next page more form stuff awaits the user. If a user submits incorrect stuff in the form is posts to itself. The url holds

[PHP] Re: Query explanation

2003-10-29 Thread Robb Kerr
On Wed, 29 Oct 2003 17:31:26 +0100, Alexander Mueller wrote: Exactly. a and s are referring to the two tables and are assigned in the FROM clause. You could write the query also without the abbreviations. SELECT state.ID, state.Name, areacode.Code FROM areacode, state WHERE

Re: [PHP] data from database

2003-10-29 Thread alain dhaene
it works, thanks, Alain John Nichel [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] alain dhaene wrote: Hi, I will write a function that returns the result of a recordset. I tried this: Function getPersonen() { openDB(); //function that I implements in

Re: [PHP] session_regenerate_id()

2003-10-29 Thread CPT John W. Holmes
From: Alexander Mueller [EMAIL PROTECTED] I am not entirely sure what the following paragraph at http://at2.php.net/manual/en/function.session-regenerate-id.php shall mean As of PHP 4.3.3, if session cookies are enabled, use of session_regenerate_id() will also submit a new session cookie

Re: [PHP] session_regenerate_id()

2003-10-29 Thread Curt Zirzow
* Thus wrote Alexander Mueller ([EMAIL PROTECTED]): I am not entirely sure what the following paragraph at http://at2.php.net/manual/en/function.session-regenerate-id.php shall mean As of PHP 4.3.3, if session cookies are enabled, use of session_regenerate_id() will also submit a new

Re: [PHP] session_regenerate_id()

2003-10-29 Thread Alexander Mueller
Cpt John W. Holmes wrote: PHP 4.3.2 created a new session ID, but it didn't resend the cookie. So the next request would include the old session ID again from the cookie. I wonder what it is then good for. Changing the id internally without notifying the client does not make much sense IMHO.

Re: [PHP] session_regenerate_id()

2003-10-29 Thread Alexander Mueller
Curt Zirzow wrote: how is it not comatible with Opera? With 4.3.3 it works for IE and Mozilla, however Opera still has some problems with recognising the new id under certain circumstances. Alexander -- PINO - The free Chatsystem! Available at http://www.pino.org -- PHP General Mailing

[PHP] Beginner looking for survey script

2003-10-29 Thread josh hough
I'm looking for a simple bit of code to interrupt all visitors to a site so they can submit a brief survey and then automatically continue to their desired destination. The server is Apache 2.0 on Solaris. I have already set a global header to redirect all visitors to the survey page if they

[PHP] Performance of dynamically generated select boxes

2003-10-29 Thread Luis Lebron
I am rebuilding a php application to handle a higher load. The previous programmer had created a series of dynamically generated select boxes using a mysql table. Would it be faster or less resource intensive to create a series of arrays to generate the select boxes and avoid the database queries.

[PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
I'm trying to get a little upload script working... But I can't seem to copy the tmp file to my local web directory (btw, do I really need to specify the path, or can I just use a filename, and the file will be written to the same directory as the PHP script??). Anyway, here is the code:

[PHP] Re: strange issue

2003-10-29 Thread jacob bolton
Just for future users with this same problem, here's what I had to do to fix it. The version of Apache and PHP I was using was both the original RPM that came with RH9. I had to shut both of them down, and then reinstall Apache and PHP from source with the latest versions. After I did that,

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread John Nichel
René Fournier wrote: I'm trying to get a little upload script working... But I can't seem to copy the tmp file to my local web directory (btw, do I really need to specify the path, or can I just use a filename, and the file will be written to the same directory as the PHP script??). Anyway,

Re: [PHP] Performance of dynamically generated select boxes

2003-10-29 Thread CPT John W. Holmes
From: Luis Lebron [EMAIL PROTECTED] I am rebuilding a php application to handle a higher load. The previous programmer had created a series of dynamically generated select boxes using a mysql table. Would it be faster or less resource intensive to create a series of arrays to generate the

Re: [PHP] session_regenerate_id()

2003-10-29 Thread CPT John W. Holmes
From: Alexander Mueller [EMAIL PROTECTED] Cpt John W. Holmes wrote: PHP 4.3.2 created a new session ID, but it didn't resend the cookie. So the next request would include the old session ID again from the cookie. I wonder what it is then good for. Changing the id internally without

Re: [PHP] Performance of dynamically generated select boxes

2003-10-29 Thread Chris Shiflett
--- Luis Lebron [EMAIL PROTECTED] wrote: I am rebuilding a php application to handle a higher load. The previous programmer had created a series of dynamically generated select boxes using a mysql table. Would it be faster or less resource intensive to create a series of arrays to generate the

[PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
Hi all, I'm having trouble while i try to include a php file. the testing code is something loke the sort. html head/head body h1 test:/h1 ?php include ('http://blabla.com/script.php?var1=a'); ? /body /html script.php should echo some text, but i don't get any output. In my php.ini I have

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: I'm having trouble while i try to include a php file. [snip] include ('http://blabla.com/script.php?var1=a'); [snip] script.php should echo some text, but i don't get any output. When you visit http://blabla.com/script.php?var1=a and view source, what

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:00, Chris Shiflett wrote: When you visit http://blabla.com/script.php?var1=a and view source, what do you see? Is it valid PHP? yap, exactly. if i paste th elink i my browser i see the results expected.. pablo -- PHP General Mailing List (http://www.php.net/) To

[PHP] redirect

2003-10-29 Thread alain dhaene
Hi, Is there in php something as a redirect to another page like in asp? e.g if(choice==1) response.redirect(page.php); response.redirect(page2.php); I have search in the manuel, but the only thing I find is something like header(Location: registratie.html); But I guess it's wrong

Re: [PHP] String Array Creation and assigment

2003-10-29 Thread Dan
please help with the following: I tried this first : $b[] = 'Book Worzel, Richard (1989). From Employee to Entrepreneur: how to turn your experience into a fortune. Toronto: Key Porter books.'; $b[] = 'Book Ries, Al and Jack Trout (1994). The 22 Immutable Laws of Marketing. New York: Harper

RE: [PHP] redirect

2003-10-29 Thread Gregory Kornblum
header(Location: registratie.html); That is exactly how you do the PHP version of a response.redirect(). Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with remote include

2003-10-29 Thread CPT John W. Holmes
From: Pablo Zorzoli [EMAIL PROTECTED] ?php include ('http://blabla.com/script.php?var1=a'); ? [snip] script.php should echo some text, but i don't get any output. You know you're going to get the OUTPUT of script.php, right? You'll get the same exact result as if you typed the address into

Re: [PHP] redirect

2003-10-29 Thread alain dhaene
But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) in /home/schoolre/public_html/Hitek/Online/Registratie/registratieData.php on line 30 In

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:18, CPT John W. Holmes wrote: You know you're going to get the OUTPUT of script.php, right? You'll get the same exact result as if you typed the address into your browser. Is that what you're trying to do? yes John, tht's exactly what i want to get. pablo -- PHP

Re: [PHP] redirect

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:17, alain dhaene wrote: But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) in

RE: [PHP] redirect

2003-10-29 Thread Chris W. Parker
Pablo Zorzoli mailto:[EMAIL PROTECTED] on Wednesday, October 29, 2003 11:20 AM said: You cannot do any echo ; before header(location:..); maybe that's the problem. The solution would be to turn on output buffering. ?php ob_start(); // do your stuff header(Location:

[PHP] ORDER BY RAND()....

2003-10-29 Thread Payne
Hi, I have been working on a simple PHP script that called to a mysql database, where I do the following SELECT url FROM sponsors ORDER BY RAND(); When I do a refresh I keep getting the same url, I have test this sql statement in mysql and it works great. I think my problem is this...

Re: [PHP] redirect

2003-10-29 Thread alain dhaene
I have check my code. I haven't use a echo in my code. It's very strange. I will search more on the manule. thx Pablo Zorzoli [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] On Wed, 2003-10-29 at 16:17, alain dhaene wrote: But I get the following warning: Warning: Cannot

[PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Gerard Samuel
The docs do not state what the defaults are, and from tests, it seems the values 4 - 9 return the same output as with no value, on the string I tested with. Does anyone know what the default compression levels are? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] ORDER BY RAND()....

2003-10-29 Thread Gerard Samuel
On Wednesday 29 October 2003 02:24 pm, Payne wrote: Hi, I have been working on a simple PHP script that called to a mysql database, where I do the following SELECT url FROM sponsors ORDER BY RAND(); Try - SELECT url FROM sponsors ORDER BY RAND() LIMIT 1; -- PHP General Mailing List

Re: [PHP] redirect

2003-10-29 Thread Chris Shiflett
--- alain dhaene [EMAIL PROTECTED] wrote: Is there in php something as a redirect to another page like in asp? Yes, and as with ASP, there are several methods. Make an example script that has only this: ? header('Location: http://www.google.com/'); ? As for your error about headers already

Re: [PHP] redirect

2003-10-29 Thread Chris Shiflett
--- alain dhaene [EMAIL PROTECTED] wrote: I have check my code. I haven't use a echo in my code. It's very strange. I will search more on the manule. I don't think the manual will help you here. You *do* have output in your script prior to the call to header(). Trust me. :-) One way to find

RE: [PHP] redirect

2003-10-29 Thread Chris W. Parker
alain dhaene mailto:[EMAIL PROTECTED] on Wednesday, October 29, 2003 11:29 AM said: I have check my code. I haven't use a echo in my code. It's very strange. I will search more on the manule. PHP has so far been very good to me with reporting this error. I would trust the error message

Re: [PHP] ORDER BY RAND()....

2003-10-29 Thread Payne
Gerard Samuel wrote: On Wednesday 29 October 2003 02:24 pm, Payne wrote: Hi, I have been working on a simple PHP script that called to a mysql database, where I do the following SELECT url FROM sponsors ORDER BY RAND(); Try - SELECT url FROM sponsors ORDER BY RAND() LIMIT 1; I

RE: [PHP] ORDER BY RAND()....

2003-10-29 Thread Chris W. Parker
Payne mailto:[EMAIL PROTECTED] on Wednesday, October 29, 2003 11:54 AM said: Try - SELECT url FROM sponsors ORDER BY RAND() LIMIT 1; I did that same thing. SELECT url FROM sponsors ORDER BY column RAND() LIMIT 1; How about that one? Chris. -- Don't like reformatting your Outlook

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:36, Chris Shiflett wrote: The results you expect might not be right. This doesn't help me help you. Is it valid PHP? Can you show us *exactly* what you see when you view source in your browser? i see one line containing the expected html code.The scrip is a counter

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: i see one line containing the expected html code.The scrip is a counter that outputs the img tags to fecth the images: img src=digit4.gifimg src=digit2.gif that's all i get, and all i would like to get with the remote include. That seems right,

Re: [PHP] Problems with remote include

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 17:17, Chris Shiflett wrote: That seems right, unless I'm missing something obvious. I think you already mentioned that you have configured to allow URL opens. yes that parameter is 'On' So, can you tell us what something like this produces? ?

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread David T-G
Gerard -- ...and then Gerard Samuel said... % % The docs do not state what the defaults are, and from tests, % it seems the values 4 - 9 return the same output as with no value, % on the string I tested with. With what sort of data are you working? How are you gzipping (PEAR module, class,

Re: [PHP] redirect

2003-10-29 Thread Marek Kilimajer
alain dhaene wrote: But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) The warning states it clearly, output started on line 1 in

Re: [PHP] ORDER BY RAND()....

2003-10-29 Thread Payne
Ok, this gives me an error. I guess what I was asking early is there away to print an echo without doing myrow? Why can I do echo $result without getting Resource id # My thinking is if you look at my first e-mail, my code is trying to fetch multi-rows from the database, I don't need multi

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Gerard Samuel
On Wednesday 29 October 2003 03:27 pm, David T-G wrote: Gerard -- ...and then Gerard Samuel said... % % The docs do not state what the defaults are, and from tests, % it seems the values 4 - 9 return the same output as with no value, % on the string I tested with. With what sort of data

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread David T-G
Gerard, et al -- ...and then Gerard Samuel said... % % On Wednesday 29 October 2003 03:27 pm, David T-G wrote: % % ...and then Gerard Samuel said... % % % % on the string I tested with. % % With what sort of data are you working? How are you gzipping (PEAR % module, class, system call,

[PHP] PDFlib not working with explorer based on PHP created file in memory

2003-10-29 Thread Larry Brown
If anyone can help, please... I have a page that points to a PHP page that dynamically creates a pdf file using PDFlib. The page uses a link such as site.com/page.php?variable=value. That in turn executes the script that uses the variable/value to pull info from the db and generate the page.

RE: [PHP] PDFlib not working with explorer based on PHP created file in memory

2003-10-29 Thread Larry Brown
My apologies for waisting anyone's time. I found the posting in the archives that had the correct code to use. -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 3:39 PM To: PHP List Subject: [PHP] PDFlib not working with explorer based on

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. yes i get Google's HTML. OK, so this proves

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Evan Nemerson
On Wednesday 29 October 2003 11:29 am, Gerard Samuel wrote: The docs do not state what the defaults are, and from tests, it seems the values 4 - 9 return the same output as with no value, on the string I tested with. Does anyone know what the default compression levels are? IIRC the default

Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Marek Kilimajer
I think the default is 6, but you will need a very long string to get any benefit from higher numbers. Gerard Samuel wrote: The docs do not state what the defaults are, and from tests, it seems the values 4 - 9 return the same output as with no value, on the string I tested with. Does anyone

[PHP] Re: How to deal with XML?

2003-10-29 Thread Alexandru COSTIN
Hello Simon, I think I've missed something somewhere, but how do I use XML? Everywhere, there are big hypes about XML. I could proably google quite a bit on this, but could someone give me a hint on how to use it in, say datahandling? Or to parse a website (like the php docs). XML has its role

[PHP] Re: Web Service in PHP/XML

2003-10-29 Thread Alexandru COSTIN
Hello, everything was finished. I have done very little with CURL, I'm not sure if there are any tutorials or anything else that I could see to get some good examples of both ends of the process anyone know of any? Anyone know of a better way? I'm also looking into XML or Java on the

[PHP] Parsing a tab delimited log file

2003-10-29 Thread John
(I'm reposting this as it didn't seem to take the first time. If it's a dupe, I apologize.) Hey all. I'm attempting to count the number of unique message IDs from a Microsoft Exchange 2000 tracking log. While the code below works, it takes forever to run. Running through a 16mb log file takes

[PHP] Favorite Online Language Guide

2003-10-29 Thread Robb Kerr
What's your favorite online Php language guide? I'm a newbie and most interested in a syntax guide. Thanx, -- Robb Kerr Digital IGUANA Helping Digital Artists Achieve their Dreams http://www.digitaliguana.com http://www.cancerreallysucks.org -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Problems with remote include

2003-10-29 Thread Marek Kilimajer
Can you connect from your server to the other server? Pablo Zorzoli wrote: On Wed, 2003-10-29 at 17:17, Chris Shiflett wrote: That seems right, unless I'm missing something obvious. I think you already mentioned that you have configured to allow URL opens. yes that parameter is 'On' So, can

Re: [PHP] Parsing a tab delimited log file

2003-10-29 Thread Evan Nemerson
You're using a lot of memory here... Try using fgets for each line instead of one big file(). That way, you're only working with one line at a time and can forget it when you're done. On Wednesday 29 October 2003 01:12 pm, John wrote: (I'm reposting this as it didn't seem to take the first

Re: [PHP] Favorite Online Language Guide

2003-10-29 Thread Chris Shiflett
--- Robb Kerr [EMAIL PROTECTED] wrote: What's your favorite online Php language guide? http://www.php.net/manual/ Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing

Re: [PHP] Favorite Online Language Guide

2003-10-29 Thread Evan Nemerson
The php.net site is great. It has a manual in tons of languages which is very easy to get at. For instance, to look up the file function, you can just go to php.net/file. Your language should be automagically detected. The user comments fill in any blanks in the documentation.

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Kim Kohen
G'day Adam, David, John etc I have spent about an hour looking at this and have found I can't echo anything with 16 characters or less! I'm glad to report this is not a PHP issue. It turns out to be a Safari problem with Mac OSX (Safari was updated with OSX 10.3). All my PHP stuff is

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Ryan A
If I have said it once I have said it a thousand times..MAC's are evil. Step away from it and leave the darkness behind.come towards the light and thePC :-D Cheers, -Ryan (P.S in case you hav'nt guesseda PC user) G'day Adam, David, John etc I have spent about an hour looking

Re: [PHP] include problem

2003-10-29 Thread Allex
Few days ago I asked the same question and got several excellent answers that helped me to solve the same problem - check the mailing list for 'including files from different sub directories' on 24-10-2003. Nevertheless all those suggestions helped me to solve the problem from a normal browser

  1   2   >