RE: [PHP] Re: rewrite rule help anyone?

2003-02-25 Thread Siddharth Hegde
Sorry did not get you there specifically this part > > ---This: > > index.php?file=test&cmd=display&what=all > > ---Becomes: > > index-get-file-is-test+cmd-is-display+what-is-all.html Anyway, I have written a rewrite rule to rewrite www..some-domain.com to www.some-domain.com/index.php?somevar=

RE: [PHP] reminder mail when date is within a month of today.

2003-02-25 Thread Siddharth Hegde
> -Original Message- > From: Petre Agenbag [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 2:38 PM > To: [EMAIL PROTECTED] > Subject: [PHP] reminder mail when date is within a month of today. > > HI > I'm having a bad thinking day. I know it's going to be a very easy > solut

[PHP] Session SID curio

2003-02-25 Thread Bryan Lipscy
I ran into a weird curiosity playing with sessions. Consider this working code: If I access http://hostname/sess.php from my internal network this is the result: Session ID == If I access http://www.domainname.net/sess.php from my internal network this is the result: Session ID == PHPSESSID

Re: [PHP] getimagesize() issues starting with PHP 4.3..

2003-02-25 Thread Tom Rogers
Hi, Wednesday, February 26, 2003, 2:27:10 PM, you wrote: JD> Can anyone reproduce this problem? JD> I am involved in running a large forum, and ever since our upgrade to PHP JD> 4.3.1, there have been fairly random issues with getimagesize(). It JD> happens only on certain images it seems. Ho

[PHP] Re: getimagesize() issues starting with PHP 4.3..

2003-02-25 Thread Jason DiCioccio
Oops.. Big typo.. It should read that I get *nothing* echo'd back, except newlines :). Thanks again, -JD- --On Tuesday, February 25, 2003 23:27 -0500 Jason DiCioccio <[EMAIL PROTECTED]> wrote: Can anyone reproduce this problem? I am involved in running a large forum, and ever since our upgrade

Re: [PHP] Running system commands

2003-02-25 Thread Jason Wong
On Wednesday 26 February 2003 03:28, [EMAIL PROTECTED] wrote: > Before I ask, I have read the documentation but nothing seems to work. > > I want to run a system command from behind the scenes (totally secure > area of my server) that creates a directory and changes permissions on it. > > i.e. sy

Re: [PHP] to Bryan Lipscy Re: [PHP] how___??

2003-02-25 Thread Jason Wong
On Wednesday 26 February 2003 07:52, Luis A wrote: > MEN I DONT HAVE INTERNET ACCESS > > thanks anyway > > if some one else can help m e please I can email the manual to you if that would help? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

[PHP] getimagesize() issues starting with PHP 4.3..

2003-02-25 Thread Jason DiCioccio
Can anyone reproduce this problem? I am involved in running a large forum, and ever since our upgrade to PHP 4.3.1, there have been fairly random issues with getimagesize(). It happens only on certain images it seems. However, it wasn't happening with 4.2. When using the following code: htt

[PHP] Object programming with PHP5

2003-02-25 Thread Patrick LOK
Is there anyone out there can tell me do I have to rewrite my PHP4 object programs in PHP5? ./pl

[PHP] Win32 problems with 4.2.3

2003-02-25 Thread Ashley M. Kirchner
Code snippet: \n"; print_r($url_array); ?> This works fine under Apache 1.3.27 with PHP 4.2.3 running on Linux. But on a Win32 environment, no go. I have Apache 1.3.24 with PHP 4.2.3 on WinXP and $url_array is just plain blank...for that matter, so is $REQUEST_URI when I try t

RE: [PHP] Newbie Question

2003-02-25 Thread Cal Evans
you have 2 functions named DBField. This was ok until 4.3. After 4.3 you couldn't re-declare a function like this. PHP does not allow for overloading like Java and C++ (It looks like that's what you are trying to do) Check the docs for overloading. There is some support for it but it's a bit of

[PHP] Newbie Question

2003-02-25 Thread Greg Luce
Can someone explain why this code works on the hosting company's server, but won't run on my local server? I'm not sure what version is on the host server, but I'm running 4.0.5 locally on winXP Pro. The error says: Fatal error: Cannot redeclare dbfield() in c:\inetpub\wwwroot\livinginnaples\databa

