[PHP] Issues in passing session data

2003-03-04 Thread Hantzley
Hi php users, I have some questions regarding the way developers uses php sessions. For instance, most developers uses session_start() on top of every page. The problem is that after visiting each page, a new session file is created on the server. Now i made a web application that uses the star

Re: [PHP] cookie secure argument?

2003-03-04 Thread Hans Prins
thank you :) "Rasmus Lerdorf" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Means the cookie will only be sent over an HTTPS connection. > > On Wed, 5 Mar 2003, Hans Prins wrote: > > > Can anyone tell me what the secure argument in the setcookie() function > > does? > > > > setco

Re: [PHP] cookie secure argument?

2003-03-04 Thread Rasmus Lerdorf
Means the cookie will only be sent over an HTTPS connection. On Wed, 5 Mar 2003, Hans Prins wrote: > Can anyone tell me what the secure argument in the setcookie() function > does? > > setcookie ( string name [, string value [, int expire [, string path [, > string domain [, int secure]) > >

[PHP] cookie secure argument?

2003-03-04 Thread Hans Prins
Can anyone tell me what the secure argument in the setcookie() function does? setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]) thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't get upload to work and I wonder...

2003-03-04 Thread Hugh Danaher
Thanks Jason, Sounds simple. I'll let the SA know what I want and see if I get it. Hugh - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 10:19 PM Subject: Re: [PHP] Can't get upload to work and I wonder... > On Wednesday 05

Re: [PHP] RedHat 8.0 MySQL Problem

2003-03-04 Thread Rasmus Lerdorf
Have you actually enabled the MySQL extension? You should have a line in your php.ini that says: extension=mysql.so By the way, the Apache that comes with RH8 when combined with PHP does not give you a production-quality solution. So if you are running this thing for any sort of important ser

Re: [PHP] Can't get upload to work and I wonder...

2003-03-04 Thread Jason Wong
On Wednesday 05 March 2003 13:37, Hugh Danaher wrote: > Help, > I've moved my upload script from one host to another, and what worked once, > isn't working now. In the new site's phpinfo file I see that file_uploads > is set to "no value" and in the old it was "on." What do I tell my system > adm

[PHP] RedHat 8.0 MySQL Problem

2003-03-04 Thread Darren Young
I have an app that runs just fine on RedHat 7.2 with compiled Apache and PHP along with MySQL binaries installed from MySQL's site. I have a new machine running RedHat 8.0 that is completely "generic", i.e only RedHat Apache, PHP and MySQL RPM's installed. The error message I'm getting is: [04-Mar

[PHP] Can't get upload to work and I wonder...

2003-03-04 Thread Hugh Danaher
Help, I've moved my upload script from one host to another, and what worked once, isn't working now. In the new site's phpinfo file I see that file_uploads is set to "no value" and in the old it was "on." What do I tell my system administrator to do to get this feature enabled? Thanks for any

Re[2]: [PHP] Supressing a session id in link

2003-03-04 Thread Tom Rogers
Hi, Wednesday, March 5, 2003, 1:47:39 PM, you wrote: G> Tom Rogers wrote: >> Hi, >> >> Wednesday, March 5, 2003, 12:45:27 PM, you wrote: >> G> Hi All, >> G>I need to suppress the session id in some links. The xhtml needs to >> G> validate and the session id will no do so. A lot of people tha

Re: [PHP] Fatal error: Call to undefined function: mysql_connect()

2003-03-04 Thread Jason Wong
On Wednesday 05 March 2003 11:15, AD wrote: > I'm getting this error while testing the script below just for > connectivity. Mysql is running on XP and apache and php are on openbsd. It > seems like I don't have something configured right in php I guess but I'm > not sure. Here is the script: Sear

RE: [PHP] Maintain " and ' in html textfields - REPLY

2003-03-04 Thread Bryan Lipscy
http://www.php.net/manual/en/function.preg-quote.php preg_quote($var, '\'') preg_quote($var, '"') Thank you for asking this question. I learned something new. This looks like a good way to mitigate SQL Injection attacks as well. -Original Message- From: Daniel Guerrier [mailto:[EMA

Re: [PHP] Maintain " and ' in html textfields

2003-03-04 Thread Leif K-Brooks
www.php.net/htmlentities Daniel Guerrier wrote: If I have text containing quotes, single or double in my database, and I try to set the text as a value for my html text field. The quote in the text will prematurely close the value="" or value='' html and cut of the remainder of the text. How ca

RE: [PHP] Maintain " and ' in html textfields - REPLY

2003-03-04 Thread Daniel Guerrier
I forgot to mention that I'm use add and stripslash on the data so magic quotes wouldn't help. The problem is the " from the text is closing the " from the html. > > --- Bryan Lipscy <[EMAIL PROTECTED]> wrote: > > Look up magic quotes in the docs. > > > http://www.php.net/manual/en/ref.info.php#

RE: [PHP] Maintain " and ' in html textfields

2003-03-04 Thread Daniel Guerrier
I forgot to mention that I'm use add and stripslash on the data so magin quotes wouldn't help. The problem is the " from the text is closing the " from the html. --- Bryan Lipscy <[EMAIL PROTECTED]> wrote: > Look up magic quotes in the docs. > http://www.php.net/manual/en/ref.info.php#ini.magic-q

[PHP] Re: Getting error REG_EMPTY

2003-03-04 Thread Greg Beaver
Hi If $line is == '', you will get an error. Try @split('|', $line), or add a test for empty lines like if (empty($line)) continue; if you var_dump($line);, you'll probably see that there is an empty line in members.txt Regards, Greg -- phpDocumentor http://www.phpdoc.org "Richard Kurth" <[EMA

RE: [PHP] Maintain " and ' in html textfields

2003-03-04 Thread Bryan Lipscy
Look up magic quotes in the docs. http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc The docs are mmm mmm good. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Compiling PHP5 In Linux

2003-03-04 Thread Clete Rivers Blackwell 2
Oh, my configure './configure --with-apxs2=/usr/sbin/apache/bin/apxs --with-gd2 --enable-sock ets' "Clete Rivers Blackwell 2" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok, > > I have RedHat 8.0 with the everything box checked in packages... when I > build the CVS of PHP5, it te

[PHP] Compiling PHP5 In Linux

2003-03-04 Thread Clete Rivers Blackwell 2
Ok, I have RedHat 8.0 with the everything box checked in packages... when I build the CVS of PHP5, it tells me that tempnam is dangerous and to use makename or something... I think it's a code bug, but just in case, does anyone know if this is due to an outdated version of some program? Thanks in

[PHP] Re:

2003-03-04 Thread Greg Beaver
Hi, You will benefit from enclosing all of the attributes in quotes, as in In addition, make sure your a name tag has a closing tag like Regards, Greg -- phpDocumentor http://www.phpdoc.org "Beauford.2002" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not sure if this is a PH

Re: [PHP] Supressing a session id in link

2003-03-04 Thread Gary
Tom Rogers wrote: Hi, Wednesday, March 5, 2003, 12:45:27 PM, you wrote: G> Hi All, G>I need to suppress the session id in some links. The xhtml needs to G> validate and the session id will no do so. A lot of people that visit G> the site will try to validate the xhtml and css. G> I call the

[PHP] Maintain " and ' in html textfields

2003-03-04 Thread Daniel Guerrier
If I have text containing quotes, single or double in my database, and I try to set the text as a value for my html text field. The quote in the text will prematurely close the value="" or value='' html and cut of the remainder of the text. How can I prevent this. I curently have this: "); ?> I

RE: [PHP] Re: Browser Sniffing

2003-03-04 Thread Bryan Lipscy
>What's e.g. mean? Latin: exempli gratia Translated: for example i.e. Latin: id est Translated: that is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Yarrrrgggghhhhh || Simplest php question in existence........

2003-03-04 Thread Daniel Guerrier
Or $row = mysql_fetch_objects() then use $row->fieldname; --- Joel Colombo <[EMAIL PROTECTED]> wrote: > not mysql_fetch_array unless u need those int > indexes. > mysql_fetch_assoc is the same thing but does not > index the integer value, > just the string field name. > > Joel > > > "Leif K-Br

[PHP] Re: Browser Sniffing

2003-03-04 Thread Clete Rivers Blackwell 2
Search php.ini for: auto_prepend_file = you need the exact location of the file at the end (e.g. /var/www/html/this.php)... Also, you can do an auto_append_file. What's e.g. mean? I know how it's used, but what does ir stand for? lol... "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] Supressing a session id in link

2003-03-04 Thread Tom Rogers
Hi, Wednesday, March 5, 2003, 12:45:27 PM, you wrote: G> Hi All, G>I need to suppress the session id in some links. The xhtml needs to G> validate and the session id will no do so. A lot of people that visit G> the site will try to validate the xhtml and css. G> I call the links with G> +1

[PHP] Fatal error: Call to undefined function: mysql_connect()

2003-03-04 Thread AD
I'm getting this error while testing the script below just for connectivity. Mysql is running on XP and apache and php are on openbsd. It seems like I don't have something configured right in php I guess but I'm not sure. Here is the script: \n"; while ($line = mysql_fetch_array($result))

[PHP] Re: mail() in Linux

2003-03-04 Thread Manuel Lemos
Hello, On 03/04/2003 10:47 PM, Terry Lau wrote: > Hello, >I want to use the mail() in my Linux computer.But I don't know how to > set the php.ini file to enable it.I am using the SMTP server provided by > ISP. Do I need to setup my own mail server? You do not need a SMTP server to send mess

[PHP] Supressing a session id in link

2003-03-04 Thread Gary
Hi All, I need to suppress the session id in some links. The xhtml needs to validate and the session id will no do so. A lot of people that visit the site will try to validate the xhtml and css. I call the links with +1 and and the server generates +1 W3's validator gives me this http://vali

Re: [PHP] crontab

2003-03-04 Thread Sunfire
dont know..i would think you could but i have all my php tasks like crontabs running in windows and they work just fine... hehe didnt think i could do that but when i tried it it worked grin! - Original Message - From: "John Taylor-Johnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sen

Re: [PHP] Browser Sniffing

2003-03-04 Thread David Otton
On Tue, 04 Mar 2003 18:32:33 -0700, you wrote: >I know, it can't be done in PHP. That's not exactly what I'm here >for. I have a client who would like to redirect people to a polite >'upgrade your browser' page whenever people visit his site (which has >been developed in PHP no less). My

Re: [PHP] Browser Sniffing

2003-03-04 Thread Tau Ceti
On a site I worked with we rely on browser detection in order to send the correct stylesheet and other bits that make it more compatable on older browsers. Browser detection is not just used to block unwanted browsers. On Tue, 4 Mar 2003, Leif K-Brooks wrote: > Checking browsers is pure evil, bu

Re: [PHP] Browser Sniffing

2003-03-04 Thread Leif K-Brooks
Checking browsers is pure evil, but if you must, use $_SERVER['HTTP_USER_AGENT'] on the server side. Ashley M. Kirchner wrote: I know, it can't be done in PHP. That's not exactly what I'm here for. I have a client who would like to redirect people to a polite 'upgrade your browser' page w

Re: [PHP] Browser Sniffing

2003-03-04 Thread Larry E. Ullman
I know, it can't be done in PHP. That's not exactly what I'm here for. I have a client who would like to redirect people to a polite 'upgrade your browser' page whenever people visit his site (which has been developed in PHP no less). My question here is, how can I make this so that regar

[PHP] Getting error REG_EMPTY

2003-03-04 Thread Richard Kurth
Way does this give me this error Warning: REG_EMPTY: in emailusers.php on line 52 $lines = file("data/members.txt"); foreach($lines as $line){ list ($logged_email,$logged_title,$logged_first_name,$logged_last_name) = split("|", $line); if ($logged_email==$email) {print "This email has already

Re: [PHP] RedHat

2003-03-04 Thread Ashley M. Kirchner
Darren Young wrote: Does anyone know if the PHP included in RedHat 8.0 has sockets enabled? It was in 7.3, I see no reason why it wouldn't be in 8. Load up phpinfo() and see. -- W | I haven't lost my mind; it's backed up on tape somewhere. +---

[PHP] RedHat

2003-03-04 Thread Darren Young
Does anyone know if the PHP included in RedHat 8.0 has sockets enabled? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2003-03-04 Thread Richard Baskett
You said yourself that you wanted to link to another part of the page. So does that mean a certain section of the current page or a section in a different page? Either way when linking to another page you link by doing this: An anchor in the same page: An anchor in a different page: Just

[PHP] mail() in Linux

2003-03-04 Thread Terry Lau
Hello, I want to use the mail() in my Linux computer.But I don't know how to set the php.ini file to enable it.I am using the SMTP server provided by ISP. Do I need to setup my own mail server? Thanks! Terry _ ¤µ¤é¬P®y http://

[PHP] Browser Sniffing

2003-03-04 Thread Ashley M. Kirchner
I know, it can't be done in PHP. That's not exactly what I'm here for. I have a client who would like to redirect people to a polite 'upgrade your browser' page whenever people visit his site (which has been developed in PHP no less). My question here is, how can I make this so that regar

[PHP] Re: Remember scrolled position

2003-03-04 Thread Lars Espelid
You understood me. You're right, I can load the document like you said, and I'll do it that way. The page won't scroll to the exact position it was befor the submit. It would do so if I could use javascript. But its good enough. Thanks everyone! Lars "K1llersush1" <[EMAIL PROTECTED]> skrev i m

Re: [PHP]

2003-03-04 Thread Beauford.2002
Thanks for the info, but the # is not used in this way from the information I have read. . . . Define a target location in a document . . . Link to a location in the base document, which is the document containing the anchor tag itself, unless a base tag has been specified. - Origina

[PHP] Re: Automatically Save Image?

2003-03-04 Thread Clete Rivers Blackwell 2
Use a .htaccess, though I do not know what to put. You can zip the image up, or unset the AddType image/gif/jpg/whatever .gip/jpg/whatever in httpd.conf... it may work to make it appear as an unknown file, .htaccess: AddType thisdoesnotexist/thisdoesnotexist .jpg .gif .jpeg .png "Doug Coning" <

[PHP] Re: transferring another .jpg to your own

2003-03-04 Thread Clete Rivers Blackwell 2
I am still trying to get GD to work on my system, but you need to output a header: header("Content-type: image/jpg"); then at the end: imageJPG($im); It should work if I'm not wrong... "Anthony Ritter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Using PHP 4.1.1. / Apache / Wi

Re: [PHP] file uploads

2003-03-04 Thread Joseph Bannon
> They do, and I believe it's until the end of the > currently-running PHP script. Perfect! Thanks. Joseph __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.

Re: [PHP] syntax error

2003-03-04 Thread John Taylor-Johnston
Thanks Keven. Didn't see that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Downloading files outside the webserver

2003-03-04 Thread Daniel Silva
Hello. I tried what you suggested and it's working alright. The problem is, that it doesn't always work. I adapted your suggestion to what I needed. Instead of creating a file, I made a fuction that does basically the same. All listed files are links that enable the user to download them. So far

[PHP] MySQL Query

2003-03-04 Thread shaun
Hi, Is there a way of updating a table so that I can add some sort of identifier to each field, something as simple as x=1 will do. I want to be able to modify the table so I can set a variable for each column so I can tell whether I can let a user modify that field. If I modify the fieldname then

[PHP] Re: Newsgroup Server?

2003-03-04 Thread Clete Rivers Blackwell 2
thanks :) "Jome" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Clete Rivers Blackwell 2 wrote: > > Is there a newsgroup server for this mailing list? > > news.php.net > > -- > Jome > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] syntax error

2003-03-04 Thread Kevin Stone
Where is $line coming from? The function won't output what you don't input. Other than that I don't see anything wrong. - Kevin - Original Message - From: "John Taylor-Johnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 4:33 PM Subject: [PHP] syntax error

[PHP] trailing slash

2003-03-04 Thread Michael A Smith
Hi all, How come some servers (like one of our RH7.3s) can accept a www.somewhere.com/foldername without the trailing slash and others (like my RH8.0) gives a 404 error? -Michael -- Some people's minds are like cement; all mixed up and permanently set. Life is full of obstacle ill

[PHP] syntax error

2003-03-04 Thread John Taylor-Johnston
Sigh :) It all works so much better if I use: if(eregi('^au: (.*)$',$line,$m)) { But I want to use a function. But nothing is returned. So what did I do wrong now? --snip echo filter_strings("au:"); function filter_strings($tofilter){ echo $tofilter.""; #if(eregi('^$

RE: [PHP] maguma problems with php 4.3 and apache

2003-03-04 Thread Barajas, Arturo
AFAIK, you're either lacking those files or they are not compatible with Apache or some other module. I personally think it's the first option. BTW; normally, every php*.dll file resides below the main php install directory, except that file, which should reside on WIN[dows|nt]\System[32], as th

Re: [PHP] Truncating text

2003-03-04 Thread Justin French
Take the truncating out of the picture, and just concentrate on returning two results from mysql. If that works, then try it with rows that contain an exclamation mark (!). If they both work, THEN concentrate on truncating the variable down. Let us know how far you get, so we can pinpoint the pr

[PHP] transferring another .jpg to your own

2003-03-04 Thread Anthony Ritter
Using PHP 4.1.1. / Apache / Win 98 I'd like to use a .jpg from another URL - say: http://www.blah.com/foo.jpg and turn it into a variable using PHP and then once it is a variable to try to manipulate that image using GD Libraries which are installed. Is this possible? I tried placing the strin

Re: [PHP] Remember scrolled position

2003-03-04 Thread Justin French
This is not a PHP issue -- it's a javascript issue... try a JS newsgroup or list. Justin on 05/03/03 1:10 AM, Lars Espelid ([EMAIL PROTECTED]) wrote: > I'm trying to implement the following functionality into the file test.php: > > When I scroll down the page and then hit a button, the page s

Re: [PHP] maguma problems with php 4.3 and apache

2003-03-04 Thread Sunfire
in httpd.conf i have the line: LoadModule php4_module "C:/Program Files/Maguma Studio/php/sapi/php4apache.dll" i get the line when i start apache: [warning]: syntax error on line 860 in httpd.conf: cant load module because the library required for this application cant be found: (1113) review the l

[PHP] Re: Newsgroup Server?

2003-03-04 Thread Jome
Clete Rivers Blackwell 2 wrote: > Is there a newsgroup server for this mailing list? news.php.net -- Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newsgroup Server?

2003-03-04 Thread Clete Rivers Blackwell 2
Is there a newsgroup server for this mailing list?

Re: [PHP]

2003-03-04 Thread Richard Baskett
for ($i = 1; $i < 6; $i++) { echo "Destination\n"; } You forgot the # sign. Cheers! Rick Happiness is not a destination. It is a method of life. - Burton Hills > From: "Beauford.2002" <[EMAIL PROTECTED]> > Date: Tue, 4 Mar 2003 17:21:20 -0500 > To: "HWG Basics" <[EMAIL PROTECTED]> > Cc: "PHP

[PHP]

2003-03-04 Thread Beauford.2002
Not sure if this is a PHP or HTML problem, so I have posted it to both lists. I have a table with with 5 itmes in which I want to click on and go to a different part of the page. Click 1 Click 2 Click 3 Click 4 Click 5 Now this is where it gets interesting. I have a PHP script which loops 5 time

[PHP] Automatically Save Image?

2003-03-04 Thread Doug Coning
Hi, I'm developing a flash site that uses PHP and MySQL to pull in images. My client would like to have a button in flash underneath the images he has shown that would enable the viewer to download the images to their own harddrive. I know I could set it up to open the picture in a new window an

[PHP] xslt without sabletron

2003-03-04 Thread Gurvinder Singh
hi my hosting service doesnt provide xslt module for php. but i need to use xslt in php. what can i do ? thnx Gurvinder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] crontab

2003-03-04 Thread Liam Gibbs
> Can I run a php script in crontab? > Do I echo or print? > Anyone doing it? Well, why don't I just completely misunderstand the question. Sorry, everyone. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] crontab

2003-03-04 Thread Cal Evans
I've not seen anything to indicate to me that running php scripts in a cron job (via php compiled as a CLI) is any less secure than running cron jobs written in any other language. All of mine are 700 root, the cron process runs as root and I understand that. Since I'm the root on the box, it's ok

[PHP] Re: and

2003-03-04 Thread Sunfire
ok put an example in - Original Message - From: "Boaz Yahav" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 2:09 PM Subject: and This looks like a great example to add to weberdev. would you care to spend 3 minutes and let other PHP developers enj

[PHP] form POST file upload mystery

2003-03-04 Thread Mike D
Hello, I have the weirdest thing going on...I have an image upload field that has been working fine for months and months, and as of yesterday now every file that is uploaded has a size of 0! After testing, I noticed only 1 mime type that didn't have a size of 0 and it was 'application/x-macbin

Re: [PHP] crontab

2003-03-04 Thread Jimmy Brake
i think one of us misunderstood your posting ... my suggestion was simply to put a php script in your crontab to be run whenever you set it to go .. if you are writing a php script to update crontab for you as Liam understood your message it is not a good idea ( actually it's a really bad idea :)

Re: [PHP] crontab

2003-03-04 Thread Joseph Szobody
> I want to run /var/www/backup_mysql.php Are you just trying to backup your MySQL database? If so, check this out: http://members.lycos.co.uk/wipe_out/automysqlbackup Edit a view configuration variables (db to be backed up, path, etc), throw it in /etc/cron.daily, and forget about it. I does

[PHP] Re: PHP & NNTP w/o IMAP?

2003-03-04 Thread Philip Hallstrom
http://php.resourceindex.com/ search for NNTP. On Tue, 4 Mar 2003, Mike Walsh wrote: > I am looking for some PHP code that implements an NNTP interface that > doesn't require IMAP. > > I do not need a full featured NNTP implementation and it only needs to > support read access. If anyone knows

Re: [PHP] crontab

2003-03-04 Thread John Taylor-Johnston
Cal, Liam, Jimmy, Thanks. If this is a serious security hazard, could you show me some code that is more secure? I am the "root". Mind you I've never worked with crontab before. I want to run /var/www/backup_mysql.php I suppose I should start by putting it somewhere not publicly accessible? Tha

RE: [PHP] crontab

2003-03-04 Thread Cal Evans
1: yes you can. 2: You can use either print or echo. I use echo when I actually want something output, most of my scripts don't output anything. If there is some output of import, I use mail() to send it to myself. 3: Yes, I am. * Cal Evans * Stay Plugged Into Your Audience * http://www.christianp

Re: [PHP] crontab

2003-03-04 Thread Liam Gibbs
> Can I run a php script in crontab? > Do I echo or print? > Anyone doing it? This is a serious security hazard. However, what you could do is have a PHP page set cron settings (such as name of file, location, frequency, and importance), then have another cron job (running at a decent frequency) d

[PHP] crontab

2003-03-04 Thread John Taylor-Johnston
Can I run a php script in crontab? Do I echo or print? Anyone doing it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] bcmath problem

2003-03-04 Thread Adriaan Nel
Hi ppl, I am updating a database with the following: $lines = file ('../includes/new1.csv'); foreach ($lines as $line_num => $line) { list($npr_nr,$npr_exvat,$npr_desc) = explode(",",$line); $query = "SELECT product_id,product_nr, product_cost_exvat, product_description, product_price, updated

[PHP] Re: Remember scrolled position

2003-03-04 Thread k1llersusH1
Not sure If I understand what you mean. You load a file like yourdocument.php#4 it will automatically jump to anchor named "4" in that document. No further clicking involved. "Lars Espelid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've tried this and it works fine, but then th

Re: [PHP] inserting date() into MySQL

2003-03-04 Thread 1LT John W. Holmes
> If I am going to use date('U') to insert an epoch timestamp into a > mysql table, what is the appropriate field type to use? Integer. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP & NNTP w/o IMAP?

2003-03-04 Thread Mike Walsh
I am looking for some PHP code that implements an NNTP interface that doesn't require IMAP. I do not need a full featured NNTP implementation and it only needs to support read access. If anyone knows of such a thing I would greatly appreciate a pointer. My Google searches have not turned up anyt

[PHP] inserting date() into MySQL

2003-03-04 Thread Charles Kline
If I am going to use date('U') to insert an epoch timestamp into a mysql table, what is the appropriate field type to use? thanks charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] max_execution_time and set_time_limit() problem.

2003-03-04 Thread Daniel Silva
I have a similar problem. I made a multiple file upload script and when the size is too big, PHP seems to ignore it, even though the files are well inside the max_upload_size... Are you sure that you aren't actually entering an infinite-loop or something? It seems odd... I can't think of nothing

Re: [PHP] Number of rows

2003-03-04 Thread Liam Gibbs
> I am using the folling code to list all of my tables in a database: > however, i would like to show the user how many rows there are in each table > (where i have put numrows), how could i do this? This will be costly on process time, but you could just do a SELECT COUNT(*) on all the tables. If

[PHP] Number of rows

2003-03-04 Thread shaun
Hi, I am using the folling code to list all of my tables in a database: Table Action Records "; while ($row = mysql_fetch_row($result)) { print " $row[0] add data edit data

Re: [PHP] file uploads

2003-03-04 Thread Liam Gibbs
> 1) Do the temp files automatically delete, or do I > need to put something in the code to delete them? They do, and I believe it's until the end of the currently-running PHP script. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: PHP shopping carts

2003-03-04 Thread Dan Sabo
I will do that Henry, Dan -Original Message- From: Henry Grech-Cini [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:01 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP shopping carts Hi, Please let me know if you find one thats any good? Henry "Dan Sabo" <[EMAIL PROTECTED]> w

[PHP] Re: PHP reading wrong Linux folder

2003-03-04 Thread Matthew
Never mind, I solved it--behavior was caused by a script call to a UNIX function which didn't exist on the new server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] Re: Scroll through values sent from a form

2003-03-04 Thread Kevin Stone
Invalid syntax. Replace '->' with '=>'. Also building arrays and using implode() is an alternative method to building the string.. foreach($_POST as $key => $val) { $fields[] = $key; $values[] = $val; } $fields = implode(', ', $fields); // collapse to string $values = implode(', ', $val

Re: [PHP] file uploads

2003-03-04 Thread Chris Hewitt
Ernest E Vogelsinger wrote: At 19:55 04.03.2003, Joseph Bannon spoke out and said: [snip] Regarding file uploads... 1) Do the temp files automatically delete, or do I need to put something in the code to delete them? 2) If automatically, how long? Where can

