Re: [PHP] Seemingly simple header problem, isn't!

2002-08-13 Thread Robert Orenstein
Hi, Edwin. Of course... thanks! Apache version 1.3.23. Definitely not IIS. Robert Orenstein Perforce Software >Try running and I'm sure you'll find out something >about the Apache version. (If, indeed, you're running Apache... Could it >be that you're running IIS and Apache is down? Of co

Re: [PHP] upgrading error

2002-08-13 Thread EdwardSPL
If you want to upgrade php by RPM packages, you may try this site : http://rpms.arvin.dk/php/source/ Alex Shi wrote: > I have PHP 4.0.4p11 on RH Linux 7.1. Today I downloaded PHP 4.1.2-7 > rpm packages (10 packages) from RH web site. These packages are > come with RH Linux 7.3. I don't want to

Re: [PHP] Seemingly simple header problem, isn't!

2002-08-13 Thread @ Edwin
Hi there, Try running and I'm sure you'll find out something about the Apache version. (If, indeed, you're running Apache... Could it be that you're running IIS and Apache is down? Of course, I could be wrong...) - E > >Hi, > >I'm running the simplest possible script to test headers: > > h

[PHP] Re: determining which link was clicked

2002-08-13 Thread Joni Järvinen
Hi. Try something like the link having an ID and the other page that generates the content pulls that ID from the uri and then generates the page according to the ID. Ie. Category: Cars and content.php pulls the id from the uri with $_GET["id"] IIRC. Consult the manual about this. -Joni- "Gui

[PHP] Seemingly simple header problem, isn't!

2002-08-13 Thread Robert Orenstein
Hi, I'm running the simplest possible script to test headers: http://www.yahoo.com/";); exit; ?> The redirect works fine when I run the script on my FreeBSD server, but when I run it on my Windows server, it fails. (The Windows Apache server is at least Apache 1.3, but I don't know t

Re: [PHP] wanto uninstall php manual

2002-08-13 Thread Alex Shi
Thanks! It works as I expected ;-) Alex -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 "@ Edwin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I haven't use up2date but perhaps this will work anyway. Open a te

Re: [PHP] wanto uninstall php manual

2002-08-13 Thread @ Edwin
I haven't use up2date but perhaps this will work anyway. Open a terminal and execute this: rpm -ql php-manual The 'l' will tell you where the package was installed. While, rpm -e php-manual will uninstall the package... HTH - E > >Hi, > >I upgraded php from 4.0.4p11 to 4.0.6 with up2da

[PHP] wanto uninstall php manual

2002-08-13 Thread Alex Shi
Hi, I upgraded php from 4.0.4p11 to 4.0.6 with up2date (a RedHat Update Agent). The new php includes a huge manual but I cannot find where is it after installed, and I don't know how can access it. And more, my free disk space is only 120M. So I am thinking to uninstall this manual. Any one know

Re: [PHP] newbie PHP/HTML pull down menu problem

