Re: [PHP] Whimper, help :)

2002-12-04 Thread Hugh Danaher
why '.$table.' and not '.$table.' with what you've got now, I believe you are looking for .table name. instead of table name and if your table name is only one word, a good practice I'm told, ditch the ' and marks entirely and just

Re: [PHP] Whimper, help :)

2002-12-04 Thread Bastian Vogt
Hi, could you get the error message with mysql_error() and post it here? Bye, Bastian John Taylor-Johnston schrieb: http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bready+maria%26quot%3B http://ccl.flsh.usherb.ca/print/index.html?search=%26quot%3Bready+maria%26quot%3B I blame

[PHP] fopen over a network

2002-12-04 Thread Dara Dowd
Hello, I'd like a user to be able download a file from a file server on my LAN. Using a href=file://server/directory/filename works ok, but this simply displays the file in the browser and I want to force the download dialog box to appear. So now i have a href=download.php?file=filename, and

Re: [PHP] fopen over a network

2002-12-04 Thread Jason Wong
On Wednesday 04 December 2002 16:21, Dara Dowd wrote: Hello, I'd like a user to be able download a file from a file server on my LAN. Using a href=file://server/directory/filename works ok, but this simply displays the file in the browser and I want to force the download dialog box to

Re: [PHP] Whimper, help :)

2002-12-04 Thread Ernest E Vogelsinger
At 07:28 04.12.2002, John Taylor-Johnston said: [snip] Doesn't work - Resembles +ready +maria [snip] hmm - how do you get your string ready maria? The '+' signs are usually encoded blanks in a search argument. --

[PHP] Re: XTemplate

2002-12-04 Thread Jeroen Olthof
http://www.millipede.nl/ectemplate very fast!! , no overhead functions, it does what it needs to do, separate your code from the html. take a look greetings, Henry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, I'm looking for a way to seperate my

[PHP] Re: Cold Fusion conversion issues: app vars and cached queries

2002-12-04 Thread John Lim
Hi Steve, Steve W [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My company is looking to move our site away from Cold Fusion due to the cost. We had talked about JSP, but I would highly prefer PHP. After evaluation, with the generic database functions now

[PHP] PHP and the C Preprocessor

2002-12-04 Thread Daniel Grace
I'm working on a system where I take a directory full of PHP files (plus some #defines, etc.), run them through the C Preprocessor (and m4 later, but that's to solve a very specific problem), and have the results go into an output directory that's web-accessible. My intent is to have one set of

Re: [PHP] My first post

2002-12-04 Thread Victor Espina
Thank you a lot! That is exactly what i was looking for. -- == Victor J. Espina S. Gerente de Desarrollo / Software Development Manager Software de Venezuela, S.A. Caracas, Venezuela Email: [EMAIL PROTECTED] Personal site:

Re: [PHP] My first post

2002-12-04 Thread Victor Espina
Thank you. I'm a VFP programmer (since 1989!) and have some time looking for a way to move to the Web world. I heard about PHP about 1 year ago, but was just a few months ago when i finally download it and started to look what is all about. And what i found was an incredible powerfull language,

Re: [PHP] fopen over a network

2002-12-04 Thread Leif K-Brooks
Link them to a page like this to download the file: ?php header(Content-type: application/octet-stream); //Code to display file ? Dara Dowd wrote: Hello, I'd like a user to be able download a file from a file server on my LAN. Using a href=file://server/directory/filename works ok, but this

Re: [PHP] Re: mcrypt 2.4.x - trouble with small data fields?

2002-12-04 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 3:39:10 PM, you wrote: Is there a minimum field size for using mcrypt? SY Boy I feel dumb now. :) My answer was in my post. Mcrypt returns a SY string that is usually longer than the original string, since the return has SY to be a multiple of the block

Re: [PHP] Howto: run local script to update remote script

2002-12-04 Thread Marek Kilimajer
You need to open http connection to the server from you local php: ?php $f=fopen('http://server/script.php?password=yoursecretstring','r'); fclose($f); ? in the script.php check the password and then $_SERVER['REMOTE_ADDR'] eriol wrote: I was wondering how I could have a local PHP (4.2.3)

