Re: [PHP] Re: PHP Editors

2002-05-02 Thread José León Serna
Hello: The big disappointment was QaDRAM Studio, which was so buggy and unstable, it only took me until I tried to create a project (the first thing I did upon loading the software) before it crashed my entire system and forced me to reboot. Trying to uninstall it is impossible, as well,

Re: [PHP] Re: PHP Editors

2002-05-02 Thread Marius Ursache
use vim (http://www.vim.org/) highlight syntax code complition autoindent and more... :q José León Serna a écrit : Hello: The big disappointment was QaDRAM Studio, which was so buggy and unstable, it only took me until I tried to create a project (the first thing I did upon loading

[PHP] How do I Install PHP on Apache 2, on win32

2002-05-02 Thread Philip Newman
How do I Install PHP on Apache 2, on win32? I would like to install the ISAPI module? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variables over 2 pages w/ a table.

2002-05-02 Thread Marius Ursache
try to send the same url + start=8 index.php?left=newsltitle=indexlext=phpstart=8 Jule a écrit : Hey, i've got a little problem: I have two php pages index.php and news/index.php now in index.php there is a table which shows news/index.php $left = news; $ltitle = index; $lext=

Re: [PHP] php/.htaccess/.htpasswd

2002-05-02 Thread Mika Tuupola
On Wed, 1 May 2002, Kelly Meeks wrote: Is is possible to use php to admin a password file used by a .htaccess file? You should check the File_Passwd class from PEAR. http://chora.php.net/cvs.php/php4/pear/File -- Mika Tuupola

[PHP] Hashes in strings

2002-05-02 Thread Ferry van Steen
Hey there, why do these work: $vars = vars; $ar[0] = arrays; $hash['vars'] = hashes; str = I can use $vars in strings; str = I can use $ar[0] in string; while this one doesn't: str = I can NOT use $hash['vars'] in strings; Kind regards -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Hashes in strings

2002-05-02 Thread Justin French
I don't know the answer to why, but you can do this: $str = I can use .$hash['vars']. in strings; :) Justin French Creative Director http://Indent.com.au on 02/05/02 6:42 PM, Ferry van Steen ([EMAIL PROTECTED]) wrote: Hey there, why do these

Re: [PHP] Hashes in strings

2002-05-02 Thread Dan Hardiker
Hi, I think this will accomplish what your trying to achieve. $str = I can use $hash[vars] in strings; However, this will not work for multi dimensional arrays... eg: $hash['var']['var2'] = Elephant; $str = I can NOT use $hash[var][var2] in strings; will output I can NOT use Array[var2]

Re: [PHP] Hashes in strings

2002-05-02 Thread Alexander Weber
Ferry van Steen wrote: while this one doesn't: str = I can NOT use $hash['vars'] in strings; Try this one: str = I can NOT use .$hash['vars']. in strings; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Hashes in strings

2002-05-02 Thread Ford, Mike [LSS]
-Original Message- From: Ferry van Steen [mailto:[EMAIL PROTECTED]] Sent: 02 May 2002 09:42 why do these work: $vars = vars; $ar[0] = arrays; $hash['vars'] = hashes; str = I can use $vars in strings; str = I can use $ar[0] in string; while this one doesn't: str = I can NOT

[PHP] CVS handled PHP projects

2002-05-02 Thread Dan Hardiker
Hi, [a little background, feel free to skim] The company I have been working for have been considering moving over to a CVS based version control system for a while and I have been elected to investiate the fesability. We have a network of PHP files linked together via include / require /

[PHP] Stupid question

2002-05-02 Thread Liam MacKenzie
I have a script that outputs this: 0.023884057998657 What's the command to make it shrink down to this: 0.023 I thought it was eregi() something, but I forgot. sorry Cheers (I've spent the last 10 minutes reading the manual, can't find it!!!) -- PHP General Mailing List

[PHP] Re: Stupid question

2002-05-02 Thread Henrik Hansen
[EMAIL PROTECTED] (Liam Mackenzie) wrote: I have a script that outputs this: 0.023884057998657 What's the command to make it shrink down to this: 0.023 round() -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Hashes in strings

2002-05-02 Thread Ferry van Steen
Thanks for the replies peoples :-) -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]] Sent: donderdag 2 mei 2002 11:13 To: 'Ferry van Steen'; [EMAIL PROTECTED] Subject: RE: [PHP] Hashes in strings -Original Message- From: Ferry van Steen [mailto:[EMAIL

Re: [PHP] CVS handled PHP projects

2002-05-02 Thread Richard Archer
At 10:08 AM +0100 2/5/02, Dan Hardiker wrote: As these files need to be executed via a web browser, I can only think I would have to check out *all* the files, and then point my webserver at my local directory. Then I only check back in the ones I change, releasing the others. Yes, you need to

[PHP] Opinions Wanted

2002-05-02 Thread John Fishworld
Just a general question of the best way to do it ! I've got a job search site with mysql at the back of it ! You choose on the first page - type of job, where and other bits, go to the next page where query is done and then lists the jobs available! Whats the best way of keeping this page

RE: [PHP] Opinions Wanted

2002-05-02 Thread Craig Vincent
Whats the best way of keeping this page temporarily in existence ?? I don't want the query to run every time when they have changed no information and I don't want the Warning Page has expired please re-submit details when the reload the page ! At the moment I'm thinking I can create a

RE: [PHP] Stupid question

2002-05-02 Thread Craig Vincent
I have a script that outputs this: 0.023884057998657 What's the command to make it shrink down to this: 0.023 I thought it was eregi() something, but I forgot. sorry It depends on what you need. If you want to round the number off to 3 decimal points use the round() function. However

RE: [PHP] Stupid question

2002-05-02 Thread Dan Hardiker
I have a script that outputs this: 0.023884057998657 What's the command to make it shrink down to this: 0.023 I thought it was eregi() something, but I forgot. sorry It depends on what you need. If you want to round the number off to 3 decimal points use the round() function.

Re: [PHP] Opinions Wanted

2002-05-02 Thread Dan Hardiker
There are quite a few ways of doing this. 1. Get MySQL to do the caching for you, using temporary tables. 2. Get something like the Zend Cache to handle it transparently 3. Use a global session (which everyone shares, or just specific groups of people) which you can embed data in 4. Use a

[PHP] Email-attachment not working

2002-05-02 Thread Swati Patil
hi all, i m using php4.0.1 can anyone pls help me out, in doing email-attachment. the code written for it, working and sending the email but the attachment is not getting done. Do we have to upload the file first, which is to be attached? swati. -- PHP General Mailing List

[PHP] Test if a daemon is running...

2002-05-02 Thread Gilles Nedostoupof
Hello everybody, I would like to know an easy way to check is a daemon is running. What do you think is the best? Try to read a .pid file from the right directory? Use sockets function to try to connect to the listening port of the daemon? Grep the output of ps -e ? Thanks for your help !

[PHP] Upload File

2002-05-02 Thread Kalpin Erlangga Silaen
Hi all, i want ask something : How to upload files from local to server via php ? and i want use it with browser. Please gimme the code. Thank You -- Kalpin Erlangga Silaen Kalpin is [EMAIL PROTECTED] Kalpin is not a irc warrior http://www.geocities.com/kalpinus

Re: [PHP] Test if a daemon is running...

2002-05-02 Thread Dan Hardiker
What type of daemon? eg: To see if my pop3 daemon is running I use sockstat... sockstat | grep 110 and process the output. eg: To see if my mail redirect daemon is running I check /var/run/red_mail.pid All depends on what you want to do as to how you do it. You could even do it in a multitude

Re: [PHP] Upload File

2002-05-02 Thread Justin French
You might be new to this group, so I'm going to try not to flame you. 1. this group is not for gimmie the code -- commonly it's for focused questions and issues. 2. this topic has been discussed on this list 1000's of times... a quick search of the archives may in fact reveal a large chunk of

Re: [PHP] CVS handled PHP projects

2002-05-02 Thread Dan Hardiker
Thanks for the input, for added information - we have a multitude of servers, 1 software development one plus several live servers. The aim is to have the live servers cvsup the latest STABLE branch from the development / deployment server... the issue of concurrent working is strickly in the

RE: [PHP] Test if a daemon is running...

2002-05-02 Thread Gilles Nedostoupof
I would like to monitor 3 different daemon : postfix, amavisd (a virus scanner acting as a content filter for postfix) and spamd (SpamAssassin, a spam filtering daemon invoked by procmail acting as an SMTP server). Can we be sure that a daemon is running if the .pid file exist? Gilles.

RE: [PHP] Test if a daemon is running...

2002-05-02 Thread Dan Hardiker
No we cant. As the process itself creates the pid then there is no gaurentee that the process is live (eg: it could have been kill -9ed, or the box hard-booted)... however if there is no pid file (and the process usually manages one) then you can be sure that the process is *not* running. As such

Re: [PHP] Opinions Wanted

2002-05-02 Thread 1LT John W. Holmes
You could use output buffering to write a static page of the results. You basically turn on output buffering at the beginning of the script, process as normal, and at the end, grab everything in the buffer, write it to disk, then use header() to direct the person to that page. Make a cron

Re: [PHP] Email-attachment not working

2002-05-02 Thread 1LT John W. Holmes
Do we have to upload the file first, which is to be attached? No. When you press the submit button, just speak slowly and clearly where the file is and PHP will understand you. What kind of video card do you have? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Upload File

2002-05-02 Thread 1LT John W. Holmes
Hi all, i want ask something : How to upload files from local to server via php ? and i want use it with browser. Please gimme the code. Please give me a break. Read the manual, there is a whole chapter telling you how to do this! http://www.php.net/manual/en Assuming you understand

RE: [PHP] Any ideas on content management system for Apache+PHP+MySQL

2002-05-02 Thread Jay Blanchard
[snip] I am a webmaster for an agency. I looked at many content management pieces for Linux+Apache+PHP+MySQL like ezPublish and etc. but they look overly complex for my needs. I just need to have something that would allow me to insert picture, text, and list of links into a template. I don't

[PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Christoph Starkmann
Hi there! I guess I got a very easy question for the pros here... I've been searching the documentaion of mySQL, but didn't find the answer (even though I'm sure it's out there somewhere :))... Is a primary key in mySQL automatically indexed? And is a unique field indexed automatically ?(I

Re: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread 1LT John W. Holmes
I guess I got a very easy question for the pros here... I've been searching the documentaion of mySQL, but didn't find the answer (even though I'm sure it's out there somewhere :))... Is a primary key in mySQL automatically indexed? And is a unique field indexed automatically ?(I don't

Re: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Miles Thompson
Christoph, Indexes are built on key fields, so yes. When a field is identified as a key it is indexed. To answer your second question, it is the index which maintains the uniqueness of a field. A book is a really good analogy. If you wanted to look up the references to string, you can do it

Re: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Dan Hardiker
To clarify, an indexed field is *not* inheriently unique. You can have an indexed field which is not unique, and a unique field which is not indexed (hence the options being available). A primary key is both indexed and unique (with the slight adaption of compound keys)... but this is majorly

RE: [PHP] Re: why is better?

2002-05-02 Thread Steve Bradwell
Hi, Sorry to bud in on this, but I was thinking about writing my next php app oop style to learn. Are you saying that It is going to be slower or poorer performance? Thanks alot -Steve the newbie. -Original Message- From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Retrieving name of error_log file

2002-05-02 Thread Neil Freeman
OK thanks Miguel. Miguel Cruz wrote: * This Message Was Virus Checked With : SAVI 3.54 Feb 2002 Last Updated 24th April 2002 * On Wed, 1 May

[PHP] Get Pagetitle with PHP

2002-05-02 Thread Ivo Neuhauser
Hi, is it possible to get the HTML-Pagetitle with PHP? Thanks for help. Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How do I Install PHP on Apache 2, on win32

2002-05-02 Thread Kirk Babb
I have been told to point your line for php in httpd.conf to apache2filter.dll in the experimental folder (PHP 4.2.0) but haven't been able to get that to work. -Kirk Philip Newman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... How do I Install PHP on Apache 2, on win32? I

RE: [PHP] Hashes in strings

2002-05-02 Thread Steve Bradwell
Not really sure but str has to be $str, and I usually do print lines like this $str = I can NOT use .$hash['vars']. in strings; the . will concat the strings together. Hope this helps, -Steve -Original Message- From: Ferry van Steen [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02,

Re: [PHP] Get Pagetitle with PHP

2002-05-02 Thread Justin French
U, not sure what you're trying to achieve. PHP is parsed on the server before it is sent to the browser. So, since you're the one writing the PHP file, you know what the page title is already, don't you Unless you're talking about parsing an existing HTML page, and extracting the

[PHP] Header Information for Formatting?

2002-05-02 Thread Jay Blanchard
G' morning! Can someone tell me where to find the various options for the Header function as it relates to M$ Excel? Yesterday, thanks to this list, we found a way to open a worksheet in the browser and display data retrieved from a database. The worksheet opens with no gridlines and displaying

[PHP] Re: getting a function name of the calling function

2002-05-02 Thread Joshua E Minnie
What I am trying to do is create an error message within in a string that whenever each function fails it echos this particular string out with it's pertinent information. i.e. ? $error_string = Warning: unable to complete query in .__FUNCTION__.name in .__FILE__; function some_funct($var) {

Re: [PHP] Re: why is better?

2002-05-02 Thread Hugh Bothwell
Steve Bradwell [EMAIL PROTECTED] wrote in message 57A1618E7109D311A97D0008C7EBB3A1CBB2EA@KITCHENER">news:57A1618E7109D311A97D0008C7EBB3A1CBB2EA@KITCHENER... Hi, Sorry to bud in on this, but I was thinking about writing my next php app oop style to learn. Are you saying that It is going to be

Re: [PHP] bumping up hour by one

2002-05-02 Thread Hugh Bothwell
Tom Beidler [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My mistake. The correct code that works is; $display_time = date(H:i); // round time to nearest 15 minute interval $display_timex = explode (:,$display_time) ; if (($display_timex[1] = 00)

[PHP] page reloading

2002-05-02 Thread Donna Robinson
Hi, This is driving me nuts - all help appreciated! The problem is that I can never get the html stuff output *after* having included download.inc because of the exit; call -- which I have to have else the html gets output and downloaded as well (and I don't understand why fpassthru doesn't

[PHP] Multiple mails to be sent from checkbox selection

2002-05-02 Thread Kevin Meredith
Hi there. Could someone please let me know what is the best way to send multiple mails to different users collected from a checkbox on the previous page. There is a page that displays all the available recipients. A users then selects which recipients he wants to receive the mail. Then the

[PHP] Re: How do I Install PHP on Apache 2, on win32

2002-05-02 Thread vins
It doesn't look like it works. move back to 1.3.24 there are no probs there Philip Newman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... How do I Install PHP on Apache 2, on win32? I would like to install the ISAPI module? Thanks -- PHP General Mailing List

Re: [PHP] page reloading

2002-05-02 Thread Dan Hardiker
Hi, The problem is that I can never get the html stuff output *after* having included download.inc because of the exit; call -- which I have to have else the html gets output and downloaded as well (and I don't understand why fpassthru doesn't stop at EOF on $fp). [...] downloadtxt.inc:

Re: [PHP] Multiple mails to be sent from checkbox selection

2002-05-02 Thread Dan Hardiker
Hi, I am not sure how I should me sending the checkbox name and variables and then how to actually insert the email addresses using the mail command. Is there a better way than using a checkbox? If you have a HTML form with a list of email addresses to send to you might want the code to

Re: [PHP] Multiple mails to be sent from checkbox selection

2002-05-02 Thread 1LT John W. Holmes
Checkboxes are an easy way to do it. The value of a checkbox will only be sent if it's checked. If it's not checked, then that variable isn't even created. So the easiest way to do it is to use the email address as the value, and name the checkboxes all the same name with an [] to make it an

Re: [PHP] Get Pagetitle with PHP

2002-05-02 Thread Pushkar Pradhan
Sine PHP has so many string parsing functions, you can grab the text betn. title.../title e.g. HTML code: html .. /html Read the whole file by line into an array - http://www.php.net/manual/en/function.file.php search for line containing title for($lines as $onelineatatime) {

Re: [PHP] Re: why is better?

2002-05-02 Thread Julio Nobrega Trabalhando
Slower, yes. But still faster than most of other web scripting languages, at least from some benchmarks I've seen. But still, who wants to code with pointers and memory management and etc when PHP do those kinds of difficult tasks, and the normal ones, while taking less time to code? If you

Re: [PHP] Hashes in strings

2002-05-02 Thread Markus Mirsberger
Hi, I would suggest not to use $hash[var1][var2] instead of $hash['var1']['var2'] because afaik php will think u mean two constants ( var1 and var2 ). Just if it doesnt find these constants it will use them as $hash['var1']['var2']. Markus Mirsberger Dan Hardiker [EMAIL PROTECTED] schrieb im

Re: [PHP] page reloading

2002-05-02 Thread Donna Robinson
On Thursday 02 May 2002 3:08 pm, Dan Hardiker wrote: Replace exit; with fclose( $fp );. Nope - tried this way back when - if you rtfm you will see that the file is closed when fpassthru() is done reading it. If you use fclose what you get is this: PHP Warning: 27 is not a valid File-Handle

Re: [PHP] Hashes in strings

2002-05-02 Thread Dan Hardiker
Hi, I would suggest not to use $hash[var1][var2] instead of $hash['var1']['var2'] because afaik php will think u mean two constants ( var1 and var2 ). Just if it doesnt find these constants it will use them as $hash['var1']['var2']. Thats correct, php will think they are constants and upon

php-general Digest 2 May 2002 15:50:42 -0000 Issue 1321

2002-05-02 Thread php-general-digest-help
php-general Digest 2 May 2002 15:50:42 - Issue 1321 Topics (messages 95640 through 95703): Re: getting a function name of the calling function 95640 by: CC Zona 95642 by: Philip Olson 95690 by: Joshua E Minnie Re: file() and macintosh line break 95641 by:

RE: [PHP] Stupid question

2002-05-02 Thread Robert V. Zwink
When I run: $number = 0.023884057998657; echo round($number, 3); echo number_format($number, 3); Both function output 0.024, both functions round the last digit. This is contrary to the example in the manual which shows this: $number = 1234.5678; // english notation without thousands

Re: [PHP] page reloading

2002-05-02 Thread Donna Robinson
On Thursday 02 May 2002 4:26 pm, Donna Robinson wrote: What you are trying to achieve can be done with refresh headers (either html-meta or http). Huh? pls explain. Forget it - I figured it out. If I send this along with the rest of the headers everything is just peachy: $url =

[PHP] Re: snmp_set_quick_print or snmpwalkoid issue ?

2002-05-02 Thread Ray \BigDog\ Hunter
Basically you are not going to get the value type of the snmp, ie OID, timeticks, integers, etc.. Ray Hunter Razvan Cosma [EMAIL PROTECTED] wrote in message Pine.LNX.4.44.0205011203110.32753-10@mach2">news:Pine.LNX.4.44.0205011203110.32753-10@mach2... First of all, gretings to

[PHP] passing PhP parameter to JavaScript function

2002-05-02 Thread ZILBER,LEONID (HP-NewJersey,ex1)
Hi guys, From PhP, I want to call JavaScript and pass argument to it For some reason when I do the following: onClick=\return lastCheck($maxa);\ and printout maxa in JavaScript, it says maxa is undefined maxa is defined in PhP form section. User enters value into a form which name is

RE: [PHP] passing PhP parameter to JavaScript function

2002-05-02 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Prior to submittal the PHP variable $maxa has no value. PHP is a server side language, not a client side language. If you want to use the value of a form in javascript use the javascript objects to access the value of the field. Jason -Original Message- From: ZILBER,LEONID

RE: [PHP] Stupid question

2002-05-02 Thread Pushkar Pradhan
Since round() is a maths routine, it will return the most approx. value of your 0.02388.. in 3 decimal digits. If you just want to return the first 3 digits after the decimal use the string routines suggested by Rober Zwink or : $number = $number*1000; // 23.884 $number = floor($number); //

Re: [PHP] Printing function in PHP?

2002-05-02 Thread Vincent Stoessel
http://www.php.net/manual/en/ref.printer.php If you are running php on a win32 server you can use the above function to access and use a printer spool. Note that this allows the web server to print , not the web client. Depending on your need that may be OK for you. Vinny Simonk wrote: Is

RE: [PHP] Session Initially Does Work

2002-05-02 Thread Adam Douglas
There is a session problem with 4.1 If register_globals is ON, then use session_register(). If it's off, then use $_SESSION[name] = value; and the value will automatically be registered. What kind of session problem? I currently have register_globals set to on. I am already using

[PHP] PHP Portal Server

2002-05-02 Thread Daniel Guerrier
Does anyone know of and used a PHP powed portal server? Which is the most robust and the easiest to maintain? __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing List

RE: [PHP] Session Initially Doesn't Work

2002-05-02 Thread Adam Douglas
Alright that's good to hear. In a specific case that I'm having this problem the main PHP file is including file (content) that refers to $_SESSION[nSID_PeopleID] in main. This value is vital in rendering the page. So it should be there right? Also about removing session_name(), how

Re: [PHP] Hashes in strings

2002-05-02 Thread Philip Olson
One thing to note is that constants are not looked for within strings. So: // This is okay but can cause confusion. No errors // are created but many prefer not to do this. $str = Hello $there[friend], how are you?; Outside of a string, $there[friend] will indeed seek a constant

Re: [PHP] Header Information for Formatting?

2002-05-02 Thread Jason Wong
On Thursday 02 May 2002 21:05, Jay Blanchard wrote: G' morning! Can someone tell me where to find the various options for the Header function as it relates to M$ Excel? Yesterday, thanks to this list, we found a way to open a worksheet in the browser and display data retrieved from a

Re: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Jason Wong
On Thursday 02 May 2002 20:13, Christoph Starkmann wrote: Hi there! I guess I got a very easy question for the pros here... I've been searching the documentaion of mySQL, but didn't find the answer (even though I'm sure it's out there somewhere :))... Is a primary key in mySQL

[PHP] arithimetic

2002-05-02 Thread Jas
This is a simple problem but for some reason it is eluding me... I have a form that has text fields and check boxes, the function checks the form, counts words, strips the slashes, then based on the number of words and number of checkboxes selected calculates a cost... I have added 4 new

Re: [PHP] Email-attachment not working

2002-05-02 Thread Jason Wong
On Thursday 02 May 2002 19:31, 1LT John W. Holmes wrote: Do we have to upload the file first, which is to be attached? No. When you press the submit button, just speak slowly and clearly where the file is and PHP will understand you. What kind of video card do you have? I prefer faxing the

Re: [PHP] arithimetic

2002-05-02 Thread Jason Wong
On Friday 03 May 2002 01:33, Jas wrote: This is a simple problem but for some reason it is eluding me... I have a form that has text fields and check boxes, the function checks the form, counts words, strips the slashes, then based on the number of words and number of checkboxes selected

RE: [PHP] arithimetic

2002-05-02 Thread Craig Vincent
$section = $box3 + $box4 + $box5 + $box6; // new ones i have added that won't work Are the $box values listed here actually receiving values from the form? If you do an echo $box3 $box4 $box5 $box6; what do you see? Could you provide the HTML for your form as well please? It may help shed

[PHP] CURL Users

2002-05-02 Thread Ray \BigDog\ Hunter
Has anyone every used curl to do something similar to wget on linux? BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with Javascript, Delete record from mysql using PHP

2002-05-02 Thread Daniel Negron/KBE
Hi all, I am having a problem with getting this to work properly. When a user select DELETE I want an alert to pop up and say HEY YOUR DELETING THIS. This portion is working properly. If you hit CANCEL the desired effect takes place NOTHING. But if you really want to cancel this record, it

[PHP] Variables within variable names

2002-05-02 Thread Jackson Miller
I want to do something along the lines of: $type = basic; $$type_user = jaxn; echo $basic_user; and have the output be jaxn. I have tried everything I can think of, and I have looked in all my books. I know how to: $type = basic; $$type = jaxn; echo $basic; but this won't do what I need. I

[PHP] Re: getting a function name of the calling function

2002-05-02 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joshua E Minnie) wrote: What I am trying to do is create an error message within in a string that whenever each function fails it echos this particular string out with it's pertinent information. i.e. ? $error_string = Warning: unable to

Re: [PHP] Re: How do I Install PHP on Apache 2, on win32

2002-05-02 Thread Herbert Mraz
No problem here (Apache 2 / PHP 4.2.0 / win2k): Following went to httpd.conf: LoadModule php4_module c:/PHP/experimental/apache2filter.dll AddType application/x-httpd-php .php Dropped the 'AddModule' - line, seems not to be needed anymore! BTW, for those who read my postings about

[PHP] upgrade

2002-05-02 Thread Hong Tian
Hi, I want to compile Apache 1.3.22+PHP 4.0+MYSql 3.23.44 with DSO support on Solaris 8. Where can I find the installation information to use DSO with PHP and MYSql? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables within variable names

2002-05-02 Thread Jason Wong
On Friday 03 May 2002 02:43, Jackson Miller wrote: I want to do something along the lines of: $type = basic; $$type_user = jaxn; echo $basic_user; and have the output be jaxn. I have tried everything I can think of, and I have looked in all my books. I know how to: $type = basic;

Re: [PHP] upgrade

2002-05-02 Thread Jason Wong
On Friday 03 May 2002 02:45, Hong Tian wrote: Hi, I want to compile Apache 1.3.22+PHP 4.0+MYSql 3.23.44 with DSO support on Solaris 8. Where can I find the installation information to use DSO with PHP and MYSql? The manual perhaps? -- Jason Wong - Gremlins Associates -

[PHP] Re: avoid multiple submissions

2002-05-02 Thread Julio Nobrega Trabalhando
Make a unique form key for every form. When someone submits, store this unique key. Don't insert another form is there's a key already there :-) Make sure it's unique, like of current time in miliseconds plus random characters, I don't know. -- Julio Nobrega. Um dia eu chego lá:

Re: [PHP] avoid multiple submissions

2002-05-02 Thread Jason Wong
On Friday 03 May 2002 02:23, Rodrigo Peres wrote: Hi list, There's any way to avoid a speed gonzales user to keep pressing submit button while you PHP is processing the code??? I was looking in my mysql and found some duplicate entries with a diference with seconds in the time. Include a

[PHP] bad row offset

2002-05-02 Thread Joshua E Minnie
I am a little confused with an error I am receiving on a function I am using. Here is the function: function get_user_data($user,$field) { # get_user_data is a base function assuming no errors have # been passed and will return the data of a specific field # based on the value of $user

RE: [PHP] Problems upgrading PHP..

2002-05-02 Thread Chad Day
php.ini didn't exist before apparently on this server I'm on.. or rather, it was a 0 byte file. Thanks, Rasmus. Chad -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 2:58 PM To: Chad Day Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Problems

RE: [PHP] Problems upgrading PHP..

2002-05-02 Thread Chad Day
Well, that worked for variable tracking, but MySQL seems to have been broken in the process.. or rather, PHP accessing it.. Warning: MySQL: Unable to save result set in /usr/local/www/vhosts/bangable.com/htdocs/forums/admin/db_mysql.php on line 92 If I do a phpinfo();, my PHP configure line

RE: [PHP] Problems upgrading PHP..

2002-05-02 Thread Rasmus Lerdorf
Is it showing the right build date? The configure switches should match what you used. -R On Thu, 2 May 2002, Chad Day wrote: Well, that worked for variable tracking, but MySQL seems to have been broken in the process.. or rather, PHP accessing it.. Warning: MySQL: Unable to save result

RE: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread SP
Indexes are good but the only thing you have to look out for is not over using it. So don't index all your fields because it will make your database a lot bigger and add more time when inserting and updating. -Original Message- From: Dan Hardiker [mailto:[EMAIL PROTECTED]] Sent: May 2,

[PHP] date

2002-05-02 Thread Norman Zhang
Hi, I am doing a test with the date function, $mydate=2002-05-02 $tdate=date(d M Y, $mydate); echo $tdate I should expect 02 May 2002. But I get a strange result 31 Dec 1969. Why? How can I correct this? Regards, Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread SP
Yeah this isn't specifically about php but most people use databases so I think this is relevant. I like it when we have discussions like these instead of someone posting up a bunch of code and asking to find a missing ' or }. -Original Message- From: Jason Wong [mailto:[EMAIL

Re: [PHP] date

2002-05-02 Thread Jason Wong
On Friday 03 May 2002 03:17, Norman Zhang wrote: Hi, I am doing a test with the date function, $mydate=2002-05-02 $tdate=date(d M Y, $mydate); echo $tdate I should expect 02 May 2002. But I get a strange result 31 Dec 1969. Why? How can I correct this? Please RTFM, date() takes a

Re: [PHP] date

2002-05-02 Thread Richard Baskett
Date takes a timestamp, so you would need to do something like this instead: $mydate = strtotime('2002-05-02'); $tdate = date(d M Y, $mydate); Echo $tdate; Cheers! Rick I remember a man of some standing who once came to see me and told me that a friend of his who claimed no small spiritual

Re: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Jason Wong
On Friday 03 May 2002 03:17, SP wrote: Yeah this isn't specifically about php but most people use databases so I think this is relevant. I like it when we have discussions like these instead of someone posting up a bunch of code and asking to find a missing ' or }. Yes, but that's what the

[PHP] Batch processing HTML2PS

2002-05-02 Thread Mrdini
Hi, I'm currently working on a warehouse system, and I'd like to print some labels pretty accurately. At the moment, I'm using Mozilla to print, but this just won't do, especially not when we're expecting to print something like 4,000 labels next week :D $client is the MySQL record where

Fw: [PHP] date

2002-05-02 Thread Richard Emery
When/If you read the PHP manual, you'll discover that the second parameter MUST be a timestamp; not a text string. - Original Message - From: Norman Zhang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 02, 2002 2:17 PM Subject: [PHP] date Hi, I am doing a test with the

[PHP] Pointer Size

2002-05-02 Thread marius petraviius
hello, php-general, I'm trying to get the size of pointer. First I use $res = fsockopen( $server, $port ); then echo fgets( $handle, 1024 ); But it only gets only one line. So I need to know the size of then pointer. I tried to do it with fstat(), but it didn't work.. So can

[PHP] srand thought

2002-05-02 Thread Gerard Samuel
Quick question. Im using srand to seed array_rand in a script. I read that srand should only be called once per script under the srand manual page. Im using ADODB, and that also uses srand. Now should that warning be a literal warning or should that be 'use srand once per page'?? Thanks --

Re: [PHP] Batch processing HTML2PS

2002-05-02 Thread Jason Wong
On Friday 03 May 2002 02:05, Mrdini wrote: Hi, I'm currently working on a warehouse system, and I'd like to print some labels pretty accurately. At the moment, I'm using Mozilla to print, but this just won't do, especially not when we're expecting to print something like 4,000 labels next

  1   2   >