2002-08-13 Thread @ Edwin
Something like this should work: after mysql_connect() and mysql_select_db() ... $sql = "SELECT color_id,color FROM mytable"; $result = mysql_query($sql); echo ''; echo ''; while ($row = mysql_fetch_array($result)){ printf("",$row["color_id"]); printf("%s",$row["color"]);

RE: [PHP] mysql error

2002-08-13 Thread victor
Yes, thank you very much, I shouldn$B!G(Bt code late at night without any caffeine in me. - Vic -Original Message- From: @ Edwin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 12:29 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] mysql error Looks like

RE: [PHP] Re: Trying to delete

2002-08-13 Thread Brad Bulger
On Wed, 14 Aug 2002, [iso-8859-1] César Aracena wrote: > Thanks. I must apology as I made a mistake when writing the incoming > variable's name. I had it wrong so it would pass the variable but the > incoming script was looking for a variable that wasn't passed. In the > meantime, and now that I

Re: [PHP] mysql error

2002-08-13 Thread Brad Bulger
it's the WHERE clause, it's illegal there. what are you trying to do? if you want to change the heading & paragraph columns of every row in malibu_data where the page_name & par_id match your values, this should be an UPDATE. if you want to create a new record in malibu_data for every record th

[PHP] newbie PHP/HTML pull down menu problem

2002-08-13 Thread Brian & Shannon Windsor
Hi, I want to pull information out of my mySQL database and use it as a pull down menu ona web page. There are two sets of information that I need, one is a color, and the other is the color_id, so I want to use it in the way below but without having to physically enter all the data. I'd like t

[PHP] abstract question

2002-08-13 Thread Brad Bulger
If you aren't supposed to be able to use func_get_args() as a function parameter, but you can get away with it if you make it the *first* param, is that a bug or a feature? works: funcy(func_get_args(), 'p1', 3); fatal error: funcy('p1', 3, func_get_args()); i assume this works

RE: [PHP] Re: Trying to delete

2002-08-13 Thread César Aracena
Thanks. I must apology as I made a mistake when writing the incoming variable's name. I had it wrong so it would pass the variable but the incoming script was looking for a variable that wasn't passed. In the meantime, and now that I correct that, I'm still comparing artid to '$artid' (with single

Re: [PHP] mysql error

2002-08-13 Thread @ Edwin
Looks like you're updating your table so instead of "INSERT INTO...", try: "UPDATE malibu_data SET ..." HTH, - E > >I get this error: > >Error submiting paragraph.You have an error in your SQL syntax near >'WHERE page_name='features' AND par_id='13' ' at line 1 > > >But my code, I think is fin

[PHP] mysql error

2002-08-13 Thread victor
I get this error: Error submiting paragraph.You have an error in your SQL syntax near 'WHERE page_name='features' AND par_id='13' ' at line 1 But my code, I think is fine: // Insert the form information into the database mysql_query("INSERT INTO malibu_data SET heading='$heading', para

Re: [PHP] location headers are crisco to cookie headers?

2002-08-13 Thread Michael Sims
On Tue, 13 Aug 2002 22:14:28 -0500, you wrote: >I had some headers that were working on one server (4.0.6), but isn't >working on my (nearly) fresh install of 4.2.2. Here's the conundrum: >header("Set-Cookie: mid=$mid"); >header("Location: $location"); >exit; >worked just fine. I mo

RE: [PHP] File Upload size limit

2002-08-13 Thread RPS Internet
You can also do this all in a php file without changing the directives in either .htaccess or the httpd.conf file. Here is a sample: Hope that helps, Josh Thomas RPS Internet Services -Original Message- From: Oliver Schonrock [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 1

[PHP] Re: Trying to delete

2002-08-13 Thread David Robley
In article <01c2433c$e2e3e4c0$e5c405c8@gateway>, [EMAIL PROTECTED] says... > Hi all. > > I have a small problem here. I have this full-PHP site working with a > MySQL db and came to a dead road when trying to delete a record from it > from the Administrator's page. I have PHP to make this de

Re: [PHP] upgrading error

2002-08-13 Thread @ Edwin
Just a thought... If you have downloaded 10 packages perhaps you need to upgrade ALL of them AT THE SAME TIME. So, instead of doing: rpm -Uvh php-4.1.2-7.i386.rpm. Try this: 1. Put all packages in the same folder 2. rpm -Fvh *.rpm The "F" (instead of "U") updates all INSTALLED packages o

Re: [PHP] URL path question

2002-08-13 Thread Jason Reid
Its an IIS problem. With apache there are several ways, www.phpbuilder.com/columns/tim2526.php3 is IMO the best way, i currently use it on several sites. i think this would be what you need if it was apache you were working on Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca

[PHP] location headers are crisco to cookie headers?

2002-08-13 Thread Scott A Connerly
I had some headers that were working on one server (4.0.6), but isn't working on my (nearly) fresh install of 4.2.2. Here's the conundrum: header("Set-Cookie: mid=$mid"); header("Location: $location"); exit; worked just fine. I moved it over, and now the cookie doesn't take effect.

[PHP] upgrading error

2002-08-13 Thread Alex Shi
I have PHP 4.0.4p11 on RH Linux 7.1. Today I downloaded PHP 4.1.2-7 rpm packages (10 packages) from RH web site. These packages are come with RH Linux 7.3. I don't want to upgrade Linux but just upgrade PHP so I tried rpm -Uvh php-4.1.2-7.i386.rpm. I got following error message: error: failed d

[PHP] Trying to delete

2002-08-13 Thread César Aracena
Hi all. I have a small problem here. I have this full-PHP site working with a MySQL db and came to a dead road when trying to delete a record from it from the Administrator's page. I have PHP to make this decision after the Administrator selected the record to delete and answered YES to the ¿Are

[PHP] URL path question

2002-08-13 Thread Seairth Jacobs
I would like to be able to do the following: www.sample.com/path/file.php/additional/path/ Unfortunately on IIS, this gives an error. Interestingly, the following does not: www.sample.com/path/file.php/ I need to have a single PHP script be responsible for a series of resources, but I do not

Re: [PHP] Re: howto disable cron output

2002-08-13 Thread Roger Thomas
yes, you are rite. and i know that. it could have *accidently happened* due my haste in between pulling my hair trying to figure out / solve my scripting. my apology to Jean-Christian and the list. rgds. roger --- Jean-Christian Imbeault <[EMAIL PROTECTED]> wrote: > Hey Roger, when you want to

[PHP] Re: howto disable cron output

2002-08-13 Thread Jean-Christian Imbeault
Hey Roger, when you want to write a new email to this list don't reply to an existing posting and just change the subject line. It ruins it for people who follow messages using threading. You did that with my message and now both of our "message threads" will appear mixed up together. Just a

Re: [PHP] howto disable cron output

2002-08-13 Thread Michael Sims
On Tue, 13 Aug 2002 18:42:17 -0700 (PDT), you wrote: >i wrote an ecard script and added 'send at a future date' feature. >this feature is implemented via cron that runs daily at 1200 hours > >$> crontab -l looks like: >00 00 * * * wget http://ecard.domain.com/futuresend.php 2&1> /dev/null > >it w

Re: [PHP] Comparing Data

2002-08-13 Thread Michael Sims
On Tue, 13 Aug 2002 21:31:22 -0400, you wrote: >Well, the only problem is, the data will be outputted into a dropdown box, so a loop >would cause duplicates of the ID. > >Guess I should have mentioned that there are approx 50 ID's and they are not unique. >The only way I can think of doing it

[PHP] howto disable cron output

2002-08-13 Thread Roger Thomas
i wrote an ecard script and added 'send at a future date' feature. this feature is implemented via cron that runs daily at 1200 hours $> crontab -l looks like: 00 00 * * * wget http://ecard.domain.com/futuresend.php 2&1> /dev/null it works great but everyday there will be a file being written to

[PHP] Session, error occurs

2002-08-13 Thread Daniel Canil
I have jsut recently installed a php development kit on my windows platform. Im interested in using the session functions but I am recieving this error when I use session_start(): Warning: open(/tmp\sess_540ded508edf231c47fe85bd970f936a, O_RDWR) failed: m (2) in d:\phpdev\www\phpdev4\samples\samp

[PHP] client-side form validation

2002-08-13 Thread Jean-Christian Imbeault
When a user hits the submit button I'd like to do some client-side validation before sending the form data to the server. What is the proper way to do this in Javascript? I.e. should I use the form's Sumbit button's "onClick()" event to trigger the client-side Javascript validation function an

RE: [PHP] Comparing Data

2002-08-13 Thread Justin
Well, the only problem is, the data will be outputted into a dropdown box, so a loop would cause duplicates of the ID. Guess I should have mentioned that there are approx 50 ID's and they are not unique. The only way I can think of doing it is something like: $foo = mysql_query($whatever) wh

Re: [PHP] Re: mailing list managers

2002-08-13 Thread Manuel Lemos
Hello, On 08/13/2002 10:00 PM, Justin French wrote: >>Of course not. Bcc headers are virtual. They do not get sent with >>messages that are delivered to any of the recipients. Do you seen any >>Bcc headers in this message that you got from this mailing list? > > No, good point. Maybe i'm confus

RE: [PHP] Comparing Data

2002-08-13 Thread Peter Houchin
> -Original Message- > From: Justin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 14 August 2002 10:52 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Comparing Data > > > Hello all, > > I've run into a problem and there has got to be a way to do this. > > I'm searching a mysql table an

Re: [PHP] mailing list managers

2002-08-13 Thread Michael Sims
On Wed, 14 Aug 2002 01:09:32 +1000, you wrote: >I was hoping that maybe there's an opensource or commercial product out >there that I can install in my doc root (ie, PHP + MySQL support) which will >handle this in a more effective manner (ie, space the mailout across an hour >or so, etc etc). Ta

Re: [PHP] Need a Web Host for php/mySQl

2002-08-13 Thread The Doctor
On Tue, Aug 13, 2002 at 06:20:08PM -0400, David T-G wrote: > Thomas -- > > ...and then Thomas Edison Jr. said... > % > % Glory, > % > % I'm looking for a new Web Hosting company, to host my > > I'm not as cheap as Aletia apparently is, but I don't have the technical > problems that it seems th

Re: [PHP] Web host withdraws support for PHP extensions - supposed secuity risks

2002-08-13 Thread The Doctor
On Tue, Aug 13, 2002 at 10:10:45PM +0100, Alan Hale wrote: > My Web hosting company has just withdrawn (with no notice) support for PHP > extensions on the grounds they represent security risks and they don't wish > to spend time and effort in evaluating and compensating for those risks. > > I'd

Re: [PHP] Re: mailing list managers

2002-08-13 Thread Justin French
Hi, on 14/08/02 10:25 AM, Manuel Lemos ([EMAIL PROTECTED]) wrote: > Of course not. Bcc headers are virtual. They do not get sent with > messages that are delivered to any of the recipients. Do you seen any > Bcc headers in this message that you got from this mailing list? No, good point. Maybe

[PHP] Comparing Data

2002-08-13 Thread Justin
Hello all, I've run into a problem and there has got to be a way to do this. I'm searching a mysql table and finding all rows that have the same ID. I need to output that ID, but I only want it to print once. Any help would be greatly appreciated! Justin

[PHP] determining which link was clicked

2002-08-13 Thread Gui Guy
if I have a page full of links and I want to generate another page. The contents of the new page will depend on the link I click. How can I determine which link was clicked? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no HTML in a form textarea field

2002-08-13 Thread Bas Jobsen
http://www.php.net/manual/en/function.strip-tags.php Op woensdag 14 augustus 2002 02:24, schreef Roger Thomas: > i presented my visitor to fill up some description about themselves via > HTML's textarea FORM element. > > how do i block them from entering unwanted HTML tags into the textarea > fiel

Re: [PHP] Re: mailing list managers

2002-08-13 Thread Manuel Lemos
Hello, On 08/13/2002 08:22 PM, Justin French wrote: >>>Just a quick note to see if anyone has any experience with mailing list >>>managers. >>> >>>I've currently got a DB of subscribers, and basic PHP scripts are not going >>>to be a good long-term solution. >>> >>>I was hoping that maybe there's

[PHP] no HTML in a form textarea field

2002-08-13 Thread Roger Thomas
i presented my visitor to fill up some description about themselves via HTML's textarea FORM element. how do i block them from entering unwanted HTML tags into the textarea field? -- roger __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs

[PHP] Re: Web host withdraws support for PHP extensions - supposed secuityrisks

2002-08-13 Thread Manuel Lemos
Hello, On 08/13/2002 06:10 PM, Alan Hale wrote: > My Web hosting company has just withdrawn (with no notice) support for PHP > extensions on the grounds they represent security risks and they don't wish > to spend time and effort in evaluating and compensating for those risks. > > I'd welcome vi

Re: [PHP] Re: mailing list managers

2002-08-13 Thread Justin French
on 14/08/02 4:00 AM, Manuel Lemos ([EMAIL PROTECTED]) wrote: > Hello, > > On 08/13/2002 12:09 PM, Justin French wrote: >> Just a quick note to see if anyone has any experience with mailing list >> managers. >> >> I've currently got a DB of subscribers, and basic PHP scripts are not going >> to

Re: [PHP] Read file dates for most recent

2002-08-13 Thread Bas Jobsen
Op dinsdag 13 augustus 2002 23:25, schreef Mike Davis: > I need to read a directory full of PDF files, and get the file date of the > most recent. > Can someone get me started? $latime) { $lasttime=filemtime($file); $lastfile=$file; } } } echo $lastfile.'

