[PHP] Submit code

2002-07-16 Thread MindHunter
I am looking for PHP code that will submit (post) a form automaically to a ANOTHER php page. I do not want to press a submit button. I have found a class at PHPClasses but it is too complicated for my needs. What is the simplest way of doing this? What is the theoretical approach? The reason

Re[2]: [PHP] integrating usenet into http? how is this done???

2002-07-16 Thread Latex Master
Hello andy, Well i do work on the same project. Now i got little lost with headers. If anyone can help me I'll be glad. as for all othe issues like updating databases they are solved :) With now cron job :) Monday, July 15, 2002, 7:27:19 PM, you wrote: It would

[PHP] Problem on file_exists()

2002-07-16 Thread Jack
Dear all I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing room\report) it stores a lot of PDF reports in there. I'm trying to use the file_exists() function to detect if a specific file exist in this folder, but i got a problem is : It seems that php can go through

RE: [PHP] Problem on file_exists()

2002-07-16 Thread David Redmond
Jack, try using forward slashes instead of backslashes;eg $fp = fopen(//nedcoraa/pdf_reports/dealing/filename.ext, r+); Cheers -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 July 2002 5:02 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Problem

[PHP] Inclusion error

2002-07-16 Thread Sachin Keshavan
Failed opening '/var/www/html/BOOKS/newbooks.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in Unknown on line 0 I am getting the following error, when the file newbooks.php is invoked. The first lines in this entire file starts with the ?php tag, followed by 4 lines

[PHP] PostgreSQL

2002-07-16 Thread rdkurth
PHP is compiled with PostgreSQL support but I can not connect. I get this error message What does it mean and what do I need to do to fix it Warning: pg_connect() unable to connect to PostgreSQL server: connectDB() -- connect() failed: Connection refused Is the postmaster running (with -i) at

[PHP] MsSQL connection !!! HELP !

2002-07-16 Thread Djurovski Dejan
I can't connect to mssql! When I start PHP page with MsSQL connection, PHP craches and I receive this: PHP caused an invalid page fault in module NTWDBLIB.DLL at 0167:73330fde. Registers: EAX=0020 CS=0167 EIP=73330fde EFLGS=00010246 EBX=0010 SS=016f ESP=0063f600 EBP=0063f610 ECX=00797fe0

Re: [PHP] PostgreSQL

2002-07-16 Thread Lejanson C. Go
[EMAIL PROTECTED] wrote: PHP is compiled with PostgreSQL support but I can not connect. I get this error message What does it mean and what do I need to do to fix it Warning: pg_connect() unable to connect to PostgreSQL server: connectDB() -- connect() failed: Connection refused Is the

[PHP] Re: Problem on file_exists()

2002-07-16 Thread liljim
Jack, Probably because of the space in the directory dealing room - you'd be best advised to avoid spaces in directory names. ~James Jack [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear all I had a folder which the path is :

[PHP] Get Anchor out of Url

2002-07-16 Thread Martin Thoma
Hello! I have a page which is called by: A HREF=/myfolder/mypage.php4?MyVar1=SomethingMyVar2=Someother#JumpHere Now I want to get the Anchor #JumpHere (which could be different each time) in mypage.php4. With PATH_INFO, I only get /myfolder/mypage.php4; With QUERY_STRING, I only get

[PHP] Re: Submit code

2002-07-16 Thread Martin Thoma
I am looking for PHP code that will submit (post) a form automaically to a ANOTHER php page. I do not want to press a submit button. I have found a class at PHPClasses but it is too complicated for my needs. What is the simplest way of doing this? What is the theoretical approach? I

RE: [PHP] Inclusion error

2002-07-16 Thread David Freeman
Failed opening '/var/www/html/BOOKS/newbooks.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in Unknown on line 0 I am getting the following error, when the file newbooks.php is invoked. The first lines in this entire file starts with the ?php tag,

[PHP] Re: Get Anchor out of Url

2002-07-16 Thread Martin Thoma
Oh, it seems, that only Netscape 4 is doing this wrong... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: ^k ? -- how do I match that?

2002-07-16 Thread liljim
Hi Jimmy, In many cases, I'd go for a regex, though with this (because it's just a straight replacement), I'd just use str_replace (and since about the closest thing to a vertical tab would be a new line in html, use that as the replacement): $string = str_replace(^K, \n, $string); James

[PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Cedric Veilleux
Hey, Anybody has ideas on how to detect the connection speed of visitors in order to automatically take them to the Hi-speed or low-speed version of a site? We want to make a hi and low speed side, but I would prefer not to confuse visitors with a page where they have to

[PHP] Re: Inclusion error

2002-07-16 Thread Sachin Keshavan
Hello all, Thanks for the suggestions. But my .php file does not have any include statement any where in the page. Is there any thing which I have to check out? The site contains 6 .php files, and it is only in this file the error comes. Thanks once again, Sachin. -- PHP General Mailing List

php-general Digest 16 Jul 2002 09:16:04 -0000 Issue 1467

2002-07-16 Thread php-general-digest-help
php-general Digest 16 Jul 2002 09:16:04 - Issue 1467 Topics (messages 107759 through 107823): Online Document 107759 by: Glenn Antoine 107762 by: Kevin Stone 107776 by: John Holmes Re: Installing MYSQL on Windows 107760 by: Lee 107764 by: Analysis

RE: [PHP] Inclusion error contd..

2002-07-16 Thread Sachin Keshavan
Hello all, Thanks for the suggestions. But my .php file does not have any include statement any where in the page. Is there any thing which I have to check out? The site contains 6 .php files, and it is only in this file the error comes. I have tested this in my local build (Apache server),

[PHP] Formmail replacement?

2002-07-16 Thread JJ Harrison
Does anyone know a good PHP-based Formmail Replacement(From matt's script archive)? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Inclusion error contd..

2002-07-16 Thread PHPCoder
Check execute permissions on the PHP file, try chmod 755. Sachin Keshavan wrote: Hello all, Thanks for the suggestions. But my .php file does not have any include statement any where in the page. Is there any thing which I have to check out? The site contains 6 .php files, and it is only in

Re: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not?

2002-07-16 Thread gilles
nobody? does any think this could be a bug or something? i would like to know before submitting this as a bug. At 19:18 15-7-2002 +0200, gilles wrote: hi, i've run in to a strange problem, i'm trying to output a pdf file from disk to the browser. this is fine under netscape but IE has

[PHP] IIS5 and PHP4 problems

2002-07-16 Thread Peter Stöcker
Hi there! I have a problem with the IIS5. After I have installed PHP4 following the instruction on php.net, everything works fine instead of handling forms. Each variable deliverd by a form (e.g. test.php?id=5) is empty (id== is true). Can anybody help?? Thanks, Peter

Re: [PHP] IIS5 and PHP4 problems

2002-07-16 Thread Nookie
Hello Peter, Tuesday, July 16, 2002, 12:28:06 PM, you wrote: PS Hi there! PS I have a problem with the IIS5. PS After I have installed PHP4 following the instruction on php.net, everything PS works fine instead of handling forms. PS Each variable deliverd by a form (e.g. test.php?id=5) is

Re: [PHP] ^k ? -- how do I match that?

2002-07-16 Thread Chris Hewitt
Jimmy Brake wrote: is used in MS Excel when people hit return inside a cell. If they copy and paste that into a form its ok, but when I export that data to a csv it gets ugly. I'd do validation on the user input on the form and remove it there. The ^k is used to show a control code, they begin

Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 17:12, Cedric Veilleux wrote: What I was thinking about is doing a reverse dns lookup on the client's IP and try to determine quickly if he's on a low or hi speed connection. You have to bear in mind that reverse DNS lookups are not instantaneous. It can take

Re: [PHP] Problem on file_exists()

2002-07-16 Thread Chris Hewitt
Jack wrote: Dear all I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing room\report) it stores a lot of PDF reports in there. I'm trying to use the file_exists() function to detect if a specific file exist in this folder, but i got a problem is : It seems that php can go through

Re: [PHP] IIS5 and PHP4 problems

2002-07-16 Thread Chris Hewitt
Peter Stöcker wrote: Hi there! I have a problem with the IIS5. After I have installed PHP4 following the instruction on php.net, everything works fine instead of handling forms. Each variable deliverd by a form (e.g. test.php?id=5) is empty (id== is true). I imagine that the release notes to

Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Chris Hewitt
Jason Wong wrote: On Tuesday 16 July 2002 17:12, Cedric Veilleux wrote: What I was thinking about is doing a reverse dns lookup on the client's IP and try to determine quickly if he's on a low or hi speed connection. You have to bear in mind that reverse DNS lookups are not

RE: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread joakim . andersson
I feel the idea is not accurate. My ip address (a static one from my isp) would remain the same if I went to ADSL from my current dial-up access. HTH Chris Yes. And how about all corporate networks? If I'm accessing your site from our office I would get the low-speed version until you

AW: [PHP] IIS5 and PHP4 problems

2002-07-16 Thread Peter Stöcker
Hi! The register_globals are on. But using $_POST will cause some problems, because I also use generated links like test.php?id=4usr=test without using a form! So I don't get the variables by both these genrated links and forms. Bye, Peter -Ursprüngliche Nachricht- Von: Nookie

RE: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not?

2002-07-16 Thread joakim . andersson
I really think you should read the user comments in the online PHP-manual before doing anything else... Look here: http://www.php.net/manual/en/function.header.php Regards Joakim Andersson -Original Message- From: gilles [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 7:19 PM

RE: [PHP] IIS5 and PHP4 problems

2002-07-16 Thread John Holmes
How about a little reading of the manual... Use $_GET for the URL or $_REQUEST if you want it to cover get, post, and cookie data... ---John Holmes... -Original Message- From: Peter Stöcker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 7:15 AM To: [EMAIL PROTECTED]

[PHP] Re: Complex session issue

2002-07-16 Thread Kondwani Spike Mkandawire
Just an idea, I'll point it out algorithmically coz it would take me a bit of time to sketch the code... Here goes and my appologies if this is not what you want.. Would it not work if you targeted the next application to open up in window y... The problem is that you said you want it to be in

[PHP] Create Thumbnail from Blob online

2002-07-16 Thread Tommi Trinkaus
Hi, i stored some jpegs in an mysql-database (one field for data, one for type) and i'm able to download them and to show them in an img tag. But wat i want is to use the stored data to create a thumbnail to show it within the browser without creating a file - how can i pass the mysql-blob

RE: [PHP] Create Thumbnail from Blob online

2002-07-16 Thread joakim . andersson
From: Tommi Trinkaus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 1:25 PM Hi, i stored some jpegs in an mysql-database (one field for data, one for type) and i'm able to download them and to show them in an img tag. But wat i want is to use the stored data to create a

[PHP] Re: Submit code

2002-07-16 Thread Kondwani Spike Mkandawire
Algorithmically: //in php 1) create a counter that will keep count of the # of variables that have been set 2) if all your variables have been set spit out the relevant JavaScript that runs the AutoSubmit function... (There are a couple onLine)... ... It can follow the following

Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Alberto Serra
ðÒÉ×ÅÔ! [EMAIL PROTECTED] wrote: I feel the idea is not accurate. My ip address (a static one from my isp) would remain the same if I went to ADSL from my current dial-up access. HTH Chris Yes. And how about all corporate networks? If I'm accessing your site from our office I would get

[PHP] activating php scripts via cron

2002-07-16 Thread Andy
Hi there, I am wondering if it would be possible to activate a php script via cron periodicly. Can anybody give me a hint on that or knows a good article? Thanx in advance, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Good Forum...

2002-07-16 Thread Tshering Norbu
Martin, I have downloaded INVISION, installed everything correct, but I cannot (even as administrator/moderator)) see where the posts by members go to? Only posts by administrator appear. Any idea where the new posts by members go to and how an administrator can approve them? Thanks. NOBBY -

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 20:42, Andy wrote: Hi there, I am wondering if it would be possible to activate a php script via cron periodicly. Can anybody give me a hint on that or knows a good article? Search archives for cron OR wget -- Jason Wong - Gremlins Associates - www.gremlins.com.hk

