RE: [PHP] ereg

2002-01-10 Thread Rasmus Lerdorf
.*? is a Perl'ism and only supported by the preg* functions. Use preg_match() instead of ereg() and it will work. -Rasmus On Fri, 11 Jan 2002, Martin Towell wrote: > what about ? > ereg("(.*?)", $lineofhtml, $output); > > -Original Message- > From: Kunal Jhunjhunwala [mailto:[EMAIL PRO

[PHP] Authenticating via http

2002-01-10 Thread Paul
Here's a really quick question. I can't figure out how to try to get user authentication more than once. For instance, supposed I get this log on screen that asks for my username and password. If I type in something wrong that variable gets stuck in $PHP_AUTH_USER, and there is no way to unset

Re: [PHP] Piping phpinfo();

2002-01-10 Thread Rasmus Lerdorf
> On Thu, 10 Jan 2002, Rasmus Lerdorf wrote: > > Thanks Rasmus, but I am not looking for a command line option. > > I need to pipe phpinfo() from a php script, running under apache. > Normally, phpinfo() will just dump its output onto the browser; > I want to redirect those output to a logfile ins

RE: [PHP] Piping phpinfo();

2002-01-10 Thread Kraa de Simon
Maybe you could use: $fp = fopen ("http://yoursite/phpinfo.php";, "r"); See http://www.php.net/manual/en/function.fopen.php. Simon. > -Original Message- > From: Vaccius ITsec [mailto:[EMAIL PROTECTED]] > Sent: vrijdag 11 januari 2002 8:04 > To: Rasmus Lerdorf > Cc: [EMAIL PROTECTED] >

[PHP] Re: Piping phpinfo();

2002-01-10 Thread Vaccius ITsec
On Fri, 11 Jan 2002, Paul A. Procacci wrote: > how about > > > ob_start(); > > phpinfo(); > > $contents = ob_get_contents(); > ob_end_clean(); > > $fopen = fopen("my_file.log", "w+"); > > fputs($fopen, $contents); > > ?> What a beauty! Thanks! > > Paul :> > - Original Message ---

Re: [PHP] Piping phpinfo();

2002-01-10 Thread Vaccius ITsec
On Thu, 10 Jan 2002, Rasmus Lerdorf wrote: Thanks Rasmus, but I am not looking for a command line option. I need to pipe phpinfo() from a php script, running under apache. Normally, phpinfo() will just dump its output onto the browser; I want to redirect those output to a logfile instead. Is th

[PHP] New mailparse extensions

2002-01-10 Thread Paul
Hey all, Before I begin, I would like to acknowledge that I understand that the mailparse functions are still in development. I, however, would like to start programming a mailparse utility that will read from the stdin and return, body, attachments, from, etc. Does anyone know, or has anyon

RE: [PHP] ask about cookies

2002-01-10 Thread gendeng
halo .. i want to know, how setting cookies in php win98 with PWS, because my guestbook with cookies is not working. all cookies , i set default in php ini., please help what can i do now ? Mpu Strees -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] ereg