[PHP] Re: Scroll through values sent from a form

2003-03-04 Thread st
thanks for your reply but it doesn't work, i get the following output: INSERT INTO Table (Object, Object, Object, Object, ) Values (, , , , ) any ideas? "Bobby Patel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $fields=''; > $values=''; > > foreach ($_POST as $field -> $value)

[PHP] Re: Scroll through values sent from a form

2003-03-04 Thread Bobby Patel
$fields=''; $values=''; foreach ($_POST as $field -> $value) { $fields .= $field.", "; $values .=$value.", "; } $fields = substr ($fields, -2); // strip off last comma and space $values = substr ($values , -2); // strip off last comma and space $query = "INSERT INTO $_GET[table_name] (".$

Re: [PHP] max_execution_time and set_time_limit() problem.

2003-03-04 Thread Eric Wood
Even set_time_limit(0) does extend the timeout. Always a 30 second timeout. Any other ideas? thanks, -eric wood > I'm uploading a large file through my web page and after 30 seconds, the > fails with an error. I bumbed the max_execution_time parameter in > /etc/php.ini to 600 seconds and resta

Re: [PHP] file uploads

2003-03-04 Thread Ernest E Vogelsinger
At 19:55 04.03.2003, Joseph Bannon spoke out and said: [snip] >Regarding file uploads... > >1) Do the temp files automatically delete, or do I >need to put something in the code to delete them? > >2) If automatically, how long? Where can I set the >length of