Re: [PHP] Re: Good Forum...

2002-07-16 Thread Tshering Norbu
Martin, I think I have got it. Thanks. Best Regards, NORBU (SOLUTION FOR YOUR WEB DESIGN DEVELOPMENT, SOFTWARE HARDWARE, NETWORK INTERNET) -- WEBMASTER DrukNet / Bhutan Telecom / BTNIC PO Box 134 Thimphu BHUTAN Phone: Work 326997

RE: [PHP] activating php scripts via cron

2002-07-16 Thread Jay Blanchard
[snip] I am wondering if it would be possible to activate a php script via cron periodicly. Can anybody give me a hint on that or knows a good article? [/snip] If you can run PHP from the command line, i.e. php thisscript.php it means that you have installed PHP as a standalone executable. If

[PHP] Problem Running my Scripts from IIS...

2002-07-16 Thread Kondwani Spike Mkandawire
I have a problem running my Scripts from IIS... I test them on my localhost which is running Apache and PHP 4.2.1 and it works perfectly... However I get an undefined variable error running it on an IIS Server running PHP 4.2.1 Apart from these messages that make my send to pages look untidy, the

[PHP] read a text file

2002-07-16 Thread Edgar
I was looking for in the news, but i did not encounter any thing. Where can I get an example or the way to read a text file into a variable and how identify the carriage return and special characters. Thank you Edgar -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] read a text file