Re: [PHP] Web host withdraws support for PHP extensions - supposed secuity risks

2002-08-13 Thread David T-G
Alan -- ...and then Alan Hale said... % % My Web hosting company has just withdrawn (with no notice) support for PHP % extensions on the grounds they represent security risks and they don't wish % to spend time and effort in evaluating and compensating for those risks. That, and particularly th

Re: [PHP] Need a Web Host for php/mySQl

2002-08-13 Thread David T-G
Thomas -- ...and then Thomas Edison Jr. said... % % Glory, % % I'm looking for a new Web Hosting company, to host my I'm not as cheap as Aletia apparently is, but I don't have the technical problems that it seems that they do, either :-) I host through datapipe and we are very stable. I'm a

[PHP] Read file dates for most recent

2002-08-13 Thread Mike Davis
I need to read a directory full of PDF files, and get the file date of the most recent. Can someone get me started? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload size limit

2002-08-13 Thread Oliver Schönrock
> No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only. > None of the changes for the past couple of months, including this one, is > in it. OK, but you said originally > post_max_size and upload_max_filesize could not be set in your .htaccess > file until recently. It was chang

RE: [PHP] Need a Web Host for php/mySQl

2002-08-13 Thread vic
Look into http://linuxwebhost.com The price is higher, features lower, but it works, and that is more important isn't it? The only reason I am endorsing them is because I use them and they are very good. Just don't pay for them with anything besides a credit card ;) (Like 10 years LATER) hehe. -