2002-01-10 Thread Niklas Lampén
You should use preg_match_all() for this. Something like this should do (didn't try it thou): preg_match_all("|(.*)\">|U", $lineofhtml, $output, PREG_PATTERN_ORDER); Niklas -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: 11. tammikuuta 2002 5:56 To: php-l

Re: [PHP] Piping phpinfo();

2002-01-10 Thread Rasmus Lerdorf
php -i >logfile On Fri, 11 Jan 2002, Vaccius ITsec wrote: > > Hi, > > How does one redirect phpinfo into some logfile? > > Rgds, > -PY > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >

Re: [PHP] Can PHP access BIOS information?

2002-01-10 Thread Jason Bell
as far as I know, PHP can't do that itself, however. if you had a commandline utility that did the BIOS read for you, you should be able to have PHP exec() out to it - Original Message - From: "Police Trainee" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Thursday, Janu

[PHP] Piping phpinfo();

2002-01-10 Thread Vaccius ITsec
Hi, How does one redirect phpinfo into some logfile? Rgds, -PY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Can PHP access BIOS information?

2002-01-10 Thread Police Trainee
Hello. I was trying to determine if PHP has the ability to access BIOS information in a WIN environment. Specifically, I would like to have PHP access the cpu temperature as appears in the BIOS menu. I am running Apache 1.3.14. The board is a PC 100 Super 7 M598. Any help/thoughts/ideas greatly

[PHP] weird fopen problem

2002-01-10 Thread Zhang, Leon (STHK/Zh)
Hi Jon, Can you tell me how you solve this at last,I met the same problem in my php script.,I am really new to Linux and Apache.Where and how to set the permission to ensure that all common users can write this file? Regards Leon -原始邮件- 发件人: Jon Farmer [mailto:[EMAIL PROTECTED]] 发送时间: 1

Re: [PHP] ereg

2002-01-10 Thread Kunal Jhunjhunwala
RE: [PHP] eregWarning: REG_ERANGE on line 83 83: ereg("(.*?)", $lineofhtml, $output); Regards, Kunal Jhunjhunwala - Original Message - From: Martin Towell To: 'Kunal Jhunjhunwala' ; Jimmy Cc: php-list Sent: Friday, January 11, 2002 9:36 AM Subject: RE: [PHP] ereg what

Re: [PHP] PHP Parsing Database Text

2002-01-10 Thread Adam Baratz
> Is it possible to have PHP parse text queried from > a database (security issues notwithstanding)? > If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mailing List

RE: [PHP] ereg

2002-01-10 Thread Martin Towell
what about ? ereg("(.*?)", $lineofhtml, $output); -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 3:05 PM To: Jimmy Cc: php-list Subject: Re: [PHP] ereg Nopes, dint work Regards, Kunal Jhunjhunwala - Original Message - From:

Re: [PHP] ereg

2002-01-10 Thread Kunal Jhunjhunwala
Nopes, dint work Regards, Kunal Jhunjhunwala - Original Message - From: "Jimmy" <[EMAIL PROTECTED]> To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]> Cc: "php-list" <[EMAIL PROTECTED]> Sent: Friday, January 11, 2002 9:30 AM Subject: Re: [PHP] ereg > Hi Kunal, > > > ereg("(.*)", $lineofhtml, $

Re: [PHP] ereg

2002-01-10 Thread Jimmy
Hi Kunal, > ereg("(.*)", $lineofhtml, $output); ereg("([^]*)", $lineofhtml, $output); -- Jimmy It's not what you have in your life that counts, but who you have in your life -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

[PHP] ereg

2002-01-10 Thread Kunal Jhunjhunwala
This is my code : ereg("(.*)", $lineofhtml, $output); The problem is that, with (.*) it matches everthing from the first to the last ... hence it appears its all in one array... what I need to do is tell it to stop at the first and I can't figure out how to do that... any ideas? Regards, Kunal

[PHP] sessions and mysql

2002-01-10 Thread John Branstad
We recently upgraded to php4.1.0 from 4.0.6 and now our custom session handling doesn't work! We are running on linux with apache, attempting to save session info to a MySQL database (I have session.save_handler=user). There are a couple issues: 1) Occassionally (can't seem to pin down exactly w

RE: [PHP] ask about cookies

2002-01-10 Thread gendeng
my cookies setting default in php.ini. Mpu Strees -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] ask about cookies

2002-01-10 Thread gendeng
i want to know, where is place to set cookies in php win98 with PWS. if session set in php.ini. because my cookies is not working. please help me ?? Mpu Strees -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Object Copying

2002-01-10 Thread Jimmy
Hi Ken, > As we all know, this copies an object in PHP: > $obj2 = $obj1 > Preferable a way to fix PHP not to copy the object, but the reference. this will do want you want: $obj2 = &$obj1; -- Jimmy Always keep a cool head and a warm heart -- PHP General Mailing

Re: [PHP] me and my CRON JOB