[PHP] query to Active Directory

2003-02-25 Thread Ezra Nugroho
This one is really puzzling... It has taken me days.. I need to do an LDAP search to an Active Directory server. I was able to connect and bind to the server fine, but my searches are always in vain. OK, here we go: box name: mydomain-71.mydomain.myschools.org domain name: mydomain.myschools.o

Re: [PHP] $_POST arrays not evaluated in sql statement -- why?

2003-02-25 Thread CF High
Hey John et. al I tried your method John, and it works! Re: excessive single quotes in the sql, but I tried stripping them out to no effect. Using curly braces in the sql statement wasn't an option I knew about. Thanks again for illuminating another bit of the PHP world. --

Re: [PHP] file upload and a browse for file box

2003-02-25 Thread Joshua Moore-Oliva
plain html On February 25, 2003 08:32 pm, Sunfire wrote: > hi.. > > i looked in the manual about file uploads and basically know how it works > other than a little playing around with it but was wondering how you could > make a browse for file button that opens a box on the users computer so > t

[PHP] Sorting Arrays

2003-02-25 Thread Bill MacAllister
Hello, I am running PHP 4.2.2 on an Alpha Linux system. The array sorting functions don't seem to be doing anything, i.e. pass an array in and get exactly the same thing back. I have tried to isolate the problem by just cutting a simple example out of the documentation, for example the asort

Re: [PHP] Include files

2003-02-25 Thread Jinky Otacan Cocalon
the problem was solved by creating an include file and using using require() method i was just wondering what are the advantages and disadvantages of using require_once() instead of require()? thanx =) John W. Holmes wrote: How do I include external library files in PHP??? I would like to pu

[PHP] Re: MIME help needed please...

2003-02-25 Thread Manuel Lemos
Hello, On 02/23/2003 08:01 PM, Shawn McKenzie wrote: I got this from the user contributed notes in the php.net manual. It seems to work fine most of the time, but Eudora and Pegasus users either get mangled attachments or no attachments. Can anyone see a problem (most files are zip, but sometimes

RE: [PHP] Include files

2003-02-25 Thread Bryan Lipscy
Funny thing about online manuals. include() http://www.php.net/manual/en/function.include.php include_once() http://www.php.net/manual/en/function.include-once.php Please read: http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Kenneth Suralta [mailto:[EMAIL

RE: [PHP] no session id

2003-02-25 Thread Bryan Lipscy
RTM: http://www.php.net/manual/en/ref.session.php Tutorial: http://www.zend.com/zend/tut/session.php -Original Message- From: php [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:40 PM To: [EMAIL PROTECTED] Subject: [PHP] no session id this code doesn't ouput a session-

[PHP] file upload and a browse for file box

2003-02-25 Thread Sunfire
hi.. i looked in the manual about file uploads and basically know how it works other than a little playing around with it but was wondering how you could make a browse for file button that opens a box on the users computer so then can look for the file rather than type it in.. or is this something

Re: [PHP] Include files

2003-02-25 Thread Larry E. Ullman
How do I include external library files in PHP??? I would like to put the lines that are repeated in each php files, in a separate file. e.g. $db_host = "localhost"; $db_port = "3306"; $db_name = "test"; ... ?> I find the include() function to be quite useful for including external files. Check

RE: [PHP] mysql trouble

2003-02-25 Thread Bryan Lipscy
Create a user with appropriate privledges for the database. DO NOT use root. You did not mention where the $nombre, $direccion, $telefono, or $email variables are being initialized. To capture the values from a form use $_POST['name'] where name is the name of the field on the form. HTH -

RE: [PHP] mysql trouble

2003-02-25 Thread John W. Holmes
> ### ### // process form > ### $link = mysql_connect("localhost", "root"); > you need to have the password as the third argument > $link = mysql_connect("localhost", "root", "password"); > > Also, why is it in a variable? > Just make it: > mysql_connect("localhost", "root", "password"); Sometim

Re: [PHP] no session id

2003-02-25 Thread Justin French
on 26/02/03 11:39 AM, php ([EMAIL PROTECTED]) wrote: Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] no session id

2003-02-25 Thread John W. Holmes
> this code doesn't ouput a session-id. > is the code right? and if not, any suggestions what's wrong? > i'm new into sessions, so forgive me for stupid questions.. > thanx > michiel > > > session_start (); > Header("Content-Type: text/html"); > echo "session id: " . $session_id; > ?> Where do

