Re: [PHP] Meta refresh best answer ??

2004-11-08 Thread Michael Gale
Hello, I really wanted to know if there was a better way to do this using PHP ? That is why I e-mailed the list. Michael. Michael Gale wrote: Hello, I am working on a site where people will be updating information in a database and should have up to date info. Now since HTTP is stateless

RE: [PHP] Arrays

2004-11-08 Thread Ben Miller
Thank you to all for help with this. Once I have a general idea of which path to head down, I can figure it out pretty well from there, and you have all given me a pretty good road map. Anyway, thanks again. It is greatly appreciated. I'll let you know hot it all comes out. Ben -Original

Re: [PHP] Arrays

2004-11-08 Thread Ligaya Turmelle
There are a couple of ways to pass arrays (and their values) between pages. I personally would put the array into a session variable ($_SESSION - see reference) and access the various parts as needed. Another option is sending the whole array or it's parts as hidden fields in a form (access wi

RE: [PHP] Re: User's language settings

2004-11-08 Thread Zareef Ahmed
Hi, You may try a ip locator and then guess for users country. IN this way you can design your programme to treat users from Russia to Russian language etc. Visit http://zareef.users.phpclasses.org/browse/package/1477.html Zareef Ahmed -Original Message- From: Daniel Schierbeck [ma

Re: [PHP] Syntax Limitation - dynamic static member access

2004-11-08 Thread Jake Press
Hi all, Just to let everyone know - I've reported this as a bug. http://bugs.php.net/bug.php?id=30716 Fingers crossed :) Yours Sincerely Jake Press -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Arrays

2004-11-08 Thread Zareef Ahmed
Hi Ben, Welcome to the wonderful world of PHP. Working with array in PHP is very easy. A large number of functions are there. Please visit the manual http://www.phpcertification.com/manual.php/ref.array.html You can move values ( including Arrays) from page to page in session variables. But y

[PHP] Meta refresh best answer ??

2004-11-08 Thread Michael Gale
Hello, I am working on a site where people will be updating information in a database and should have up to date info. Now since HTTP is stateless the user will not know about any new information until they click on a link or hit a button on the page. My question is -- if I want to keep a user

[PHP] Fping problem

2004-11-08 Thread mwestern
Hi All, I have written a simple page that uses fping and was working perfectly just shelling out to it using the backtick. The server it was on crapped out and I'm trying to get it going again on our new server.I have installed fping, given permissions to everyone to run it and copied it to t

Re: [PHP] upload via FTP

2004-11-08 Thread raditha dissanayake
Alessandro Rosa wrote: Dear all subscribers, I'm coding a send-mail form, also including edit boxes keeping the path of files to be uploaded from the remote host onto an FTP server. Is there the possibility (and if so, which ones) to manage FTP permissions to have a file including the variable with

Re: [PHP] User's language settings

2004-11-08 Thread Skippy
On Mon, 08 Nov 2004 22:37:41 +0100 Marek Kilimajer <[EMAIL PROTECTED]> wrote: >> How can I determine user's primary language? > > $_SERVER["HTTP_ACCEPT_LANGUAGE"] - string with user's language > preferences. However only a fraction of users willingly set it, so many > times it will be on its defa

