Re: [PHP] Put text matching regex into array?

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 09:05, Leif K-Brooks wrote: > Is there a way to put each part of a string matching a regex into an > array? Example: > $string = "-_-_--- --_-_-- random text here-_"; > $array = regextoarray($string,"[-_]{1,}"); > //Produces array of "-_-_---","--_-_--","-_" pr

[PHP] Number of sessions

2002-12-17 Thread fragmonster
Hello, Is there a way to count how many sessions are opened on a PHP web site? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] INSERT INTO

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 15:12, John Taylor-Johnston wrote: > I'm particularily concerned aboute single quotes. How do I escape them? > Should I? > > Here is what I think is right. > > --snip-- > $myconnection = mysql_connect($server,$user,$pass); > mysql_select_db($db,$myconnec

Re: [PHP] Updating GD

2002-12-17 Thread Noodle Snacks
Cool, Just thought it might be a config / code issue or something. "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tuesday 17 December 2002 10:19, Noodle Snacks wrote: > > PHP is telling me that I need GD 2.0 or later. This is on a newly insta

[PHP] PHP: XML + XSL

2002-12-17 Thread Hristina
Hello falks! I could not enter javascript into my xsl file. Does anyone know how to do it? Thanks a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XML + XSL

2002-12-17 Thread Bogomil Shopov
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Plz help to solve my problem.

2002-12-17 Thread Tros
Please verify that the current setting ( in php.ini ) of session.save_path is correct (/tmp): You must have a folder as indicated in php.ini. Tros "Elaine Kwek" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am now trying to use php session control in my we

[PHP] "Use of undefined constant" error

2002-12-17 Thread fragmonster
Hello, I've got a strange pb. Here's my code if(isset($_GET[id])){ do something... else do something else } ?> When I call myfile.php I've got the "somthing else" with no error. When I call myfile.php?id=1 I've got the "something" but with an error message "Notice: Use of undefined constant i

[PHP] "Use of undefined constant" error

2002-12-17 Thread fragmonster
Hello, I've got a strange pb. Here's my code if(isset($_GET[id])){ do something... else do something else } ?> When I call myfile.php or myfile.php?id=1 I've got an error message "Notice: Use of undefined constant id - assumed 'id' in ..." Please help -- PHP General Mailing List (htt

[PHP] Showing 10 record items per page...?

2002-12-17 Thread Davíð Örn Jóhannsson
I need to be able to show maybe 10 items that I query from a mysql database on each page and I’m not really sure how I can do this. If I have lets say 30 items that match the query, I would like the page to display this at the bottom Previous 10 page 1 2 3 Next 10 of 30 Can any one direc

RE: [PHP] "Use of undefined constant" error