Re: [PHP] [SEMI-OT] Making secure flash high scoring?

2002-12-04 Thread Marek Kilimajer
If you mean the score cannot be cheated, the answer is no. You can make only more obscure. Leif K-Brooks wrote: Sorry for the semi-ot post, but this is both a flash and php question, and I'm not a member of any flash lists, so I decided to post it here. Anyway, I have a game site with virtual

Re: [PHP] x as a multiplier

2002-12-04 Thread Stephen
This is off topic but the word for is called a quote mark. ;-) - Original Message - From: Bastian Vogt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 04, 2002 2:55 AM Subject: Re: [PHP] x as a multiplier Hi, try $newwidth. x .$newheight instead. It's important

Re: [PHP] Help with session variables

2002-12-04 Thread Stephen
Instead of register, set it up like a normal variable. Here's an examlple going by your code: Page1. session_start(); $HTTP_SESSION_VARS['step'] = 1; header(Location: page_A.php); Page A session_start(); $HTTP_SESSION_VARS['step'] = 2; header(Location: page_B.php); Page B.

RE: [PHP] Whimper, help :)

2002-12-04 Thread Keith Sauvant
Like I said, I can run the same SQL in PHPMyAdmin... Be careful when testing SQL statements containing (double)quotes in PHPMyAdmin, as I remember, it automatically masks them! Try the same statement on mysqls commandline. Good luck Keith -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP Sessions

2002-12-04 Thread Andy Kirk
Can anyone tell me if session variables should be available to scripts that are included into the main script? It appears to me that they are not unless I am really missing the point. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Whimper, help :)

2002-12-04 Thread Ford, Mike [LSS]
-Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]] Sent: 04 December 2002 06:28 http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bre ady+maria%26quot%3B http://ccl.flsh.usherb.ca/print/index.html?search=%26quot%3Bre ady+maria%26quot%3B I blame

[PHP] Re: PHP Sessions

2002-12-04 Thread Bastian Vogt
If the session is started on any other page befor and the variable is registered before, the answer should be yes. AFAIK, php treats the main script and the included ones as one script. Maybe the session_start() is missing somewhere? Regards, Bastian Andy Kirk schrieb: Can anyone tell me if

[PHP] assignment to $this inside constructor

2002-12-04 Thread Filippo Veneri
Let's begin with a small code snippet: code class A { function A( $selector ) { switch( $selector ) { case 1: $obj = new A_1(); break; case 2: $obj = new A_2(); break; ... } $this = $obj; } } class A_1 { ... } class A_2 {

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
As long as session_start() is called BEFORE the included files, I can't see why not. Justin on 05/12/02 12:11 AM, Andy Kirk ([EMAIL PROTECTED]) wrote: Can anyone tell me if session variables should be available to scripts that are included into the main script? It appears to me that they

[PHP] Re: assignment to $this inside constructor

2002-12-04 Thread Bastian Vogt
Hi, I suggest reading from page 12 of this document: http://www.zend.com/engine2/ZendEngine-2.0.pdf There's an example which matches with your technique Regards, Bastian Filippo Veneri schrieb: Let's begin with a small code snippet: code class A { function A( $selector ) {

Re: [PHP] PHP Sessions