RE: [PHP] Include files

2003-02-25 Thread John W. Holmes
> How do I include external library files in PHP??? > I would like to put the lines that are repeated in each php files, in a > separate file. > e.g. > $db_host = "localhost"; > $db_port = "3306"; > $db_name = "test"; > ... > ?> Just throw caution to the wind and try the include() function I'

RE: [PHP] to paulm Re: [PHP] mysql trouble

2003-02-25 Thread John W. Holmes
> hey i think the root does not need password to connect to mysql > > or yes > > on my server the root user does not have password > thats why i dont know why he does not update the database? You have no internet access, you think root does not need a password, and you're a programmer... wo

RE: [PHP] $_POST arrays not evaluated in sql statement -- why?

2003-02-25 Thread John W. Holmes
> ('1','1','$date','$_POST['jersey_id'][$x]','$_POST['first'][$x]','$_POST [' Let's just be smart and think about this for a second. Look at all of the single quotes you've got. How do you expect PHP to be able to tell what's a variable and what's text? Do you mean $_POST or $_POST['jersey_id'] or

RE: [PHP] mysql trouble

2003-02-25 Thread John W. Holmes
> take a look at this > // process form > $link = mysql_connect("localhost", "root"); > mysql_select_db("mydb",$db); > $sql = "INSERT INTO agenda (nombre, direccion, telefono, email) " + > "VALUES ('$nombre', '$direccion', '$telefono', '$email')"; > $result = mysql_query($sql); You use a period

Re: [PHP] mysql trouble

2003-02-25 Thread Richard Whitney
Quoting Luis A <[EMAIL PROTECTED]>: ### hi pasl i got a troblem here ### ### ### if some one can help me ? ### ### take a look at this ### ### ### ### ### HE DOES NOT WORKING ### ### any subjest ? ### ### ### ### -- Richard Whitney * Transcend Development Producing the next pha

[PHP] no session id

2003-02-25 Thread php
this code doesn't ouput a session-id. is the code right? and if not, any suggestions what's wrong? i'm new into sessions, so forgive me for stupid questions.. thanx michiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Include files

2003-02-25 Thread Kenneth Suralta
How do I include external library files in PHP??? I would like to put the lines that are repeated in each php files, in a separate file. e.g. $db_host = "localhost"; $db_port = "3306"; $db_name = "test"; ... ?> Kenneth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] to paulm Re: [PHP] mysql trouble

2003-02-25 Thread Luis A
hey i think the root does not need password to connect to mysql or yes on my server the root user does not have password thats why i dont know why he does not update the database? - Original Message - From: "paulm" <[EMAIL PROTECTED]> To: "Luis A" <[EMAIL PROTECTED]> Sent: Tuesday,

Re: [PHP] $_POST arrays not evaluated in sql statement -- why?

2003-02-25 Thread Joshua Moore-Oliva
I believe that single quotes will display exactly what you type in, and double quotes will actually process it.. e.g. $foo = "hello"; echo '$foo'; You see $foo echo "$foo"; You see hello On February 25, 2003 09:42 pm, CF High wrote: > Hey all. > > Got a problem with this sql statement -- php

Re: [PHP] Uploading Images

2003-02-25 Thread Justin French
http://php.net/filesize http://php.net/getimagesize http://www.php.net/manual/en/features.file-upload.php Also mentions "Related Configurations Note: See also the file_uploads, upload_max_filesize, upload_tmp_dir, and post_max_size directives in php.ini" Please search the manual first -- it isn't

[PHP] Re: $_POST arrays not evaluated in sql statement -- why?

2003-02-25 Thread Philip Hallstrom
Try sql = ".'" . $_POST['jersey_id'][$x] . "',. Also make sure you're form is being submitted with POST and not GET... -philip On Tue, 25 Feb 2003, CF High wrote: > Hey all. > > Got a problem with this sql statement -- php vars are evaluated (e.g. the > $date var), but not the $_POST a

[PHP] to Bryan Lipscy Re: [PHP] how___??

