[PHP] Can't pass query string from HTML to PHP

2003-06-20 Thread Robby Ku
Hi, I've got a problem passing a query string from a HTML file to a PHP file. I created a HTML file called welcome.html with the following link: a href=welcome.php?name=Andy Hi, I'm Andy /a I am trying to pass the query string Andy to a PHP file called welcome.php with the

RE: [PHP] Can't pass query string from HTML to PHP

2003-06-20 Thread Martin Towell
check your php.ini file to see if you have register_globals set to on or off (probably off) You can either turn it on or use $_GET[name] -Original Message- From: Robby Ku [mailto:[EMAIL PROTECTED] Sent: Friday, 20 June 2003 4:06 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't pass query

[PHP] How to secure site?

2003-06-20 Thread Andrew Afliatunov
Hello! I have an Apache web-server with PHP-4.3.2 installed. Directory structure of my DocRoot is as follows: www/ docs/ tm/ tts/ cache/ lib/ index.html docs, tm, tts are directories of projects, published through ftp by different people, lib - common directory, containing

[PHP] Re: Can't pass query string from HTML to PHP

2003-06-20 Thread Jan Grafström
Hi Robby, try to add this line to your php-file: $name=$_GET['name'] ; change to: ?php $name=$_GET['name'] ; echo Welcome, . $name.!; ? Good luck! Jan Robby Ku [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, I've got a problem passing a query string from a HTML file to a PHP

[PHP] Configuring PHP5 in IIS 6.0

2003-06-20 Thread Roberto Ramírez
Hello I am trying to configure one snap shot of PHP5 in IIS 6.0 to test some stuff, but somehow i can't make it work correctly. This is what i get: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP

[PHP] file problem

2003-06-20 Thread Adina
I have this script named test.php: ?php // Get a file into an array. In this example we'll go through HTTP to get // the HTML source of a URL. $lines = file('http://www.google.fr/search?q=beautifulhl=frlr=ie=UTF-8oe=UTF-8start=10sa=N'); // Loop through our array, show html source as html

Re: [PHP] Re: Can't pass query string from HTML to PHP

2003-06-20 Thread Robby Ku
Hi again, Thanks for the fast response given. I tried both Jan's and Martin's method but it won't solve the problem. I've tried to change register_globals = On in php.ini and i got the same result. I've tried using $_Get['name'] instead of $name but i got the following error: Parse

[PHP] Authentication: Addressing the user variable

2003-06-20 Thread Jason End
I'm using LDAP to authenticate my users. login.php and any script that requires authentication start off with the following code: -- session_start(); if (session_is_registered(valid_user)) { header( Location: admin.php ); -- The ldap binds as such: ldap_bind($ds,

Re: [PHP] file problem

2003-06-20 Thread Jason Wong
On Friday 20 June 2003 16:23, Adina wrote: I have this script named test.php: [snip] This script dosen't work. I receive the following warning: Warning: file(http://www.google.fr/search?q=beautifulhl=frlr=ie=UTF-8oe=UTF-8s tart=10sa=N) - No such file or directory in test.php on line 4 With

Re: [PHP] When to escape slashes, and when not to???

2003-06-20 Thread Marek Kilimajer
Gerard Samuel wrote: I have a class method that does one thing and one thing only. Escape characters before going to the DB. Part of it is - if (!get_magic_quotes_gpc()) { $string = pg_escape_string( $string ); } return ' . $string . '; In everyday get/post operation it seems to work

php-general Digest 20 Jun 2003 08:31:10 -0000 Issue 2128

2003-06-20 Thread php-general-digest-help
php-general Digest 20 Jun 2003 08:31:10 - Issue 2128 Topics (messages 152226 through 152283): Re: Month loop 152226 by: CPT John W. Holmes 152228 by: David Nicholson 152229 by: Dan Joseph 152230 by: drparker 152236 by: Tyler Lane SNMP v2

Re: [PHP] strange crypt() problem

2003-06-20 Thread Awlad Hussain
If I use MD5 based encryption...would i have similar problem in the future when i move the codes around to different server? - Original Message - From: Jeff Harris [EMAIL PROTECTED] To: Sævar Öfjörð [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, June 20, 2003 12:06 AM Subject: RE:

Re: [PHP] Convert KB to MB?

2003-06-20 Thread Ian Mantripp
on Thu, Jun 19, 2003, Brent Baisley wrote: Ahhh, but then marketing gets involved and changes the 1024 to 1000 and ta da, you now have more MegaBytes. 1024 is the right number to use, but don't be surprised if it doesn't match with some numbers you might compare it to. Not necessarily, in

Re: [PHP] How to secure site?

2003-06-20 Thread Marek Kilimajer
Andrew Afliatunov wrote: Other way - I can turn on safe_mode and include www/lib in safe_mode_include_dir. In this case projects will be able to include scripts from lib, BUT won't be able to create files in cache because scripts and cache have different owners. Go this way, but create a

RE: [PHP] Migrating pre-4.1 code to a post-4.1 server with register_globals on

2003-06-20 Thread Ford, Mike [LSS]
-Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 20:31 To: [EMAIL PROTECTED] Subject: [PHP] Migrating pre-4.1 code to a post-4.1 server with register_globals on A heads-up to those who are moving old code with register_globals on to a server

RE: [PHP] Re: Can't pass query string from HTML to PHP

2003-06-20 Thread Ford, Mike [LSS]
-Original Message- From: Robby Ku [mailto:[EMAIL PROTECTED] Sent: 20 June 2003 08:25 Thanks for the fast response given. I tried both Jan's and Martin's method but it won't solve the problem. I've tried to change register_globals = On in php.ini and i got the same result.

[PHP] Re: preg_match

2003-06-20 Thread sven
preg_matchtry without backslashes. $pattern = /$search/i; if (preg_match ($pattern, $date[$i])) { echo $date[$i]br /; } you don't need the .*? in your regex (either * or ? multiplier) as preg_match searches for any occurance (not from begin ^ or to end $). ciao SVEN Aaron Axelsen [EMAIL

Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-20 Thread Steve M
On Thu, 19 Jun 2003 13:21:07 +0200, Daniel wrote: Okay, I think I'll have to kill myself... I can't believe I am this stupid, but it turned out I was working on a copy of the file, not the real one. D'OH!!! Sorry, guys! Daniel That's no reason not to kill M$... +a Steve -- Steve

Re: [PHP] Can't pass query string from HTML to PHP

2003-06-20 Thread Thorsten Körner
Am Freitag, 20. Juni 2003 08:06 schrieb Robby Ku: Hi, I've got a problem passing a query string from a HTML file to a PHP file. I created a HTML file called welcome.html with the following link: a href=welcome.php?name=Andy Hi, I'm Andy /a I am trying to pass the query string

Re: [PHP] Can't pass query string from HTML to PHP

2003-06-20 Thread Thorsten Körner
Hi again Am Freitag, 20. Juni 2003 11:47 schrieb Thorsten Körner: Am Freitag, 20. Juni 2003 08:06 schrieb Robby Ku: Hi, I've got a problem passing a query string from a HTML file to a PHP file. I created a HTML file called welcome.html with the following link: a

Re: [PHP] safe mode and mail

2003-06-20 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 20 Jun 2003 at 01:40, lines prefixed by '' were originally written by you. Hi, safe mode on and mass mailing wished. I know that it's not possible to set the time limit, when safe mode is on. Sure mass mailing using mail function

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-20 Thread Lars Torben Wilson
On Thu, 2003-06-19 at 20:19, Mark Tehara wrote: ?php $myimage=..//..//site//images//2.jpg; header(Content-type: image/jpeg); fopen ($myimage, r); readfile($myimage) ; fclose($myimage); ? This seemed to do the trick for me. Thank you. / Mark Even better, you don't even need the

[PHP] Synchronize MYSQL

2003-06-20 Thread khuram noman
Dear Members How to Synchronize two MYSQL databases in php Thanks khuram noman __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] ie issue: when I do a forced redirect with the header()

2003-06-20 Thread Pete Morganic
Slkigh Ammendment to below ?php header(Location: https://www.google.com;) ; die; ? Jake Johnson wrote: Have you tried... ?php header(Location: https://www.google.com;) ; ? Regards, Jake Johnson [EMAIL PROTECTED] -- Plutoid -

Re: [PHP] Synchronize MYSQL

2003-06-20 Thread John W. Holmes
khuram noman wrote: Dear Members How to Synchronize two MYSQL databases in php Thanks khuram noman Don't use PHP, just use the replication that's already built into MySQL. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP

[PHP] open_basedir

2003-06-20 Thread dorgon
hi folks, I just realised that open_basedir also prevents the access to /tmp. Thus, file uploads aren't possible. One solution would be, to use a tmp directory within open_basedir, to give PHP the required write access. But assume you're using a server with multiple VirtualHosts and www-dirs.

[PHP] Need Instruction on how to compile PHP in Win32...

2003-06-20 Thread Scott Fletcher
Hi! I have been looking around on the website and haven't found what I'm looking for. What I am looking for is instruction on what software do I need on the machine, environment variables, etc. and the instruction on the compiling of the php as cgi executable for win32. Thanks, Scott --

[PHP] Cannot modify header information - headers already sent

2003-06-20 Thread Logan McKinley
I am having a problem when i use an include file to include database connectivity, however if i cut and paste the code out of the include and place it directly into the .php file it works. I am not sure how to figure this problem out. === error: Warning: Cannot modify header

RE: [PHP] Cannot modify header information - headers already sent

2003-06-20 Thread Henning Sittler
The problem does not appear to be database related, it appears to header related. You are trying to send header information after sending regular output. You can't do this: ?php echo 'blah blah'; header(Location: .$out); ? BUT you can do this: ?php $some_text = my_function(); if ($some_text)

Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-20 Thread Daniel
LOL =) Steve M [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 19 Jun 2003 13:21:07 +0200, Daniel wrote: Okay, I think I'll have to kill myself... I can't believe I am this stupid, but it turned out I was working on a copy of the file, not the real one. D'OH!!!

Re: [PHP] Convert KB to MB?

2003-06-20 Thread Brent Baisley
Again I say Ahhh. Are you mixing your bits and bytes then? 1MB =1024KB 1mb=1000kb Although upper and lower case seem to have becoming interchangeable, even though technically they have different meaning. The simple formula is suddenly getting more complicated. On Friday, June 20, 2003, at 04:41

[PHP] Call Servlet Java from PHP

2003-06-20 Thread maximiliano_potje
Hi Peolpe! I'm trying to call a Servlet Java from PHP and it doesn't works.. I tried CURL, but no works, I tried put code Java inside PHP, but no works too. Does Somebody can give a light? Thanks Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Call Servlet Java from PHP

2003-06-20 Thread Jay Blanchard
[snip] I'm trying to call a Servlet Java from PHP and it doesn't works.. I tried CURL, but no works, I tried put code Java inside PHP, but no works too. Does Somebody can give a light? [/snip] Can you show us the code? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] clearing cache

2003-06-20 Thread Mark McCulligh
I am building a two page search feature. The user fills out page one, that takes them to page two. Then from page two they get the results page from the search. If the user hits the back button in their browser I want them to go back to page one, NOT page two. Is the some way I can make page two

Re: [PHP] open_basedir

2003-06-20 Thread Ernest E Vogelsinger
At 15:03 20.06.2003, dorgon said: [snip] Would it be possible to limit access to open_basedir without the exception of /tmp, to allow the uploads? [snip] You (or your server admin) should add /tmp to the allowed

RE: [PHP] Migrating pre-4.1 code to a post-4.1 server with regist er_globals on

2003-06-20 Thread Johnson, Kirk
-Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 2:57 AM To: Johnson, Kirk; [EMAIL PROTECTED] Subject: RE: [PHP] Migrating pre-4.1 code to a post-4.1 server with regist er_globals on -Original Message- From: Johnson,

[PHP] Re: Synchronize MYSQL

2003-06-20 Thread Neil
Khuram Noman wrote: Dear Members How to Synchronize two MYSQL databases in php Thanks khuram noman __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com Hello as usual there are a few ways to do tackle this job. My preference is to

[PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread php
I'm having a problem configuring my web server to redirect 404 errors to a custom error page. It almost looks like the PHP parser is getting hold of the request before apache has checked to see if the file exists. It works fine if you request an unknown page on the server that isn't a PHP

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 15:08:39 GMT, [EMAIL PROTECTED] wrote: Directory /spool/web/www.jeamland.org/html AddType application/x-httpd-php .html php_value include_path .:/spool/web/www.jeamland.org/lib php_value auto_prepend_file header.php

[PHP] Uploading/retrieving PDFs to and from Oracle BLOB

2003-06-20 Thread Michael Champagne
Can anyone point me to some sample code for uploading and later retrieving PDFs or other binary files into an Oracle BLOB field? I've been searching for some time and haven't been able to come up with anything. It looks like there's new LOB functions for OCI but they aren't documented at all on

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 10:15:43 -0500, Wendell Brown wrote: Try it without the: php_value auto_prepend_file header.php php_value auto_append_file footer.php Or check for the existence of the requested file in the header and if not found, send the 302 header with a

[PHP] mail() without subjects and froms

2003-06-20 Thread Johannes Reichardt
Hi there! I have a weired problem with a 4.12 php version on win2k. When i mail more then one email i often have the problem that the mail reaches their recipient but the subject and from does not work properly, instead this is on top of the email. but strangely sometimes it just works normal.

Re: [PHP] mail() without subjects and froms

2003-06-20 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 20 Jun 2003 at 16:40, lines prefixed by '' were originally written by you. Hi there! I have a weired problem with a 4.12 php version on win2k. When i mail more then one email i often have the problem that the mail reaches their

Re: [PHP] Synchronize MYSQL

2003-06-20 Thread Jim McNeely
From Paul Dubois's MySQL book: If you are dumping a database so that you can transfer the database to another server: (on the unix command line or in a shell script) % mysqladmin -h boa.snake.net create samp_db % mysqldump samp_db | mysql -h boa.snake.net samp_db the first command obviously

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 10:34:04 -0500, Wendell Brown wrote: php_value auto_prepend_file header.php php_value auto_append_file footer.php Andy, I've tried the following (with my server info, of course) in one of my directories and it works like a champ! It doesn't matter

Re: [PHP] clearing cache

2003-06-20 Thread Jeff Harris
On Jun 20, 2003, Mark McCulligh claimed that: |I am building a two page search feature. The user fills out page one, that |takes them to page two. Then from page two they get the results page from |the search. If the user hits the back button in their browser I want them |to go back to page

RE: [PHP] Re: preg_match

2003-06-20 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks, I weas reading on the php website under the preg_match functino and people were saying that you had to excape the $ so that iw ould be evaluated right. That's what got me confused. - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED]

Re: [PHP] strange crypt() problem

2003-06-20 Thread Don Read
On 19-Jun-2003 Huzz wrote: I have this bit of code to crypt user password in user registration as shown below. $cryptpass=crypt($makepass); which generated crypted password like eg 37Q9fppLHc4fQ with php 4.0 And am using the codes below to check for valid login.. // $pass - from

Re: [PHP] mail() without subjects and froms

2003-06-20 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 20 Jun 2003 at 17:44, lines prefixed by '' were originally written by you. Hi! I guess i do not make any weired things, the configuration looks like this: mail($mail, $message, From: [EMAIL PROTECTED][EMAIL PROTECTED]);

[PHP] Passing Date/Time

2003-06-20 Thread Kyle Babich
I have a input field in a form that is disabled by javascript but is assigned a value in the code that is the RFC 822 formated date. Why is this field not included in the $HTTP_POST_VARS? Here is the page I am talking about: http://babich.us/xlog/post.php When the page is submitted all other

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Andy Fiddaman
: ErrorDocument 404 http://www.jeamland.org/_error.html Yep, it does seem to work if I put the whole URL in the ErrorDocument directive rather than just /_error.html ! Unfortunately, that makes the web server snd a redirect which isn't exactly what I want (unless you know of a way to get at the

[PHP] SQL Sanitation in PHP

2003-06-20 Thread Jeff Stewart
I'm using PHP's odbc_ functions to access an Access database, and I'm concerned about security. Do you folks have any recommendations on the best ways to sanitize my SQL queries? I've read plenty about what characters I should strip from SQL queries that use user input, namely , / \ * ( ) $ %

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-20 Thread Don Read
On 19-Jun-2003 Steve Keller wrote: At 6/19/2003 02:10 PM, Sparky Kopetzky wrote: 2. How do you put 2 items that you want to save in the cookie and retrieve?? Smuch 'em together into a single variable with a delimiter you're sure won't show up in either value, something like #@@#,

[PHP] Odd reactions to Globals On/Off

2003-06-20 Thread Lee Herron QCS
Anyone know why $HTTP_SESSION_VARS['var'] and $HTTP_SESSION_VARS[vararray][var1] both contain values with register_globals ON, but only $HTTP_SESSION_VARS[vararray][var1] contains values if register_globals is OFF? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] updateable database- please help- only displaying first word from field

2003-06-20 Thread Matt Hedges
Hello. I am making an online database of my wines that I want my friends to be able to edit. The page below displays the wines. I want the fields in text boxes so later they can be easily edited. However, the text boxes only display the first word of the field from the database. For example,

Re: [PHP] updateable database- please help- only displaying firstword from field

2003-06-20 Thread Adam Voigt
Put quote's around name, I would suspect the space is throwing off the value equals, example: tdinput type=text name=Name value=\$name\/td\n On Fri, 2003-06-20 at 13:31, Matt Hedges wrote: Hello. I am making an online database of my wines that I want my friends to be able to edit. The page

Re: [PHP] updateable database- please help- only displaying first word from field

2003-06-20 Thread Don Read
On 20-Jun-2003 Matt Hedges wrote: snip However, the text boxes only display the first word of the field from the database. Quote your values. snipagain tdinput type=text name=Name value=$Name/td\n tdinput type=text name=Name value=$Name/td Regards, --

[PHP] Re: updateable database- please help- only displaying first word from field

2003-06-20 Thread Matt Hedges
Thanks! Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello. I am making an online database of my wines that I want my friends to be able to edit. The page below displays the wines. I want the fields in text boxes so later they can be easily edited. However, the

Re: [PHP] updateable database- please help- only displaying firstword from field

2003-06-20 Thread Adam Voigt
Actually just putting a around doesn't work because his original echo uses those, so you have to escape them, like: \ On Fri, 2003-06-20 at 13:39, Don Read wrote: On 20-Jun-2003 Matt Hedges wrote: snip However, the text boxes only display the first word of the field from the

Re: [PHP] Convert KB to MB?

2003-06-20 Thread Mike Migurski
Ahhh, but then marketing gets involved and changes the 1024 to 1000 and ta da, you now have more MegaBytes. 1024 is the right number to use, but don't be surprised if it doesn't match with some numbers you might compare it to. Not necessarily, in data storage 1mb = 1024kb but in data transfer 1mb

Re: [PHP] clearing cache

2003-06-20 Thread Mark McCulligh
I can't just create a link on the last page back to the first page. Because if the user hits the back button on the browser they end up on page 2. Which can't happen. Once you are on the last page the user can't by anyway get back to page 2, unless they start over on page 1. What I am planning

[PHP] Re: mail() without subjects and froms

2003-06-20 Thread Manuel Lemos
Hello, On 06/20/2003 12:39 PM, Johannes Reichardt wrote: I have a weired problem with a 4.12 php version on win2k. When i mail more then one email i often have the problem that the mail reaches their recipient but the subject and from does not work properly, instead this is on top of the email.

[PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
I work for a small networking company. We're working on a piece of software that will be run server-side with PHP and MySQL. It allows the user to develop an online store and handles all the complex shopping cart stuff with ease. It is a port of an originally client-side application. We would

Re: [PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
Well, having a solid product that people can look at offline has been a major selling point in the past. The customers we cater to appreciate a physical product. We could give them HTML that sends them online, but we could just as easily give them a card with an URL on it and not waste CD

Re: [PHP] Passing Date/Time

2003-06-20 Thread Kyle Babich
Nothing passes when it is disabled via HTML either. just for shits and giggles, why not manually disable the field without using javascript and see what happens. just add the word disabled to the tag. input disabled type='text' name=date value= From: Kyle Babich [EMAIL PROTECTED]

Re: [PHP] Passing Date/Time

2003-06-20 Thread Kyle Babich
That works, thanks. Try setting that date as a type=hidden value instead. Do a print_r($_POST) at the other end to see what comes up! -Michael On Fri, 2003-06-20 at 08:55, Kyle Babich wrote: I have a input field in a form that is disabled by javascript but is assigned a value in the

[PHP] updateable database 2nd question

2003-06-20 Thread Matt Hedges
Thanks for the help. I now have the wine information displaying in text boxes (below is the code that displays all the wines). Now I want anyone to be able to change the data in text box/s and hit update and it change that field/s. Would it be something like $sql = UPDATE wines SET

Re: [PHP] Standalone PHP Client?

2003-06-20 Thread Brian V Bonini
On Fri, 2003-06-20 at 13:57, Galen P. Zink wrote: I work for a small networking company. We're working on a piece of software that will be run server-side with PHP and MySQL. It allows the user to develop an online store and handles all the complex shopping cart stuff with ease. It is a

RE: [PHP] Standalone PHP Client?

2003-06-20 Thread Jay Blanchard
[snip] Is there any kind of standalone PHP/MySQL engine that could be reasonably installed from a CD and run on most Windows machines? [/snip] Check out the PHP-GTK http://gtk.php.net/ . I am not sure if there is a 'portable' data source to go with it, but it sounds like what you'd want Jay

Re: [PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
On Friday, June 20, 2003, at 11:42 AM, Brian V Bonini wrote: On Fri, 2003-06-20 at 13:57, Galen P. Zink wrote: I work for a small networking company. We're working on a piece of software that will be run server-side with PHP and MySQL. It allows the user to develop an online store and handles

[PHP] Search Engine

2003-06-20 Thread Michael A Smith
Hi, I'm trying to find a script (PHP,Perl, Whatever) that will search through a bunch text files, ignore certain keywords, and then generate a text file with the line that each one is on, and what the words were. Thanks, -Michael -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] clearing cache

2003-06-20 Thread Kevin Stone
- Original Message - From: Mark McCulligh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 20, 2003 11:44 AM Subject: Re: [PHP] clearing cache I can't just create a link on the last page back to the first page. Because if the user hits the back button on the browser they end

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-20 Thread Mark Tehara
Ahh, the Docs don't tell you that. They are a little weard wehen it comes to that - Original Message - From: Lars Torben Wilson [EMAIL PROTECTED] To: Mark Tehara [EMAIL PROTECTED] Cc: PHP [EMAIL PROTECTED] Sent: Friday, June 20, 2003 10:53 PM Subject: Re: [PHP] [Newman] Passing an

Re: [PHP] updateable database 2nd question

2003-06-20 Thread Don Read
On 20-Jun-2003 Matt Hedges wrote: Thanks for the help. I now have the wine information displaying in text boxes (below is the code that displays all the wines). Now I want anyone to be able to change the data in text box/s and hit update and it change that field/s. Would it be something

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 12:07, Mark Tehara wrote: Ahh, the Docs don't tell you that. They are a little weard wehen it comes to that How so? int readfile ( string filename [, bool use_include_path [, resource context]]) It does say 'filename', not 'resource'. Seems pretty unequivocal.

[PHP] PHP Problem regarding updating through text boxes

2003-06-20 Thread Matt Hedges
Please take a look at http://hedges.org/code/wine.php - You'll see what I can't figure out how to do. thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Problem regarding updating through text boxes

2003-06-20 Thread Esteban Fernandez
Put the code in a Form tag, modified thevalues, and put a submit button in the Form, so, in the php page you get it the values by name, you can modified with 'update' mysql sentence. Matt Hedges [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Please take a look at

[PHP] Re: PHP Problem regarding updating through text boxes

2003-06-20 Thread Esteban Fernandez
Hum,, i don't see the database conecction :P. It's necesary modified the fileds on the fly ?, one by one it's more easy to do... Esteban Fernandez [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Put the code in a Form tag, modified thevalues, and put a submit button in the

Re: [PHP] Error in php after uprading

2003-06-20 Thread Javier
[EMAIL PROTECTED] (John W. Holmes) wrote in news:[EMAIL PROTECTED]: Your query failed. Add some error reporting around mssql_query() to find out why. Hi, I recompiled an older version of php with freetds 0.60 instead of 0.61 and everything start to work again. Maybe there is

[PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Sparky Kopetzky
Does anyone have a piece of code that emulates a Perl 'Chomp' function? I need one. Thanks in advance!! Robin E. Kopetzky Black Mesa Computers/Internet Services www.blackmesa-isp.net

Re: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Sparky Kopetzky
I looked at the documentation on rtrim. It trims ALL whitespace characters from the end, not just the '\n'. I need only the '\n' trimmed. Sparky - Original Message - From: Lars Torben Wilson [EMAIL PROTECTED] To: Sparky Kopetzky [EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED] Sent:

Re: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 15:37, Sparky Kopetzky wrote: Does anyone have a piece of code that emulates a Perl 'Chomp' function? I need one. Thanks in advance!! Robin E. Kopetzky Black Mesa Computers/Internet Services www.blackmesa-isp.net This should do it for you: http://www.php.net/rtrim

RE: [PHP] Re: PHP Problem regarding updating through text boxes

2003-06-20 Thread electroteque
hmm name the text fields the field of the database then put a [] in front of them to make them an array then then try maybe foreach ($_POST['id'] as $key=$value) { //sql statement update table set us=$_POST['us'][$key] where id=$_POST['id'][$key]; } -Original Message- From: Esteban

Re: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 15:47, Sparky Kopetzky wrote: I looked at the documentation on rtrim. It trims ALL whitespace characters from the end, not just the '\n'. I need only the '\n' trimmed. Look again, but check out the second argument: ?php error_reporting(E_ALL); ini_set('display_errors',

RE: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The php chop function is suppose to act like the perl chomp. - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] Want reliable web hosting at affordable prices? www.modevia.com Web Dev/Design Community/Zine www.developercube.com -

RE: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 16:16, Aaron Axelsen wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The php chop function is suppose to act like the perl chomp. No, chop() is an alias for rtrim(), and is identical in every way (save for its name, of course...) http://www.php.net/chop

[PHP] Not incrementing?

2003-06-20 Thread Kyle Babich
I have a file, current.txt, that at the start has only the digit 1 in it. Here is my code: $current = readfile('setupData/current.txt'); foreach ($HTTP_POST_VARS as $index = $value) { $index = $HTTP_POST_VARS['$index']; } $info = fopen(postInfo/{$current}-{$dateFile}.txt, 'w');

Re: [PHP] Not incrementing?

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 17:07, Kyle Babich wrote: I have a file, current.txt, that at the start has only the digit 1 in it. Here is my code: Hi there, $current = readfile('setupData/current.txt'); This will cause $current to contain the number of bytes read from the file, not the contents of

[PHP] Seating chart registration system?

2003-06-20 Thread Jay Fitzgerald
I am writing a php event registration system for lanparties and I believe I have everything written that I need except for a seating selection chart. I dont want to reinvent the wheel if I dont have to and am curious to know if something like this has already been written as public source...

[PHP] stream_wrapper_register

2003-06-20 Thread Larry E. Masters
Hello all, I do not know if this is the right place to post a question about this. I am trying to figure out what all I can do using stream_wrapper_register functions. I have looked over http://us2.php.net/manual/en/function.stream-wrapper-register.php and I am trying to write a class that will

[PHP] Re: Email Valadation

2003-06-20 Thread Manuel Lemos
Hello, On 06/17/2003 06:42 AM, Philip J. Newman wrote: How would i valadate an email string to see if it has invalid charactors? You may want to try this class: http://www.phpclasses.org/emailvalidation -- Regards, Manuel Lemos Free ready to use OOP components written in PHP

[PHP] Re: Password generator

2003-06-20 Thread Manuel Lemos
Hello, On 06/17/2003 06:45 AM, Davy Obdam wrote: I have to make a password generator, but i have a little problem. You may also want to try any of these classes: http://www.phpclasses.org/password%20generation -- Regards, Manuel Lemos Free ready to use OOP components written in PHP