Re: [PHP] Cookie problem

2001-09-20 Thread Murat
your header line works fine, but where are cookie files written? i didn't see any cookie file about it in my windows/cookie directory after it had been created?? thanks Richard Baskett wrote: > Here use this cookie that I wrote, it works in every browser, every os. > > ---

[PHP] interesting warning!!!

2001-09-20 Thread Balaji Ankem
Hi,friend, i registered login info while login using session_register session_register("user","pw"); --- and during logout i have unregistered like following.. session_unregister("user","pw"); This is the warning i got after logout.. Warning: Wrong parameter count for session_unre

Re: [PHP] Cookie problem

2001-09-20 Thread Richard Baskett
It depends on which browser you are using and on what platform. On the MacOS in IE you can view cookies by going to Edit -> Preferences -> Cookies in Netscape you can also view the cookies with the Preferences menu. On the PC it's a little more difficult. In IE you go to Tools -> Internet Optio

[PHP] excuting several sql statements in one time

2001-09-20 Thread 서 주영
Hello I want to know how to implement these several sql statements in one time. For example, I have 2 sql statements like : INSERT INTO com VALUES ('pentium'); INSERT INTO com VALUES ('amd'); Then, I want to excute these 2 sql statements in one time with PHP. I tried to implement like this :

RE: [PHP] preventing an include() from taking over?

2001-09-20 Thread Jon Haworth
The name of that concept is a "variable". index.php?pg=1 means "call index.php and set the variable $pg to 1" Cheers Jon -Original Message- From: LRW [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 21:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] preventing an include() from taking ov

Re: [PHP] For the RegExps gurus!

2001-09-20 Thread
> Halo! Good to see you back:) Thanks :) Same here! ...oh... wait; _I_ was the one a was away... Well... anyway: good to be back! > >I've been away on vacation, so it's a bit late, but anyway... > > > Indeed late.. Had a good one? Yep! Sun in France io rain in Holland. But :( I'm back in the r

Re: [PHP] Problem: ereg doesn't work ok (?).

2001-09-20 Thread
From: Lic. Rodolfo Gonzalez Gonzalez <[EMAIL PROTECTED]> Date: Tue, Sep 18, 2001 at 08:15:50PM -0500 Message-ID: <[EMAIL PROTECTED]> Subject: Re: [PHP] Problem: ereg doesn't wo > On Tue, 18 Sep 2001, * R&zE: wrote: > > > > and get DD-MM-, but with well formed -MM-DD it doesn't match!. Is

[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread _lallous
No you can't! I wrote a simple routine for the task! you might want to view it from: http://www.kameelah.org/eassoft/php_files/sql2php.php.txt just take the parse_sql_stream($all) which returns an array that have all the statments to be passed to mysql_query() this script is usefull when you

Re: [PHP] Print current page with no printer dialog box - How ?

2001-09-20 Thread
> I guess people can always use the browser's print button, but this has some > limitation on pages that use frames etc. I figure you already know this one: window.print(); (JavaScript) :) You still get the print-dialog, but the user doesn't have to push the print button of the browser and y

[PHP] Problem with disable_functions

2001-09-20 Thread Berthold Tenhumberg
Hi all! Did I find a bug? Disabling the function 'system' per php.ini works well. OK. Disabling the same function per Apache-directive does not. Why? php_admin_value disable_functions system -- (live long and prosper...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread mydata
yes, it will not work,because mysql does not support it(the way you try to use is 'procedure' called in MS SQL sever) , mysq developer said they will accomplish in the further . you and I have to wait for it. "VM ÁÖ¿N" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

Re: [PHP] how to use the function "strtotime"

2001-09-20 Thread
From: mydata <[EMAIL PROTECTED]> Date: Thu, Sep 20, 2001 at 11:41:09AM +0800 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] how to use the function "strtotime" > Hi, > I'm php developer beginner in China,but I am confused with function > "strtotime". > yes ,I know the usage of function "strtotim

Re: [PHP] how to use the function "strtotime"

2001-09-20 Thread mydata
thank a lot , I learn a lot from reply from you ! "* R&Ze:" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > From: mydata <[EMAIL PROTECTED]> > Date: Thu, Sep 20, 2001 at 11:41:09AM +0800 > Message-ID: <[EMAIL PROTECTED]> > Subject: [PHP] how to use the func

Re: [PHP] interesting warning!!!

2001-09-20 Thread
From: Balaji Ankem <[EMAIL PROTECTED]> Date: Thu, Sep 20, 2001 at 01:11:59PM +0500 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] interesting warning!!! > Hi,friend, > > i registered login info while login using session_register > > session_register("user","pw"); > > --- > and duri

[PHP] how to limit the files returned

2001-09-20 Thread Josep Raurell
Hi. I want use in IBM DB2 the SELECT . LIMIT, as I can do in mySQL. How -- 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] where did my cookie go?