2003-02-25 Thread Luis A
MEN I DONT HAVE INTERNET ACCESS thanks anyway if some one else can help m e please - Original Message - From: "Bryan Lipscy" <[EMAIL PROTECTED]> To: "'Luis A'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 6:16 PM Subject: RE: [PHP] how___?? > Please read

[PHP] $_POST arrays not evaluated in sql statement -- why?

2003-02-25 Thread CF High
Hey all. Got a problem with this sql statement -- php vars are evaluated (e.g. the $date var), but not the $_POST arrays.. All of the arrays return correct values -- What am I missing here? $sql = "INSERT into rosters (school_id, sport_id, date, jersey_id, first, last, position, grade, t

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Leif K-Brooks
Should be: ${name$i} Jeff Pauls wrote: I get an error with this. PHP doesn't like "$name$i". for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc } I've looked at Variable variables but I don't think that is what I need. What about if I wanted

Re: [PHP] Re: MIME help needed please...

2003-02-25 Thread Jason k Larson
If you are having problems with Eudora or Pegasus, why don't you send an attachment from a Eudora||Pegasus and replicate whatever headers are getting generated their. Then you'd have a test case for something you are trying to perform in PHP, and then (even better) you don't have to wonder if

[PHP] mysql trouble

2003-02-25 Thread Luis A
hi pasl i got a troblem here if some one can help me ? take a look at this HE DOES NOT WORKING any subjest ?

RE: [PHP] how___??

2003-02-25 Thread Bryan Lipscy
Please read the online documentation at http://www.php.net Also read through examples at http://www.zend.com/tips/tips.php?CID=113 And before you ask another question please read: http://www.catb.org/~esr/faqs/smart-questions.html Each of these pages may be translated at http://babel.altavista.c

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
I think I have something that will do the trick thanks to everyones help. $name_1_aaa = "Jimmy"; $name_2_aaa = "Janis"; $name_3_aaa = "Joe"; for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = 'name_'.$i.'_aaa'; } echo ${$arr_name[1]}.''; echo ${$arr_name[2]}.''; echo ${$arr_name[3]}.''; Displays:

[PHP] Re: MIME help needed please...

2003-02-25 Thread Shawn McKenzie
Is this a stupid question, or does no one know what is wrong??? Thanks! Shawn "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I got this from the user contributed notes in the php.net manual. It seems > to work fine most of the time, but Eudora and Pegasus users ei

Re: [PHP] how___??

2003-02-25 Thread Luis A
i need to do this $link = mysql_connect("remote host", "mysql_user", "mysql_password") or die("Could not connect: " . mysql_error()); how is that ??? do i have to put the same function ? or is diferent? - Original Message - From: "Bryan Lipscy" <[EMAIL PROTECTED]> To: "'Luis A'" <[EMA

Re: [PHP] how___??

2003-02-25 Thread Ernest E Vogelsinger
At 22:34 25.02.2003, Luis A said: [snip] >i need some one can help me please? > >i need to make this quine of conection > >for example > >i want to connect to a remote mysql server [snip] Check out http://www.php.ne

RE: [PHP] how___??

2003-02-25 Thread Bryan Lipscy
RTM first please: http://www.php.net/manual/en/function.mysql-connect.php $link = mysql_connect("localhost", "mysql_user", "mysql_password") or die("Could not connect: " . mysql_error()); Replace localhost with the hostname of your mysql server. -Original Message- From: Luis A [mailto:

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread John Nichel
Jeff Pauls wrote: I get an error with this. PHP doesn't like "$name$i". for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc } Try $arr_name[$i] = $name . $i; I've looked at Variable variables but I don't think that is what I need. What abou

[PHP] how___??

2003-02-25 Thread Luis A
hlelooww>) i need some one can help me please? i need to make this quine of conection for example i want to connect to a remote mysql server i realy apreciate if some one can help me please? >)

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
I get an error with this. PHP doesn't like "$name$i". for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc } I've looked at Variable variables but I don't think that is what I need. What about if I wanted something like $name_1_ff $name_2_f

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jason k Larson
$name1 = 'Hello, World!'; $i = 1; $var = 'name'.$i; print ${$var}; HTH, Jason k Larson Jeff Pauls wrote: Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = "joe"; $name2 = "janis"; $name3 = "joanne"; Is there a way in php to increment the variable name not

RE: [PHP] Re: Submit buttons