2002-07-16 Thread Andrey Hristov
$contents = implode('',file($filename)); Regards, Andrey Edgar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I was looking for in the news, but i did not encounter any thing. Where can I get an example or the way to read a text file into a variable and how identify the

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Kondwani Spike Mkandawire
Hi Jay: If you can run PHP from the command line, i.e. php thisscript.php it means that you have installed PHP as a standalone executable. If so you What do you mean standalone? If this is in reference to not running it as a module of Apache, then my set up must be weird, because I can

RE: [PHP] activating php scripts via cron

2002-07-16 Thread Jay Blanchard
You can have both...a standalone executable and an Apache module! They will operate on the same server, independently of each other. Jay It's a dessert topping AND a floor wax! -- Satuday Night Live, circa '76 * * Want to meet other PHP developers * * in

[PHP] Re: read a text file

2002-07-16 Thread Kondwani Spike Mkandawire
php.net has little snippets under the documentation for the fread function... That's a start... Edgar [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I was looking for in the news, but i did not encounter any thing. Where can I get an example or the way to read

RE: [PHP] Problem Running my Scripts from IIS...

2002-07-16 Thread Richard Black
Sounds more like it's to do with the php.ini settings on the IIS box than IIS itself. http://www.php.net/manual/en/configuration.php#ini.error-reporting HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com

Re: [PHP] Complex session issue

2002-07-16 Thread Justin French
session_name() enables you to refer to a session by name, rather than just referring to *a* session. check the manual, but I believe for session x you, would call session_name(mysession_y); BEFORE session_start(), and for session y, you would call session_name(mysession_x); there's a good

Re: [PHP] Re: Training / Courses in Australia

2002-07-16 Thread Justin French
on 16/07/02 2:17 PM, Richard Lynch ([EMAIL PROTECTED]) wrote: Would anyone know of any PHP training or courses in Australia... Luke and Laura :-) run a fabulous PHP program through the Royal Mumble Iblle T-something... Royal Melbourne Institute of Technology? Also for the

[PHP] Re: Create Thumbnail from Blob online

2002-07-16 Thread Lars Olsson
Well, if you're just going to show your image (no resizing or other image operations) you don't need to use gd at all. You could just change the Content-Type and print. snippet header(Content-Type: $mimetype); print($imagedata); /snippet /lasso ([EMAIL PROTECTED]) Tommi Trinkaus wrote:

Re: Fw: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not?

2002-07-16 Thread gilles
hi, well just to make sure, i also ran this test under linux/apache and win2000/apache testing with IE6 and the same error occurs. it also doesnt matter if i use sessions, so, the following doesnt work either with POST, but it does work with GET: - ?

RE: [PHP] Submit code

2002-07-16 Thread Steve Bradwell
Well, I'm not sure if this is what your looking for but the simplest way might be to use JavaScript. Have the second form that you want to post without a submit button being clicked have an onSubmit event. So on submit of the first form, javascript will submit the second without the user clicking

[PHP] Purpose of $$var ?????

2002-07-16 Thread Scott Fletcher
The script was working great before PHP 4.2.x and not after that. So, I looked through the code and came upon this variable, $$var. I have no idea what the purpose of the double $ is for a variable. Anyone know? --clip-- $var = v.$counter._high_indiv;

Re: [PHP] Submit code

2002-07-16 Thread Scott Fletcher
As you know, PHP can't do the work becuase it is on the server side, not hte client side. Meaning, when the server side is finish, all done, then it go directly to the client side (web browser). If you want PHP to do something then you'll have to do something to the webpage, like a click button