2002-12-04 Thread Ryan Gibson
May be a silly question but are u using a global statement in the include files, just a thought on 4/12/02 1:11 pm, Andy Kirk at [EMAIL PROTECTED] wrote: Can anyone tell me if session variables should be available to scripts that are included into the main script? It appears to me that

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not work, but: function myfunc() { global $_SESSION; return $_SESSION['something']; } will... J on 05/12/02 1:14 AM, Ryan Gibson ([EMAIL

[PHP] freelancer site

2002-12-04 Thread adi
I'm looking for an open source kit php for making a freelancer site like: http://www.scriptlance.com/ The hired can bid for a job posted by employer. Anyone found one? Tx in adv for any help, I tried google, sourceforge but didn't find any kit like this.

RE: [PHP] PHP Sessions

2002-12-04 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: 04 December 2002 14:15 Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not work, but: Oh, yes it will! -- $_SESSION

[PHP] Encrypting a message

2002-12-04 Thread Rodrigo de Oliveira
Hi guys I really need to find a way diferent from the functions that come with php like mcrypt, cause my server do not use these. I would really apreciate some sort of exemple, since I'm not being able to crack the thing. Since I'm trying not to simply change the characters from one to another,

Re: [PHP] PHP Sessions

2002-12-04 Thread Marco Tabini
Are you sure? I thought $_SESSION was a superglobal. Marco On Wed, 2002-12-04 at 09:15, Justin French wrote: Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not work, but: function myfunc()

Re: [PHP] freelancer site

2002-12-04 Thread Alexander A. Savenkov
Hi adi. You whant this script for free? a I'm looking for an open source kit php for making a freelancer site like: a http://www.scriptlance.com/ a The hired can bid for a job posted by employer. a Anyone found one? a Tx in adv for any help, I tried google, sourceforge but didn't find any kit

[PHP] Re: Encrypting a message

2002-12-04 Thread Bastian Vogt
Hi, $array = ($var1, $var2, $var3, $var4); for (...) { $counter++; $counter = $counter % 4; // % is the mod- operator which returns the rest of the division $counter / 4 // here you use the variable $array[$counter] } HTH, Bastian Rodrigo De Oliveira schrieb: Hi guys

[PHP] Cant use w32API functions

2002-12-04 Thread Marcus Fazzi
I Cant use w32API functions ... my PHP is 4.3.0 RC2 over Win2K... and Apache 2.0.43... plz hlp! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Sessions

2002-12-04 Thread Daniel Masson
$_SESSION IS SUPERGLOBAL Are you sure? I thought $_SESSION was a superglobal. Marco On Wed, 2002-12-04 at 09:15, Justin French wrote: Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not

Re: [PHP] Whimper, help :)

2002-12-04 Thread 1LT John W. Holmes
[snip] As far as I can see, *none* of these produce an identical query string to your hard-coded version -- they *all* have the double-quotes around the search string missing! The double quotes are in $search, that's why. And the stripslashes is there more than likely because of

[PHP] trouble with update from php 3 to php 4.2.3

2002-12-04 Thread Omar
I updated php from version 3 to 4.2.3 on a win NT 4 server (with iss 4). Everything went ok, but the include() function. I have problems when including files. I tried to specify a directory in the php.ini file but it still didn't work. This is how i have the include line: include ('file.inc'); I

[PHP] Re: Decrypting mcrypted strings on Windows desktop

2002-12-04 Thread J Smith
Why not set up some kind of public/private key system? Each customer has a public key that you can encrypt with, send them the data and have them decrypt it with their private key. PGP would be the obvious choice, or GnuPG for that matter. J Geoff Caplan wrote: Hi folks, Bit OT but I

[PHP] PHP 2.4.3 and Apache 2.0.x

2002-12-04 Thread Vicente Valero
Hello, PHP 2.4.3 can work with Apache 2.0.x or I need Apache 1.3.x?

Re: [PHP] PHP 2.4.3 and Apache 2.0.x

2002-12-04 Thread bbonkosk
Wow, PHP Version 2, that's OLD school. If you mean 4.2.3, check out the archives for the list. I believe there has been discussion on the issue and it seems like Apache 2.0.x is really still in development at this point so it is a use at your own risk, but they whouls work, just might not be

Re: [PHP] PHP 2.4.3 and Apache 2.0.x

2002-12-04 Thread Adam Williams
If you mean PHP 4.2.3, it'll work with apache 2.0, but not that great. I'm also using PHP 4.3.0-rc2 with Apache 2.0 and its not any better. Adam On Wed, 4 Dec 2002, Vicente Valero wrote: Hello, PHP 2.4.3 can work with Apache 2.0.x or I need Apache 1.3.x? -- PHP

[PHP] PHP and Apache

2002-12-04 Thread Vicente Valero
Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache 1.3.x??

[PHP] ini function like ini_set and ini_alter

2002-12-04 Thread Franco Pozzer
Thanks for all. My end it is Apache 1.3.27 and PHP 4.3.2 in Win32 system NT 4.0. I have the php.ini auto_prepend_file like this: auto_prepend_file=C:\OPENFEDRA\Apache\htdocs\fedra\sv\cfg\ All work fine with this configuration of the php.ini. For same reason I must to do not configure php.ini

Re: [PHP] PHP and Apache

2002-12-04 Thread Adam Williams
Yes On Wed, 4 Dec 2002, Vicente Valero wrote: Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache 1.3.x?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ini function like ini_set and ini_alter

2002-12-04 Thread Jason Wong
On Thursday 05 December 2002 00:33, Franco Pozzer wrote: Thanks for all. My end it is Apache 1.3.27 and PHP 4.3.2 in Win32 system NT 4.0. I have the php.ini auto_prepend_file like this: auto_prepend_file=C:\OPENFEDRA\Apache\htdocs\fedra\sv\cfg\ All work fine with this configuration of the

[PHP] Creating dynamic names for images

2002-12-04 Thread Davíð Örn Jóhannsson
I have a situation where I allow users to upload images, and I store the names of the images in a database and the images I store in a some folder on the server, but what I would like to do is to dynamically create names for the images and dont ever have to worry about if this name exists and

Re: [PHP] Creating dynamic names for images

2002-12-04 Thread Jason Wong
On Thursday 05 December 2002 00:48, Davíð Örn Jóhannsson wrote: I have a situation where I allow users to upload images, and I store the names of the images in a database and the images I store in a some folder on the server, but what I would like to do is to dynamically create names for the

Re: [PHP] PHP and Apache

2002-12-04 Thread Marcus Fazzi
You need Apache 2.0.40 fo uses with PHP 4.2.3, for use with 2.0.43 use PHP 4.3.0 RC2 Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache 1.3.x?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Sessions

2002-12-04 Thread Stephen
All I know is $_SESSION only works if you have shortcuts on. To test this, try replacing yoru ?php ? tags with just ? ? May sound noobish but I'm lost by this whole thread... - Original Message - From: Daniel Masson [EMAIL PROTECTED] To: 'Justin French' [EMAIL PROTECTED] Cc: 'Ryan

Re[2]: [PHP] Whimper, help :)

2002-12-04 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 3:12:41 PM, you wrote: JTJ Tom, JTJ Anyone, JTJ No I'm not looking for a , I'm trying to pass double quotes into MySQL. JTJ Like I said, it works when debugging: here is a function to clean up your search string, a bit long winded but it should work :) function