Re: [PHP] php forgetting variables very easily

2003-03-04 Thread Ernest E Vogelsinger
At 19:37 04.03.2003, Ian A. Gray spoke out and said: [snip] >Hi everyone.I am probably doing something obviously >wrong but I can't seem to sort it! It's regarding >variables.In one script, lets call it main.php I make >a variable- say $colour. It inludes a

[PHP] Scroll through values sent from a form

2003-03-04 Thread st
Hi, Is it possible to scroll through values posted from a form using PHP? Here is my problem: I have a form on a page which is created dynamically from the number of fields in a particular table, so when I POST the data how do I create the INSERT statement? I feel this will be awkward due to the c

[PHP] file uploads

2003-03-04 Thread Joseph Bannon
Regarding file uploads... 1) Do the temp files automatically delete, or do I need to put something in the code to delete them? 2) If automatically, how long? Where can I set the length of time until they are deleted? 3) If not, is there a place I can make it be automatic? Thanks Joseph __

RE: [PHP] MySQL

2003-03-04 Thread Don Read
On 03-Mar-2003 Dan Sabo wrote: > Thanks Larry, > > What are some of the more active MySQL lists? Do you have a URL or two? > > Thanks, > > Dan post to [EMAIL PROTECTED] or browse http://www.mysql.com/documentation/lists.html Regards, -- Don Read [EMAIL