2002-12-17 Thread Jon Haworth
Hi, > "Notice: Use of undefined constant id - assumed 'id' in ..." Try changing this: > if(isset($_GET[id])){ to this: if(isset($_GET['id'])) { note quotes PHP thinks you're trying to use a constant called "id", which you haven't defined - hence the "unde

Re: [PHP] "Use of undefined constant" error

2002-12-17 Thread Tim Ward
you've got error reporting set pretty high to get that. The correct way to reference an array element in this case is $_GET["id"], if you do $_GET[id] you are telling PHP to look for a constant called id. If it doesn't find one then it assumes you meant "id" onstead of id and proceeds accordingly.

RE: [PHP] Showing 10 record items per page...?

2002-12-17 Thread Jon Haworth
Hi David, > If I have lets say 30 items that match the query, > I would like the page to display this at the bottom > > Previous 10 page 1 2 3 Next 10 of 30 To get the 20 results starting at #100, your query will be something like "SELECT foo FROM bar LIMIT 100, 20" To do paged results wit

[PHP] PHP with GD Support

2002-12-17 Thread info
Hello list, ich want to install php.4.2.3 with gd-suport. Any hints are welcome. Oliver Etzel

php-general Digest 17 Dec 2002 11:06:18 -0000 Issue 1768

2002-12-17 Thread php-general-digest-help
php-general Digest 17 Dec 2002 11:06:18 - Issue 1768 Topics (messages 128489 through 128532): Re: can I mail unlimited in one click? 128489 by: Kyle Gibson 128514 by: Greg Donald 128515 by: Chris Kay Re: Array 128490 by: Philip Olson Put text matching regex

RE: [PHP] PHP with GD Support

2002-12-17 Thread Jon Haworth
Hi Oliver, > ich want to install php.4.2.3 with gd-suport. > Any hints are welcome. You'll need to look it up, or do a configure --help or something, but I imagine you compile with something like --with-gd=/path/to/gd Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Error 155 using exec - please help !

2002-12-17 Thread Marek Kilimajer
Take a look at http://cvs.php.net/co.php/php4/php.ini-dist The part that should you look at is Resource Limits (max_execution_time,memory_limit) and set up your php.ini accordingly. [EMAIL PROTECTED] wrote: Here is what i do to parse a file with a perl script from PHP to get a formatted output

Re: [PHP] Help for Undefined variable

2002-12-17 Thread Marek Kilimajer
You have error reporting set to display notices, either set your error_reporting to error_reporting = E_ALL & ~E_NOTICE or use if (isset($Array) && eregi($Pattern, $Array["URL"])) { New B wrote: Please help! I am a beginner of php, I got an error from my own webpage: Notice: Undefined var

Re: [PHP] [php] INSERT INTO

2002-12-17 Thread Marek Kilimajer
For 40 variables I would recomend keeping them in a single array and then loop the array: $vars['part1']='something'; $vars['part2']='something else'; foreach($vars as k => $v) { $vars[$k]=addslashes($v); } John Taylor-Johnston wrote: Yes I'm reading the FM :) http://www.php.net/manual/en/

Re: [PHP] Divide into words

2002-12-17 Thread Sean Burlington
how about ... Nope. The question was the position of the words, not how many times they appear. oops :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session variables

2002-12-17 Thread Antti
How can I change the values of session variables (session_register('variable');) in a session. Do I just unset($variable); and do session_register() again and give it a new value. I tried this and it seems that it doesn't work. Antti -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] need help with sessions

2002-12-17 Thread Marek Kilimajer
You don't need to call session_start twice. And you are right, the problem is in that line: you want to show your login screen if both $_POST['uid'] and $_SESSION['uid'] are not set, therefor instead of OR use AND. Anders Thoresson wrote: Hi again, I'm still trying to understand sessions, an

Re: [PHP] Number of sessions

2002-12-17 Thread Marek Kilimajer
You can open the directory where your session files are stored and count the files beginig with "sess_" and are owned by apache, but this should be restricted on a shared host (and would give you the number of ALL opened sessions on that server anyway). You can set your own session handler. fra

Re: [PHP] Re: php --with-gd support

2002-12-17 Thread info
Hi Bogdan, sorry I am new to PHP where can I find a manual of PHP? Oliver Sorry, I only saw the first line in your message ("I want to know all about...") - somehow assumed the 2nd to be part of the sig on first reading - and hurried to be cynical. Can't help you with a good site/book.

Re: [PHP] Re: php --with-gd support

2002-12-17 Thread Wico de Leeuw
http://www.php.net/manual/ At 13:13 17-12-02 +0100, [EMAIL PROTECTED] wrote: Hi Bogdan, sorry I am new to PHP where can I find a manual of PHP? Oliver Sorry, I only saw the first line in your message ("I want to know all about...") - somehow assumed the 2nd to be part of the sig on first

Re: [PHP] Re: php --with-gd support

2002-12-17 Thread Matt Brown
> >sorry I am new to PHP where can I find a manual of PHP? Well a few seconds searching Google.com produced http://www.php-faq.com/gdinstall.php Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Strange problem with PHP,SSI

2002-12-17 Thread sport4ever
Hello my page is .SHTML format, so I can't use or any PHP coding.. another strange thing, I found that the page source contains the included PHP content, without executing it!! I mean, when I use the sentince: I found the follwoing in the source: which is the content of included file (poll

[PHP] if question

2002-12-17 Thread John Fishworld
Help ! Can anyone tell me why this doesn't seem to work ?? if (($stelle_who != '1') OR ($stelle_who != '2') OR ($stelle_who != '3') OR ($stelle_who != '5') ) { and what can i use as an alternative syntex ?? thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP]

2002-12-17 Thread Peter Trotman
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if question

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 21:04, John Fishworld wrote: > Help ! > > Can anyone tell me why this doesn't seem to work ?? _HOW_ does it not work? > if (($stelle_who != '1') OR ($stelle_who != '2') OR ($stelle_who != '3') OR > ($stelle_who != '5') ) { > > and what can i use as an alternative synte

Re: [PHP] Number of sessions

2002-12-17 Thread Justin French
If you're running your own server (ie, not a shared server), you could count the number of session files you have saved... the accuracy of this will depend on how often the garbage is cleaned out. on 17/12/02 7:08 PM, fragmonster ([EMAIL PROTECTED]) wrote: > Hello, > Is there a way to count how m

RE: [PHP] if question

2002-12-17 Thread Jon Haworth
Hi John, > Can anyone tell me why this doesn't seem to work ?? It probably is working, but it's obviously not doing what you want :-) > if (($stelle_who != '1') OR ($stelle_who != '2') OR > ($stelle_who != '3') OR ($stelle_who != '5') ) { This will always evaluate to true: if $stelle_who

Re: [PHP] session variables

2002-12-17 Thread Justin French
1. the opposite of session_register('varname') is session_unregister('varname') NOT unset($varname) 2. Are you on PHP >= 4.1 ?? If so, move away from things like: and into: MUCH cleaner to work with :) Justin on 17/12/02 10:35 PM, Antti ([EMAIL PROTECTED]) wrote: > How can I change

Re: [PHP] if question

2002-12-17 Thread Justin French
Not sure if 'OR' works... I use a double pipe/vertical bar ('||') for 'OR' Jus to point out the really obvious... in the above example, the following would also work: Cheers, Justin on 18/12/02 12:04 AM, John Fishworld ([EMAIL PROTECTED]) wrote: > Help ! > > Can anyone tell me why this

Re: [PHP] if question

2002-12-17 Thread Justin French
Oooops -- forgot to mention -- you might want AND not OR or ||... and some other posts have hinted that OR does work... Justin on 18/12/02 12:30 AM, Justin French ([EMAIL PROTECTED]) wrote: > Not sure if 'OR' works... I use a double pipe/vertical bar ('||') for 'OR' > > $stelle_who = '4'; > i

Re: [PHP] if question

2002-12-17 Thread John Fishworld
DUH ! Thanks all ! Obviously a slight case of brain death there ! > Hi John, > > > Can anyone tell me why this doesn't seem to work ?? > > It probably is working, but it's obviously not doing what you want :-) > > > if (($stelle_who != '1') OR ($stelle_who != '2') OR > > ($stelle_who != '3')

[PHP] Re: PHP Auto-Responder

2002-12-17 Thread Joel Boonstra
On Mon, 16 Dec 2002, Kevin Stone wrote: > Yes that was the obvious solution unfortunately my web host does not have > crontab installed for users forcing me to seek other solutions. I have > asked my web host if they can install crontab and hopefully they respond > favorably to my request. If not

[PHP] Re: Showing 10 record items per page...?

2002-12-17 Thread David Eisenhart
check out: http://www.phpfreaks.com/tutorials/43/0.php David Eisenhart "Föíö Öxî?êójînyóon" <[EMAIL PROTECTED]> wrote in message 047d01c2a5ba$0b7bd480$c900640a@gandalf">news:047d01c2a5ba$0b7bd480$c900640a@gandalf... I need to be able to show maybe 10 items that I query from a mysql database o

[PHP] airport picker

2002-12-17 Thread Edward Peloke
I am writing a php site where I need to add an 'airport code' picker. What is the best way to handle this? I don't want to simply populate a select box from columns in the db because there are over 7000 rows in the db and it would take the user forever to go through them all. Is there a way that

[PHP] Multiple Files Upload

2002-12-17 Thread Hynek Semecky ME
Hello list, Is it possible to upload multiple files to server using submit form not by selecting one by one, but selecting f.ex. 150 files at once and click 'SEND'? Thanks a lot fro any help. Hynek Semecky www.semecky.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Edward Peloke
when you say not but selecting one by one do you mean you don't want to select one, then select another, etc and then hit submit to upload them all? Do you want to browse to the file, highlight several, and then upload? Eddie -Original Message- From: Hynek Semecky ME [mailto:[EMAIL PROTE

[PHP] real time output

2002-12-17 Thread Art Chevalier
Hello, I want to start a native process and capture the output while it is being generated and display it to the screen. I dont want to output to be displayed on the screen all at once after the process completes. As the process returns output I would like it dynamically displayed to the screen.

Re: [PHP] real time output

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 22:29, Art Chevalier wrote: > Hello, > > I want to start a native process and capture the output while it is being > generated and display it to the screen. I dont want to output to be > displayed on the screen all at once after the process completes. As the > process re

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Hynek Semecký ME
Ideally yes - highlight all and send all in one click. An alternative solution would be selecting one by one and then hit UPLOAD ALL. Hynek -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: 17. prosince 2002 15:55 To: [EMAIL PROTECTED] Subject: RE: [PHP] Multiple Fil

[PHP] LDAP, check if exists before enter

2002-12-17 Thread Greg
Hi- Does anyone have any PHP code to check if a uid exists in a LDAP directory before it is entered? I can't quite get ldap_search to work. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pcntl_fork

2002-12-17 Thread Negrea Mihai
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Does php 4.2.3 support pcntl_fork from the php compiles as module in apac= he? I have configured php with --enable-pcntl and it says: Call to undefined function: pcntl_fork() Thanks, - -- Negrea Mihai http://www.negrea.net -BEGIN PGP SIGNA

Re: [PHP] Multiple Files Upload

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 22:44, Hynek Semecký ME wrote: > Ideally yes - highlight all and send all in one click. > An alternative solution would be selecting one by one and > then hit UPLOAD ALL. No, can't be done. For a longer answer search the archives (using your subject as keywords). --

[PHP] writing uploaded file to another drive on another network?

2002-12-17 Thread Kenn Murrah
admitting in advance that this may be a REALLY stupid question .. i've created a page for uploading files using PHP, and it works fine ... is it possible to write that uploaded file to another drive, on another network? for instance, my PHP pages are currently being hosted offsite ... would it be

[PHP] Simple code that won't work

2002-12-17 Thread Jacob van Zanen
Hi All, Reasonably new to PHP and trying to write a code that looks through my logfiles and reports the lines that contain any of the keywords in my init file. However can't seem to get it to work If the part that does not seem to work is the bit that does the comparison. Anybody have an ide

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Hynek Semecký ME
Even if I select one by one and then hit UPLOAD ? Hynek -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 17. prosince 2002 15:51 To: [EMAIL PROTECTED] Subject: Re: [PHP] Multiple Files Upload On Tuesday 17 December 2002 22:44, Hynek Semecký ME wrote: > Ideally yes

Re: [PHP] writing uploaded file to another drive on another network?

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 22:55, Kenn Murrah wrote: > admitting in advance that this may be a REALLY stupid question .. > > i've created a page for uploading files using PHP, and it works fine ... is > it possible to write that uploaded file to another drive, on another > network? > > for instanc

Re: [PHP] Simple code that won't work

2002-12-17 Thread Jason Wong
On Tuesday 17 December 2002 22:25, Jacob van Zanen wrote: > Hi All, > > > Reasonably new to PHP and trying to write a code that looks through my > logfiles and reports the lines that contain any of the keywords in my init > file. > However can't seem to get it to work > > // Open an ini file > if

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Edward Peloke
yep, this can be done -Original Message- From: Hynek Semecký ME [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 9:58 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Multiple Files Upload Even if I select one by one and then hit UPLOAD ? Hynek -Original Message- From:

[PHP] Re: writing uploaded file to another drive on another network?

2002-12-17 Thread Bogdan Stancescu
No, it's not stupid - I don't know why you may need this but as long as you need it... Anyway. It would be interesting to know what OS you're using on both ends of the connection. If they're both *nix machines, it's rather simple. You typically copy the uploaded file from the temporary location

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Hynek Semecký ME
Could you give me an idea ? Hynek -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: 17. prosince 2002 16:28 To: [EMAIL PROTECTED] Subject: RE: [PHP] Multiple Files Upload yep, this can be done -Original Message- From: Hynek Semecký ME [mailto:[EMAIL PROTECT

Re: [PHP] real time output

2002-12-17 Thread Chevalier, Arthur
What about setting implicit_flush = on ? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Tuesday 17 December 2002 22:29, Art Chevalier wrote: > > Hello, > > > > I want to start a native process and capture the output while it is > > being generated and display i

RE: [PHP] Simple code that won't work

2002-12-17 Thread Ford, Mike [LSS]
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: 17 December 2002 14:58 > > On Tuesday 17 December 2002 22:25, Jacob van Zanen wrote: > > Hi All, > > > > > > Reasonably new to PHP and trying to write a code that looks > through my > > logfiles and reports the lin

Re: [PHP] pcntl_fork

2002-12-17 Thread Chris Hewitt
Negrea Mihai wrote: I have configured php with --enable-pcntl and it says: Either php being used is not compiled with this option (what does phpinfo show? Did you restart Apache)? Call to undefined function: pcntl_fork() Or pcntl_fork() is not a function provided with --enable_pcntl. I c

RE: [PHP] Multiple Files Upload

2002-12-17 Thread Edward Peloke
I believe I started with the 'uploader' found on the bottom of this page and then customized it to fit my needs. http://php.resourceindex.com/Complete_Scripts/File_Management/File_Uploading / Eddie -Original Message- From: Hynek Semecký ME [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Decem

Re: [PHP] pcntl_fork

2002-12-17 Thread Negrea Mihai
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My phpinfo shows in the upper part in the configure line that it has been compiled with --enable-pcntl I have Apache 2.0 from RH8.0 And.. it works from the command line if I use the php binary On Tuesday 17 December 2002 17:33, Chris Hewitt wrote: >

Re: [PHP] pcntl_fork

2002-12-17 Thread Negrea Mihai
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 forgot to say: I have php 4.2.3 On Tuesday 17 December 2002 17:28, Negrea Mihai wrote: > My phpinfo shows in the upper part in the configure line that it has been > compiled with --enable-pcntl > I have Apache 2.0 from RH8.0 > > And.. it works from th

Re: [PHP] pcntl_fork

2002-12-17 Thread Chris Hewitt
Negrea Mihai wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My phpinfo shows in the upper part in the configure line that it has been compiled with --enable-pcntl I have Apache 2.0 from RH8.0 This seemed a bit wierd so I looked further. From the manual (http://www.php.net/manual/en/ref.

[PHP] *arrays/evaluating - ! urgent !

2002-12-17 Thread Alexey Lysenkov
Hello, another newbie here. Here is a loop: for($f=0;$f\n"); echo("$frage5[$f]\n"); for($h=0;$h\n"); $tempQar = "array_values(\$arq_5_".$hh.")"; eval("\$tempQar=\"$tempQar\";"); for($v=0;$v<7;$v++){ if((int)$tempQar[$f] == $v){ $sel = "selected"; }els

[PHP] Re: Per instance disable_functions in CGI "mode"

2002-12-17 Thread rosie storey
I usually specify php directives, in the VirtualHost definition in the apache configuration file. I haven't tried disable_functions, but it works for other php.ini directives, such as include_path. You can also put php directives in an .htaccess file. Directives placed in a VirtualHost config

Re: [PHP] *arrays/evaluating - ! urgent !

2002-12-17 Thread Wico de Leeuw
Hiya, I couldn't read you code really (i think you gotta look into it, eval is evil and really not nessacery here) I suggest you look at this (piece) of code: value="">value_ Gr, Wico At

[PHP] Strange XML/file read problem

2002-12-17 Thread news . php . net
I'm getting the same exact problem as this: http://marc.theaimsgroup.com/?l=php-general&m=102879705713315&w=2 Here's the code that's giving me problems: while ($data = fread($fp, 4096)) { xml_parse($parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_

[PHP] php reference behavior

2002-12-17 Thread 22 manopohuji
hi, i'm running into some weird behavior with php references. i distilled it down to some test code below: 'dean' ); $var1['arrayref'] = & $array; $var2 = $var1; echo "var1:\n"; print_r( $var1 ); echo "var2:\n"; print_r( $var2 ); $var1['arrayref'] = NULL; echo "var1:\n"; print_r( $v

[PHP] Submitting a Form

2002-12-17 Thread Jay Thayer
I have a php page, with a form I am attempting to submit. In submitTest.php, I simply put Yet, I continually get the browser message: "Notice: Undefined variable: Test in ...\submittest.php on Line 2 1. Any reason that I can not pass the variable to the submit page? I am using an A

Re: [PHP] Submitting a Form

2002-12-17 Thread Joseph W. Goff
Your error reporting is set to E_ALL. If you change it to E_ALL & ~E_NOTICE you will not get the notice messages anymore. Also, if you are not getting the value, try $_POST['Test'] instead. - Original Message - From: "Jay Thayer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, D

Re: [PHP] Submitting a Form

2002-12-17 Thread Adam Voigt
1. Try: $_POST[Test] 2. $_POST[testmultiple][2] (Will give you position 3 of the select.) Or: $list = implode($_POST[testmultiple]); Will give you the values selected in $list in a comma seperated list. 3. print_r($_REQUEST) On Tue, 2002-12-17 at 12:38, Jay Thayer wrote: I have

Re: [PHP] Submitting a Form

2002-12-17 Thread Johannes Schlueter
On Tuesday 17 December 2002 18:38, Jay Thayer wrote: > 1. Any reason that I can not pass the variable to the submit page? I am Try $_REQUEST['Test'] and look in the manual, the archives or a PHP-FAQ for "register_globals". > 2. If I have a HTML tag, how can I > reference the x# of variables th

[PHP] Browser Language

2002-12-17 Thread Jeff
Does anybody know how to get what language (en, fr, it, etc.) the users browser is using? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Strange behaviour of generated images

2002-12-17 Thread Victor V. Evtushenko
Hi, I'm trying to output a set of image thumbnails in HTML table. Everything works fine, except that performance is very poor. If I put all the thumbnails as regular files in some directory it has expected speed. But if I'm trying to use script to retrieve thumbnails from their actual location (w

Re[2]: [PHP] Error 155 using exec - please help !

2002-12-17 Thread ml
> Take a look at http://cvs.php.net/co.php/php4/php.ini-dist > The part that should you look at is Resource Limits > (max_execution_time,memory_limit) and > set up your php.ini accordingly. Nope i can't find any solution... It goes well with memory_limit=8M for a 12Ko file, but won't work for a

Re: [PHP] Browser Language

2002-12-17 Thread Johannes Schlueter
On Tuesday 17 December 2002 18:51, Jeff wrote: > Does anybody know how to get what language (en, fr, it, etc.) the users > browser is using? Have a look at $_SERVER["HTTP_ACCEPT_LANGUAGE"] This are the languages the user likes to read. johannes -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: php reference behavior

2002-12-17 Thread Peter Clarke
22 Manopohuji wrote: hi, i'm running into some weird behavior with php references. i distilled it down to some test code below: 'dean' ); $var1['arrayref'] = & $array; $var2 = $var1; echo "var1:\n"; print_r( $var1 ); echo "var2:\n"; print_r( $var2 ); $var1['arrayref'] = NULL; echo

[PHP] Re: PHP Auto-Responder

2002-12-17 Thread Kevin Stone
Good suggestions. Thank you very much. -Kevin - Original Message - From: "Joel Boonstra" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 6:41 AM Subject: Re: PHP Auto-Responder > On Mon, 16 Dec 2002, Kevin Stone wrote:

[PHP] pcre pattern match help

2002-12-17 Thread Max Clark
Hi- I would like to do a pattern match against a string, sometimes this pattern will include the full string, and sometimes it will not, if the pattern does not include the second match I still want to get the first pattern match. Below is my code, and the results I am looking for. Thanks in adv

[PHP] PHP question

2002-12-17 Thread Tom Ray
Are PHP script supposed to run as the user or as the web server? Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP scripts run as apache, not as the user. I'm wonder if I can run the scripts as the user and how do I fix this? Any help would be great! -- PHP General Mailing Li

Re: [PHP] PHP question

2002-12-17 Thread Joseph W. Goff
You can set this up in the php.ini file in the /etc directory. You can set php to run an any user and any group that you have set up on your system. Just make sure that you set permissions properly so that it can function in the directories that it is accessed. - Original Message - From: "

Re: [PHP] PHP question

2002-12-17 Thread 1LT John W. Holmes
> Are PHP script supposed to run as the user or as the web server? > Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP > scripts run as apache, not as the user. I'm wonder if I can run the > scripts as the user and how do I fix this? As a module, that's the way it is. I think you

Re: [PHP] PHP question

2002-12-17 Thread Joseph W. Goff
Actually, I was mistaken. It isn't php.ini that has to be changed. I believe it is httpd.conf. php runs as what ever the webserver is set up to run as. - Original Message - From: "Joseph W. Goff" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]>; "Tom Ray" <[EMAIL PROTECTED]> Sent

[PHP] script design question

2002-12-17 Thread Anders Thoresson
As a PHP beginner, I'm not only struggling with sessions, functions and variables, but also with script design and good coding practices. I'm not sure how to best split up the code between different PHP-files. At the moment, I'm using a skeleton like this for the main script, the one that the w

[PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
I have the following bit of information coming in that I need to generate key pairs of so I can drop it all into a database. I'm creating tables for each section (SHIP_TO and BILL_TO) with matching Unique_IDs. What's the best way to go about this (creating the pairs, stripping off excess

[PHP] FREE access to LIVE ADULT WEBCAMS! 100% FREE! No Credit Card Needed!

2002-12-17 Thread [EMAIL PROTECTED]
Below is the result of your feedback form. It was submitted by [EMAIL PROTECTED] ([EMAIL PROTECTED]) on Tuesday, December 17, 2002 at 15:04:18 --- bp: Are you sick and tired of sitting in a chatroom begging to see somebody

Re: [PHP] key pairs

2002-12-17 Thread Tim Ward
1. Have an order_id on the first table (or a separate ORDER table) that is INT and AUTO_INCREMENT. 2. Have an order_id on the other table(s) that is INT but not AUTO_INCREMENT. 3. Create the record in the first table just inserting the info you get in. 4. get the order_id just created using mysq

Re: [PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
Tim Ward wrote: 1. Have an order_id on the first table (or a separate ORDER table) that is INT and AUTO_INCREMENT. 2. Have an order_id on the other table(s) that is INT but not AUTO_INCREMENT. 3. Create the record in the first table just inserting the info you get in. 4. get the order_id just

Re: [PHP] key pairs

2002-12-17 Thread Marco Tabini
This is a bit crude but should work: Note that I made a bunch of assumptions here--that the data is always properly formatted, that there is only one record in the $data, and that you will later manipulate the key names so that they will actually work as database columns. Still, this way you can

Re: [PHP] key pairs

2002-12-17 Thread Tim Ward
what do you mean by key pairs - I assumed you meant a key that could link the records in each table. If you've already done that then what's the problem? Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Ashley M. Kirchner <[EMAIL PROTECTED]> To: Tim Wa

[PHP] nested if in a for statement

2002-12-17 Thread James Brennan
I am checking the values of a submited forms for empty fields with the code below. My problem is that the echo statement is being executed once regardless of whether or not the if statement is true. What am I missing? thanks, loopjunkie snip /* variables in array set earlier in script

Re: [PHP] nested if in a for statement

2002-12-17 Thread Tim Ward
looks ok as long as you are really testing what you mean to. As you've written it if any of the variables are an empty string, zero, logical false or not set then the if statement will be true. what is $auth? Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - F

[PHP] Re: nested if in a for statement

2002-12-17 Thread Kyle Gibson
snip /* variables in array set earlier in script */ $userVars = array($nameFirst, $nameLast, $pass, $pass2, $auth, $dob_year, $dob_month, $dob_day); for ($i=0; $i <= count($userVars); $i++) { if (empty($userVars[$i])) { echo "please enter all required info";

Re: [PHP] nested if in a for statement

2002-12-17 Thread Douglas Douglas
I think your error is this: $userVars = array($nameFirst, $nameLast, $pass, $pass2, $auth, $dob_year, $dob_month, $dob_day); for ($i=0; $i <= count($userVars); $i++) { if (empty($userVars[$i])) { echo "please enter all required info";

[PHP] Re: nested if in a for statement

2002-12-17 Thread Kyle Gibson
count($array) returns the number of items in the array. $array[$i] retreives the item at location $i, but remember, this location is ZERO-BASED. That means if we have an array of 10 items, the positions would be from 0 to 9. In the above code you have $i <= count($userVars) The problem is that

Re: [PHP] nested if in a for statement

2002-12-17 Thread Kevin Stone
Prepare the rubber glove... Chang this // $i <= count($userVars) To this // $i < count($userVars); Arrays start at index 0, not 1. -Kevin - Original Message - From: "James Brennan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 2:03 PM Subject: [PHP] neste

Re: [PHP] nested if in a for statement

2002-12-17 Thread Kevin Stone
Oops sorry didn't mean to add to the spam. LOL -Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 2:24 PM Subject: Re: [PHP] nested if in a for statement > Prepare the rubber glove... > > Chang this // $i <= cou

Re: [PHP] key pairs

2002-12-17 Thread 1LT John W. Holmes
Hopefully the other solution worked for how to parse the data. If not, post back. What I wanted to comment on is why would you use two tables, one for SHIP_TO and one for BILL_TO? Why not just add a column to one table set set it to BILL or SHIP. You won't be repeating data that way and it'll be ea

Re: [PHP] key pairs

2002-12-17 Thread Ashley M. Kirchner
1LT John W. Holmes wrote: Hopefully the other solution worked for how to parse the data. If not, post back. What I wanted to comment on is why would you use two tables, one for SHIP_TO and one for BILL_TO? Why not just add a column to one table set set it to BILL or SHIP. You won't be repeating d

Re: [PHP] key pairs

2002-12-17 Thread 1LT John W. Holmes
> >Hopefully the other solution worked for how to parse the data. If not, post > >back. What I wanted to comment on is why would you use two tables, one for > >SHIP_TO and one for BILL_TO? Why not just add a column to one table set set > >it to BILL or SHIP. You won't be repeating data that way and

Re: [PHP] key pairs

2002-12-17 Thread Brad Bonkoski
What about a master table like: Order ID | Ship_TO | BILL_TO Then an address table: ID | NAME | ADDR | CITY | STATE | ZIP Then you could have many addresses, and IFFthe Bill to and Ship to were the same then the master table would reflect that. Many sites provide a check box to indicate that th

  1   2   >