[PHP] Sigh :)

2002-12-04 Thread John Taylor-Johnston
Hi, Can someone take a look at this again, please? http://news.php.net/article.php?group=php.generalarticle=126934 Your posts so far have proven fruitless. Thanks for trying. :) I do appreciate it. I will try to answer everyone at the same time. Someone mentionned it might be a problem with

[PHP] magic quotes

2002-12-04 Thread John Taylor-Johnston
What are magic quotes? Will this help me? http://news.php.net/article.php?group=php.generalarticle=126934 How is this different from stripslashes. I have RTF doc :) http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Be gentil ::p -- John Taylor-Johnston

Re: [PHP] Sigh :)

2002-12-04 Thread Ray Hunter
Which version of mysql are you using? -- Ray On Wed, 2002-12-04 at 10:33, John Taylor-Johnston wrote: Hi, Can someone take a look at this again, please? http://news.php.net/article.php?group=php.generalarticle=126934 Your posts so far have proven fruitless. Thanks for trying. :) I do

RE: [PHP] Sigh :)

2002-12-04 Thread Van Andel, Robert
One question that comes up is why are you putting the double quotes around the search string ready maria? Should there be an entry in the database that includes the double quotes. Right now that is what your sql statement is looking for. So an entry like this Are you ready maria? Would not