[PHP] Debugging fsockopen errno 0?

2003-03-04 Thread Jeff Lewis
I've been trying to use fsockopen and it fails to get by if (!fp) and returns an errno of 0. In the documentation it says that indicates an error initializing the socket. Is there anyway I can debug this or find out what is going wrong? Jeff

Re: [PHP] php forgetting variables very easily

2003-03-04 Thread Rasmus Lerdorf
> Ok, this works fine for me. However it doesn't seem > to work when main.php and new.php have html in them. You are doing something wrong then. Show us a simple example that doesn't work. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] php forgetting variables very easily

2003-03-04 Thread Ian A. Gray
Hi everyone.I am probably doing something obviously wrong but I can't seem to sort it! It's regarding variables.In one script, lets call it main.php I make a variable- say $colour. It inludes a file which prints the variable: main.php new.php Ok, this works fine for me. However it doesn't s

Re: [PHP] deciperhing oop

2003-03-04 Thread Greg Beaver
PHP 5 will allow your assumption, i.e. $db will resolve to the $db in the class namespace. If you also have a global variable named $db, you can refer to it using main::$db, instead of using the global statement. Pretty slick, if you ask me. By the way, check out PEAR's DB and MDB classes, http:

[PHP] regex makes my head hurt

2003-03-04 Thread Kris Jones
I've been attempting to figure out regex, and I've realized I need to start over from scratch. And get lots of help! I'm inputting a text file containing html which will contain this: IBM 2:59pm 76.17 I need to be able to match this string via a variable. I would like to put everything from th

  1   2   >