2002-01-10 Thread Mehmet Kamil ERISEN
hi, thanks for the tip. I was wondering about it too I do not have access to everywhere on the server. I tried /usr/bin/php and it worked.. :) I tested the following script for connection to database, executing my functions etc... everything seems to work but mail. any ideas? Thanks fo

Re: [PHP] PHP x Mysql

2002-01-10 Thread Dennis Moore
execute "phpinfo();" on a new page to see if mysql is still compiled in...; - Original Message - From: "Frederico Madeira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 10, 2002 10:37 PM Subject: [PHP] PHP x Mysql > Hello !! > > My server was runing perfect th

Re: [PHP] me and my CRON JOB

2002-01-10 Thread Rasmus Lerdorf
Well, does /usr/local/bin/php exist? On Thu, 10 Jan 2002, Mehmet Kamil ERISEN wrote: > hi, > here is the question: > I know I need to add a line like: > #!/usr/local/bin/php > to the begining of my php page followed by > my code > ?> > > Then set a cron job, so it runs. > > I have done all that

[PHP] me and my CRON JOB

2002-01-10 Thread Mehmet Kamil ERISEN
hi, here is the question: I know I need to add a line like: #!/usr/local/bin/php to the begining of my php page followed by Then set a cron job, so it runs. I have done all that. aslo made the php file executable. The file is executing. First I did not put the line #!/usr/local/bin/php and I re

[PHP] html table to sql

2002-01-10 Thread Michael A. Peters
I want to take data from a html table and store it in a mysql database for use with php scripts. Is there already an easy php function to do this? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] Q: Array

2002-01-10 Thread Michael Sims
At 09:18 PM 1/10/2002 +0100, Ivo Stoykov wrote: >How could I determine whether I have in the array's key integers *and* >strings or integers only? I'm not sure exactly what you're asking but I'll give it a shot... >i.e. >$a = new array('one', 'two', 'three'); // this has only integers (am I >wro

Re: [PHP] quick question

2002-01-10 Thread Rasmus Lerdorf
On Thu, 10 Jan 2002, Erik Price wrote: > I thought that $_GET[] and $_POST[] could be used in place of regular > variables... that is, > > $sql = "SELECT * FROM tablename WHERE > tablename.column=$_GET['criteria_integer']"; > > but unfortunately, this isn't working. $sql = "SELECT * FROM tablena

[PHP] PHP x Mysql

2002-01-10 Thread Frederico Madeira
Hello !! My server was runing perfect the mysql server and php language. Today when i acess any paga that stabilished a conection with mysql the follow mesage return me. Fatal error: Call to undefined function: mysql_connect() in /home/fred/public_html/vg/index1.php on line 14 How i resolv

Re: [PHP] Specific References Incident

2002-01-10 Thread Rasmus Lerdorf
Well, just use the array index. ie. $a = array(1,2,3,4,5); foreach($a as $k=>$v) { $a[$k]++; } This is obviously going to increment each element in the array, right? Just do the same in your case. One has to wonder why you are using arrays of objects though... -Rasmus On

[PHP] FYI: Specific References Incident

2002-01-10 Thread Ken Kinder
>From PHP Cookbook: for ($c = 0; $c < count($topics); $c++) { ... } Only way to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Specific References Incident

2002-01-10 Thread Ken Kinder
Nope. Tried that too. On Thursday 10 January 2002 05:18 pm, Rasmus Lerdorf wrote: > Use a while(list()=each()) loop. > > On Thu, 10 Jan 2002, Ken Kinder wrote: > > Negative. > > > > On Thursday 10 January 2002 04:54 pm, Mark wrote: > > > On Thu, 10 Jan 2002 16:49:45 -0700, Ken Kinder wrote: > > >

Re: AW: AW: [PHP] MORE QUESTION - Editing Database

2002-01-10 Thread Mehmet Kamil ERISEN
hi, download one of the php forum programs and look into their code. www.phpBB.com should be a good reference. --- Dani <[EMAIL PROTECTED]> wrote: > Hi ! > > How do I allow HTML entries into my database? > > I tried to insert a pre-formated text into my database. > When I pull the > data out and