Re: [PHP] magic quotes

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 3:39:20 AM, you wrote: JTJ What are magic quotes? Will this help me? JTJ http://news.php.net/article.php?group=php.generalarticle=126934 JTJ How is this different from stripslashes. JTJ I have RTF doc :) JTJ

Re: [PHP] Sigh :)

2002-12-04 Thread John Taylor-Johnston
Hi, I'm searching for an exact match of ready maria. So I'm using the double quotes to demarcate the exact search, as per MySQL rules. I'm not searching for the double quotes. John Van Andel wrote: One question that comes up is why are you putting the double quotes around the search string

Re: [PHP] Sigh :)

2002-12-04 Thread John Taylor-Johnston
Ray, I admit, it is a newer function in MySQL: http://www.mysql.com/doc/en/Fulltext_Search.html Since MySQL 3.23.23. All you need is a fulltext index. I am using, however, MySQL 4.0.5-beta-max-debug, but had the same problem in previous verisons. I have just never gottent his double quotes

Re: [PHP] Creating dynamic names for images

2002-12-04 Thread Joakim Andersson
Davíð Örn Jóhannsson wrote: I have a situation where I allow users to upload images, and I store the names of the images in a database and the images I store in a some folder on the server, but what I would like to do is to dynamically create names for the images and dont ever have to worry

Re: [PHP] magic quotes

2002-12-04 Thread Philip Olson
magic_quotes_gpc is simple, it essentially runs addslashes on all GET, POST and COOKIE data. That's it. http://www.php.net/ref.info#ini.magic-quotes-gpc http://www.php.net/addslashes http://www.php.net/variables.external Not sure about your problem, maybe someone else can help. Regards,

Re: [PHP] ini function like ini_set and ini_alter

2002-12-04 Thread Philip Olson
Reread the docs here (the table): http://www.php.net/ini_set You cannot set this directive at runtime. Using .htaccess is as close as you'll get to that. I see no reason why using auto_prepend_file here would be better than include() as this is exactly what include() is for. Regards,

Re: [PHP] PHP 2.4.3 and Apache 2.0.x

2002-12-04 Thread Philip Olson
Read the docs: http://www.php.net/install.apache2.php Apache 2 is EXPERIMENTAL in PHP right now, it may or may not work. But, the following combination is known to work: PHP 4.2.3 along with Apache 2.0.39 But Apache 1.3.x is recommended and considered stable and will work with any PHP

Re: [PHP] trouble with update from php 3 to php 4.2.3

2002-12-04 Thread Philip Olson
If you want to do relative includes, you must have a . in your include_path. Maybe this is what you are meaning to do. Please reread this: http://www.php.net/configuration.directives.php#ini.include-path And if you still have problems after adjusting it and restarting the web server, tell

[PHP] Regular Expresion Work on IP address