2001-09-20 Thread Peter
Hi, I am new to learning PHP and I have experimenting with setting cookies. Basically, I wrote a very basic script like this: I even set my Internet Explorer to prompt me about cookies before allowing page to come through and it worked IE did prompt me. However, when I checked the /Windows/co

Re: [PHP] where did my cookie go?

2001-09-20 Thread Richard Baskett
I believe it saves it as a .txt file with the name of the server as the file name in IE. So if you were at yahoo.com and it set the cookie the name of the cookie would be [EMAIL PROTECTED] or something like that. Good luck! Rick > Hi, > > I am new to learning PHP and I have experimenting with

[PHP] radio buttons

2001-09-20 Thread RNie
Used HTML code: PHP code: $msgtxt .= "\r\nEmpleados: $empleados"; Whatever radio button is selected, the $msgtxt becomes: "Empleados 0" As far as I know the variable $empleados should have the choice that was made in the form. Why did it return "0"? What did I do wrong? Note that all other

Re: [PHP] radio buttons

2001-09-20 Thread Richard Baskett
Just a hunch... but try value="1–24" and see how that works, so basically substitute "-" for "–" I can't see the rest of your code and what else you might be appending to $msgtxt, so it could be something else... Rick > Used HTML code: > > > > > > > PHP code: > $msgtxt .= "\r\nEmpleados:

[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread James Holloway
Hey, Whilst you can't perform statements like this, there are alternatives. If you only have one field in your table, you can use: "INSERT INTO com VALUES ('pentium'), ('amd')"; // Continue the comma separated values list Or, if you need to specify which fields the data is to go in: "INSERT I

[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread Steve Edberg
This is more of a MySQL question, but: Actually, as of MySQL version 3.22.5, INSERT statements can have multiple value lists. In your case, this would be $query = "INSERT INTO com VALUES ". "('pentium'), ('amd')"; mysql_query($query, $dbconnect) or die(mysql_error()); Als

[PHP] Writing to two tables in 1-N relationship.

2001-09-20 Thread Alexander Deruwe
I have two DB tables that are in a 1 - N relationship. I need to enter data once in the 1-side, and then many times data on the N-side. (For those who like it less abstract: The 1-side is a table with data about a car (frame number, brand + type, and a carrier), the N-side has records about da

[PHP] merging XML documents

2001-09-20 Thread ZeNDeR-X
hi all ;) is there a way to merge two XML documents in php using DOM or SAX? For example we have an XML like this: I want to insert a document into (instead of?) the tag. Is that possible using some simple PHP instructions? or will i have to parse the XML on my own and do an ordinary text

[PHP] Sending email through "mail" function to a bad address

2001-09-20 Thread Ruben
Hi! When I send email through "mail" function to a bad address, I don't get an error message back, as I used to when using perl and sendmail. I've triyed using "Return-Path" and "Errors-To" headers with no results. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP] Writing to two tables in 1-N relationship.

2001-09-20 Thread David Otton
On Thu, 20 Sep 2001 13:22:03 +, you wrote: >I have two DB tables that are in a 1 - N relationship. I need to enter data >once in the 1-side, and then many times data on the N-side. > >(For those who like it less abstract: The 1-side is a table with data about a >car (frame number, brand + t

[PHP] --== Winning Confirmation ==--

2001-09-20 Thread Fianna421
You have been specially selected to qualify for the following: Premium Vacation Package and Pentium PC Giveaway To review the details of the please click on the link with the confirmation number below: http://wintrip.chn.net or http://wintrip.web-hit.com or http://wintrip.coc.cc Confirmation

[PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos
ey guys.. how do i check if the postdata is a valid time format? something like '2001-09-15' I hate it when they'll be entering garbage in it... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] Modularity--Optimizing Includes and Libs

2001-09-20 Thread Tamas Arpad
Hi, I have the same problem. We have a fairly complex and huge system with many functions/features in it with 1,6Mb of plain php code (without desing). For page generation usually one half (or third maybe) of the code is needed. I found that php parses and complies the code in 0.6secs (withou

[PHP] Generating UTF Files

2001-09-20 Thread Jens Kisters
Hello, I was asked to generate files in UTF-8 Format, where can i find infos on this? Is it a multi-byte charset? How do i use other charset in PHP? can i just switch to another charset and then make $a="a"; where a is the UTF reprensentation of 'a'? or will i have to mold bytes together myself u

[PHP] Re: simple question...

2001-09-20 Thread Emile Bosch
Checkdate is the solution for that: checkdate (int month, int day, int year) Ker Ruben Ramos <[EMAIL PROTECTED]> schreef in berichtnieuws 00f801c14251$5aa288b0$[EMAIL PROTECTED] > ey guys.. how do i check if the postdata is a valid time format? something > like '2001-09-15' > I hate it when they'

Re: [PHP] simple question...

2001-09-20 Thread
From: Ker Ruben Ramos <[EMAIL PROTECTED]> Date: Thu, Sep 20, 2001 at 08:56:03PM -0700 Message-ID: <00f801c14251$5aa288b0$bb05aacb@weblinqproxy> Subject: [PHP] simple question... > ey guys.. how do i check if the postdata is a valid time format? something > like '2001-09-15' > I hate it when they

Re: [PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos
One more thing... If I got '2001-09-01' Is there a fast way of incrementing the month of it? making it '2001-10-01' ? - Original Message - From: "* R&zE:" <[EMAIL PROTECTED]> To: "Ker Ruben Ramos" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 6:04 AM Subject:

RE: [PHP] simple question...

2001-09-20 Thread Eric O'Connell
> One more thing... If I got '2001-09-01' > Is there a fast way of incrementing the month of it? > making it '2001-10-01' ? list($year, $month, $day) = explode("-", $date); $month++; if ($month == 13) $month = 1; $date = "$year-$month-$day"; Eric O'Connel -- PHP General Mailing List (http:

Re: [PHP] simple question...

2001-09-20 Thread
From: Ker Ruben Ramos <[EMAIL PROTECTED]> Date: Thu, Sep 20, 2001 at 09:36:55PM -0700 Message-ID: <012b01c14257$0afb3db0$bb05aacb@weblinqproxy> Subject: Re: [PHP] simple question... > One more thing... If I got '2001-09-01' > Is there a fast way of incrementing the month of it? > making it '2001

[PHP] if statement

2001-09-20 Thread Jeb Anderson Scarbrough
This seems to be a simple questions, but it is baffling me for some reason. How do I create an if statement with multiple conditions. For example, I cannot get either of these to work correctly: if(isset($REMOTE_USER) && $AUTH_TYPE='securid') { // do something } else { // do somethin

Re: [PHP] simple question...

2001-09-20 Thread
> You should date() do the work here. So just take the month and then > +1. Date() will take care the result is a valid date. > Below is some example... Well... I meant: let mktime() do the work... not date(). Date() only shows the result of mktime() in a proper format. Mktime() makes sure it's a

Re: [PHP] if statement

2001-09-20 Thread Tim
You need to use == instead of = in that situation. - Tim On Thu, 2001-09-20 at 09:46, Jeb Anderson Scarbrough wrote: > This seems to be a simple questions, but it is baffling me for some reason. > How do I create an if statement with multiple conditions. For example, I > cannot get either of

Re: [PHP] if statement

2001-09-20 Thread
From: Jeb Anderson Scarbrough <[EMAIL PROTECTED]> Date: Thu, Sep 20, 2001 at 09:46:13AM -0400 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] if statement > This seems to be a simple questions, but it is baffling me for some reason. > How do I create an if statement with multiple conditions. Fo

Re: [PHP] Generating UTF Files

2001-09-20 Thread Stig Venaas
On Thu, Sep 20, 2001 at 02:57:43PM +0200, Jens Kisters wrote: > Hello, > > I was asked to generate files in UTF-8 Format, where can i find infos on > this? > Is it a multi-byte charset? > How do i use other charset in PHP? can i just switch to another charset and > then make $a="a"; where a is th

[PHP] caching madness

2001-09-20 Thread Christian Haines
hi all, i have tried everything not to get a page to cache.. server-side: header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: '. gmdate('D, d M Y H:i:s') .' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache') client-side: does

Re: [PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos
again.. one more thing How do I know how many days date differ? let's say '2001-09-01' and '2001-09-08'. Just looking for the fastest way of code to run. - Original Message - From: "* R&zE:" <[EMAIL PROTECTED]> To: "Ker Ruben Ramos" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thurs

[PHP] random record?

2001-09-20 Thread Kurth Bemis
i'm looking to select a random record from a sql table. I remember seeing code for it on the list but fail to find it now. any help? ~kurth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta

[PHP] Select distinct error!

2001-09-20 Thread Sophokles Zafeiris
Hi, I' m trying to execute a "select distinct" command on a table and I get the following error: ERROR 1022: Can't write, duplicate key in table 'pmall' My table is about 2,7 MBytes. Does anybody knows what's wrong? I use MySQL 3.23.40 on a Solaris 7 (intel) machine. Sofoklis -- PHP General M

Re: [PHP] random record?

2001-09-20 Thread David Otton
On Thu, 20 Sep 2001 10:35:59 -0400, you wrote: >i'm looking to select a random record from a sql table. I remember seeing >code for it on the list but fail to find it now. any help? SELECT columns FROM table ORDER BY RAND() LIMIT 1 djo -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] simple question...

2001-09-20 Thread
From: Ker Ruben Ramos <[EMAIL PROTECTED]> Date: Thu, Sep 20, 2001 at 10:16:01PM -0700 Message-ID: <016101c1425c$819cdcd0$bb05aacb@weblinqproxy> Subject: Re: [PHP] simple question... > again.. one more thing How do I know how many days date differ? let's > say '2001-09-01' and '2001-09-08'. >

Re: [PHP] random record?

2001-09-20 Thread Kurth Bemis
At 10:35 AM 9/20/2001, David Otton wrote: thank you! I love having access to all this knowledge :-) ~kurth >On Thu, 20 Sep 2001 10:35:59 -0400, you wrote: > > >i'm looking to select a random record from a sql table. I remember seeing > >code for it on the list but fail to find it now. any he

[PHP] image gallery

2001-09-20 Thread Aniceto Lopez
some days ago someone, I can't remenber, asked how to do an image gallery so here is mine available for downloading: www.lamundial.net/bol/img_gallery.zip also posted in http://www.weberdev.com you can see it working at: www.lamundial.net "fotos" section when a thumb is clicked pops up a new win

[PHP] image gallery

2001-09-20 Thread Aniceto Lopez
some days ago someone, I can't remenber, asked how to do an image gallery so here is mine available for downloading: www.lamundial.net/bol/img_gallery.zip also posted in http://www.weberdev.com you can see it working at: www.lamundial.net "fotos" section when a thumb is clicked pops up a new win

[PHP] Possibly undocumented operators.

2001-09-20 Thread Cory K. Walker
The PHP manual does not document the operators () -> What is the relative precedence and associativity of each? I've looked in the archives, and I've found some butter, more complete precedence tables, but they appear to be outdated. Where can I find a complete and accurate operator precedence

[PHP] Generating variable names 'on the fly'

2001-09-20 Thread Neil Freeman
Hi there, How do I generate variable names 'on the fly'? I wish to have variable names along the lines of $genre_category_1, $genre_category_2, $genre_category_3 etc. Ideally it would be along the lines of this... ### $current_field_number = 1; $genre_number_fields = 7; whi

[PHP] Parsing old .CAL-Files

2001-09-20 Thread Ulrich Hacke
Do you remember the calendar.exe in good'ol Win3.11? I have several .CAL-Files which I want to convert for using them in somewhat modern software as my client still uses this oldtimer program. CVS as output would do the trick. Can anybody help me? Thanks in advance, Uli -- PHP General Mailing

[PHP] MySQl IP Address Storage

2001-09-20 Thread Felix
Hello all Can anyone suggest their best idea for a way to store IP addresses in a MySQL Database? Felix -- 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: [E

[PHP] Internal use of Mysql Connections

2001-09-20 Thread Bob Silva
Just curious why mysql wouldnt restore the last known internal connection id. In the code below, I open a connection (without storing the connection id), use it, then open,use,close a different connection, this time using a connection id, but when I close it, the original internal connection id

[PHP] Re: Parsing old .CAL-Files

2001-09-20 Thread Eddie Shipman
Here is a link to the file format: http://www.wotsit.org/download.asp?f=calendar If you just need a converter, let me know. I can probably program one quickly using Delphi. > Do you remember the calendar.exe in good'ol Win3.11? I have several > .CAL-Files which I want to convert for using them i

[PHP] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread Jeff Lewis
I have a very large text file that is set up like so: It contains some smaller columns but one HUGE one that contains the body of a resume. I am looking for help on processing this file. What I need to do is convert the final column into three columns. Each column can have no more than 4000

RE: [PHP] MySQl IP Address Storage

2001-09-20 Thread Robert Covell
INET_ATON and INET_NTOA -Original Message- From: Felix [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 11:49 AM To: PHP list Subject: [PHP] MySQl IP Address Storage Hello all Can anyone suggest their best idea for a way to store IP addresses in a MySQL Database? Felix

[PHP] Re: caching madness

2001-09-20 Thread John Lim
Hello Christian, Try this: Header("Cache-control: private, no-cache"); Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); # Past date Header("Pragma: no-cache"); The explaination of how it works is here: http://php.weblogs.com/stories/storyReader$550 Let me if it works, or if you can improve o

Re: [PHP] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread
From: Jeff Lewis <[EMAIL PROTECTED]> Date: Thu, Sep 20, 2001 at 11:59:32AM -0400 Message-ID: <013e01c141ed$3d51f340$76a1a8c0@LEWISJCIT> Subject: [PHP] Parsing text file and dividing column into three...PLEASE help :) > I have a very large text file that is set up like so: It contains > some sma

Re: [PHP] radio buttons

2001-09-20 Thread RNie
> Just a hunch... but try value="1–24" and see how that works, so > basically substitute "-" for "–" > > I can't see the rest of your code and what else you might be appending to > $msgtxt, so it could be something else... Yes it was something else. I did a wrong comparison with the variable: $e

[PHP] More Image gallery

2001-09-20 Thread Daniel Alsén
A little contribution from me as well... I have altered the Todd Kennedy script a bit. Instead of reading a textfile for the filenames it scans the directory and displays all pictures (jpegs) that are there. Go get it at: http://www.mindbash.com/scripts/mygallery.zip # Daniel Alsén| www.min

[PHP] Re: Generating variable names 'on the fly'

2001-09-20 Thread Charlie Killian
Neil, look under variable variables in the php manual. They're what you need: http://www.php.net/manual/en/language.variables.variable.php Charlie "Neil Freeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, > > How do I generate variable names 'o

Re: [PHP] Please help!!! Trying to write some chat script!

2001-09-20 Thread Sheridan Saint-Michel
You can use a flat file and work around problems like you described by using flock, for example. I do agree a DB is the best way to go 99.9% of the time though. I just wanted to give an overview of that covered most of the possible ways to write a chat room. Sheridan Saint-Michel Website Admini

[PHP] archives posting ip address not name

2001-09-20 Thread Charlie Killian
Why does the marc.aimsgroup archives post my IP address and not my name when posting to the newsgroup? Is there anyway I can change this? Charlie Killian [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

[PHP] about image gallery

2001-09-20 Thread Aniceto Lopez
thanks Daniel yours doen't need a text file with the image file names but this is usefull when you want to establish the order thumbs are shown little trick: both, big imgs and thumbs should be same file type but I use jpg for big ones and gif for thumbs. after procesing them (thumbs) in image so

[PHP] Wow

2001-09-20 Thread Jonas K
thx alot :) -- 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] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread Jeff Lewis
Ok, I have written code to go through the file grabbing pretty much what I need. Now in the array after explode ($oldline=explode("|", $buffer);) I need to split apart $oldline[9]. Each element should hold no more than 4000 characters. So I will dump this all into a new array. What would be th

RE: [PHP] about image gallery

2001-09-20 Thread Daniel Alsén
> yours doen't need a text file with the image file names > but this is usefull when you want to establish the order > thumbs are shown A matter of taste i guess. I wanted a script that needed as little work as possible after i uploaded it. Next thing to do is add page numbers for faster navigat

Re: [PHP] MySQL Connectivity test

2001-09-20 Thread Jason Bell
Thanks lance and David for the reply. :) Yes, I suspected as much, *BUT* let me explain what I am trying to do: I have a script I am writing that uses a MySQL backend. I'm including an initial configuration interface via the webbrowser. During initial configuration, the user provides parameters

[PHP] importing a text file

2001-09-20 Thread Dominica Anderson
I have a text file that is formatted as such Something - SomethingElse <4 blank lines> SomethingMore <4 blank lines> Something - SomethingElse <4 blank lines> SomethingMore <4 blank lines> and so on Anyone have any ideas on what I would use to get this into seperate records that are $

[PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson
Hello everyone- I'm trying to have multiple uploads in one form so my input tag looks like this: The problem I'm running into is that I know php usually sets the name of the file to $userfile_name and sets the mime type of the file to $userfile_type and the size to $userfile_size. My questi

[PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Simon Kimber
Hi All, I have a PHP script that i want to run every few minutes (via cron) but I only want it to run if it isn't already running. Is there something in cron itself to solve this or is there a way within PHP to detect that another instance of the current script is running and if so exit the new

RE: [PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Jack Dempsey
i'm sure there are more elegant solutions, but you could control the running of your php script via a perl script called by cronin perl check to see if the process is already running, and if so exit, else start it jack -Original Message- From: Simon Kimber [mailto:[EMAIL PROTECTED]]

Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Felix
Thank you Robert. Felix - Original Message - From: "Robert Covell" <[EMAIL PROTECTED]> To: "Felix" <[EMAIL PROTECTED]>; "PHP list" <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 10:55 AM Subject: RE: [PHP] MySQl IP Address Storage > INET_ATON > > and > > INET_NTOA > > -Or

[PHP] Detect if javascript is enabled

2001-09-20 Thread Ole Victor
Hi, Does anyone know a simple trick to get PHP detect if the user's browser has javascript enabled? -- Olé -- 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

RE: [PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Richard Heyes
> ...in perl > check to see > if the process is already running, and if so exit... Or just do this at the top of the cron'ed php script. -- Richard Heyes "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein -- P

[PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson
Hello everyone- I'm trying to have multiple uploads in one form so my input tag looks like this: The problem I'm running into is that I know php usually sets the name of the file to $userfile_name and sets the mime type of the file to $userfile_type and the size to $userfile_size. My questi

Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Jason Bell
Felix, Just to save you the headache that I encountered, the column that you plan to store your IP address in needs to be an unsigned integer when using INET_ATON and INET_NTOA If it's not, all addresses stored will come out as 127.0.0.0 (I think that was what it was...). Also, these are MySQL

[PHP] include() problem...

2001-09-20 Thread Matthew Walker
I've got a very odd problem. I'm trying to include 'DB/mysql.php', from the /usr/lib/php directory, and it's not working. My include_path is set properly (.:/usr/lib/php) and when I do 'print_r(ini_get("include_path"));' it prints it properly. But when I try and do an include, I get the following

Re: [PHP] Re: [PHP-DB] Cross site authentication

2001-09-20 Thread Justin Buist
My reason for using SSL was that the username/password combination wouldn't be transmitted in plaintext... that's all. If you're passing the creditials in plaintext to the Win2k machine though going to SSL for the auth on PHP/Linux wouldn't really make any sense I suppose. Justin Buist Trident T

Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Felix
Thank you very much. Felix - Original Message - From: "Jason Bell" <[EMAIL PROTECTED]> To: "PHP list" <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 12:49 PM Subject: Re: [PHP] MySQl IP Address Storage > Felix, > > Just to save you the headache that I encountered, the column th

RE: [PHP] include() problem...

2001-09-20 Thread Jeb Anderson Scarbrough
If you put the file into the include directory specified in the php.ini (.:/usr/lib/php) then I believe you should do: include("mysql.php"); NOT include("DB/mysql.php"); Someone please correct me if I'm wrong. I've got a very odd problem. I'm trying to include 'DB/mysql.php', from the /us

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
I've tried including just a file that was in the /usr/lib/php directory. No luck. I get exactly the same error (with the correct file name, obviously). Also, note in the error that include() is seeing include_path=''. What's up with that? -Original Message- From: Jeb Anderson Scarbrough [

[PHP] Security with include() function

2001-09-20 Thread SED
Hi, I was wandering if someone includes php-file with passwords, private paths etc. on a different server like this: include ("http://someserver/file.php";); Will this same person be able to echo all the variables in that file.php script? Or is it in each and every time processed via p

[PHP] Even more image gallery

2001-09-20 Thread Daniel Alsén
Updated the Todd script again... Now there are page numbers added with the next and prev links. http://www.mindbash.com/scripts/mygallery.zip Hepp! # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing L

[PHP] importing text file

2001-09-20 Thread Dominica Anderson
I have a text file that is formatted as such Something - SomethingElse <4 blank lines> SomethingMore <4 blank lines> Something - SomethingElse <4 blank lines> SomethingMore <4 blank lines> and so on Anyone have any ideas on what I would use to get this into seperate records that are $

RE: [PHP] importing text file

2001-09-20 Thread Boget, Chris
> I would even go for $Something and just $SomethingMore > with $Something really being $Something-$SomethingElse. > I don't know if that makes sense. > Any help would be greatly appreciated. Take a look at file(); and just loop through the resulting array and removing all the blank elements.

RE: [PHP] importing text file

2001-09-20 Thread Jack Dempsey
checkout http://php.net/manual/en/function.file.php -Original Message- From: Dominica Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 2:14 PM To: [EMAIL PROTECTED] Subject: [PHP] importing text file I have a text file that is formatted as such Something - Someth

[PHP] database on CD

2001-09-20 Thread Tim Olsen
Ok, Is this possible and how? I would like to put a mysql database on CD (or something like it). I then want to grab info from the database (maybe using a java applet) and use it to make xml, etc. I dont want to have to install anything on the computer that the CD is running on. Anyone seen som

RE: [PHP] importing text file

2001-09-20 Thread Dominica Anderson
ok here is an example that someone gave me...it works..it splits up the file but it comes out as $data_values[0] = Something $data_values[1] = SomethingElse $data_values[0] = SomethingMore $data_values[0] = Something $data_values[1] = SomethingElse $data_values[0] = SomethingMore and so on how

RE: [PHP] database on CD

2001-09-20 Thread Joseph Bannon
It should be possible, especially if you use Java. But, telling MySQL where the database is located is the trick. Joseph CollegeSucks.com - See PHP in ACTION! -Original Message- Ok, Is this possible and how? I would like to put a mysql database on CD (or something like it). I then wan

Re: [PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson
Quick question... how do I get the information out of the $imageFile array that is here in the phpinfo? HTTP_POST_FILES["imageFile"] Array ( [name] => Array ( [0] => 101x_button.gif [1] => am_button.gif ) [type] => Array (

Re: [PHP] database on CD

2001-09-20 Thread Michael A. Peters
One possible solution (I have not tried) is to force a symlink- cd /var/database/mysql ln -sf /mnt/cdrom/path/to/mydatabase mydatabase You would have to make sure the database was for the right platform (a MySQL database created on a sparc64, for example, would not work on a PowerPC) Is there

Re: [PHP] radio buttons

2001-09-20 Thread Richard Baskett
Actually it does explain it, you set the variable to false, which of course is 0, so that's why you had a 0 :) Also a good way of seeing if the variable is set, no equaling 0, "", " ", false, etc is by using the empty function if (empty($empleados)) Glad you figured it out though! Cheers Rick

RE: [PHP] MySQl IP Address Storage

2001-09-20 Thread Don Read
On 20-Sep-2001 Felix wrote: > Hello all > > Can anyone suggest their best idea for a way to store IP addresses in a > MySQL Database? > INT UNSIGNED and use the MySQL functions INET_ATON() & INET_NTOA() for converting. If you're on a pre-3.23 MySQL server then: // Convert IP string (XXX.YY

[PHP] What is the difference?

2001-09-20 Thread Jay Paulson
What's the difference between these two variable? $HTTP_POST_FILES["imageFile"]["name"][0] $HTTP_POST_FILES["imageFile"]["name"][1] $imageFile["name"][0] $imageFile["name"][1] The reason why I ask this is I get this error below when I echo out $imageFile["name"][0] etc. Warning: Undefined inde

RE: [PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Don Read
On 20-Sep-2001 Simon Kimber wrote: > Hi All, > > I have a PHP script that i want to run every few minutes (via cron) but I > only want it to run if it isn't already running. > > Is there something in cron itself to solve this or is there a way within PHP > to detect that another instance of the

Re: [PHP] Detect if javascript is enabled

2001-09-20 Thread Mark
On Thu, 20 Sep 2001 19:41:55 +0200, Ole Victor wrote: >Hi, > >Does anyone know a simple trick to get PHP detect if the user's >browser has >javascript enabled? the easiest way is to set a cookie w/ javascript, but you won't know until the second request. -- PHP General Mailing List (http://www

[PHP] Re: Detect if javascript is enabled

2001-09-20 Thread Philip Hallstrom
You could also have Javscript do something like: document.location.href = "theyvegotjavascript.php"; other wise they don't... -philip On Thu, 20 Sep 2001, Mark wrote: > On Thu, 20 Sep 2001 19:41:55 +0200, Ole Victor wrote: > >Hi, > > > >Does anyone know a simple trick to get PHP detect if t

[PHP] Re: Modularity--Optimizing Includes and Libs

2001-09-20 Thread ~~~i LeoNid ~~
On Wed, 19 Sep 2001 12:30:50 -0700 (PDT) impersonator of [EMAIL PROTECTED] (Bora Paksoy) planted &I saw in php.general: >that PHP parses/compiles pages everytime a new request >comes in. So, does this mean we have to minimize the >amount of code per page (which also means to minimize >number of i

Re: [PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson
Hello- I'm having a problem once I upload a file and I need to copy it to a new directory using php. The error message I keep getting is this: Warning: Unable to create '/home/krox/krox.com/htdocs/images/101x_button.gif': Permission denied in /php/news/news.class.php on line 227 My question is

  1   2   >