[PHP] file() and array values contain extra \n

2002-07-16 Thread Dave [Hawk-Systems]
$users=file('.users'); # puts users in the file into an array so we can # check for valid or priv users with if(in_array($HTTP_SERVER_VARS[REMOTE_USER], $users)){} # we add additional users to the .users file with the following $users[]=$newuser; # adds the new user to the end of the above

[PHP] php/mysql simple math

2002-07-16 Thread Jay
I have created a table which has a column called cost. How do I add up all the numerical data in the cost column and display that on a webpage? -Thanks -Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Purpose of $$var ?????

2002-07-16 Thread Andrey Hristov
Variable variable. Read the docs. $v = 'foo'; $foo = 'bar'; echo $$v; Regards, Andrey P.S. Sometimes {} are used : ${$v} Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... The script was working great before PHP 4.2.x and not after that. So, I looked through the

Re: [PHP] Purpose of $$var ?????

2002-07-16 Thread Scott Fletcher
Interesting! Look like the 2nd $ is decomissioned and is reserve for something in the future or something. Just like the _ is when it come with $_POST as an example. That would explain why it doesn't work with PHP 4.2.x up. Andrey Hristov [EMAIL PROTECTED] wrote in message

[PHP] Re: Problem Running my Scripts from IIS...

2002-07-16 Thread MindHunter
Are you running PHP as CGI or ISAPI? I got so much similar trouble with the ISAPI dll on IIS that I use the CGI nowadays. MH Kondwani Spike Mkandawire [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a problem running my Scripts from IIS... I test them

RE: [PHP] Purpose of $$var ?????

2002-07-16 Thread joakim . andersson
The cause for your problem would be that register_globals defaults to off in PHP 4.2.x and greater. The solution? Start using the new superglobals ($_POST, $_GET, $_SESSION etc) or (not recomended) set register_globals = on in php.ini Read more here:

[PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
Could someone please explain the difference between classes and functions and how to use a class. I write alot of PHP, but I never understood this at all. I use an include statement in many of my pages and include a file with a bunch of functions. For instance, I might have a function called

RE: [PHP] Purpose of $$var ?????

2002-07-16 Thread Dave [Hawk-Systems]
variable variable... right up there with array array basically what you are saying is resolve $var, then find out what that variable holds example; assume your $counter is currently at 5 $var = v.$counter._high_indiv; would mean that $var= v5_high_indiv assuming that v5_high_indiv is

Re: [PHP] file() and array values contain extra \n

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 21:53, Dave [Hawk-Systems] wrote: $users=file('.users'); # puts users in the file into an array so we can # check for valid or priv users with if(in_array($HTTP_SERVER_VARS[REMOTE_USER], $users)){} # we add additional users to the .users file with the following

[PHP] Make error

2002-07-16 Thread Paulo Henrique Castro
Hi, Im having the problem bellow when try make PHP source. Im using this configure: ./configure --with-apache=/usr/local/src/apache_1.3.23 --with-mysql=/usr/loc al/mysql --with-pgsql --with-zlib --with-gd --with-gettext And make error: Making all in Zend make[1]: Entering

Re: [PHP] Purpose of $$var ?????

2002-07-16 Thread Scott Fletcher
I tried that test script you mentioned and it doesn't work in PHP 4.2.1. I have a very good idea why is that, must have to do with the php.ini. Unfortunately, it doesn't work either. I'll tell you what, I'll just throw out that script and write a different script. This time, no double $.

[PHP] Re: Problem Running my Scripts from IIS...

2002-07-16 Thread Kondwani Spike Mkandawire
I run it as CGI... I have the problem fixed though... It looks real messy but every time I echo out a variable that *appears* to be undefined whilst it actually is, I stick an @ sign infront of it... Hence I have something like: echo @$var1; If I need to stick extra statements I use

Re: [PHP] Purpose of $$var ?????

2002-07-16 Thread Scott Fletcher
What docs at php.net? under variable, predefine variable or what? Andrey Hristov [EMAIL PROTECTED] wrote in message 002601c22cd0$b1995170$1601a8c0@nik">news:002601c22cd0$b1995170$1601a8c0@nik... Variable variable. Read the docs. $v = 'foo'; $foo = 'bar'; echo $$v; Regards, Andrey P.S.

RE: [PHP] php + javascript hard day together ?

2002-07-16 Thread Ford, Mike [LSS]
-Original Message- From: David D [mailto:[EMAIL PROTECTED]] Sent: 13 July 2002 16:38 I can manage this script to work. Js warn about listid[], he doesnt like [] in a var name ! Php needs them to collect an array from form checkboxes. form name=test action=check.php input

RE: [PHP] file() and array values contain extra \n

2002-07-16 Thread Dave [Hawk-Systems]
On Tuesday 16 July 2002 21:53, Dave [Hawk-Systems] wrote: $users=file('.users'); # puts users in the file into an array so we can # check for valid or priv users with if(in_array($HTTP_SERVER_VARS[REMOTE_USER], $users)){} # we add additional users to the .users file with the following

Re: [PHP] Purpose of $$var ?????

2002-07-16 Thread Scott Fletcher
Alright! Found the problem! Faulty script written that come before this script where $$var come into play. At least, it wasn't me, it was the other programmer's error. :-) Scott Fletcher [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Interesting! Look like

[PHP] Problem with implode() function

2002-07-16 Thread Balaji Ankem
Hi, I have an array of elements which are separated with the operator comma(,). == $array = implode(,, $checkb); echo $array.'\n'; $result = mysql_query(DELETE FROM temp WHERE inv_tag IN ($array)) or die('Error in

RE: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread César Aracena
I think that the best way you can achieve this, considering all the troubles and different configurations you will have to make for each user, is to make them choose the type of connection they want, and set a cookie in the visitor's browser with a one year life time which stores that

Re: [PHP] file() and array values contain extra \n

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 22:35, Dave [Hawk-Systems] wrote: $users[]=$newuser; # adds the new user to the end of the above created users array # then write the array to the file $fd = fopen (.users, w+); fwrite ($fd, join(\n,$users)); fclose ($fd); the problem is after adding

Re: [PHP] Re: Get Anchor out of Url

2002-07-16 Thread Marek Kilimajer
Wait, you mean IE sends the full uri (including the anchor #JumpHere) as a GET request? Anchor is interpreted on the client side, this means browser reads trought the document looking for anchor of that name. You cannot get it on server, maybe somehow with javascript. Marek Martin Thoma

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Jay Blanchard
[snip] Could someone please explain the difference between classes and functions and how to use a class. I write alot of PHP, but I never understood this at all. I use an include statement in many of my pages and include a file with a bunch of functions. For instance, I might have a function

[PHP] Search Page question

2002-07-16 Thread Mark McCulligh
I have newbie question. I am building a search page that will return any number of records and want to display only 30 at a time say. Then have one of though Page 1 of 3 [1] [2] [3] Next on top of the record list. What is the best way to do this. I was looking at using the LIMIT feature in

Re: [PHP] Problem with implode() function

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 22:40, Balaji Ankem wrote: Hi, I have an array of elements which are separated with the operator comma(,). == $array = implode(,, $checkb); echo $array.'\n'; $result = mysql_query(DELETE FROM temp

[PHP] exec() function question on Solaris

2002-07-16 Thread Matt Babineau
I have an interesting question. I am working on a system that I need to run two commands in the shell, but when I use passthru() on the first command then run the second command to get the results from the first command, it doesn't work. Is there any way I can run 2 shell commands in the same

Re: [PHP] Sorting getmxrr()

2002-07-16 Thread Analysis Solutions
Hi Chris: On Tue, Jul 16, 2002 at 04:59:33AM +0200, Chris Knipe wrote: How can I manage to sort $DomainMX from the lowest $Weight to the highest, while still preserving the proper $Weight to the $DomainMX? While I don't have experience with that function, have you taken a look at the

Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 22:43, César Aracena wrote: I think that the best way you can achieve this, considering all the troubles and different configurations you will have to make for each user, is to make them choose the type of connection they want, and set a cookie in the visitor's browser

RE: [PHP] Problem with implode() function

2002-07-16 Thread Balaji Ankem
Hi Jason, How to make $array look like 'PTX526_P_1','SIM_1' or PTX526_P_1,SIM_1. Thanks and Regards Balaji -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 8:22 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem with implode() function

[PHP] web-based frontend to Majordomo archives?

2002-07-16 Thread jaxon
hi, does anyone know of a yahoo-groups style web-based front end to Majorodomo using PHP? cheers, jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Formmail replacement?

2002-07-16 Thread Tim Luoma
JJ Harrison wrote: Does anyone know a good PHP-based Formmail Replacement(From matt's script archive)? http://www.google.com/search?q=Formmail+php gave http://www.lumbroso.com/scripts/formmail.php as one of the top results -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
To add to the below, object classes, can have their own set of functions, called methods. These methods are specific to the function, and ALL functions within a class treat any properties (variables) within the class as global. So if you have a class Car with two properties (Make and Model),

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
It helps a little bit, thank you. Could you provide some code as to what a Class looks like. I am just trying to understand it better and if I see it, it might help. Jay Blanchard [EMAIL PROTECTED] wrote in message

[PHP] Fopen errors out when opening a URL

2002-07-16 Thread Conover, Ryan
I am trying to do a simple fopen(http://www.weather.com/index.html;, r); For some reason I cannot Open any URL's after trying several. I get the following error Warning: stat failed for Resource id #1 (errno=2 - No such file or directory) I checked my php.ini to make sure I set the fopen

[PHP] Re: Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Tim Luoma
César Aracena wrote: I think that the best way you can achieve this, considering all the troubles and different configurations you will have to make for each user, is to make them choose the type of connection they want, and set a cookie in the visitor's browser with a one year life time

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Jay Blanchard
[snip] example? [/snip] http://www.devshed.com/Server_Side/PHP/FormValidatorClass/page1.html Good tutorial Jay * * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/* * No developer is an island

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
Here is a sample code (don't take this as gospel... Jay knows more about OOP than I do, I'm sure!): class Car { var $make; var $model; function setMake($x) { $this-make = $x; } function setModel($y) { $this-model = $y; } } $make and $model are the

[PHP] no-cache konqueror/opera

2002-07-16 Thread Bas Jobsen
Hello, How do i make a page which isn't cached for konqueror/opera browers? Now i have: $now = gmdate('D, d M Y H:i:s') . ' GMT'; header('Expires: ' . $now); header('Last-Modified: ' . $now); header('Cache-Control: no-store, no-cache, must-revalidate,pre-check=0, post-check=0, max-age=0');

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
This helps quite a bit Thank you. I am just wondering if I should make classes instead of functions? What would be the benefit of that? Do you know? Martin Clifford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here is a sample code (don't take this as gospel...

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Steve Bradwell
Classes are great for code reusability, I heavily use a MySQL object or class to make all my conections to a mysql database now and I have included methods for Transactions. Its a long one but its the class I use the most and is a great example of what they are good for. ? class mysqldb {

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Jay Blanchard
[snip] This helps quite a bit Thank you. I am just wondering if I should make classes instead of functions? What would be the benefit of that? Do you know? [/snip] You should keep classes and functions seperate in your thought process, they are not the same and not meant to do or be the same

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
I'm still trying to figure that out, but the fog is clearing slowly but steadily :o) From what I've heard on this and other lists, it's all a matter of preference. Obviously those that come from an object-oriented environment (Java, etc), will lean toward this method, while others stay with

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
thanks Jay. Jay Blanchard [EMAIL PROTECTED] wrote in message 000e01c22cdd$0d0c7530$8102a8c0@niigziuo4ohhdt">news:000e01c22cdd$0d0c7530$8102a8c0@niigziuo4ohhdt... [snip] This helps quite a bit Thank you. I am just wondering if I should make classes instead of functions? What would be the

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Chris Crane
Is there an advantage to Classes vs. Functions? Jay Blanchard [EMAIL PROTECTED] wrote in message 000c01c22cdb$11485c10$8102a8c0@niigziuo4ohhdt">news:000c01c22cdb$11485c10$8102a8c0@niigziuo4ohhdt... [snip] example? [/snip] http://www.devshed.com/Server_Side/PHP/FormValidatorClass/page1.html

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Andy
so how do you install a second php version?? If you compile it (besides with what kind of flags) and then do a make and a make install the original version will be replaced, right? Jay Blanchard [EMAIL PROTECTED] schrieb im Newsbeitrag

[PHP] waiting for keyboard echo

2002-07-16 Thread David D
Hello, I m trying to make a php command line script, and I m looking for a function that can stop the script until a key is pressed. I modify some args when these are incorrect and put default values, I d like the user to be informed of that when launching the scripts. For the moment I make a

  1   2   3   >