2002-12-04 Thread Dev
Hello all, Let me first say thank you to Jason Wong and Adam Voigt for their help on my problem with Multidimensional Arrays!!! Now I am continuing on with the same script and I need to check for valid IP address form. Currently I have: $ip=255.255.255.0; if (preg_match

Re: [PHP] fopen over a network

2002-12-04 Thread Elkan
Couldn't you set the Mime-Type on the server for the correct extenstion? Leif K-Brooks wrote: Link them to a page like this to download the file: ?php header(Content-type: application/octet-stream); //Code to display file ? Dara Dowd wrote: Hello, I'd like a user to be able download a

[PHP] German [PEAR]-mailinglist arranged | webmaster@php.net out of order

2002-12-04 Thread Tobias Schlitt
Hi y'all! Ralf Geschke has set up a german-language mailinglist about PEAR. I would like it very much, if you add a link to this mailingslist on the PEAR-website. The official administration-link for subscribing/unsubscribing is: http://lists.phpcenter.de/mailman/listinfo/pear You can find a

Re: [PHP] fopen over a network

2002-12-04 Thread Philip Olson
Please reread the documentation found here: http://www.php.net/header It has a pdf file as an example, modify according to your needs. Regards, Philip On Wed, 4 Dec 2002, Elkan wrote: Couldn't you set the Mime-Type on the server for the correct extenstion? Leif K-Brooks wrote:

[PHP] Ping on Win32

2002-12-04 Thread Christopher J. Crane
I am trying to get a script to work. The basic idea is to go into a database and grab some IP addresses for my LAN. Then for each one ping it using the exec command 1 time. If it is successful print output in green and if it is not, print output in red. This is being done on a Win32 system. The

Re: [PHP] Regular Expresion Work on IP address

2002-12-04 Thread 1LT John W. Holmes
Now I am continuing on with the same script and I need to check for valid IP address form. Currently I have: $ip=255.255.255.0; if (preg_match (/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/, $ip)) { print Good Ip; } else { print Bad Ip; } This does work kinda. It checks

Re: [PHP] MySQL Server

2002-12-04 Thread Gui Guy
Thanks for the info... As it turns out, I am just a blithering idiot... I didn't know that I had to create a separate user... As I said, that shows my newbieness... Hey we don't always castrate blithering idiots here. Only those who pretend not to be one. However, this has lead me to

Re: [PHP] Regular Expresion Work on IP address

2002-12-04 Thread DL Neil
Hello Dev, Now I am continuing on with the same script and I need to check for valid IP address form. Currently I have: $ip=255.255.255.0; if (preg_match (/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/, $ip)) { print Good Ip; } else { print Bad Ip; } This does work kinda.

[PHP] Changeing user

2002-12-04 Thread Davíð Örn Jóhannsson
I need to be able to create dirs, chmod and other stuff on the server, but I get : Warning: MkDir failed (Permission denied), so Is there any way for me to do something so I can change the user I attept to execute those functions. Something like exec(change user, pass). Thanks David

Re: [PHP] Regular Expresion Work on IP address

2002-12-04 Thread DL Neil
John, I think it'd be hard to verify the range with a regex. ip2long and long2ip do not validate. So, an option would be to write your own little function that splits the $ip on the period, verifies there are 4 parts, then checks that each part is between 1 and 255 inclusive. My other post

Re: [PHP] Changeing user

2002-12-04 Thread Adam Williams
change the directory ownership to the user apache runs as, or make the dir 777. Adam On Wed, 4 Dec 2002, [iso-8859-1] Davíð Örn Jóhannsson wrote: I need to be able to create dirs, chmod and other stuff on the server, but I get : Warning: MkDir failed (Permission

[PHP] Re: Ping on Win32

2002-12-04 Thread Christopher J. Crane
This is the output I get and you can see that on the lines where the loss is 0% it still says 100% 1 - Pinging 10.200.26.1 with 32 bytes of data: 2 - Request timed out. 3 - Ping statistics for 10.200.26.1: 4 - Packets: Sent = 1, Received = 0, Lost = 1 (100% loss), 100% loss 5 - Approximate round

Re: [PHP] Regular Expresion Work on IP address

2002-12-04 Thread Dev
Well after reading John'ss and DL Neil's replys i came up with 2 functions. The first is to check to see if the entry is a valid IP address and the Next is to determine if it is a Private Network IP or not!. You can see this in action at: http://www.my-tangled-web.net/codebank/code/ip_check.php

[PHP] Re: [PEAR-DEV] German [PEAR]-mailinglist arranged | webmaster@php.net out of order

2002-12-04 Thread Markus Wolff
On Wed, 4 Dec 2002 20:08:54 +0100 Tobias Schlitt [EMAIL PROTECTED] wrote: Ralf Geschke has set up a german-language mailinglist about PEAR. I would like it very much, if you add a link to this mailingslist on the PEAR-website. Yay! Together with the new PEAR column in PHP magazine Germany

Re: [PHP] Re: Ping on Win32

2002-12-04 Thread Jason Wong
On Thursday 05 December 2002 04:08, Christopher J. Crane wrote: This is the output I get and you can see that on the lines where the loss is 0% it still says 100% if($Results2 = 100% loss) { print font Try if ($Results2 == 100% loss) -- Jason Wong - Gremlins Associates -

[PHP] Detecing a Number

2002-12-04 Thread Stephen
I have a repeating function to add. The user enters the number of how many numbers they want to add, then it repeats a form field. What I want to do is detect to make sure that the value they enter is a number. If not, don't do the do while loop and if it is, then go ahead and do it. How can I do

[PHP] Re: [PEAR-DEV] German [PEAR]-mailinglist arranged | webmaster@php.net out of order

2002-12-04 Thread Tobias Schlitt
Markus Wolff [EMAIL PROTECTED] artikulierte: Yay! Together with the new PEAR column in PHP magazine Germany will now be PEARized in no time :-) That's it! PEARize!!! BUT... I think Ralf should really turn off the admin approval for new members, or he´ll be flooded :-) I just told him!

Tom: [PHP] magic quotes

2002-12-04 Thread John Taylor-Johnston
Tom, Sorry for the delay. I have tried your code. SELECT id,AU,ST,BT,AT FROM ccl_main WHERE MATCH (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST ('ready maria ' IN BOOLEAN MODE) ORDER BY id asc Without the space, as with addslashes, MySQL won't compute the sql. This is the

Re: [PHP] Detecing a Number

2002-12-04 Thread Ray Hunter
If you are getting a number from a user via a form you can use javascript to verify that the user inputed a number... search google - validating forms that should give you some info. You could also verify that the data is a number by is_numeric or is_int... I think that when the data is POSTed

Re: [PHP] Re: Ping on Win32

2002-12-04 Thread Christopher J. Crane
Oh man...it's always the simple things you over look...thank you. Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thursday 05 December 2002 04:08, Christopher J. Crane wrote: This is the output I get and you can see that on the lines where the loss

[PHP] Looping Addition

2002-12-04 Thread Stephen
Sorry for the uncontrolable emaling to the list but I'm in rather a stump. You may be hearing a lot from me over the next few days too. Anyway, I mentioned before my form with the addition that loops to the number of numbers the user wants to add. Now to the part of the actual addition, how could

Re: [PHP] Looping Addition

2002-12-04 Thread Ray Hunter
What type is $_POST['vars']? I think that it is a string...you might have to convert it to an integer... if( is_numeric( $_POST['vars'] ) ) { $vars = (int)$_POST['vars']; } else { echo Error: \$_POST['vars'] is not an integer.; } On Wed, 2002-12-04 at 14:26, Stephen wrote:

[PHP] Re: Detecing a Number

2002-12-04 Thread Kyle Gibson
I have a repeating function to add. The user enters the number of how many numbers they want to add, then it repeats a form field. What I want to do is detect to make sure that the value they enter is a number. If not, don't do the do while loop and if it is, then go ahead and do it. How can I do

[PHP] Send PHP results in email

2002-12-04 Thread Malcolm Brownell
Hi, I have some database fields I want to select and email. I have lines like -- $result = mysql_query(SELECT * FROM adopt_main order by idform desc limit 1); while( $row = mysql_fetch_array ($result)) echo .$row[first].,; There are quite a few of these paragraphs in the

Re: [PHP] Send PHP results in email

2002-12-04 Thread Jason Wong
On Thursday 05 December 2002 05:58, Malcolm Brownell wrote: Hi, I have some database fields I want to select and email. I have lines like -- $result = mysql_query(SELECT * FROM adopt_main order by idform desc limit 1); while( $row = mysql_fetch_array ($result)) echo

[PHP] Get-type links won't complete querystring values

2002-12-04 Thread Alberto Brea
Hi everyone. I have certain links for document navigation with a query string where one of the values doesn't fill, so the links don't work. The document is a law navigated with pieces of text taken from an array, where the key is a 12-digit string. The key's first three figures identify each

[PHP] Post Variables

2002-12-04 Thread Brad Bonkoski
Hello, I am trying to make a script that looks something like: for ($i=0; $i=12; $i++) { echo select name='$i'; echo option values; } Then I am posting those to another page, and trying to get the data out for ($i=0; $i=12; $i++) { echo $_POST['$i']; } And it doesn't work. Any

Re: [PHP] Post Variables

2002-12-04 Thread Chris Shiflett
--- Brad Bonkoski [EMAIL PROTECTED] wrote: for ($i=0; $i=12; $i++) { echo select name='$i'; echo option values; } You only want one select tag. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Post Variables

2002-12-04 Thread bahwi
The problem is right here: for ($i=0; $i=12; $i++) { echo $_POST['$i']; } Single quotes cause variables to not be interpolated. IE: ?php $i = 5; echo $i; echo $i; echo '$i'; ? this prints out: 55$i See? Change that line to echo $_POST[$i]; and it should work just fine. Regards,

[PHP] Max File Size

2002-12-04 Thread Roger Lewis
Hi, I'm having a problem uploading files greater than 2mb, but I believe the problem is related to php.ini. UPLOAD_MAX_FILESIZE in my submit form is set to 1000. Also, I set upload_max_filesize = 1000 in php.ini. After changing php.ini, I stopped and then started httpd. I thought this

Re: [PHP] Max File Size

2002-12-04 Thread Marco Tabini
Are you sure you're looking at the right php.ini? Try calling phpinfo() and check where PHP is looking for the ini file. Marco -- php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com!

[PHP] request for help/advice (xml/php content management)

2002-12-04 Thread Robert Samuel White
Hello, I am the creator of eNetwizard Content Management Server, an open source content management system using the LAMP suite. I am getting ready for its first major release and have come across some problems that I need to address first... I'm not really sure where to start this is such a

Re: Tom: [PHP] magic quotes

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 7:11:20 AM, you wrote: JTJ Tom, JTJ Sorry for the delay. I have tried your code. JTJ SELECT id,AU,ST,BT,AT FROM ccl_main WHERE MATCH JTJ (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST ('ready maria ' IN BOOLEAN MODE) JTJ ORDER BY id asc JTJ

Re: [PHP] Creating dynamic names for images

2002-12-04 Thread Justin French
well, a) use a table in the DB with the primary key (id) as an auto-increment column. 1, 2, 3 etc. Use this ID as the name of the file 1.jpg, 2.gif, and perhaps store the filetype / extension as well, so that you know what filename to look for in the folder. b) something as simple as

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
Oops I screwed up :) Justin on 05/12/02 1:28 AM, Marco Tabini ([EMAIL PROTECTED]) wrote: Are you sure? I thought $_SESSION was a superglobal. Marco On Wed, 2002-12-04 at 09:15, Justin French wrote: Good point -- are the included files functions, or other stuff?? function

Re: [PHP] request for help/advice (xml/php content management)

2002-12-04 Thread Justin French
Haven't you already posted this? J on 05/12/02 10:20 AM, Robert Samuel White ([EMAIL PROTECTED]) wrote: Hello, I am the creator of eNetwizard Content Management Server, an open source content management system using the LAMP suite. I am getting ready for its first major release and have

RE: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
Yep, Mine is in /etc/httpd/php.ini and that's what phpinfo gives me Roger -Original Message- From: Marco Tabini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 3:19 PM To: Roger Lewis Cc: PHP-General Subject: Re: [PHP] Max File Size Are you sure you're looking at the

[PHP] Problem with functions

2002-12-04 Thread Victor Halla
Hi, I have de following code for example ?php $username = victor; function test() { echo $username; } ? If I call the funcion test(), echo print nothing what's is going on ? []´s [EMAIL PROTECTED] __ Victor Halla

Re: [PHP] Problem with functions

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 9:15:53 AM, you wrote: VH Hi, VH I have de following code for example VH ?php VH $username = victor; VH function test() { VH echo $username; VH } ? VH If I call the funcion test(), echo print nothing what's is going on ? VH []´s VH [EMAIL

Re: [PHP] formating numbers date

2002-12-04 Thread Jeff Bluemel
I'm displaying a date that I get from a informix database query - the date format is as follows; 2002-12-04 23:21:49 I want it to display as 12/4/2002 11:21:49 PM Jeff Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wednesday 04 December 2002

  1   2   >