Re: [PHP] how to force a refresh?

2003-03-12 Thread Liam Gibbs
<> There is an HTML solution, but I can't remember offhand what it is. HTML would be the only way to go, I'd say, since once the page is in the browser's hands, PHP can't do anything about it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Threading objects

2003-03-12 Thread Ernest E Vogelsinger
At 23:23 12.03.2003, Kris said: [snip] >Is it possible to some how thread a php script threw apache. There has to be >something you can do, it seems there is always something you can do :) >What I want is the following. >I administer a mailing list that has a

Re: [PHP] Hacker problem

2003-03-12 Thread Mirek Novak
CPT John W. Holmes wrote: This is no good unless you're saving the value server side somewhere. With this method, I can still post to your page from anywhere, so long as I set the two variables the same. Who cares if the data came from your page, just validate it! No matter what you do, it can be

[PHP] how to force a refresh?

2003-03-12 Thread christian calloway
Ok, well I have a form that uploads images, but of course the problem is, is that IE caches the uploaded images. The only way to clear the cache is to refresh, but that isn't a very user friendly approach. I've tried the following header tags: Header("Pragma: no-cache"); Header("Expires: Mon, 26 J

[PHP] install php

2003-03-12 Thread sonjaya
dear milist i want' instal php with mysql , itry like this : #./configure --with-mysql --with- apache=../apache_1.3.14 --enable-track- var and get error message like this : #ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /usr/local/src/php- 4.3.1/ext/mysql/libmysql/my_tempnam.c:1 03

[PHP] array_sum help

2003-03-12 Thread Beauford.2002
Hi, I have a mysql database in which some values are loaded into an array - the problem is that some fields may contain zeros. The problem is the following. If there happens to be zeros in certain column's (which there will be from time to time) then I get this error. How do I get around this? Fun

[PHP] setup connection to sybase

2003-03-12 Thread P Lok
Cannot setup connection to remote Sybase db. Using Apache 1.3.x + PHP 4.x on Windows 2000 server. Remote Sybase db on Windows 2000 server. PHP manual says Servername in sybase_connect() defines in 'interfaces' file. What are they? Where are they? rgds -- PHP General Mailing List (http://www.

Re: [PHP] PHP Manual w/ Comments?

2003-03-12 Thread - Edwin
Hello, John Nichel <[EMAIL PROTECTED]> wrote: > Wasn't the php manual with user comments available for download > at one time? Is it still there and I'm just not seeing it? If > it was never there, can I suggest that as an option for the > manual download from you good people at PHP? Damn,

[PHP] authorization

2003-03-12 Thread [EMAIL PROTECTED]
Hello, I'm wonding if someone can please assist me with the following addition I would like to make to a music artists site using PHP. The site has a mailing list, guestbook, & videos - when the user goes to access the guestbook and videos, I want to be able to check if they're signed-up to the m

[PHP] sessions garbadge

2003-03-12 Thread Shaun van den Berg
Hi, My gc_maxlifetime = 3600 (1 hour) and my probability = 100 , just for testing . When i create a session on my site and i dont log out , the session var will still remain on the server , ok , after an hour (not exactly an hour) , when i surf the site , the collector destroys that var on the ser

Re: [PHP] Cannot execute... Cron jobs

2003-03-12 Thread Paul Chvostek
Scott Holmes wrote: > I'd just like to interject here that I execute php code from cron and > I do not have php compiled as a cgi. I use lynx. Here is a sample of > what I'm doing to e-mail a weekly newsletter to a membership database: > > #!/bin/sh > LYNX_TEMP_SPACE=/tmp > TMPDIR=/tmp > TERM=v

[PHP] q

2003-03-12 Thread pl
q -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot execute... Cron jobs

2003-03-12 Thread Leif K-Brooks
It or wget are almost always installed. Richard Sumilang wrote: Yeah and that should take up more resources also because now you have to go through your web server to execute the code. That's very interesting to know however. Where can I pick up a copy of Lynx? On Wednesday, March 12, 2003, at

Re: [PHP] Cannot execute... Cron jobs

2003-03-12 Thread Leif K-Brooks
You can do that, but it's much less secure. Scott Holmes wrote: I'd just like to interject here that I execute php code from cron and I do not have php compiled as a cgi. I use lynx. Here is a sample of what I'm doing to e-mail a weekly newsletter to a membership database: #!/bin/sh LYNX_TEM

[PHP] Cannot execute... Cron jobs

2003-03-12 Thread Scott Holmes
I'd just like to interject here that I execute php code from cron and I do not have php compiled as a cgi. I use lynx. Here is a sample of what I'm doing to e-mail a weekly newsletter to a membership database: #!/bin/sh LYNX_TEMP_SPACE=/tmp TMPDIR=/tmp TERM=vt100 lynx -dump http://localhost/WF

Re: [PHP] Cannot execute php applications. Problems with required library mysql.so

2003-03-12 Thread Richard Sumilang
Well for starters, you shouldn't be running a repetitive process from the web each time, thats why they have cron jobs. In order to have cron jobs execute php code as an executable, you must make sure you have php compiled as a cgi. It seems on your error message also that you don't have php compil

[PHP] what is session_name?

2003-03-12 Thread Joseph Bannon
I read the description on php.net, but what is session_name really used for? Thanks, Joe. __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] dynamic/multidimensional arrays in classes

2003-03-12 Thread Patrick Teague
Thanks, that solved the problem :) I am however now having another problem inside 1 of the class functions function return_statement() { $state = $this->statement; print_r( $this->statement ); while( list($item,$arr) = each($this->statement) ) { print "Hello"; } /*

[PHP] Cannot execute php applications. Problems with required library mysql.so

2003-03-12 Thread Mathieu Dumoulin
Got this problem here. I have a script i wish to run from a crontab every 2 minutes (Compiles live stats for a hockey site). This script doesn't run at all in shell mode as an application but works perfectly fine when called from the web. Problem is i can't integrate it in the web site like when

[PHP] Script that writes e-mail (continued again!)

2003-03-12 Thread Julie Williams
Another problem I just noticed is that if only one of the Parts items is filled out, the script "freezes". In other words, for the script to work, all the Part items need to be filled out. Can you tell I'm really a newbie at this? :-) Of course, my husband can't figure this out either, and he su

[PHP] Script that writes e-mail (continued)

2003-03-12 Thread Julie Williams
Hi again, Thank you, Chris, for your help. We modified the script as per your suggestions and modified a few other things, so that finally, the script does what it is supposed to do. However, there is another problem now, that happens in the e-mail itself. An exclamation mark appears in the

Re: [PHP] changing the brightness of an images

2003-03-12 Thread Tom Rogers
Hi, Thursday, March 13, 2003, 8:09:45 AM, you wrote: DH> Hi, DH> I hope this is the right newsgroup for this so if it is not, please, DH> excuse me. DH> I would like to be able to change the brightness of an image using PHP. DH> Here are some more detiails: I would like t

[PHP] Re: string validating

2003-03-12 Thread Brad Esclavon
trim($a_string); // removes all newline, carriage returns, and formating $in_str_var_name=str_replace("search_for", "replace_with", $in_str_var_name); replaces any strings or chars also- check out php.net documentation on string-- many other useful functions for string manipulation -- PHP

[PHP] string validation functions

2003-03-12 Thread Brad Esclavon
trim($a_string); // removes all newline, carriage returns, and formating $in_str_var_name=str_replace("search_for", "replace_with", $in_str_var_name); replaces any strings or chars also- check out php.net documentation on string-- many other useful functions for string manipulation -- PHP G

RE: [PHP] Hacker problem

2003-03-12 Thread John W. Holmes
Damn... you're right. I missed that key word "image". Sorry. But... and there's always a but, there are text recognition programs out there that'll read the text off of the image. So, usually the recommendation is to use varying font sizes and a textured background, so they will hopefully fail. Yo

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-12 Thread John W. Holmes
> > preg_match ( "/[A-Za-z-']+/", $_POST['Last_Name'] ); > > > > [EMAIL PROTECTED] wrote: > > > I have been trying to validate a form field Last_Name and have been > unable > > > to find a regexp to account for the apostrophe (e.g., O'Reilly). The > > > following statement: > > > > > > preg_match('

RE: [PHP] php errors while displaying database fields

2003-03-12 Thread John W. Holmes
> I have searched the archives, and have found nothing on these errors > I am getting. Here is the apache error logs capture: > > > > PHP Notice: Undefined index: REMOTE_ADDR in > /home/www/customflagcompany/phpshop/modules/admin/lib/ps_session.inc on > line 39 What don't you understand?

Re: [PHP] Update Status Question

2003-03-12 Thread Tom Rogers
Hi, Thursday, March 13, 2003, 6:10:29 AM, you wrote: MW> Hello: MW> I have this line: MW> $sql = "Update Members Set Active='Y' where Username = '$_GET[UN]' And MW> ActiveCode = '$_GET[ID]'"; MW> Is there a php function that will return true or false or something when MW> this is processed. I.E

RE: [PHP] Random String Generation

2003-03-12 Thread John W. Holmes
> What I am trying to do is to create a email verification routine with PHP. > When people register on the site they will get an email sent to them with > a > link such as http://mysite.com/activation.php?ID=ghjghjg367ghjlkj9hjlkjhn0 > > That way when they click on the link it will verify the code

RE: [PHP] Follow-up to Hacker problem

2003-03-12 Thread John W. Holmes
> Your tips were nice, guys, thanks a lot. I tried a few things and i > decided to go for making all the checks server side, cant go safer than > that. > Just have a doubt on one of the checks, at least so far. > I have a check for long words, because the shoutbox is in a IFRAME,

Re: [PHP] Image resize

2003-03-12 Thread Michael P. Carel
thanks its working fine now. - Original Message - From: "Hugh Danaher" <[EMAIL PROTECTED]> To: "Michael P. Carel" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 13, 2003 9:09 AM Subject: Re: [PHP] Image resize > if your system suports the commands, try imagecreatetrueco

RE: [PHP] string validating

2003-03-12 Thread John W. Holmes
> im reading in a string from a database, this string will become a file > name. > so i need to strip everything BUT lowercase a-z and 0-9. well im > strtolower > so i dont need to worry about upper case. blank spaces get replaced with _ $filename = preg_replace("/[^a-z0-9]/","_",$data); Replace

Re: [PHP] Image resize

2003-03-12 Thread Hugh Danaher
if your system suports the commands, try imagecreatetruecolor() instead of imagecreate(), and imagecopyresampled() instead of imagecopyresized(), hope this helps, Hugh - Original Message - From: "Michael P. Carel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003

[PHP] string validating

2003-03-12 Thread Martin Dziura
hi, im sort of new to php, and i have the following question. im reading in a string from a database, this string will become a file name. so i need to strip everything BUT lowercase a-z and 0-9. well im strtolower so i dont need to worry about upper case. blank spaces get replaced with _ i wa

[PHP] mysql.so

2003-03-12 Thread Mathieu Dumoulin
Got this problem here. I have a script i wish to run from a crontab every 2 minutes (Compiles live stats for a hockey site). This script doesn't run at all in shell mode as an application but works perfectly fine when called from the web. Problem is i can't integrate it in the web site like when

Re: [PHP] Re: Your script possibly relies on a sessionside-effect which existed until PHP 4.2.3

2003-03-12 Thread Justin French
on 13/03/03 11:23 AM, chris ([EMAIL PROTECTED]) wrote: > Now, if any other geniouses would like to help me (or any other frustrated > 4.3.1 users) figure out a solution for this vague error message, don't > follow Justin's very unhelpful footsteps. Well I'll certainly never make the mistake of at

Re: [PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-12 Thread chris
On Thu, 13 Mar 2003 10:35:29 +1100, Justin French <[EMAIL PROTECTED]> wrote: My *GUESS* is that you're using: session_register('var') session_unregister('var2') rather than $_SESSION['var'] = 'something'; unset($_SESSION['var2']); Either that, or you're referring to session vars as $var instead

[PHP] Image resize

2003-03-12 Thread Michael P. Carel
hi to all, I have a problem here in image resizing, after the image has been resized , the image has been discolorized. How can i recreate the image with the same resolution and color properties. Here's the sample code from my class file: $origPic = ImageCreateFromJpeg( $this -> iOrig[ 'tmp_na

[PHP] Re: passing arrays to a session-variable

2003-03-12 Thread Dave Myron
> // method 1 > $_SESSION['array1'] = array("item1", "item2"); > > // method 2 > session_register("array2"); > $array2 = array("itemA", "itemB"); > > header ("Content-type: text/html"); > > echo $array1[0]. ""; > echo $array2[0]; > ?> > Well, you're not assigning anything to $array1 (assuming

Re: [PHP] Re: Your script possibly relies on a sessionside-effect which existed until PHP 4.2.3

2003-03-12 Thread Justin French
My *GUESS* is that you're using: session_register('var') session_unregister('var2') rather than $_SESSION['var'] = 'something'; unset($_SESSION['var2']); Either that, or you're referring to session vars as $var instead of $_SESSION['var'] Give that a go and see what happens. Justin on 13/

[PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-12 Thread Dave Myron
> Warning: Unknown(): Your script possibly relies on a session side-effect > which existed until PHP 4.2.3. Please be advised that the session extension > does not consider global variables as a source of data, unless > register_globals is enabled. You can disable this functionality and this >

[PHP] Follow-up to Hacker problem

2003-03-12 Thread Pag
Your tips were nice, guys, thanks a lot. I tried a few things and i decided to go for making all the checks server side, cant go safer than that. Just have a doubt on one of the checks, at least so far. I have a check for long words, because the shoutbox is in a IFRAME, so if someone posted a

Re: [PHP] changing the brightness of an images

2003-03-12 Thread Pete James
Although I don't know how to do this myself, one of the places I've seen it done is in JpGraph (www.aditus.nu). The function that does it is AdjBackgroundImage($bright, $contrast, $saturation) in jpgraph.php. You could try taking a look at the source? Pete. Dimitar Haralanov wrote: > >

[PHP] Re: [RegExp] extracting anchors

2003-03-12 Thread Jome
Jens Lehmann wrote: > Hello, > > I want to extract the "name"-attribute of all anchors out of an > HTML-source-code which don't have the "href"-attribute. I can use this > code to get the "name"-attribute: > > preg_match_all('/]*?)name=[ \'\"](.*?)[ > \'\"](.*?)>/is',$src,$ar); > > The name-attribu

Re: [PHP] Random String Generation

2003-03-12 Thread Justin French
on 13/03/03 5:49 AM, Mike Walth ([EMAIL PROTECTED]) wrote: > Hello: > > What I am trying to do is to create a email verification routine with PHP. > When people register on the site they will get an email sent to them with a > link such as http://mysite.com/activation.php?ID=ghjghjg367ghjlkj9hjlk

Re: [PHP] Threading objects

2003-03-12 Thread Rasmus Lerdorf
So your problem has nothing to do with threading. What you need an an asynchronous way to connect to multiple sockets and deal with responses as they become available. See php.net/socket_select -Rasmus On Thu, 13 Mar 2003, Kris wrote: > Is it possible to some how thread a php script threw ap

Re: [PHP] Force refresh of graphic - how?

2003-03-12 Thread Justin French
It's caching an image based on it's URL, so clearly, the browser is not looking for another pic if the URL is the same, based on the settings you have for caching in your browser. Other people's results will vary. The no cache headers on the images SHOULD help, as would no cache headers on the ca

[PHP] php errors while displaying database fields

2003-03-12 Thread Boulytchev, Vasiliy
Ladies and Gents, I have searched the archives, and have found nothing on these errors I am getting. Here is the apache error logs capture: PHP Notice: Undefined index: REMOTE_ADDR in /home/www/customflagcompany/phpshop/modules/admin/lib/ps_session.inc on line 39 PHP Notice: Undefin

Re: [PHP] Threading objects

2003-03-12 Thread Kris
Is it possible to some how thread a php script threw apache. There has to be something you can do, it seems there is always something you can do :) What I want is the following. I administer a mailing list that has a few hundred thousand subscribed recipients. I've written a script that runs threw

Re: [PHP] Form Validation: Surnames with Apostrophe

2003-03-12 Thread tpc
that could work but the user may now submit one or more apostrophes as the Last Name. On Wed, 12 Mar 2003, John Nichel wrote: > Try > > preg_match ( "/[A-Za-z-']+/", $_POST['Last_Name'] ); > > [EMAIL PROTECTED] wrote: > > I have been trying to validate a form field Last_Name and have been un

Re: [PHP] Does comments slow down processing a lot

2003-03-12 Thread Justin French
It's a balance between commenting the code enough to be able to develop and re-develop the conde without much grief. As I move through from being a newbie to somebody who spends 80% of their day working with PHP, I've discovered that a LOT of what I used to comment was just pointless, because a qu

[PHP] changing the brightness of an images

2003-03-12 Thread Dimitar Haralanov
Hi, I hope this is the right newsgroup for this so if it is not, please, excuse me. I would like to be able to change the brightness of an image using PHP. Here are some more detiails: I would like to load a jpeg file from a webpage, change the brightness of the image, and

Re: [PHP] Hacker problem

2003-03-12 Thread CPT John W. Holmes
> If you are really that strict about it coming from you site, have your form > page create an image with five letter of number on it - like 4Y6O7. Have it > create a new one each time. Then use crypt to encrypt it and put the > encrypted one into a form value, have the person that is submitting th

[PHP] open_basedir not expanding properly into subdirectories

2003-03-12 Thread SLanger
Hello Everyone I'm running PHP 4.1.2 (no I can't upgrade at the moment) and I'm running into a problem with open_basedir. The way I understand the open_basedir directive it allows only file access to the directory mentioned and its subdirectories. In my setting I have a directory setting in th

RE: [PHP] Hacker problem

2003-03-12 Thread Dennis Cole
If you are really that strict about it coming from you site, have your form page create an image with five letter of number on it - like 4Y6O7. Have it create a new one each time. Then use crypt to encrypt it and put the encrypted one into a form value, have the person that is submitting the form t

Re: [PHP] open_basedir

2003-03-12 Thread Rasmus Lerdorf
On Wed, 12 Mar 2003, Alex wrote: > the php.ini file is also not user configurable. > I think i found the place in my own php.ini file though where the > open_basedir value would be changed though :/ Right, by design, open_basedir can only be changed by the administrator by modifying either the ph

Re: [PHP] open_basedir

2003-03-12 Thread Alex
the php.ini file is also not user configurable. I think i found the place in my own php.ini file though where the open_basedir value would be changed though :/ "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > My host currently has open_basedir() enabled, and unfortu

[PHP] [RegExp] extracting anchors

2003-03-12 Thread Jens Lehmann
Hello, I want to extract the "name"-attribute of all anchors out of an HTML-source-code which don't have the "href"-attribute. I can use this code to get the "name"-attribute: preg_match_all('/]*?)name=[ \'\"](.*?)[ \'\"](.*?)>/is',$src,$ar); The name-attributes are now in $ar[2]. How can I ex

Re: [PHP] open_basedir

2003-03-12 Thread Rasmus Lerdorf
> My host currently has open_basedir() enabled, and unfortunately, they don't > know how to disable it :p > > I'd like open_basedir() disabled because it would make my life easier, I can > hide certain files underneath the web root. > > So I've done some quick research. I'm looking at the ini_set

Re: [PHP] Char check

2003-03-12 Thread Pete James
Try is_numeric()? Boaz Yahav wrote: > > Maybe this can help > > Check int / integer - checking if a variable is an integer or not. The > php is_int() function does not check if the string value is integer or > not. > http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1705 > > How to

Re: [PHP] Form Validation: Surnames with Apostrophe

2003-03-12 Thread John Nichel
Try preg_match ( "/[A-Za-z-']+/", $_POST['Last_Name'] ); [EMAIL PROTECTED] wrote: I have been trying to validate a form field Last_Name and have been unable to find a regexp to account for the apostrophe (e.g., O'Reilly). The following statement: preg_match('/^[[:alpha:]]+[-]?[[:alpha:]]+$/',

[PHP] open_basedir

2003-03-12 Thread Alex
My host currently has open_basedir() enabled, and unfortunately, they don't know how to disable it :p I'd like open_basedir() disabled because it would make my life easier, I can hide certain files underneath the web root. So I've done some quick research. I'm looking at the ini_set() function: h

Re: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
That was it. Thanks. On Thursday, March 13, 2003, at 07:13 AM, Michael Roger C. Bianan wrote: Hi, It's a logical error in your IF stmt. --- if ($num = 0) { echo "There are no matches for your search. Please try again."; } else { --

[PHP] Form Validation: Surnames with Apostrophe

2003-03-12 Thread tpc
I have been trying to validate a form field Last_Name and have been unable to find a regexp to account for the apostrophe (e.g., O'Reilly). The following statement: preg_match('/^[[:alpha:]]+[-]?[[:alpha:]]+$/', $_POST[Last_Name]) accepts hyphenated surnames and I have tried escaping the apostro

RE: [PHP] Char check

2003-03-12 Thread Boaz Yahav
Maybe this can help Check int / integer - checking if a variable is an integer or not. The php is_int() function does not check if the string value is integer or not. http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1705 How to check if a string has only specific characters? http:/

[PHP] Re: google, php-created pages and link farm exclusion

2003-03-12 Thread Philip Hallstrom
If you're using apache you could look into the PATH_INFO aspects... basically converting URLS like: domain.com/path/to/page.php?id=3 to domain.com/path/to/page.php/id=3 then using PATH_INFO and substr() and parse_str() to get to $id = 3.. and you can always add more stuff so it looks like plai

RE: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Michael Roger C. Bianan
Hi, It's a logical error in your IF stmt. --- if ($num = 0) { echo "There are no matches for your search. Please try again."; } else { --- that should have been if ($num == 0) . Notice the two = (==). Thanks, Miches:)

Re: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
Ok. I have it changed, but I have something wrong here, because when I there result is 0, it doesn't print out the message that I want. If I have it print out the result, it says 0. It has to be something simple, but I can't see what is wrong. if ($num = 0) { echo "There are no matches f

Re: [PHP] Re: how to uploads files

2003-03-12 Thread Luis A
hi again any y one here can tellme when a have to set the file when i have to upload ??? "; if (move_uploaded_file($uploadfile, $uploaddir)) { print "File is valid, and was successfully uploaded. Here's some more debugging info:\n"; print_r($_FILES); } else { print "Possible file upload

[PHP] Re: HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
Vincent M. wrote: Vincent M. wrote: Hello, I don't understand this code empty my HTTP_POST_VARS variable: if ((get_magic_quotes_gpc() == 1)) { switch ($REQUEST_METHOD) { case "POST": while (list ($key, $val) = each ($HTTP_POST_VARS)) { $$key = stripslashes($val); } break;

Re: [PHP] Creating an Array from a Multi-line string (Help appreciated)

2003-03-12 Thread Bix
Much appreciated! Will give it a try. Thanks ;o) "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 21:10 12.03.2003, Bix said: > [snip] > >I am creating an interface page with a multi line text box which will > >reciev

Re: [PHP] Creating an Array from a Multi-line string (Help appreciated)

2003-03-12 Thread Ernest E Vogelsinger
At 21:10 12.03.2003, Bix said: [snip] >I am creating an interface page with a multi line text box which will >recieve a list of phone numbers on individual lines, so: > >12345 >12345 >12345 >and so on... > >I need to carry out an operation on each of these nu

[PHP] Creating an Array from a Multi-line string (Help appreciated)

2003-03-12 Thread Bix
Hiya, ( first time poster, long time user ;o) ) I am creating an interface page with a multi line text box which will recieve a list of phone numbers on individual lines, so: 12345 12345 12345 and so on... I need to carry out an operation on each of these numbers (add them to a mysql db, but tha

[PHP] Update Status Question

2003-03-12 Thread Mike Walth
Hello: I have this line: $sql = "Update Members Set Active='Y' where Username = '$_GET[UN]' And ActiveCode = '$_GET[ID]'"; Is there a php function that will return true or false or something when this is processed. I.E. if the Where clause fails it would report back fail? Or do I first need to

Re: [PHP] PHP Manual w/ Comments?

2003-03-12 Thread bbonkosk
I would say the dynamic nature of this guide requires it to be online, unless you want to make some sort of "update" feature. Otherwise you would only be downloading a snapshot. And then comes into play creating and maintaing all the various "snapshots" of this ever changing document. IMHO, I

[PHP] Hello, php is awsome.

2003-03-12 Thread Tim Hoffmeyer
Hello everyone. This is kinda off topic but im new. Not to php the list. Im going to post some of my php in here for the fun of it. Incase anyone needs some cool php or anything. Thankyou. -- - Tim Hoffmeyer - Zizzo.biz __ Tr

[PHP] PHP Manual w/ Comments?

2003-03-12 Thread John Nichel
Wasn't the php manual with user comments available for download at one time? Is it still there and I'm just not seeing it? If it was never there, can I suggest that as an option for the manual download from you good people at PHP? Damn, I'm just full of questions. -- PHP General Mailing List

[PHP] Re: Multiple values per variable

2003-03-12 Thread Jan Grafström
user1 abc $user1_array=array(); array_push($user1_array, "a","b","c"); //check user_array $cat=""; for ($i=0;$i skrev i meddelandet news:[EMAIL PROTECTED] > I am working on some logic where users are categorized based on the results > from a few questions. So far everything is working properly,

RE: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Michael Roger C. Bianan
Mike, Use mysql_num_rows($db_query) ; - returns no of rows in the result set. - if none, returns 0. Thanks, Miches -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:17 AM To: php mailing list list Subject: [PHP] Check to see if mysql_fet

Re: [PHP] Random String Generation

2003-03-12 Thread Ernest E Vogelsinger
At 19:56 12.03.2003, you said: [snip] >On Thursday 13 March 2003 02:49, Mike Walth wrote: > >You have started a new thread by taking an existing posting and replying to >it while you changed the subject. > >...etc... [snip]

Re: [PHP] session id generation

2003-03-12 Thread Ernest E Vogelsinger
At 19:50 12.03.2003, Mathieu Dumoulin spoke out and said: [snip] >Hi, i'd like to know how PHP determines what session_id to hand out to >users. > >Is it based on some real value like the browser and the ip address? an >incremental number? I want to make sure

[PHP] Re: Force refresh of graphic - how?

2003-03-12 Thread Joseph Szobody
Mark, Why not call the makepic.php image, passing in an URL parameter that is always different. This makes the browser think you are always calling a different image, and won't cache it. Joseph "Mark Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a PHP page whic

[PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
How can I check to see if a mysql_fetch_array is empty. I have a search page, and want to have it so that when there are no matches, it returns a message saying that there were no matches, and if there are, then display them. Here is what I have so far to give you an idea as to what I am tr

Re: [PHP] Pagination Part 2

2003-03-12 Thread Jonathan Pitcher
You are mixing and matching your If statements. if () else AND if () { } else { } Be consistent. It looks like if you close the { tags your code should work ok.} Hope this helps, Jonathan Pitcher On Wednesday, March 12, 2003, at 01:11 PM, conbud wrote: Hi, Ive been trying to get this

[PHP] Re:to Jon Haworth [PHP] how to uploads files

2003-03-12 Thread Luis A
thanks but i dont hav e internet accesss :0 :) - Original Message - From: "Jon Haworth" <[EMAIL PROTECTED]> To: "'Luis A'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 1:32 PM Subject: RE: [PHP] how to uploads files > Hi Luis, > > > how can i uploads files to

[PHP] Pagination Part 2

2003-03-12 Thread conbud
Hi, Ive been trying to get this to work but I keep getting this error Parse error: parse error, unexpected $ in /home/conbud/nrlug/test3.php on line 72 line 72 is just the ending php bracket, heres what I got: @mysql_connect(localhost, root, boing_boing) or die("ERROR--CAN'T CONNECT TO S

Re: [PHP] Random String Generation

2003-03-12 Thread Pete James
The method I use is to take their user_id or email and create an HMAC (hashed message authentication code) by hashing it with a secret key on my end. This way the activation link looks like the following: http://mysite.com/activation.php?user_id=petej&ID=ghjghjg367ghjlkj9hjlkj THe activation scr

Re: [PHP] Random String Generation

2003-03-12 Thread Jonathan Pitcher
Mike, This is can be simple or complex depending on how complex you get. Here is an example that should work. function getRandString() { $NumOfElements = 5; // Chooses that number of elements from the Element Array $ElementArray = array(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z);

[PHP] Re: how to uploads files

2003-03-12 Thread Martin Mandl
try the following ... http://www.faqts.com/knowledge_base/index.phtml/fid/62 Luis A wrote: hi every one :) how can i uploads files to my server by php script ? any hand on that i realy apreciate Thanks __ Luis Atala Profetional

[PHP] Re: HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
Vincent M. wrote: Hello, I don't understand this code empty my HTTP_POST_VARS variable: if ((get_magic_quotes_gpc() == 1)) { switch ($REQUEST_METHOD) { case "POST": while (list ($key, $val) = each ($HTTP_POST_VARS)) { $$key = stripslashes($val); } break; case "GET": whi

Re: [PHP] PDF - PHP (on the fly using templates??)

2003-03-12 Thread Martin Mandl
it's not possible (at the moment) to manipulate existing pdf-files with fpdf. Rives Sergio Sofrecom wrote: maybe the link didn't work... www.fpdf.org sorry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] image upload question

2003-03-12 Thread Tyler Durdin
Nothing really. I did happen across a couple of tutorials from phpbuilder.com    http://www.phpbuilder.com/columns/michael20020712.php3?print_mode=1 and    http://www.phpbuilder.com/columns/bealers2904.php3?page=3&print_mode=1 may be able to piece something together from these two articles. l

RE: [PHP] Re: really simple problem with GET

2003-03-12 Thread Poon, Kelvin (Infomart)
Yeah it worked... thanks everyone! -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: really simple problem with GET Try ...test.php?test=0 //no $ before test= /Jan "Kelvin Poon" <[EMAIL PRO

[PHP] Re: really simple problem with GET

2003-03-12 Thread Jan Grafström
Try ...test.php?test=0 //no $ before test= /Jan "Kelvin Poon" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] .ca... > Hi, > > I am sorry if the level of this question is too simple but I can't figure > out what's wrong. I want to pass a variable value through the URL using the >

RE: [PHP] Long script execution and its implications?

2003-03-12 Thread Mark Cubitt
a copy of the code you are using might help for suggestions, and you say each line has upto 5 seprate querys on your db, are you using seprate tables to hold that data? > -Original Message- > From: Simon Lusted [mailto:[EMAIL PROTECTED] > Sent: 12 March 2003 14:57 > To: [EMAIL PROTECTED]

[PHP] sorting problem...

2003-03-12 Thread guslist
Hi All, I need to sort some data from a MySQL table. I have data saved like this: ++-++--+ | id | unixtime| porta_snmp | porta_switch | ++-++--+ | 1 | 2003-01-07 12:23:24 | 1614 | 1

Re: [PHP] Random String Generation

2003-03-12 Thread Jason Wong
On Thursday 13 March 2003 02:49, Mike Walth wrote: You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a "References:" header that tells

[PHP] Random String Generation

2003-03-12 Thread Mike Walth
Hello: What I am trying to do is to create a email verification routine with PHP. When people register on the site they will get an email sent to them with a link such as http://mysite.com/activation.php?ID=ghjghjg367ghjlkj9hjlkjhn0 That way when they click on the link it will verify the code aga

[PHP] session id generation

2003-03-12 Thread Mathieu Dumoulin
Hi, i'd like to know how PHP determines what session_id to hand out to users. Is it based on some real value like the browser and the ip address? an incremental number? I want to make sure that it doesnt provide two same session id for the different users at the same time. thanks MAthieu Dumouli

[PHP] Re: PHP Books

2003-03-12 Thread David Eisenhart
I've invested quite heavily in php books, the 2 most useful by a long way are: 1) Programming PHP, O'Reilly, Rasmus Lerdorf & Kevin Tatroe - a truly superb book; its concise, well written and just seems to hit the mark. A must for any aspiring php programmer! 2) PHP Functions, Essential Reference,

  1   2   3   >