Re: [PHP] File Upload size limit

2002-08-13 Thread Rasmus Lerdorf
> Thanks for quick response. Just a couple of silly questions: > > - changed where? in php or apache? My host is running the "three week old" > v 4.2.2 of php so I guess you mean apache? No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only. None of the changes for the past couple

Re: [PHP] File Upload size limit

2002-08-13 Thread Oliver Schönrock
Thanks for quick response. Just a couple of silly questions: - changed where? in php or apache? My host is running the "three week old" v 4.2.2 of php so I guess you mean apache? - If I can in fact get them to change it in http.conf for my virtual host block then I will have these huge (!) set

Re: [PHP] Storing objects in a session

2002-08-13 Thread Rasmus Lerdorf
You have to load the class definition for your Auth class before calling session_start() -Rasmus On Tue, 13 Aug 2002, Ron Dyck wrote: > Having trouble storing objects in a session. When I do this: > > if (!isset($_SESSION['auth'])) { > $auth = new Auth(); > $_SESSION['auth'] =& $auth; >

[PHP] Storing objects in a session

2002-08-13 Thread Ron Dyck
Having trouble storing objects in a session. When I do this: if (!isset($_SESSION['auth'])) { $auth = new Auth(); $_SESSION['auth'] =& $auth; } else { $auth =& $_SESSION['auth']; } I end up getting the following errors when I refresh the page. __PHP_Incomplete_Class Object ( [__

Re: [PHP] File Upload size limit

2002-08-13 Thread Rasmus Lerdorf
post_max_size and upload_max_filesize could not be set in your .htaccess file until recently. It was changed about 3 weeks ago, so unless your provider is running a recent snapshot, you won't be able to get this to work. Ask your provider to add those lines to your virtualhost block in the httpd

[PHP] Troubles with Classes

2002-08-13 Thread Jadiel Flores
Hey guys, I have a little problem here, I have one class to create queries to a mysql database, this class works fine, but, now I want to create an instance of this class inside another class but I'm receiving the error: Parse error: parse error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION

Re: [PHP] Web host withdraws support for PHP extensions - supposedsecuity risks

2002-08-13 Thread Rasmus Lerdorf
It's not, your provider is simply lazy. -Rasmus On Tue, 13 Aug 2002, Alan Hale wrote: > My Web hosting company has just withdrawn (with no notice) support for PHP > extensions on the grounds they represent security risks and they don't wish > to spend time and effort in evaluating and compensat

[PHP] Web host withdraws support for PHP extensions - supposed secuity risks

2002-08-13 Thread Alan Hale
My Web hosting company has just withdrawn (with no notice) support for PHP extensions on the grounds they represent security risks and they don't wish to spend time and effort in evaluating and compensating for those risks. I'd welcome views on how reasonable this is. The extension I'm mainly co

[PHP] File Upload size limit

2002-08-13 Thread Oliver Schönrock
Sorry for bringing up an old problem, (there seem to be many articles in the archives already) but I couldn't find the solution there so here is my version of the problem ;-) I am running php 4.2.2 on a virtual host, so I have no access to php.ini. But I can use the apache directives in .htac

RE: [PHP] count link clicks

2002-08-13 Thread victor
THANK YOU! THANK YOU! This does exactly what I need it to! I wish they thought me how to count at PHP kindergarten. - Vic -Original Message- From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:20 PM To: [EMAIL PROTECTED]; 'Rasmus Lerdorf'; 'vic' Cc:

Re: [PHP] SQL datetime ERROR !

2002-08-13 Thread DL Neil
Hi Djurovski, > I use this query to input data into MySQL DB. > EXPIRE is Expire Date! > My script allways inputs "1.1.0001" into database (as value of expire). > what is wrong? > > My table: > > CREATE TABLE korpa ( >idnarudzbeukorpi int(255) DEFAULT '0' NOT NULL auto_increment, >merna

RE: [PHP] count link clicks

2002-08-13 Thread vic
Can someone tell me how I can make an array increase its index? (ie a script that pushes values into an array) I figured if in the link: instead of $value (or if value was an array) I could do something like: for ($i=0; $imailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:23 PM To: '

RE: [PHP] count link clicks

2002-08-13 Thread Dave at Sinewaves.net
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 12:23 PM To: 'Rasmus Lerdorf'; 'vic' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] count link clicks I think I'm on the right track with: New paragraph ';

[PHP] Mysql connect through proxy

2002-08-13 Thread Daniel Masson
Hello everyone id like to know if theres a way to connect to mysql via proxy ... I really need to !! Any tip or help would be very useful !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie array question

2002-08-13 Thread Bas Jobsen
Op dinsdag 13 augustus 2002 20:50, schreef Alexander Ross: > If I have a string variable that is already of the form > ('item','item2','item3') [including the parens and quotes in the string], > is there an easy way to change that variable into an array?? > Array($var) doesn't work. Thanks --

Re: [PHP] Need a Web Host for php/mySQl

2002-08-13 Thread Kevin Stone
I've been mostly satisfied with HostRocket.com $15/mo 350Megs, 20Gigs/mo. They have a great control panel.. better than others I've used. The servers are fast and service has been adequate. On the downside they charge $2 extra/mo to host an additional domain on the same account which is.. needle

[PHP] SQL datetime ERROR !

2002-08-13 Thread Djurovski Dejan
Hi, I use this query to input data into MySQL DB. EXPIRE is Expire Date! My script allways inputs "1.1.0001" into database (as value of expire). what is wrong? My table: CREATE TABLE korpa ( idnarudzbeukorpi int(255) DEFAULT '0' NOT NULL auto_increment, mernaj varchar(255) NOT NULL, naz

[PHP] SQL datetime ERROR !

2002-08-13 Thread Djurovski Dejan
Hi, I use this query to input data into MySQL DB. EXPIRE is Expire Date! My script allways inputs "1.1.0001" into database (as value of expire). what is wrong? My table: CREATE TABLE korpa ( idnarudzbeukorpi int(255) DEFAULT '0' NOT NULL auto_increment, mernaj varchar(255) NOT NULL, naz

Re: [PHP] Need a Web Host for php/mySQl

2002-08-13 Thread Alex Shi
"Thomas Edison Jr." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Glory, > > I'm looking for a new Web Hosting company, to host my > sites. I had been with Aletia, but i'm experiencing > some technical flaws with them, so i need a new one. > Aletia is very eco

Re: [PHP] Need a Web Host for php/mySQl

2002-08-13 Thread Jim Jagielski
Thomas Edison Jr. wrote: > > Glory, > > I'm looking for a new Web Hosting company, to host my > sites. I had been with Aletia, but i'm experiencing > some technical flaws with them, so i need a new one. > Aletia is very economical, with $7.95 a month for 200 > MB, 10 GB Bandwidth, sub-domains,

[PHP] Need a Web Host for php/mySQl

2002-08-13 Thread Thomas Edison Jr.
Glory, I'm looking for a new Web Hosting company, to host my sites. I had been with Aletia, but i'm experiencing some technical flaws with them, so i need a new one. Aletia is very economical, with $7.95 a month for 200 MB, 10 GB Bandwidth, sub-domains, dbs, and a hell a lot of goodies. so i wou

RE: [PHP] [Followup] Exploding Zip Codes! (Using PHP's explode function)

2002-08-13 Thread Michael Geier
are you trying to insert into MySQL DB? Or select out of the DB? insert: table structure: zip city etc... connect to db; loop through your array { //while ($array = array_shift($data)) create $sql from array parts ($sql = "insert i

Re: [PHP] Form Posting from script

2002-08-13 Thread Kevin Stone
It's pretty easy but can be confusing if you're looking at this stuff for the first time. Look into fsocketopen() and fputs(). You can use Rasmus's posttohost() function if you're not comfortable writing your own. Do a search on www.php.net. Hope this helps. -Kevin - Original Message

[PHP] Form Posting from script

2002-08-13 Thread GeneralX
How do you post a form without actually waiting for submit button to be pressed? Got a CGI expecting a form post, all the fields are already available as hidden type in a form, and just need to be send it. I know you can use Java as such: document.forms[0].submit();

RE: [PHP] count link clicks

2002-08-13 Thread Mike Dunlop
You need to use a javascript (client side language) if you want to accomplish this without reloading the page. Something like thike this but you would need to do some more R&D at a javascript form or something cuz I know PHP a lot better than javascript

RE: [PHP] count link clicks

2002-08-13 Thread victor
I think I'm on the right track with: New paragraph '; // Isert form html into $data_fields variable $data_fields = ' New paragraph '; while ($i = $value) { echo $data_fields; } ?> The only problem is that it ru

RE: [PHP] count link clicks

2002-08-13 Thread Rasmus Lerdorf
Then you are going to have to lock a text file, but chances are you will end up deadlocking things. I'd rethink the whole thing if I were you. -Rasmus On Tue, 13 Aug 2002, vic wrote: > I have no database, this has to be done in PHP > > - Vic > > > -Original Message- > From: Rasmus Lerd

[PHP] Re: newbie array question

2002-08-13 Thread S.P. Telgenhof Oude Koehorst
Ignore my first reply. I didn't read the question properly. Sorry. Greetz, Sacha Telgenhof "Alexander Ross" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If I have a string variable that is already of the form > ('item','item2','item3') [including the par

RE: [PHP] count link clicks

2002-08-13 Thread vic
I have no database, this has to be done in PHP - Vic -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:05 PM To: vic Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] count link clicks > Really? That sounds more complicated t

Re: AW: [PHP] image function

2002-08-13 Thread Nicholas Mercier
At 04:52 PM 8/13/2002 +0200, Sascha Braun wrote: Okay... I've looked at that library and felt as if I was looking into the ark of the Covenant. I'm really not that good at programing and looking at that script made my eyes bleed. This is a script I've used to save an image and then dynamically

[PHP] [Followup] Exploding Zip Codes! (Using PHP's explode function)

2002-08-13 Thread Keith Posehn
Final question on this (I hope). I have the code together now to put it all the zip codes into and array--but now I need to add those zip codes to a sql statement for the WHERE clause. Example: SELECT * FROM [table] WHERE zip="[all the darn zips listed here]" (or something like that) How would

RE: [PHP] count link clicks

2002-08-13 Thread Rasmus Lerdorf
> Really? That sounds more complicated than I think I need it to be, can't > I use something like: > > '' > > and somehow (this is what I need to know) get $value to increase in > value as the user clicks on the link again and again... Nope, you would be fighting race conditions forever with an a

Re: [PHP] Fixing timezone issues

2002-08-13 Thread Rasmus Lerdorf
Well, now you are getting into system configuration issues. You need to figure out why your TZ is getting ignored and where GMT is coming from in your environment. I don't think this has anything to do with PHP. -Rasmus On Tue, 13 Aug 2002, H. Wade Minter wrote: > On Tue, 13 Aug 2002, Rasmus

Re: AW: AW: [PHP] Performance of ZLib

2002-08-13 Thread David T-G
Sascha -- ...and then Sascha Braun said... % % Thanks for the quick answer, but is tar scriptable via PHP? You can drive tar, zip, gzip, lharc, arj, bzip2, or just about any other archive program from the command line, and that means you can do it from a php script with a system() call. Note t

Re: [PHP] newbie array question

2002-08-13 Thread Rasmus Lerdorf
Two ways I can think of off the top of my head: $s = "('item','item2','item3')"; preg_match_all("/'(.*?)'/",$s,$regs); $result = $regs[1]; or $s = "('item','item2','item3')"; eval('$result = array'.$s.';'); Neither is very efficient though. eval() is particularly ugly. -R

RE: [PHP] count link clicks

2002-08-13 Thread vic
Really? That sounds more complicated than I think I need it to be, can't I use something like: '' and somehow (this is what I need to know) get $value to increase in value as the user clicks on the link again and again... What I want to do in the final product is to display a text imput form on

[PHP] upgrading

2002-08-13 Thread Alex Shi
Hi, I am currently have PHP 4.0.4p11 and Apache 1.3.19 running on RH Linux 7.1. Now I am thinking of upgrade my PHP to 4.1.2-7 (the version come with RH 7.3). I have downloaded all 4.1.2-7 rpm packages altogether 10 files. I will stay with RH 7.1 but upgrade PHP to 4.1.2-7. I am going to do up

[PHP] Re: newbie array question

2002-08-13 Thread S.P. Telgenhof Oude Koehorst
Hi Alexander, Have a look at the 'explode'-function (http://www.php.net/manual/en/function.explode.php). That should do the trick. Success! Sacha Telgenhof "Alexander Ross" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If I have a string variable that is a

RE: [PHP] Fixing timezone issues

2002-08-13 Thread Brian V Bonini
You should really fix it at the core of the issue but... putenv("TZ=EST5EDT"); will work.. -Brian > -Original Message- > From: H. Wade Minter [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 2:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Fixing timezone issues > > > At som

[PHP] ini_set()

2002-08-13 Thread jacob
Hello, I was doing some fooling around with the ini_set() function and noticed that my scripts stopped functioning altogether (produced blank output). Furthermore, I checked to make sure we actually used a php.ini file and found that we do not. My question is: When using ini_set() without a ph

Re: [PHP] Fixing timezone issues

2002-08-13 Thread H. Wade Minter
On Tue, 13 Aug 2002, Rasmus Lerdorf wrote: > Fix your Apache startup environment so TZ is set correctly. I've got this in the apache startup script, but it's still on GMT: bash-2.05a# head /usr/local/etc/rc.d/apache.sh #!/bin/sh TZ="EST5EDT"; export TZ case "$1" in start) [ -x /usr/l

[PHP] newbie array question

2002-08-13 Thread Alexander Ross
If I have a string variable that is already of the form ('item','item2','item3') [including the parens and quotes in the string], is there an easy way to change that variable into an array?? Array($var) doesn't work. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] count link clicks

2002-08-13 Thread Rasmus Lerdorf
Write a link wrapper that you would use like this: Then in wrap.php: -Rasmus On Tue, 13 Aug 2002 [EMAIL PROTECTED] wrote: > How do I count how many times a user clicks on a certain link? (and put > it into and array or variable I guess). > > I want to be able to repeat a certain action

Fwd: [PHP] Writing to a file that's not PHP_SELF

2002-08-13 Thread Mike Dunlop
> $file = fopen("Counter.txt", "r+"); You need to open the file with write access and PHP must have write permission e.g. $file = fopen("Counter.txt", "w+"); Mike D... -- Mike Dunlop Webmaster Animation World Network [EMAIL PROTECTED] http://www.awn.com (323) 606-4238 office (323) 466

Re: [PHP] cutting up a string

2002-08-13 Thread Rasmus Lerdorf
php.net/substr On Tue, 13 Aug 2002, Hans wrote: > hello :-) > > I have a string of 50 characters in length, including numbers and letters. I > want to cut of the first 20 characters. Can anyone help me as to how I can > achieve this? > > Thank you, > regards Hans > > > > -- > PHP General Mailing

Re: [PHP] Fixing timezone issues

2002-08-13 Thread Rasmus Lerdorf
Fix your Apache startup environment so TZ is set correctly. On Tue, 13 Aug 2002, H. Wade Minter wrote: > At some point recently, PHP/Apache running on FreeBSD decided that i'm on > GMT, instead of EST5EDT. The system date is correct: > > bash-2.05a# date > Tue Aug 13 14:39:37 EDT 2002 > > But p

[PHP] count link clicks

2002-08-13 Thread victor
How do I count how many times a user clicks on a certain link? (and put it into and array or variable I guess). I want to be able to repeat a certain action on the same page as many times as the user clicks on the link($PHP_SELF). Thanks, - Vic ___

  1   2   3   >