Re: [PHP] Arrays

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 16:01:16 -0700, Ben <[EMAIL PROTECTED]> wrote: > I hope this is not a stupid question, but I am learning how to work with > Arrays, and am having trouble figuring out how to move array values from > page to page and/or store in a db. Once again, I am new to arrays (and > fairly

RE: [PHP] Arrays

2004-11-08 Thread Ben Miller
edit I hope this is not a stupid question, but I am learning how to work with Arrays, and am having trouble figuring out how to move array values [the whole array and all of it's values] from page to page and/or store in a db. Once again, I am new to arrays (and fairly new to PHP for that matter

[PHP] Arrays

2004-11-08 Thread Ben
I hope this is not a stupid question, but I am learning how to work with Arrays, and am having trouble figuring out how to move array values from page to page and/or store in a db. Once again, I am new to arrays (and fairly new to PHP for that matter), so please don't get too technical in repl

Re: [PHP] Why cookie is created?

2004-11-08 Thread Paul Reinheimer
-- I don't want to use cookies. I want to use session. When I use this code. It stores data on the harddrive. -- When you use Sessions, the data you put in the session is NOT stored on the users hard drive in a cookie. Only the Session ID is stored there. All of the other information you s

Re: [PHP] Why cookie is created?

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 17:31:33 -0500, Jerry Swanson <[EMAIL PROTECTED]> wrote: > I don't want to use cookies. > I want to use session. When I use this code. It stores data on the harddrive. You must have your PHP sessions configured to use cookies. ini_set('session.use_cookies', 0); will override t

Re: [PHP] Why cookie is created?

2004-11-08 Thread Jerry Swanson
I don't want to use cookies. I want to use session. When I use this code. It stores data on the harddrive. session_start(); $referral = $_SESSION['referral']; if(empty($referral)) { $referral = $_SERVER['QUERY_STRING']; $_SESSION['referral'] = $referral; } On Mon, 8 Nov 2004 16:1

Re: [PHP] Why cookie is created?

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 15:56:03 -0500, Jerry Swanson <[EMAIL PROTECTED]> wrote: > I don't use cookie for my page. I use session. As I understand cookies > don't create any files on user computer. Your understanding is incorrect. Using cookies does indeed place files on the user's computer. That's

Re: [PHP] User's language settings

2004-11-08 Thread Daniel Schierbeck
Marek Kilimajer wrote: Dmitri Pissarenko wrote: Hello! I have a web-site, part of which is in Russian and another part in English. English and Russian parts are located in different directories. The web-site is static. I want to create a PHP file, which redirects the user from /index.php to /r

Re: [PHP] Auto Form Fill on option select

2004-11-08 Thread GH
prado? Hunh? On Sun, 7 Nov 2004 14:56:36 -0600 (CST), Jonel Rienton <[EMAIL PROTECTED]> wrote: > This can be done with javascript or you can use an event-driven solution > like PRADO > > > > > Hi all, > > I have a question that I can't get my head around and was hoping > > someone > > co

Re: [PHP] Why cookie is created?

2004-11-08 Thread Marek Kilimajer
Jerry Swanson wrote: ; Whether to use cookies. session.use_cookies = 0 ; This option enables administrators to make their users invulnerable to ; attacks which involve passing session ids in URLs; defaults to 0. session.use_only_cookies = 1 These settings don't make much sense. You forbid their us

Re: [PHP] Why cookie is created?

2004-11-08 Thread John Nichel
Jerry Swanson wrote: ; Whether to use cookies. session.use_cookies = 0 ; This option enables administrators to make their users invulnerable to ; attacks which involve passing session ids in URLs; defaults to 0. session.use_only_cookies = 1 I changed the global variables on PHP. It still stores c

Re: [PHP] Why cookie is created?

2004-11-08 Thread Jerry Swanson
; Whether to use cookies. session.use_cookies = 0 ; This option enables administrators to make their users invulnerable to ; attacks which involve passing session ids in URLs; defaults to 0. session.use_only_cookies = 1 I changed the global variables on PHP. It still stores cookies on my harddri

Re: [PHP] User's language settings

2004-11-08 Thread Marek Kilimajer
Dmitri Pissarenko wrote: Hello! I have a web-site, part of which is in Russian and another part in English. English and Russian parts are located in different directories. The web-site is static. I want to create a PHP file, which redirects the user from /index.php to /ru/index.html, when his pr

Re: [PHP] Trying to Integrate PHP 4.3.4 w/ JDK 1.5.0

2004-11-08 Thread Jost Boekemeier
[resent, this time with the correct subject, sorry] > I have tried to compile "php-java-bridge" v1.0.5. > /opt/php/php-4.3.9/php-java- > bridge_1.0.5/server/natcJavaBridge.c:202: > too many arguments to function `sigwait' Solaris has a non-standard sigwait() function. It requires a special flag

Re: [PHP] Drawing polygons from traverse information

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 11:36:39 -0500 (EST), Jim Wharton <[EMAIL PROTECTED]> wrote: > What I am trying to do is implement something along the lines of LOGO. > (You know, that old language that told a robotic turtle to draw on the > floor) Man.. it was like 1987 when I last used LOGO. We were using Ap

[PHP] Re: User's language settings

2004-11-08 Thread Daniel Schierbeck
Dmitri Pissarenko wrote: Hello! I have a web-site, part of which is in Russian and another part in English. English and Russian parts are located in different directories. The web-site is static. I want to create a PHP file, which redirects the user from /index.php to /ru/index.html, when his pr

Re: [PHP] Why cookie is created?

2004-11-08 Thread John Nichel
Jerry Swanson wrote: I don't use cookie for my page. I use session. As I understand cookies don't create any files on user computer. I have this code below on my page. When I access this page immediately cookie is created on my computer. Any ideas why? As soon as you call session_start(), you are

RE: [PHP] Why cookie is created?

2004-11-08 Thread Jay Blanchard
[snip] ...SESSION... [/snip] Because the use of sessions creates cookiesbut you can set it up where it will not... http://www.php.net/session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] images doesn't seem to cache

2004-11-08 Thread Marek Kilimajer
anders thoresson wrote: This code seems to work. Have I got it right? No. I have not. Sometimes the images are viewed from the cache, just to get downloaded from the server again next time, just a minute later, when I try again. My local development server is running IIS, my production serve

[PHP] Why cookie is created?

2004-11-08 Thread Jerry Swanson
I don't use cookie for my page. I use session. As I understand cookies don't create any files on user computer. I have this code below on my page. When I access this page immediately cookie is created on my computer. Any ideas why? -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] upload via FTP

2004-11-08 Thread Alessandro Rosa
Dear all subscribers, I'm coding a send-mail form, also including edit boxes keeping the path of files to be uploaded from the remote host onto an FTP server. Is there the possibility (and if so, which ones) to manage FTP permissions to have a file including the variable with ID and PSW (for FTP

Re: [PHP] apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 07:19:30 +0500, Haseeb Iqbal <[EMAIL PROTECTED]> wrote: > /usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9d0): first defined here > collect2: ld returned 1 exit status > make: *** [libphp5.la] Error 1 Does /usr/lib/mysql/libmysqlclient.a actually exist? After you installed MySQ

[PHP] User's language settings

2004-11-08 Thread Dmitri Pissarenko
Hello! I have a web-site, part of which is in Russian and another part in English. English and Russian parts are located in different directories. The web-site is static. I want to create a PHP file, which redirects the user from /index.php to /ru/index.html, when his primary language is Russian

Re: [PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 12:08:30 -0500 (EST), Jim Wharton <[EMAIL PROTECTED]> wrote: > I'm truly sorry about that. What's even more frustrating is making a > simple mistake and having a bunch of people jump down your throat about > it. Point taken. Apology offered. I just pretend like I'm posting to vg

Re: [PHP] Re: Variable for search results

2004-11-08 Thread Ben Ramsey
Stuart Felenstein wrote: --- Ben Ramsey <[EMAIL PROTECTED]> wrote: I'm not exactly sure what the SQL statement you have above is supposed to do, but you could just do something like this: $curdate = date('Y-m-d H:i:s'); $sql = "SELECT * FROM records WHERE '$curdate' <= PostStart;"; I'm having som

Re: [PHP] DATE()

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 13:06:41 -0500, Aaron Todd <[EMAIL PROTECTED]> wrote: > Is there any way yo get the date and time using date() from a Internet time > server? php -r "system('ntpdate -q ntp.nasa.gov');" -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ --

Re: [PHP] PHP Accelerator

2004-11-08 Thread Paul Reinheimer
I tried using MMCache With PHP5, and Apache 1.x, it segfaulted frequently. Serendipity's HTML nuggets stopped working, as did a lot of my own scripts. I am under the impression that the author of Turck is now employed by Zend, so I doubt that he will continue the project as it is in direct competi

Re: [PHP] PHP Accelerator

2004-11-08 Thread Adrian Madrid
Klaus Reimer wrote: raditha dissanayake wrote: this one: - Turck MMCache for PHP Turck MM Cache does not work with PHP 5. It's possible to compile and load it and some pages are working but most of the time it segfaults. By the way: Does anybody know if the Turck MM Cache project is still active?

Re: [PHP] Sub selects vs nested loop was:Re: [PHP] You know you're a geek when...

2004-11-08 Thread Greg Donald
On Mon, 08 Nov 2004 21:57:41 +0600, raditha dissanayake <[EMAIL PROTECTED]> wrote: > Sorry no benchmarks, i am talking from personal experience where I > converted some code from a php nested loop to mysql. I was rather > surprised by the results. I will concede that I may not have optimized > the

Re: [PHP] Re: Variable for search results

2004-11-08 Thread Stuart Felenstein
--- Ben Ramsey <[EMAIL PROTECTED]> wrote: > I'm not exactly sure what the SQL statement you have > above is supposed > to do, but you could just do something like this: > > $curdate = date('Y-m-d H:i:s'); > $sql = "SELECT * FROM records WHERE '$curdate' <= > PostStart;"; > I'm having some pro

[PHP] DATE()

2004-11-08 Thread Aaron Todd
Is there any way yo get the date and time using date() from a Internet time server? Right now I am getting it from my servers date and time which seems to be unpredictable since my ISP seems to change it at random. Windows shows two time servers time.windows.com and time.nist.gov and I was won

[PHP] Re: Variable for search results

2004-11-08 Thread Ben Ramsey
Stuart Felenstein wrote: $sql.=sprintf("SELECT * FROM records WHERE Date_Sub(Curdate(), interval day) "$%s" <= PostStart") Yes, you can put the variable in right there. Read up on variables here . I'm not exactly sure what the SQL statement you have above is suppos

[PHP] Variable for search results

2004-11-08 Thread Stuart Felenstein
I have a form element which allows a user to go back "x number of days" in the records. $sql.=sprintf("SELECT * FROM records WHERE Date_Sub(Curdate(), interval day) "$%s" <= PostStart") This formula works when I actually hardcode the number of days in where this mess --> "$%s" is right now. I

Re: [PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Jim Wharton
Matthew Weier O'Phinney said: > > Actually, you *did* change the subject. Read what was said in that > paragraph: > > [P]lease don't reply to an existing message in an existing thread > (even if you change the subject) because you're new question will > become a part of the old thread.

[PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Matthew Weier O'Phinney
* Jim Wharton <[EMAIL PROTECTED]>: > Ben Ramsey said: > > > > Is this somehow related to the "PEAR mail" thread? I don't see the > > connection. I think you're trying to ask a new question. When doing > > so, please don't reply to an existing message in an existing thread > > (even if you change th

[PHP] Re: PEAR mail

2004-11-08 Thread Matthew Weier O'Phinney
* Marc Serra <[EMAIL PROTECTED]>: > i'm using Mail PEAR package and i want to send a mail to a recipient and > to some other in Cc. > So i try to add Cc in header but it failed and mail didn't been > delivered to Cc. It was only delivered to adress specified in From field. > > I use that code : >

[PHP] Drawing polygons from traverse information

2004-11-08 Thread Jim Wharton
Sorry for the traffic I have created with this: I'm not very familiar with php's drawing abilities. I have found out how to get it to create multipoint polygons. What I am trying to do is implement something along the lines of LOGO. (You know, that old language that told a robotic turtle to draw

[PHP] New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Jim Wharton
Ben Ramsey said: > > Is this somehow related to the "PEAR mail" thread? I don't see the > connection. I think you're trying to ask a new question. When doing so, > please don't reply to an existing message in an existing thread (even if > you change the subject) because you're new question will bec

Re: [PHP] FW by MAILER-DAEMON@pb1.pair.com : *****SPAM_sub***** failure notice

2004-11-08 Thread Michelle Konzack
Am 2004-11-08 02:38:48, schrieb Curt Zirzow: > * Thus wrote Michelle Konzack: > > For every Message I send I get an error Message... > > But the E-Mails was correctly delivered... > > > > This is rather new.. I'm looking into why this is occuring. Thanks > Curt Greetings Michelle -- Linux-

Re: [PHP] set_include_path() isn't persistent

2004-11-08 Thread Skippy
On Tue, 9 Nov 2004 01:39:03 +1100 Justin French <[EMAIL PROTECTED]> wrote: > > On 09/11/2004, at 1:26 AM, John Nichel wrote: > > > Justin French wrote: > >> Hi, > >> Experimenting with set_include_path(), but it would appear that it > >> doesn't persist for the duration of the request, just the

Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-08 Thread Ben Ramsey
Greg Donald wrote: I need to improve my current "search mecanism" but got stuck in a dilema : build one or use an existing engine? I recently put together a large company intranet site search using htdig and a simple php wrapper script: http://www.devshed.com/c/a/PHP/Search-This/ http://www.htdig.o

Re: [PHP] Re: PEAR mail

2004-11-08 Thread Ben Ramsey
Is this somehow related to the "PEAR mail" thread? I don't see the connection. I think you're trying to ask a new question. When doing so, please don't reply to an existing message in an existing thread (even if you change the subject) because you're new question will become a part of the old t

[PHP] whoops, forgot to change the subject on that last one...

2004-11-08 Thread Jim Wharton
Jim Wharton said: > I'm not very familiar with php's drawing abilities. I have found out how > to get it to create multipoint polygons. > > What I am trying to do is implement something along the lines of LOGO. > (You know, that old language that told a robotic turtle to draw on the > floor) > > Se

Re: [PHP] Re: PEAR mail

2004-11-08 Thread Jim Wharton
I'm not very familiar with php's drawing abilities. I have found out how to get it to create multipoint polygons. What I am trying to do is implement something along the lines of LOGO. (You know, that old language that told a robotic turtle to draw on the floor) Seriously, I currently have an inh

Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-08 Thread Greg Donald
On Sun, 7 Nov 2004 19:10:32 -0400, robert mena <[EMAIL PROTECTED]> wrote: > I need to improve my current "search mecanism" but got stuck in a > dilema : build one or use an existing engine? I recently put together a large company intranet site search using htdig and a simple php wrapper script: h

[PHP] Sub selects vs nested loop was:Re: [PHP] You know you're a geek when...

2004-11-08 Thread raditha dissanayake
Greg Donald wrote: On Mon, 08 Nov 2004 10:40:30 +0600, raditha dissanayake <[EMAIL PROTECTED]> wrote: You know you're a geek when you know which list deals with which top and when you know that subselects in mysql is not much faster than the nested loop you have been using. Can you point me

Re: [PHP] Session Handling

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 15:00:33 +0530, Vinayakam Murugan <[EMAIL PROTECTED]> wrote: > Can anyone point me a good tutorial for session handling in PHP? I > want answers to questions like > ./google.pl "php session" 10 Result: http://www.php.net/session http://www.phpfreaks.com/tutorials/41/0.php http:/

Re: [PHP] You know you're a geek when...

2004-11-08 Thread Greg Donald
On Mon, 08 Nov 2004 10:40:30 +0600, raditha dissanayake <[EMAIL PROTECTED]> wrote: > You know you're a geek when you know which list deals with which top > and when you know that subselects in mysql is not much faster than the > nested loop you have been using. Can you point me to some benchmarks

Re: [PHP] Syntax highlighting of odd language

2004-11-08 Thread Aaron Gould
M. Sokolewicz wrote: Now, the problem with such a "solution" is the following. Imagine you have the following keywords: include require in of typof now, when you replace include with include, it'll go on, and also replace all instances of in, so you'll end up with things like include (very ugly)

[PHP] Re: PEAR mail

2004-11-08 Thread Ben Ramsey
Marc Serra wrote: $hdrs = array( "From"=> "[EMAIL PROTECTED]", "Cc" => "[EMAIL PROTECTED]" "Subject" => "Tests" ); In your $hdrs array, you're missing a comma separating Cc from Subject. That's pr

Re: [PHP] set_include_path() isn't persistent

2004-11-08 Thread Justin French
On 09/11/2004, at 1:19 AM, Justin French wrote: Experimenting with set_include_path(), but it would appear that it doesn't persist for the duration of the request, just the current script. Actually, it does apply to included files... I just ed up my paths :) Justin -- PHP General Mailing Li

Re: [PHP] pspell problems

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 14:12, John Nichel wrote: > BTW, what's up with your system clock Jason? ;) I'll figure out how to set the clock one of these days. (Stop laughing). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hostin

Re: [PHP] set_include_path() isn't persistent

2004-11-08 Thread Justin French
On 09/11/2004, at 1:26 AM, John Nichel wrote: Justin French wrote: Hi, Experimenting with set_include_path(), but it would appear that it doesn't persist for the duration of the request, just the current script. That is to say, an included file will not inherit the include_path() of the parent

Re: [PHP] set_include_path() isn't persistent

2004-11-08 Thread John Nichel
Justin French wrote: Hi, Experimenting with set_include_path(), but it would appear that it doesn't persist for the duration of the request, just the current script. That is to say, an included file will not inherit the include_path() of the parent file. Is there any way to persist this withou

[PHP] PEAR mail

2004-11-08 Thread marc serra
hi, i'm using Mail PEAR package and i want to send a mail to a recipient and to some other in Cc. So i try to add Cc in header but it failed and mail didn't been delivered to Cc. It was only delivered to adress specified in From field. I use that code : $hdrs = array( "From

[PHP] set_include_path() isn't persistent

2004-11-08 Thread Justin French
Hi, Experimenting with set_include_path(), but it would appear that it doesn't persist for the duration of the request, just the current script. That is to say, an included file will not inherit the include_path() of the parent file. Is there any way to persist this without re-setting it on ea

Re: [PHP] pspell problems

2004-11-08 Thread John Nichel
Jason Wong wrote: Methinks you need to install both. pspell provides an interface into aspell, it is aspell which actually does the dirty work. Some distros combine both aspell and pspell in one package, whilst others mat have split them up. It depends on what version you install. All the lates

Re: [PHP] Detecting image types for uploaded images

2004-11-08 Thread Karthik
Hi, same thing mate - comes up as "image/jpeg image/jpeg" - The images in question are definitely pjpegs - i.e. checking file type during uploads registers them as pjpegs. Cheers, -K On Mon, 8 Nov 2004 01:17:24 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > What about mime_content_type

Re: [PHP] mysql netwoking??

2004-11-08 Thread Robert Cummings
On Mon, 2004-11-08 at 07:41, John Nichel wrote: > Aalee wrote: > > > Hi guys, > > I have a small home network working with just 4 computers (PC's on WinXP > > Pro) connected through a switch just using the local ip's 192.168.0.1 and so > > on. And the netwok is working fine. I have installed MySQL

[PHP] Re. [PHP] mysql networking ?

2004-11-08 Thread Manoj Kumar
Hi its a php mailing list ? Okey . -- Manoj Kr. Sheoran "Aalee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > I have a small home network working with just 4 computers (PC's on WinXP > Pro) connected through a switch just using the local ip's 192.168.0.1 and so >

[PHP] What about pgsql error codes ?

2004-11-08 Thread Bambero
Hello How can I get an error code of my last pgsql query like in mysql 'mysql_errno()' ? http://www.postgresql.org/docs/7.4/static/errcodes-appendix.html Bambero -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql netwoking??

2004-11-08 Thread John Nichel
Aalee wrote: Hi guys, I have a small home network working with just 4 computers (PC's on WinXP Pro) connected through a switch just using the local ip's 192.168.0.1 and so on. And the netwok is working fine. I have installed MySQL on one computer and setup a database and installed MySQL on the othe

[PHP] mysql netwoking??

2004-11-08 Thread Aalee
Hi guys, I have a small home network working with just 4 computers (PC's on WinXP Pro) connected through a switch just using the local ip's 192.168.0.1 and so on. And the netwok is working fine. I have installed MySQL on one computer and setup a database and installed MySQL on the other PCs aswell.

[PHP] mysql networking??

2004-11-08 Thread Aalee
Hi guys, I have a small home network working with just 4 computers (PC's on WinXP Pro) connected through a switch just using the local ip's 192.168.0.1 and so on. And the netwok is working fine. I have installed MySQL on one computer and setup a database and installed MySQL on the other PCs aswell.

[PHP] mysql networking ??

2004-11-08 Thread Aalee
Hi guys, I have a small home network working with just 4 computers (PC's on WinXP Pro) connected through a switch just using the local ip's 192.168.0.1 and so on. And the netwok is working fine. I have installed MySQL on one computer and setup a database and installed MySQL on the other PCs aswell.

Re: [PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread Tobias Neumann
On Mon, 08 Nov 2004 15:52:53 +0600, Raditha Dissanayake wrote: > Quick question: is file uploads enabled on this server and is the > temporary directory writable? Hmm. upload_tmp_dir was unset. The php.ini says that in this case the systems default tempoary directory is used. So I guessed it wou

Re[2]: [PHP] Question: Exiting a script

2004-11-08 Thread Richard Davey
Hello Stuart, Monday, November 8, 2004, 10:46:00 AM, you wrote: SF> I think white space is my problem. What causes white SF> space ? Spaces and similar characters, carriage-returns, line-feeds, etc output to the browser. Perhaps before the opening PHP tag, or after the closing PHP tag. Any woul

Re: [PHP] Question: Exiting a script

2004-11-08 Thread Stuart Felenstein
Never mind , I found it! http://www.w3.org/ TR/xhtml1/DTD/xhtml1-transitional.dtd"> One of these days I'll master the header function ;) Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question: Exiting a script

2004-11-08 Thread Stuart Felenstein
--- Richard Davey <[EMAIL PROTECTED]> wrote: some > text or >white-space, aborting'; > } > else > { > Richard Davey I think white space is my problem. What causes white space ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question: Exiting a script

2004-11-08 Thread Richard Davey
Hello Stuart, Monday, November 8, 2004, 10:31:51 AM, you wrote: SF> Say I have a script that processes input data. How do I get the SF> script to work, where after processing the user is taken to SF> another page ? The script outputs nothing to the screen and will SF> end either in failure or suc

[PHP] Question: Exiting a script

2004-11-08 Thread Stuart Felenstein
Say I have a script that processes input data. How do I get the script to work, where after processing the user is taken to another page ? The script outputs nothing to the screen and will end either in failure or success. Seems header won't work for me. Stuart -- PHP General Mailing List

Re: [PHP] Big table dump stopping in between

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 10:04, Ritesh Nadhani wrote: > > Please do not top post. > > I dont know what you mean by that. I just pressed reply all in my outlook. google > top post > Sorry for my previous post but I am actually doing set_time_limit(0) at top > of my script. Then your problem mo

Re: [PHP] Big table dump stopping in between

2004-11-08 Thread Ritesh Nadhani
Hello, - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 08, 2004 9:59 PM Subject: Re: [PHP] Big table dump stopping in between On Monday 08 November 2004 07:14, Ritesh Nadhani wrote: Please do not top post. I dont know what you me

Re: [PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 09:07, Tobias Neumann wrote: > I have the same script on two webservers with php 4.3.9 and apache 2, both > with the same php configurations. On one server I can not access > $_FILES or $HTTP_POST_FILES, although a form with a file has been > correctly submitted. Are th

Re: [PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread raditha dissanayake
Tobias Neumann wrote: Hello! I have the same script on two webservers with php 4.3.9 and apache 2, both with the same php configurations. On one server I can not access $_FILES or $HTTP_POST_FILES, although a form with a file has been correctly submitted. Quick question: is file uploads enabled

Re: [PHP] pspell problems

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 08:36, Noodles wrote: > Jason Wong wrote: > > Anyway, do you have these as well: > > > > /usr/include/pspell/ > > /usr/include/pspell/pspell.h > > > > The directory is required for the ./configure command to succeed, and you > > actually need the header file for the make

Re: [PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread Marek Kilimajer
Tobias Neumann wrote: Hello! I have the same script on two webservers with php 4.3.9 and apache 2, both with the same php configurations. On one server I can not access $_FILES or $HTTP_POST_FILES, although a form with a file has been correctly submitted. apache_request_headers() contains: [Content

Re: [PHP] pspell problems

2004-11-08 Thread Noodles
Jason Wong wrote: Anyway, do you have these as well: /usr/include/pspell/ /usr/include/pspell/pspell.h As I said in my other email, I don't, but I have found the debian package which has pspell.h in it. It's libpspell-dev So from start to finish, this should install pspell on debian apt-get insta

[PHP] Session Handling

2004-11-08 Thread Vinayakam Murugan
Hello Can anyone point me a good tutorial for session handling in PHP? I want answers to questions like 1) What's the difference between session & cookies? 2) What does session_destroy do? (I know the definition from www.php.net) I want to know the internals. Thanks in advance. -- Warm Regards

[PHP] undefined index: $_FILES || $HTTP_POST_FILES

2004-11-08 Thread Tobias Neumann
Hello! I have the same script on two webservers with php 4.3.9 and apache 2, both with the same php configurations. On one server I can not access $_FILES or $HTTP_POST_FILES, although a form with a file has been correctly submitted. apache_request_headers() contains: [Content-Type] => multipart

RE: [PHP] Detecting image types for uploaded images

2004-11-08 Thread nate
What about mime_content_type()... see what that returns. Nate -Original Message- From: Karthik [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 12:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Detecting image types for uploaded images Hi, How do I differentiate between progress

Re: [PHP] Pb'lm of Regular Expression

2004-11-08 Thread Klaus Reimer
[EMAIL PROTECTED] wrote: "https://abc.com/first.php? site_id=abc&aid=keyin&lid=keyin&ref=&q=\" width=\"1\" height=\"1\">"; //s The complete tag is in index 0, the src is in index 1 of the match-array. Now what regular expression i write so i can fetch the image tag from my site of above syntex.And

Re: [PHP] pspell problems

2004-11-08 Thread Noodles
Jason Wong wrote: Anyway, do you have these as well: /usr/include/pspell/ /usr/include/pspell/pspell.h The directory is required for the ./configure command to succeed, and you actually need the header file for the make command to succeed. No, I have no pspell directory or header file, I had inst

Re: [PHP] Problems with mail function

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 08:23, Pete wrote: > I have a problem with a standard mail() function. > > If I put a short message ( "test" ) into it, then the email is sent. > > If I put a longer message in (Visitors name and address collected from > webpage), then the mail is not sent. So you're su

[PHP] Detecting image types for uploaded images

2004-11-08 Thread Karthik
Hi, How do I differentiate between progressive and standard jpegs for files "already" on the server ? getimagesize does return a mime type, but doesn't seem to differentiate between image/jpeg and image/pjpeg and returns image/jpeg for all jpeg images. Any ideas? Thanks -K -- PHP General Mail

Re: [PHP] Help:escape_string and stripslashes

2004-11-08 Thread Jason Wong
On Sunday 07 November 2004 14:27, Stuart Felenstein wrote: > Another thing I'm wondering and not clear on . > I have 5 pages of forms, a 6th page is where the > processing , transaction is taking place. > Would it be sufficient to add stripslashes_deep() to > only the last page (6th page) ? > Each

[PHP] Problems with mail function

2004-11-08 Thread Pete
I have a problem with a standard mail() function. If I put a short message ( "test" ) into it, then the email is sent. If I put a longer message in (Visitors name and address collected from webpage), then the mail is not sent. No error message is generated, the mail just doesn't arrive.

Re: [PHP] Big table dump stopping in between

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 07:14, Ritesh Nadhani wrote: Please do not top post. > Here is page that shows phpinfo() in my webserver. > > http://www.webyog.com/indexsam.php > > As I can see, the configure command has '--enable-safe-mode' but in the > PHP core configuration - safe_mode is set to o

Re: [PHP] pspell problems

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 07:03, Noodles wrote: > Jason Wong wrote: > > --with-pspell=/usr is what you want. > > I tried this and it still didn't help things That *is* what you want -- your problem lies elsewhere. > I have: > /usr/include/aspell.h > /usr/lib/libaspell.so > /usr/lib/libaspell.so.