2003-02-25 Thread Bryan Lipscy
HTML: JS: Function DoThis(){ frmMain.method = "POST"; frmMain.action = "admin.php"; frmMain.submit(); } Where frmMain is the name for the FORM: Read all about it in: http://www.oreilly.com/catalog/jscript4/ Bryan -Original Message- From: Greg [mailto:[EMAIL PR

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Rick Emery
You're on the right track: for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc } - Original Message - From: "Jeff Pauls" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 3:18 PM Subject: [PHP] Auto Incrementing

Re: [PHP] WE NEED SOME ADVICES: What is the best way for sending a huge amount of emails?

2003-02-25 Thread Chris Knipe
Get mailing list software such as majordomo / mailman. PHP isn't the best way to do these kind of things... -- me - Original Message - From: "Jean Fábio Barros" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 10:59 PM Subject: [PHP] WE NEED SOME ADVICES: Wha

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Kevin Stone
Variable variables allows you to define a variable name from a string. http://www.php.net/manual/en/language.variables.variable.php - Kevin - Original Message - From: "Jeff Pauls" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 2:18 PM Subject: [PHP] Auto Inc

Re: [PHP] Out of Range

2003-02-25 Thread 1LT John W. Holmes
Probably means that only one row was returned from your query, so 2 is out of range. ---John Holmes... - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 5:11 PM Subject: [PHP] Out of Range here is my code $Query = "SELEC

Re: [PHP] simple problem about authentication

2003-02-25 Thread 1LT John W. Holmes
> I'm trying to set up a password section on my website. But I don't want > a window popping up asking for a username and password. I'd rather like > to have a form that submits the data. I did that and it works fine, but > the browser seems to not save the username and password, because if i > cli

Re: [PHP] Empty Query

2003-02-25 Thread 1LT John W. Holmes
>From what I can tell, if $img is an empty string, and $file_dir is not a directory, $sql will not be assigned a value. This could be what's causing your error when you try to run an empty query. ---John Holmes... - Original Message - From: "Richard Whitney" <[EMAIL PROTECTED]> To: <[EMAI

[PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = "joe"; $name2 = "janis"; $name3 = "joanne"; Is there a way in php to increment the variable name not the value? Something like this for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = $name.$i;

Re: [PHP] Javascript

2003-02-25 Thread Scott St. John
Usually you would have the actual page between the () so it would be: echo " -Scott At 04:10 PM 2/25/2003 -0800, Todd Barr wrote: I have tried this 3 different ways and none of them worked... I am trying to get javascript to generate a popup, with a variable passed along in the url. echo""

[PHP] WE NEED SOME ADVICES: What is the best way for sending a huge amountof emails?

2003-02-25 Thread Jean Fábio Barros
Hi everyone! We will appreciate some advices. We are new to PHP, thus, please, be patient! :) We want to make a script which needs to send a huge amount of emails (The emails are stored in a MySQL DB). We would like to take control of sending errors and put these in a log file. The script needs to

Re: [PHP] Javascript

2003-02-25 Thread 1LT John W. Holmes
Nothing to do with PHP at all but, Pretty sure you have to tack on the URL variables within the window.open() function. When you specify the name of the file to open, try putting the variable there. ---John Holmes... - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EM

[PHP] NEED AN ADVICES: The best way for sending a huge amount of emails

2003-02-25 Thread Jean Fábio Barros
Hi everyone! We will appreciate some advices. We are new to PHP, thus, please, be patient! :) We want to make a script which needs to send a huge amount of emails (The emails are stored in a MySQL DB). We would like to take control of sending errors and put these in a log file. The script needs

[PHP] Javascript

2003-02-25 Thread Todd Barr
I have tried this 3 different ways and none of them worked... I am trying to get javascript to generate a popup, with a variable passed along in the url. echo""; this doesn't work, neither does stopping PHP and then restarting... Blah, any advice on how to embed javascript?

Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread 1LT John W. Holmes
> http://www.zend.com/manual/function.date.php > --- CF High <[EMAIL PROTECTED]> wrote: > > Hey all. > > > > Easy question here (can't find the answer in php > > manual) > > > > In Cold Fusion I'm able to format a given numerical > > month value, say the > > third month, as #MonthAsString(3)# and i

Re: [PHP] Running system commands