Re: AW: AW: [PHP] MORE QUESTION - Editing Database

2002-01-10 Thread Dani
Hi ! How do I allow HTML entries into my database? I tried to insert a pre-formated text into my database. When I pull the data out and put it in a text field the formating is still there, HOWEVER when I retrive the record from the database using "echo" all the text formating is gone and it b

[PHP] memory error

2002-01-10 Thread Thomas Holton
Hi I built PHP on an ALPHA running OSF V5.1 I did the install after the make just like i did in the past. This time, however, when i do: apachectl start i get this: /usr/local/apache/bin/apachectl: 323331 Memory fault /usr/local/apache/bin/apachectl start: httpd could not be started There are n

Re: [PHP] Second newbie question

2002-01-10 Thread Rasmus Lerdorf
See http://php.net/overload On Thu, 10 Jan 2002, Ken Kinder wrote: > I have a second newbie question, and I promise I really did try to find this > in the docs. > > Is there a method that can be called when an attribute or method is called > that doesn't exist? A catch-all method? > > -- > PHP G

[PHP] Re: New to list

2002-01-10 Thread Alan McFarlane
try: $result = ((0.416/$time)*60)*60); echo number_format($result, 2); or echo sprintf("%.2f", $result); Andrew <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello to you all! > I am new to this list and I have a question that maybe someone can help with >

Re: [PHP] Specific References Incident

2002-01-10 Thread Rasmus Lerdorf
Use a while(list()=each()) loop. On Thu, 10 Jan 2002, Ken Kinder wrote: > Negative. > > On Thursday 10 January 2002 04:54 pm, Mark wrote: > > On Thu, 10 Jan 2002 16:49:45 -0700, Ken Kinder wrote: > > >That's what I had thought too, but no: > > > > > >Parse error: parse error, expecting `T_VARIAB

[PHP] Re: PHP Parsing Database Text

2002-01-10 Thread Alan McFarlane
Look at (for example) the mySQL database suport for PHP. That will give you the basics for reading (and writing) database records. As for parsing this text, that's going to be up to you - I suppose ideally store the text in a 'structured' format: part1~part2~part3 etc then you can just use: $r

RE: [PHP] New to list

2002-01-10 Thread Martin Towell
have a look at: http://www.php.net/manual/en/function.number-format.php -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] New to list Hello to you all! I am new to this list and I have a question that

RE: [PHP] session_unregister and register_globals = Off

2002-01-10 Thread Johnson, Kirk
> I'm having difficulty trying to figure out how unregister a > variable when > register_globals is turned on. I've tried session_unregister > but it doesn't > seem to do anything. Just unset the $HTTP_SESSION_VARS['var'] element. Kirk -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] does this work?

2002-01-10 Thread Miles Thompson
Yes, the semi-colon is the command separator. Try it and echo $tempsql. Miles Thompson At 09:16 AM 1/11/2002 +1100, Martin Towell wrote: >is this valid in PHP?? (haven't tried it myself yet...) > >$tempsql = "SELECT COUNT(*) AS count > FROM divisions"; > >maybe it needs t

[PHP] PHP Parsing Database Text

2002-01-10 Thread Ken
Is it possible to have PHP parse text queried from a database (security issues notwithstanding)? If so, how? _Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] Passing Variables

2002-01-10 Thread Miles Thompson
PHP is server side. The link would have to load another page, or reload the same page with the function triggered by the link. Maybe this is something you want to do in Javascript? Miles At 05:07 PM 1/10/2002 -0500, Artie Ball wrote: >Hi all, > > Could anyone please tell me if there is

[PHP] Second newbie question

2002-01-10 Thread Ken Kinder
I have a second newbie question, and I promise I really did try to find this in the docs. Is there a method that can be called when an attribute or method is called that doesn't exist? A catch-all method? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

[PHP] session_unregister and register_globals = Off