2003-02-25 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: Before I ask, I have read the documentation but nothing seems to work. I want to run a system command from behind the scenes (totally secure area of my server) that creates a directory and changes permissions on it. i.e. system ("mkdir $path"); Example above uses a value

Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread Daniel Guerrier
http://www.zend.com/manual/function.date.php --- CF High <[EMAIL PROTECTED]> wrote: > Hey all. > > Easy question here (can't find the answer in php > manual) > > In Cold Fusion I'm able to format a given numerical > month value, say the > third month, as #MonthAsString(3)# and it returns > "March

Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread Noah
Cool. I'll check it out. Thanks! --Noah - Original Message - From: "Dennis Cole" <[EMAIL PROTECTED]> To: "CF High" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 12:21 PM Subject: RE: [PHP] Output Numerical Month as String? > [code] > > date ("F", mktime

Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
in the PHP script: extract($HTTP_POST_VARS); if( isset($submit1) ) header("location: thispage.php"); else if( isset($submit2) ) header("location: thatpage.php"); - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 2:25

[PHP] Empty Query

2003-02-25 Thread Richard Whitney
### I have this: ### ### [serial] ### [model] ### [yr_blt] ### [km] ### [price] ### [hours] ### [details] ### [location] ### double[style] All of the 1 are the variables being passed, the word is hardcoded for clarity What I get half the time: Couldn't insert da

Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
Yes, you can. Simply give the buttons differnt names: in the PHP script: extract($HTTP_POST_VARS); is( isset($submit1) ) { } else if( isset($submit2) ) { } - Original Message - From: "Greg" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, February 25, 2003 2:11 PM Subject: [PHP] Submit butt

RE: [PHP] Output Numerical Month as String?

2003-02-25 Thread Dennis Cole
[code] date ("F", mktime(0,0,0,6,1,2000)); [\code] Replace 6 with the month number and your on your way -Original Message- From: CF High [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Output Numerical Month as String? Hey all. E

[PHP] Re: Submit buttons

2003-02-25 Thread Greg
I'm horrible at javascript, does anyone have a script that will do this? Thanks again!! "Oliver Witt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greg schrieb: > > > Is there any way that I can have a form submit to different pages depending > > on the submit button that is press

RE: [PHP] Submit buttons

2003-02-25 Thread Cal Evans
using JavaScript you can use an and in the onClick call a function that sets the form's target and then calls document.formname.submit(); =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Greg [mailto:[EMAIL PROTECTED] Sent: T

[PHP] Re: Submit buttons

2003-02-25 Thread Oliver Witt
Greg schrieb: > Is there any way that I can have a form submit to different pages depending > on the submit button that is pressed? Thanks! dont use submit buttons, but buttons... (type="button") calling a script that submits the form to whatever page you want it to. Olli -- PHP General Maili

[PHP] Submit buttons

2003-02-25 Thread Greg
Is there any way that I can have a form submit to different pages depending on the submit button that is pressed? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Output Numerical Month as String?

2003-02-25 Thread CF High
Hey all. Easy question here (can't find the answer in php manual) In Cold Fusion I'm able to format a given numerical month value, say the third month, as #MonthAsString(3)# and it returns "March" What's the equivalent in PHP? Thanks for any ideas.. --Noah -- -- PHP General Maili

Re: [PHP] line number

2003-02-25 Thread Leif K-Brooks
Use the __LINE__ "magic constant". Chandler, Jacob R wrote: What function can I use to find out the current line number? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Ma

[PHP] Re: line number

2003-02-25 Thread Justin Garrett
http://www.php.net/manual/en/language.constants.predefined.php Justin Garrett "Jacob R Chandler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] What function can I use to find out the current line number? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] line number

2003-02-25 Thread 1LT John W. Holmes
The constant __LINE__ works well. ---John Holmes... - Original Message - From: "Chandler, Jacob R" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 2:21 PM Subject: [PHP] line number What function can I use to find out the current line number? -- PHP Gene

[PHP] Running system commands

2003-02-25 Thread ed
Before I ask, I have read the documentation but nothing seems to work. I want to run a system command from behind the scenes (totally secure area of my server) that creates a directory and changes permissions on it. i.e. system ("mkdir $path"); Example above uses a value from a form passed t

[PHP] simple problem about authentication

2003-02-25 Thread Oliver Witt
Hi, I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username and password, because if i click on

[PHP] line number

2003-02-25 Thread Chandler, Jacob R
What function can I use to find out the current line number?

[PHP] browscap file problem?

2003-02-25 Thread solex
Hi all I am trying to use the get_browser() function It relies on the browscap directive in php.ini to be set to the absolute path location of the browscap.ini file. I have no control over the php.ini file as I am on a shared server. My hosting company have put the browscap.ini file on the server

[PHP] Out of Range

2003-02-25 Thread Todd Barr
here is my code $Query = "SELECT Last_Login and Current_Login from Security where PM_ID=$_SESSION[ID]"; $Getdates = odbc_do($link, $Query); while(odbc_fetch_row($Getdates)) { $Last=odbc_result($Getdates, 1); $Now=odbc_result($Getdates, 2); Now I get an error that tells me that #2 is out

Re: [PHP] help please

2003-02-25 Thread John Nichel
My guess is that register globals is turned off on your new site. Or maybe, the new site isn't set up to parse php with *.html extensions. Being that it's all embedded flash, I can't give you much more than that. bionicegg wrote: John, Im so sorry about the posting three times, I didnt know

Re: [PHP] Uploading Images

2003-02-25 Thread Marek Kilimajer
http://www.php.net/manual/en/ sections 18. Handling file uploads XXX. Filesystem functions XLI. Image functions clarionhaze wrote: Hey guys I nee

RE: [PHP] help please

2003-02-25 Thread Van Andel, Robbert
It would be helpful to find out what error messages you are getting when you run the script. if(!mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName."<".$Email.">")) die("Unable to send message"); would be a good start. I'm not sure if there is a system error you could rep

Re: [PHP] help please

2003-02-25 Thread John Nichel
Do you need an answer for each of the times that you posted it? 1) Posting code is good, however telling us it "doesn't work" is no good. What are the error messages, if any? Why is it not working, ie what did you expect it to do? 2) What version of php on the old site as compared to the ne