2002-01-10 Thread Alastair
I'm having difficulty trying to figure out how unregister a variable when register_globals is turned on. I've tried session_unregister but it doesn't seem to do anything. thanks, alastair -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] Specific References Incident

2002-01-10 Thread Ken Kinder
Negative. On Thursday 10 January 2002 04:54 pm, Mark wrote: > On Thu, 10 Jan 2002 16:49:45 -0700, Ken Kinder wrote: > >That's what I had thought too, but no: > > > >Parse error: parse error, expecting `T_VARIABLE' or `'$'' in > >/home/ken/Projects/kwidgets/widgets.inc on line 74 > > how about thi

Re: [PHP] Form Question

2002-01-10 Thread Miles Thompson
Julie Meloni has a really nice tutorial on the at http://www.thickbook.com Look for the one on custom error messages. Miles Thompson At 08:54 PM 1/10/2002 +, LaserJetter wrote: >I've noticed on some web pages that when the back button is pressed the data >in the fields is still there and

[PHP] New to list

2002-01-10 Thread Andrew
Hello to you all! I am new to this list and I have a question that maybe someone can help with In a script I am working on I have a math's equation : ((0.416 / $time) * 60) * 60) this out but a figure at goes to a about 10 decimal places I only want 2 decimal places and just can not figure ou

Re: [PHP] Specific References Incident

2002-01-10 Thread Mark
On Thu, 10 Jan 2002 16:49:45 -0700, Ken Kinder wrote: >That's what I had thought too, but no: > >Parse error: parse error, expecting `T_VARIABLE' or `'$'' in >/home/ken/Projects/kwidgets/widgets.inc on line 74 how about this: foreach ($this->children as $key => $value) { $child=&$this->children

Re: [PHP] Specific References Incident

2002-01-10 Thread Ken Kinder
That's what I had thought too, but no: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/ken/Projects/kwidgets/widgets.inc on line 74 On Thursday 10 January 2002 04:51 pm, Martin Towell wrote: > does this work?? change > foreach ($this->children as $child) { > to >

RE: [PHP] Specific References Incident

2002-01-10 Thread Martin Towell
does this work?? change foreach ($this->children as $child) { to foreach ($this->children as &$child) { -Original Message- From: Ken Kinder [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Specific References Incident I

[PHP] Specific References Incident

2002-01-10 Thread Ken Kinder
I have one specific incident I could use some help with too. I have the following method: function validate() { if ($this->returning) { $errors = array(); foreach ($this->children as $child) { $child->error = "Foo"; $error = $child->validate(); if (

[PHP] Object Copying

2002-01-10 Thread Ken Kinder
As we all know, this copies an object in PHP: $obj2 = $obj1 Assuming $obj1 is an object (of a class). I want this never, ever to happen unless I want it to. All the time, I run into something where PHP made a copy of my object for X odd reason -- I pass an object to a function, I put

[PHP] Re: A variable with a variable

2002-01-10 Thread George Nicolae
$v="Var_".$Nums."_Stat"; $Var_Call=$$v; -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Yoed" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I never really found the trick to this one

[PHP] Parsing SAR output with PHP.

2002-01-10 Thread Austin Gonyou
I'm going to do some parsing of large SAR files and I'd like to use PHP to do it so it's more of an automated process as far as logging this type of info. Does anyone have any suggestions as far as how to go about doing this? The real question I suppose is how could I parse this type of output int

RE: [PHP] A variable with a variable

2002-01-10 Thread Martin Towell
you'll be wanting "pointers" eg $Var_1_Stat = "hello world"; $Num = 1; $var_name = "Var_${Num}_Stat"; // set up the actual var name $Var_Call = $$var_name; // now reference the actual var echo $Var_Call; // should by "hello world" ... :) -Original Message- From:

Re: [PHP] does this work?

2002-01-10 Thread DL Neil
Erik, Two suggestions: 1 check out mysql_fetch_assoc(), and 2 make use of AS to 'set' the variable names (carried through from MySQL to PHP). Regards, =dn - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: 1

Re: [PHP] does this work?

2002-01-10 Thread Alnisa Allgood
At 4:28 PM -0500 1/10/02, Erik Price wrote: > >PS: what I am -really- trying to do is dynamically fill in a > listbox with that correspond to all of the >records in a given table. Like so: > > > > foreach ($record_id_and_record_name_pair_pulled_from_mysql_query) { >

Re: [PHP] Re: Post CGI variable to PHP

2002-01-10 Thread Job Miller
to post to a PHP script from within perl, you would either define a form in the perl script that has a submit button whose action is a php script, or you can use the LWP module in Perl to generate a POST for you. this will post the stuff to the php script and fetch the results. it isn't a redire

Re: [PHP] Cannot load: iconv_module_entry

2002-01-10 Thread Brian Clark
* Brian Williams ([EMAIL PROTECTED]) [Jan 10. 2002 04:57]: > Hi All, Hello > When I try to run apache, I get this error message: > Cannot load /usr/local/libexec/apache/libphp4.so into server: > /usr/local/libexec/apache/libphp4.so: Undefined symbol 'iconv_module_entry' So you configured PHP

Fwd: Re: [PHP] A variable with a variable

2002-01-10 Thread [EMAIL PROTECTED]
Use: $t = "Var_" . $Num_State; $Var_Call= $$t; or: $Var_Call= ${"Var_" . $Num_State}; bvr. On Thu, 10 Jan 2002 17:00:51 -0600, Yoed wrote: >I never really found the trick to this one yet, and wanted to see what you >guys say is the best methods to call a variable that needs a variable. > >

Re: SV: [PHP] cron job problem.

2002-01-10 Thread Mehmet Kamil ERISEN
Hi, thanks for the reply. I did setup the crontab already to run every minute. the webmaster account receives the report. Here is the output that I get when I remove the #!/usr/local/bin/php -q /home/webvoire/www/cm/test.php: ?php: No such file or directory /home/webvoire/www/cm/test.php: =Cron

[PHP] A variable with a variable

2002-01-10 Thread Yoed
I never really found the trick to this one yet, and wanted to see what you guys say is the best methods to call a variable that needs a variable. Say I have variables called $Var_1_Stat, $Var_2_Stat, and $Var_3_Stat and I have a variable called $Nums thats value is either 1, 2, or 3. How then wou

SV: [PHP] cron job problem.

2002-01-10 Thread Daniel Alsen
Hmm...don?t you have to actually create a job in crontab? Saying that you want a mail every day at 6:00 you would want to create something like: * 6 * * * php /usr/local/bin/php > /dev/null in crontab and lose #!/usr/local/bin/php -q in your script. # Daniel Alsen| www.mindbash.com # # [EM

[PHP] XML and CMS

2002-01-10 Thread Emile Bosch
Hmm. has someone exeperience with building an CMS which uses XML for it's objects and page elemnts?? Warm regards, Emile Bosch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adm

[PHP] Re: Query Optimizing on sum() function

2002-01-10 Thread Manuel Lemos
Hello, Nomor Satu Bajingan wrote: > > Hello Friends, > I've some performance problem, when I do sum() functions on my tables it > took 5-7 minutes to return the results.. here is my story: > I've table with 2461566 rows here is my table structure: > mysql> describe imp_log; > +--+---

Fwd: RE: [PHP] does this work?

2002-01-10 Thread [EMAIL PROTECTED]
and it would be like using the statement $a = $a; very very useless! bvr. On Thu, 10 Jan 2002 15:39:27 -0600, Rick Emery wrote: > >quotes are not needed > > >> >>mysql_query("$tempsql", $db); > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
On Thursday, January 10, 2002, at 05:16 PM, Martin Towell wrote: > is this valid in PHP?? (haven't tried it myself yet...) > > $tempsql = "SELECT COUNT(*) AS count > FROM divisions"; > > maybe it needs to be on one line??? It turns out that my problem was a typo. I apolo

Re: [PHP] does this work?

2002-01-10 Thread Sam Masiello
I think it will really help if you post more of your code. It is obvious that the parse error is not contained within the lines of code that you pasted :) I think more of your code will reveal the answer rather quickly :) HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-

Re: [PHP] Passing Variables

2002-01-10 Thread Erik Price
One way to pass a variable by clicking on a hyperlink is to make the HREF attribute of the anchor tag into a querystring with the variable that you want to pass. If you want to pass the variable "$user_id" to the next page, with a value of "289", here is how you could do it: Click here for th

RE: [PHP] global/local var in a function

2002-01-10 Thread Martin Towell
change for(i=0;imailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 10:44 PM To: [EMAIL PROTECTED] Subject: [PHP] global/local var in a function Hi, I have a little problem with a function. It calls him self and the var i is lost! after the call! can anybody help me? (it's javascri

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
But as I was writing before, what I'm really trying to do with this isn't just echo the COUNT of records in a table. What do I need to separate the array "$temprow" into pieces so that I can get at the data: $tempsql = "SELECT divisions.div_name, divisions.div_id FROM divisions";

RE: [PHP] does this work?

2002-01-10 Thread Martin Towell
is this valid in PHP?? (haven't tried it myself yet...) $tempsql = "SELECT COUNT(*) AS count FROM divisions"; maybe it needs to be on one line??? -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 8:39 AM To: 'Erik Pric

[PHP] Passing Variables

2002-01-10 Thread Artie Ball
Hi all, Could anyone please tell me if there is a way pass a value to a variable by clicking on a hyperlink, or run a function on a page by clicking on a hyperlink. Thanks Artie Ball MCP Associate Network Administrator Atlanta History Center 130 West Paces Ferry Road, NW Atlant

Re: [PHP] does this work?

2002-01-10 Thread LaserJetter
you have a and $tempsql. did you remove this for the purose of this posting or is this what's causing the problem?? "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Show all your code. Did you open a connection to the MYSQL server? If so, > sh

[PHP] Re: Post CGI variable to PHP

2002-01-10 Thread LaserJetter
If you send a form on an HTML page using GET then the variables show up in the URL. If you send it using POST then they dont. With PHP 4.1.0 even if the variable is typed in the URL, PHP should only read the real variables which were submitted if $_GET[$varname] is used (or whatever it is!) I hav

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
Wait, my bad. Typo... all my fault. I feel like an ass. Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
On Thursday, January 10, 2002, at 04:39 PM, Rick Emery wrote: > Show all your code. Did you open a connection to the MYSQL server? If > so, > show the code. > Okay, but I changed some personal info (that I know is definitely correct): Array Test $tempsql = "SELECT COUNT(*)

RE: [PHP] does this work?

2002-01-10 Thread Rick Emery
quotes are not needed -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 3:26 AM To: Erik Price; PHP (E-mail) Subject: Re: [PHP] does this work? Hmm I believe that the mysql_query() function requires quotes around the query statement even it

RE: [PHP] does this work?

2002-01-10 Thread Rick Emery
Show all your code. Did you open a connection to the MYSQL server? If so, show the code. What is the exact error that you get? -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 3:29 PM To: PHP Subject: [PHP] does this work? It seems that

RE: [PHP] does this work?

2002-01-10 Thread Rick Emery
Show all your code. Did you open a connection to the MYSQL server? If so, show the code. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 3:29 PM To: PHP Subject: [PHP] does this work? It seems that I have a "parse error" somewhere in the

Re: [PHP] does this work?

2002-01-10 Thread Erik Price
I tried that... I get the same error (same line and everything). As a side note, I haven't ever had to quote the first argument in mysql_query() before... This is quite a conundrum, eh? Erik On Friday, January 11, 2002, at 04:25 AM, Kevin Stone wrote: > Hmm I believe that the mysql_query()

Re: [PHP] does this work?

2002-01-10 Thread R'twick Niceorgaw
what eact parse error you are getting ? and what is that line ? Is it giving an error like undefined variable $temprow["count"]; or some thing like that ? You may try to change the mysql_fetch_row line to the following $temprow = mysql_fetch_array($tempresult, MYSQL_ASSOC); - Original Me

[PHP] Post CGI variable to PHP

2002-01-10 Thread Benjamin Bostow
I am trying to pass variables from a CGI/Perl script to a php page. I know how to pass it through the url (i.e. page.php?tmp=[var1]&tmp2=[var2]) but need to know how to pass it so that the information does not show up in the url. Benjamin __ Do Yo

Re: [PHP] does this work?

2002-01-10 Thread Kevin Stone
Hmm I believe that the mysql_query() function requires quotes around the query statement even it it is being passed as a variable.. mysql_query("$tempsql", $db); -Kevin > It seems that I have a "parse error" somewhere in the following code > (since that's the only code in my script, it's a test

[PHP] does this work?

2002-01-10 Thread Erik Price
It seems that I have a "parse error" somewhere in the following code (since that's the only code in my script, it's a test script): // arraytest.php $tempsql = "SELECT COUNT(*) AS count FROM divisions"; $tempresult = mysql_query($tempsql, $db); $temprow = mysql_fetch_arra

[PHP] cron job problem.

2002-01-10 Thread Mehmet Kamil ERISEN
Hello All, I have a php script that i tested first through my browser. If has a simple mail() command. It workd fine and I received the email. not I tried to run it as a cron job by adding #!/usr/local/bin/php -q My webmaster account receives the confirmation that cron job has run, but I do not r

Re: [PHP] Form Question

2002-01-10 Thread LaserJetter
I've noticed on some web pages that when the back button is pressed the data in the fields is still there and sometimes it isnt. I would expect this with a password field but why does it only save the data sometimes? "Mark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

[PHP] Re: Finding PHP Developers for Remote Project

2002-01-10 Thread LaserJetter
You could try guru.com LJ "Richard Spangenberg" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I may need some help on a project I am working on. > Does anyone know of a good source of PHP developers where I can advertise my > needs? > > Rick > > -- PHP

Re: [PHP] Form Question

2002-01-10 Thread Kevin Stone
IE5.5 actualy has a bug that will not cache certain form fields under certain conditions. There are other situations in which a browser won't cache the information at all. So it's best to do this within the script by either printing the form from within the script its self, or include() the HTML

Re: [PHP] Form Question

2002-01-10 Thread mike cullerton
keep the data in a variable and do something like on 1/10/02 1:30 PM, Lerp at [EMAIL PROTECTED] wrote: > Hi there, how do I keep values in a form if the user has to go back and fill > in some missing fields? > > Thx Joe :) > > -- mike cullerton -- PHP General Mailing List (http://w

Re: [PHP] Form Question

2002-01-10 Thread Mark
Just let the browser cache it. On Thu, 10 Jan 2002 16:30:01 -0400, Lerp wrote: >Hi there, how do I keep values in a form if the user has to go back >and fill >in some missing fields? > >Thx Joe :) > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Form Question

2002-01-10 Thread Lerp
Hi there, how do I keep values in a form if the user has to go back and fill in some missing fields? Thx Joe :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-

RE: [PHP] headers showing up in browser

2002-01-10 Thread Mark
lets say I have a page that contains just this code: the output I get is: Location: /myfile.html Content-type: text/html - Mark On Thu, 10 Jan 2002 14:03:26 -0600, Rick Emery wrote: >what does your code look like? > >-Original Message- >From: Mark [mailto:[EMAIL PROTECTED]] >Sent: Thur

Re: [PHP] headers showing up in browser

2002-01-10 Thread Mark
On Thu, 10 Jan 2002 12:53:33 -0700, mike cullerton wrote: >#!/usr/local/bin/php -q I don't think you understood what I meant. I want the headers to get sent, but they're showing up in the browser as part of the page content. I had this working before on a different machine where everything to do

[PHP] Re: Operators

2002-01-10 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Gerard Samuel) wrote: > If != is the opposite of == > What is the opposite of === ?? !($something===$somethingelse) -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

  1   2   >