Re: [PHP] help please

2003-02-25 Thread Chris Hayes
Mark, you've GOT to give us something to work on. We're not ESP, well, at least I am not. Try debugging a bit. Echo all values just before you do the mail(), see whether they really are what you thought they were. Try a simple script that will only send a mail, take the example from the manu

[PHP] Re: help please

2003-02-25 Thread R'twick Niceorgaw
Please don't multi post. How you getting the $ToName $FirstName etc fields ? Are they submitted via a form? If so, check the register_globals setting on the server where it is not working. You need to set it on or use $_POST /$_GET variables. HTH R'twick "Bionicegg" <[EMAIL PROTECTED]> wrote in m

[PHP] Uploading Images

2003-02-25 Thread clarionhaze
Hey guys I need to make a place for people to upload images and then I need to make sure the file size is alright and the pixel size too... Could someone please send me in the right direction? -steven

Fwd: Re: [PHP] help please

2003-02-25 Thread Chris Hayes
There is no need to post this thrice. Anyway. What went wrong? Did you get an error message? Are both sites on the same machine? At 18:40 25-2-03, you wrote: Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to anothe

Fw: [PHP] help me please

2003-02-25 Thread Rick Emery
You don't have to break up the strings: mail("$ToName <$ToEmail>",$ToSubject, $EmailBody, "From: $FirstName <$Email>"); What are values of $ToName and $FirstName? why did you submit tghis 3 times? - Original Message - From: "bionicegg" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, February 2

RE: [PHP] Re: Editors

2003-02-25 Thread Pierre Vaudrey
The download address is : http://www.maguma.com/products/download.php Pierre -Message d'origine- De : James Hatridge [mailto:[EMAIL PROTECTED] Envoyé : mardi 25 février 2003 15:40 À : Pierre Vaudrey; Karl James; [EMAIL PROTECTED] Objet : [PHP] Re: Editors HI Pierre et al On Sunday

[PHP] help please

2003-02-25 Thread bionicegg
Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it has

[PHP] help please

2003-02-25 Thread bionicegg
Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it has

[PHP] Please help me with this .php file

2003-02-25 Thread bionicegg
Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it has

[PHP] help me please

2003-02-25 Thread bionicegg
Hello all, I am having problems with a script. The script works great on one of my sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it has

  1   2   >