[PHP] newbie question: how to recompile PHP?

2002-04-01 Thread Bogdan Popescu
Hello all, I hope my newbie question don't bother you too much. I've downloaded the latest PHP for windows but when I try to use it I get a message that I have to re-compile it. (You may disable this restriction by recompiling the PHP binary with the

Re: [PHP] Experiences with vPopmail functions?

2002-04-01 Thread Jason Wong
On Monday 01 April 2002 15:35, Johannes Tyra [BrainData] wrote: Hi, has anybody experiences with the vpopmail functions in php? If I use these functions (I´m sure there are compiled correctly into php) I get errors over errors. (Unable to change into /vpopmail/domains/domain dir etc) It's

[PHP] Re: Help with nested if statements, is this possible?

2002-04-01 Thread martinahingis
if ($payment_status = Completed) if you do this your if statement is invalid You should do if ($payment_status == Completed) I mean you should use double '=' inorder to say 'equals'. Jim Hankins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here is a portion

[PHP] Programming Methodology Question

2002-04-01 Thread jon
Hey -- I have a question for ya'll. I'm writing a fairly substantial program which allows listing of items like real estate, car ads, etc... on the web. Overall, it looks like it'll be around 5-7000 lines long. I was thinking about putting the main guts of it into one big include file to make

[PHP] Problems reading a URL

2002-04-01 Thread Stephen Phillips
Hi, I'm working on a script to read in the results from a search engine and find out a website's position in the results. I've run into some problems trying to read the results in from google, it seems no matter how I try to open the page in php it still won't read the results. I've

[PHP] Re: FREE HOSTING

2002-04-01 Thread martinahingis
try http://free-php.cjb.net there is a list of free php, mysql hosts and analysises of them Dani [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I'm just wondering if anybody know if there is a free web hosting with MYSQL and PHP. I don't need a hugh

[PHP] Forum with PHP, without using mySQL..

2002-04-01 Thread MiXmAsTeR
Hi, I run a Sports site. And need a forum, in php, that dosen't use mySQL. Anyone know any good, without any advertice, exept some from the one who made it ? From Kjetil Tveit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forum with PHP, without using mySQL..

2002-04-01 Thread James Arthur
On Monday 01 Apr 2002 12:44, MiXmAsTeR wrote: Hi, I run a Sports site. And need a forum, in php, that dosen't use mySQL. Anyone know any good, without any advertice, exept some from the one who made it ? PHPBB v2.x and OpenBB can run on top of PostgreSQL 7.x --jaa -- PHP General Mailing

Re: [PHP] Forum with PHP, without using mySQL..

2002-04-01 Thread eric.coleman
phpBB v2.x can run on alot of db's MS Access MS SQL Server... MySQL DB2 Postgre And a few others i think... - Original Message - From: James Arthur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 8:58 AM Subject: Re: [PHP] Forum with PHP, without using mySQL..

Re: [PHP] Problems reading a URL

2002-04-01 Thread Jason Wong
On Monday 01 April 2002 21:22, Stephen Phillips wrote: Hi, I'm working on a script to read in the results from a search engine and find out a website's position in the results. I've run into some problems trying to read the results in from google, it seems no matter how I try to open

RE: [PHP] Problems reading a URL

2002-04-01 Thread Rick Emery
You want Snoopy: http://snoopy.sourceforge.com -Original Message- From: Stephen Phillips [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 7:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Problems reading a URL Hi, I'm working on a script to read in the results from a search

RE: [PHP] Problems reading a URL

2002-04-01 Thread Rick Emery
It's been moved: http://sourceforge.net/projects/snoopy/ -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 8:08 AM To: 'Stephen Phillips'; [EMAIL PROTECTED] Subject: RE: [PHP] Problems reading a URL You want Snoopy:

RE: [PHP] Problems reading a URL

2002-04-01 Thread J. Scott Johnson
Just as an aside, sourceforge seems to have changed the url. Its now: http://sourceforge.net/projects/snoopy/ (I was interested too). Scott -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 9:12 AM To: 'Stephen Phillips'; [EMAIL PROTECTED]

Re: [PHP] Processing Code created on the fly

2002-04-01 Thread Erik Price
On Friday, March 29, 2002, at 11:39 PM, Jonathan Duncan wrote: I have read the page for eval on php.net several times as well as the very helpful examples, but whenever I use eval, it just prints out the same stuff. By same stuff I mean wether I use eval or just the variable by itself

Re: [PHP] Forum with PHP, without using mySQL..

2002-04-01 Thread Andrew Brampton
If you can use CGI there are 100s of perl ones, like UBB which don't use a database engine Andrew - Original Message - From: MiXmAsTeR [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 12:44 PM Subject: [PHP] Forum with PHP, without using mySQL.. Hi, I run a Sports

[PHP] Problem with CGI mode

2002-04-01 Thread James Arthur
Hi I need to run some pages on my site in CGI mode for security reasons. I've put #!/usr/local/bin/php at the top of the script in question, and given it the .cgi extension so that apache treats it as a CGI. The script works, but the first thing it does is print out #!/usr/local/bin/php,

[PHP] Using PHP to access an AS 400 database

2002-04-01 Thread Rance Hall
I'd like to find a way to get my PHP driven web site to connect to an AS 400 database The machine that is running php does have client access to the AS 400. I'm trying to port some old MS Excel spreadsheets over to our intranet.. any thoughts much appreciated. Rance Rance Hall 308.238.2455

[PHP] Has anyone looked at phpinfo today?

2002-04-01 Thread James Arthur
? phpinfo(); ? Notice anything different? --jaa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sql results

2002-04-01 Thread Erik Price
On Saturday, March 30, 2002, at 06:29 PM, Alberto Wagner wrote: $Sql_Query_Login = Mysql_Query(SELECT Nome FROM users WHERE User = 'Anyone') There isn't a user if name Anyone... Why If (!$Sql_Query_Login) { Echo Ninguem; } Is returning False? The query is succeeding, it's just

Re: [PHP] Has anyone looked at phpinfo today?

2002-04-01 Thread Tyler Longren
hm. I've seen that before by appending something to the end of the url (not sure what though). Tyler - Original Message - From: James Arthur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 8:46 AM Subject: [PHP] Has anyone looked at phpinfo today? ?

Re: [PHP] Using PHP to access an AS 400 database

2002-04-01 Thread Geoff Hankerson
Any way to use ODBC?? Just a thought - Original Message - From: Rance Hall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 8:37 AM Subject: [PHP] Using PHP to access an AS 400 database I'd like to find a way to get my PHP driven web site to connect to an AS 400

[PHP] Re: Help with nested if statements, is this possible?

2002-04-01 Thread Hugh Bothwell
... an old C trick: when comparing a variable to a constant, put the constant first, ie if (Completed == $payment_status) { } that way, if you accidentally use 'assignment-equals' instead of 'equivalence-equals', you get a syntax error. Martinahingis [EMAIL PROTECTED] wrote in message

Re: [PHP] register_globals

2002-04-01 Thread Erik Price
On Sunday, March 31, 2002, at 04:05 AM, Liam wrote: at the moment I have register_globals set to on Is there any reason I should turn it off? What are the security risks of having them on? I once asked this exact question, and here is the response I got -- I found it very helpful: Give

[PHP] Problems reading a URL

2002-04-01 Thread Stephen Phillips
Thanks everyone, Snoopy looks just like what I need to use, if only I'd known about this sooner, I could have saved myself alot of time :) Steve.

Re: [PHP] ask for suggestion about printing

2002-04-01 Thread Erik Price
On Sunday, March 31, 2002, at 02:02 PM, [EMAIL PROTECTED] wrote: We are choosing some tools for building applications. Php is a very good tools to build web applications, but we don't know if it can generate printable reports. Printable reports mean the report you can print what you see

Re: [PHP] register_globals

2002-04-01 Thread Rasmus Lerdorf
You would be better off reading the security chapter in the PHP documentation. It is much better informed than that study-in-scarlet thing. On Mon, 1 Apr 2002, Erik Price wrote: On Sunday, March 31, 2002, at 04:05 AM, Liam wrote: at the moment I have register_globals set to on Is there

Re: [PHP] ask for suggestion about printing

2002-04-01 Thread Michael Kimsal
Eric Coleman wrote: This can be done easily... And since when does PDFLIB cost money? I thought it was free... PDFLIB isn't free. A commercial PDFlib license is required for all uses of the software which are not explicitely covered by the Aladdin Free Public License (see bottom), for

Re: [PHP] Issues with long SQL inserts

2002-04-01 Thread Chris Snyder
Jason Wong wrote: On Monday 01 April 2002 07:22, Chris Snyder wrote: I altered the add.php script to print the query to screen instead of sending it to MySQL to try this. It still acted the same, regardless of whether it was sending it to the MySQL server or printing it. In fact, it even

Re: [PHP] IMPORTANT question for anyone using XSLT

2002-04-01 Thread Erik Price
On Friday, March 29, 2002, at 01:56 PM, Erik Price wrote: My, there have been a lot of questions about XSLT in the past 24 hrs... admittedly most of them coming from me. In addition to my first question (repeated below for clarity), I have a second one -- how do I perform an XSLT

[PHP] Recommendation for PHP Shopping Cart

2002-04-01 Thread jeremy spielmann
I'm looking for an off the shelf shopping cart that has been developed in PHP. Please send me the link and the cost of the software. I would develop my own, but time is an issue. Thanks! Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Please help with code

2002-04-01 Thread Denis L. Menezes
Hello friends, can someone tell me what is wrong with this code : form name=form1 method=post action= p input type=text name=newsid /p p input type=text name=title /p p input type=text name=author /p p input type=text name=body /p p input type=submit

Re: [PHP] Recommendation for PHP Shopping Cart

2002-04-01 Thread Jason Sheets
look at www.hotscripts.com they are a pretty good resource of scripts. Jason - Original Message - From: jeremy spielmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 9:13 AM Subject: [PHP] Recommendation for PHP Shopping Cart I'm looking for an off the shelf

Re: [PHP] Recommendation for PHP Shopping Cart

2002-04-01 Thread Dennis Moore
Take a look at OSCommerce at http://www.oscommerce.org. /dkm - Original Message - From: jeremy spielmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 11:13 AM Subject: [PHP] Recommendation for PHP Shopping Cart I'm looking for an off the shelf shopping cart

Re: [PHP] Please help with code

2002-04-01 Thread Andrew Brampton
You are not actually posting the form to a page with your PHP on... so its trying to insert that form into your DB before u actually fill it out. either check if the form has been posted before running your PHP, or split this into 2 pages Andrew - Original Message - From: Denis L.

Re: [PHP] Please help with code

2002-04-01 Thread Denis L. Menezes
Should I change the position of the php code? Thanks denis - Original Message - From: Andrew Brampton [EMAIL PROTECTED] To: Denis L. Menezes [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 12:31 AM Subject: Re: [PHP] Please help with code You are not actually

Re: [PHP] Please help with code

2002-04-01 Thread Erik Price
On Monday, April 1, 2002, at 11:08 AM, Denis L. Menezes wrote: $query=INSERT INTO news (newsid,title, author, body, posted) VALUES($newsid,$title, $author, $body, UNIX_TIMESTAMP()); IF (mysql_query($query)){ print Row added to table; } else { print error adding row; }

Re: [PHP] Issues with long SQL inserts

2002-04-01 Thread Chris Snyder
Jason Wong wrote: On Monday 01 April 2002 07:22, Chris Snyder wrote: I altered the add.php script to print the query to screen instead of sending it to MySQL to try this. It still acted the same, regardless of whether it was sending it to the MySQL server or printing it. In fact, it even

RE: [PHP] Please help with code

2002-04-01 Thread Rick Emery
You CANNOT execute the PHP script until the form is submitted. You are attempting to do both at the same time. Second, ALL your text fields muse be surrounded by quotes in your INSERT statement. Third, use NULL, not UNIX_TIMESTAMP() to insert a timestamp field. In the following, assume the name

[PHP] tired by linux - recompiling.._PHP SERVER

2002-04-01 Thread Septic Flesh
anyone found any webserver for linux to support HTML - PHP - SSL without much/any compiling . . just the binary to uncompress and run .??? I am really tired by linux.. -- Sapilas/dev/pinkeye -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] tired by linux - recompiling.._PHP SERVER

2002-04-01 Thread Demitrious S. Kelly
I don't know any offhand... but taking the easy road never produced anything more secure then a bad IIS server... Try my walkthrough... (ok... not walkthrough, but example) http://www.apokalyptik.com/lsftgu/Apache-Frontpage-Mod_ASP-Mod_SSL-Mod_P erl-Php/index.htm -Original Message-

[PHP] imap crashes

2002-04-01 Thread Duncan
Hi, i am running php with IMAP extension on my apache Red Hat 7.2 machine, but i always have trouble with it. After a while my script simply crashes: [Mon Apr 1 17:53:25 2002] [notice] child pid 15338 exit signal Segmentation fault (11) I thought it may be related to too many open

Re: [PHP] Please help with code

2002-04-01 Thread Harry Yu
You forgot to select the database that you want to insert. Ex: $db = mysql_select_db ( mydatabase ); Hope this helps, Harry --- Denis L. Menezes [EMAIL PROTECTED] wrote: Hello friends, can someone tell me what is wrong with this code : form name=form1 method=post action= p

[PHP] Parsing error

2002-04-01 Thread news.php.net
Hi, I'm real new in php and trying to read a txt file this is my code : ?php $row = 1; $fp = fopen (lecteurs.txt,r); while ($data = fgetcsv ($fp, 1000, ;)) { $num = count ($data); $row++; for ($c=0; $c$num; $c++) switch ($row) { case 1 : { $vignette

php-general Digest 1 Apr 2002 17:26:15 -0000 Issue 1261

2002-04-01 Thread php-general-digest-help
php-general Digest 1 Apr 2002 17:26:15 - Issue 1261 Topics (messages 90922 through 90978): Re: return 90922 by: eric.coleman.zaireweb.com 90923 by: Jordan 90924 by: Rasmus Lerdorf 90925 by: Miguel Cruz 90926 by: Miguel Cruz 90931 by:

RE: [PHP] Parsing error

2002-04-01 Thread Rick Emery
which line is 45 -Original Message- From: news.php.net [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 10:45 AM To: [EMAIL PROTECTED] Subject: [PHP] Parsing error Hi, I'm real new in php and trying to read a txt file this is my code : ?php $row = 1; $fp = fopen

[PHP] PhP Javascript Mixed Repost Fields

2002-04-01 Thread Simos Varelakis
Here is a problem :-) A php post form fooa.php Submit all form fields to a page foob.php Page foob.php do some mysql db check and in one condition I want to Return to fooa.php without losing any field value... I made this from foob.php with

RE: [PHP] Parsing error

2002-04-01 Thread Chris Kwasneski
Is it just me or is the for statement missing a begining curly bracket? -Chris At 11:29 AM 4/1/2002 -0600, you wrote: which line is 45 -Original Message- From: news.php.net [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 10:45 AM To: [EMAIL PROTECTED] Subject: [PHP] Parsing

Re: [PHP] PhP Javascript Mixed Repost Fields

2002-04-01 Thread Jackson Miller
That seems like over complicating the problem to me. Why not just include the original query string that was passed from fooa.php by: header(Location:foa.php?$QUERY_STRING) -Jackson On Mon, 2002-04-01 at 12:28, Simos Varelakis wrote: Here is a problem :-) A php post form fooa.php

[PHP] Re: PhP Javascript Mixed Repost Fields

2002-04-01 Thread George Nicolae
in fooa.php for each textfield ? if (!empty($field1)) $value=$value; else $value=; ? input type=text name=textfield value=?echo $value;? so, when you come back from foob.php if a $field !empty the respective textfiel will have a value in html form; -- Best regards, George Nicolae IT Manager

[PHP] Re: PhP Javascript Mixed Repost Fields

2002-04-01 Thread George Nicolae
sorry the correct code is: in fooa.php for each textfield ? if (!empty($field1)) $value=$field1; ^^^ else $value=; ? input type=text name=textfield value=?echo $value;? so, when you come back from foob.php if a $field !empty the respective textfiel will

[PHP] Can anyone help?

2002-04-01 Thread Denis L. Menezes
Hello friends. I have two files as follows : 1. The test.htm is as follows : html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 form name=form1 method=post action=testphp1.php p input

[PHP] header() question

2002-04-01 Thread Patrick Hartnett
Is it possible to user the target=_top reference when using a header(Location = ...)? If so, anyone have an example. Thanks -patrick _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP

[PHP] Delphi PHP Programming

2002-04-01 Thread Quique
I need someone who knows about Indy Components and PHP programming. I use a TidTCPServer which is active at port 4250 listening 4 connections. When i connect from another machine in my LAN, using PHP, the TCPServer tells me, that's right... The problem is when i want to read a text from the

Re: [PHP] header() question

2002-04-01 Thread George Nicolae
The _top option send you to the top of a page. When you open a new location you go on top by default.Maybe you ask about _blank? I don't have the answer for this last question. -- Best regards, George Nicolae IT Manager ___ PaginiWeb.com - Professional Web Design

Re: [PHP] Can anyone help?

2002-04-01 Thread Miguel Cruz
On Tue, 2 Apr 2002, Denis L. Menezes wrote: $query=INSERT INTO news (newsid,title, author, body, posted) //VALUES($newsid,'$title','$author', '$body', $posted);) Explanation : I run the test.htm and then the testphp1.php executes well. The databse is connected, but the error error

Re: [PHP] Parsing error

2002-04-01 Thread Miguel Cruz
On Mon, 1 Apr 2002, news.php.net wrote: while ($data = fgetcsv ($fp, 1000, ;)) { switch ($row) { } ? and when i run it i get : Parse error: parse error in essai.php on line 45 You never close the { you open for the while(). miguel -- PHP General Mailing List

Re: [PHP] Parsing error

2002-04-01 Thread Steve Cayford
It looks like you've got a closing curly bracket } for your switch statement, but not for your while statement. Also, have you read up on the switch statement? Keep in mind that if something matches your case 1, it will also fall through and execute case 2, case 3, etc... unless you include

[PHP] Connecting to multiple DB's

2002-04-01 Thread James Taylor
I host a few sites, and on usually each site will have it's own MySQL database in the background. I've decided that I want to link one site to another, and need to connect to more than one database at a time. I've found that when I try to connect to 2 or more, even if I assign the other

Re: [PHP] header() question

2002-04-01 Thread Patrick Hartnett
So any use of header(Location=...) automatically does what amounts to a target=_top? If so, then ignore this entire post, cuz that answers the question. If not, does anyone know how to force a target=_top when using header(Location=...)? From: George Nicolae [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Connecting to multiple DB's

2002-04-01 Thread Patrick Hartnett
Not sure about the multiple connections side, but to kill a connection: mysql_close($link); where $link is your connection variable/string hope this helps. -Patrick From: James Taylor [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Subject: [PHP] Connecting to

RE: [PHP] Connecting to multiple DB's

2002-04-01 Thread Rick Emery
Both connects are active. you specify which link when you select the database: mysql_select_db(database_name, $db1); mysql_select_db(database_name, $db2); -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 12:48 PM To: PHP List Subject: [PHP]

Re: [PHP] return

2002-04-01 Thread Jordan K. Martin
Rasmus, Makes sense. I didn't think much when writing that piece...but...what is the for? wouldn't it work the same without it? function test ($var) { $var = addslashes($var) } $foo = He's dreaming; test($foo); print($foo); Jordan K. Martin http://www.newimagedesign.com Rasmus

RE: [PHP] Can anyone help?

2002-04-01 Thread Rick Emery
$query=INSERT INTO news (newsid,title, author, body, posted) //VALUES($newsid,'$title','$author', '$body', $posted);) What's with the // in front of VALUES? Change to: $query=INSERT INTO news (newsid,title, author, body, posted) . VALUES($newsid,'$title','$author', '$body',

[PHP] Re: tired by linux - recompiling.._PHP SERVER

2002-04-01 Thread Michael Kimsal
Septic Flesh wrote: anyone found any webserver for linux to support HTML - PHP - SSL without much/any compiling . . just the binary to uncompress and run .??? I am really tired by linux.. Most Linux distributions come precompiled with PHP and SSL in Apache by default. RedHat and

Re: [PHP] return

2002-04-01 Thread Miguel Cruz
On Mon, 1 Apr 2002, Jordan K. Martin wrote: Makes sense. I didn't think much when writing that piece...but...what is the for? wouldn't it work the same without it? function test ($var) { $var = addslashes($var) } $foo = He's dreaming; test($foo); print($foo); If you don't

Re: [PHP] header() question

2002-04-01 Thread Erik Price
On Monday, April 1, 2002, at 01:49 PM, Patrick Hartnett wrote: So any use of header(Location=...) automatically does what amounts to a target=_top? If so, then ignore this entire post, cuz that answers the question. If not, does anyone know how to force a target=_top when using

Re: [PHP] return

2002-04-01 Thread Erik Price
On Monday, April 1, 2002, at 02:13 PM, Jordan K. Martin wrote: Makes sense. I didn't think much when writing that piece...but...what is the for? wouldn't it work the same without it? function test ($var) { $var = addslashes($var) } $foo = He's dreaming; test($foo);

[PHP] strange file handle problem

2002-04-01 Thread Ken Nagorski
Hi there, Ok - This is the error I get, Warning: 2 is not a valid File-Handle resource in /usr/local/apache/htdocs/mm_edit.php on line 359 But this is the code... I marked line 359 where it attempts to call fputs for the first time. I can't seem to understand how this is failing. I really

[PHP] exec/system on FreeBSD help?

2002-04-01 Thread Jeff D. Hamann
I've been trying to figure out why a command like exec()/system() works fine under windows and it doens't seem to run on FreeBSD. I've got a script that generates a latex file, runs pdflatex, and then moves the pdf file into a reports with a link on the generating page. Works fine on Win2k but

Re: [PHP] strange file handle problem

2002-04-01 Thread Miguel Cruz
On Mon, 1 Apr 2002, Ken Nagorski wrote: function write() { if(!$domainfile=fopen(/tmp/$domain, w)) { die(Failed to open domain file); } while(!$result-EOF) { if($remote_domain !($default)) {

Re: [PHP] exec/system on FreeBSD help?

2002-04-01 Thread Miguel Cruz
On Mon, 1 Apr 2002, Jeff D. Hamann wrote: I tried some small script like exec(ls -la) and that worked. I then tried system( /usr/local/bin/pdflatex temp/report_file ); to try and diagnose the problem, and got Fatal Error occured, I can't write on file 'report_file.log', suggesting that there

Re: [PHP] exec/system on FreeBSD help?

2002-04-01 Thread Jeff D. Hamann
so then I tried system( /usr/local/bin/pdflatex /usr/local/www/html/project_x/temp/report_file ); i think this is a write premission thing. yes, it's where I think it is Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 1 Apr 2002, Jeff D.

[PHP] parse error, mysql select

2002-04-01 Thread ROBERT MCPEAK
When I execute from browser I get a parse error, but when I enter the query directly into a MySQL command prompt I get a successful return. Can anybody see the problem with this code: $query = SELECT DATE_FORMAT( exp_date, %W, %M %d, %Y) AS thedate from tifrequest where

RE: [PHP] Has anyone looked at phpinfo today?

2002-04-01 Thread Matt Friedman
I think if you look at today's date, you'll realize why the silly picture on your phpinfo today. Good one guys! That's what I love about php - it's about enjoying programming and making it fun. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From:

RE: [PHP] parse error, mysql select

2002-04-01 Thread Rick Emery
$query = SELECT DATE_FORMAT( exp_date, \%W, %M %d, %Y\) AS thedate from tifrequest where user='$user' limit 1,1; Missing escape \ in front of quotes -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 1:55 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] parse error, mysql select

2002-04-01 Thread Matt Friedman
It doesn't like the ; at the end of the statement. I noticed this a while ago. I'd prefer if it didn't choke on the ; but it seems to. It's probably more correct to have the ; there - I don't know why it chokes when going through php. Matt Friedman Web Applications Developer

RE: [PHP] parse error, mysql select

2002-04-01 Thread Rick Emery
He's not including the ; in the SELECT statement. The ; you're seeing is at end of the PHP statement -Original Message- From: Matt Friedman [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 2:02 PM To: 'ROBERT MCPEAK'; [EMAIL PROTECTED] Subject: RE: [PHP] parse error, mysql select

RE: [PHP] parse error, mysql select

2002-04-01 Thread ROBERT MCPEAK
Ack! Thanks. Rick Emery [EMAIL PROTECTED] 04/01/02 02:59PM $query = SELECT DATE_FORMAT( exp_date, \%W, %M %d, %Y\) AS thedate from tifrequest where user='$user' limit 1,1; Missing escape \ in front of quotes -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] PHP/MySQL/XML

2002-04-01 Thread Erik Price
On Monday, April 1, 2002, at 02:33 PM, Jay Fitzgerald wrote: Can this be done and am I going about it the right way? First, it's a bad idea to cross-post between mailing lists, even if they seem like related topics. Second, what is it you're trying to do? Or what does your application

[PHP] Question on Using fgets for Network I/O while Limiting Amount of Data Retrieved

2002-04-01 Thread J. Scott Johnson
Hi, I'm trying to limit the amount of content retrieved with fgets when pulling data from a url. I'm generating page extracts and only need the first 2K to 4K. What I'm finding is that when I limit fgets, I get NOTHING but run within a while loop, I get the whole string. What works:

[PHP] date comparison expressions

2002-04-01 Thread ROBERT MCPEAK
I'd like to compare today's date against a stored date, and then fire some code based on the result. Like. if ($today's_date stored_date+5 days) then {blah} Can somebody clue this newbie in on how to do this? -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: parse error, mysql select

2002-04-01 Thread martinahingis
Error is absolute. Don't use (double quotation mark) in yur queries. Use ' (single quot.) instead $query = SELECT DATE_FORMAT( exp_date, '%W, %M %d, %Y') AS thedate from tifrequest where user='$user' limit 1,1; Because the preprocessor think that your string is finished when it sees a double

RE: [PHP] date comparison expressions

2002-04-01 Thread Rick Emery
Are you retrieving the stored date from a mySQL database? If so, you can let mysql SELECT only those records that fit the tardy date criteria. -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: [PHP] date

[PHP] Hi to you anti-spammers HAHA

2002-04-01 Thread vins
Happy Happy Easter. and to all you peeps out there who don't celebrate this day. Hope you enjoyed your day. And just too keep the cool How do i run that script that give all the information about php ? Someone told me the you type PHPINFO(); but it sometimes doesn't work Cheerz Spammer Vins

Re: [PHP] Hi to you anti-spammers HAHA

2002-04-01 Thread Scott St. John
? echo phpinfo(); ? On Mon, 1 Apr 2002, vins wrote: Happy Happy Easter. and to all you peeps out there who don't celebrate this day. Hope you enjoyed your day. And just too keep the cool How do i run that script that give all the information about php ? Someone told me the you type

Re: [PHP] header() question

2002-04-01 Thread martinahingis
I think the question is not the top of the page, the top frame of the window. Isn't it? If so you should use Javascript instead of PHP. script language=JavaScript1.2 top.window.location.href=http://yoursite.com/yourpage.php; /script --- martina. Erik Price [EMAIL PROTECTED] wrote in

RE: [PHP] Hi to you anti-spammers HAHA

2002-04-01 Thread Vlad Kulchitski
Phpinfo(); works all the time, unless you went ahead and reprogrammed php yourself :) Hello to AFRIKA from SOVIETS! CCCP rules! -Original Message- From: vins [mailto:[EMAIL PROTECTED]] Sent: 1 êâ³òíÿ 2002 ð. 15:43 To: [EMAIL PROTECTED] Subject: [PHP] Hi to you anti-spammers HAHA

[PHP] php - apache web based configurator

2002-04-01 Thread Rance Hall
Anybody have any recommendations on a good php based apache configurator, kinda like phpmyadmin for mysql databases? Rance Hall 308.238.2455 Internal Office Extensions: 2455 or 6655 PC Programmer, The Buckle, Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: tired by linux - recompiling.._PHP SERVER

2002-04-01 Thread Septic Flesh
I have slackware 8 . . . I can have php working . . .but the default ssl installation does not work -- Sapilas@/dev/pinkeye Septic Flesh [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... anyone found any webserver for linux to

Re: [PHP] Re: tired by linux - recompiling.._PHP SERVER

2002-04-01 Thread Miguel Cruz
On Mon, 1 Apr 2002, Septic Flesh wrote: I have slackware 8 . . . I can have php working . . .but the default ssl installation does not work Does not work is not a very helpful description. Maybe it does work, and it just isn't being used correctly. But nobody can help you find out if you

Re: [PHP] PHP/MySQL/XML

2002-04-01 Thread Thalis A. Kalfigopoulos
On Mon, 1 Apr 2002, Jay Fitzgerald wrote: I have created a database called friends with four columns: Name / Address / City / State I also made an XML file to coincide with those variables: test contacts friends nameFriend 1/name

Re: [PHP] header() question

2002-04-01 Thread Erik Price
On Monday, April 1, 2002, at 03:47 PM, martinahingis wrote: I think the question is not the top of the page, the top frame of the window. Isn't it? Oh yeah, you're right. I was thinking along the lines of what that other guy suggested -- that all pages revert to _top by default (which

Re: [PHP] PHP/MySQL/XML

2002-04-01 Thread Erik Price
On Monday, April 1, 2002, at 02:33 PM, Jay Fitzgerald wrote: Can this be done and am I going about it the right way? Are you familiar with something called partial decomposition? I'm not sure where it came from, but Google suggests that it may have been conceived by Daniel Appelquist, the

[PHP] Re: tired by linux - recompiling.._PHP SERVER

2002-04-01 Thread Septic Flesh
I install slack8 with apache + mod_ssl + mod_php from the CD. nothing is enabled at the begining. I enable php . .from uncommenting the appropriate httpd.con line nothing..works.. I download php 4-1-2 latest . . I compile and install ...PHP no works.. mod_ssl does not work... I uncomment the

Re: [PHP] exec/system on FreeBSD help?

2002-04-01 Thread Jeff D. Hamann
got it figured out. permissions. Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 1 Apr 2002, Jeff D. Hamann wrote: I tried some small script like exec(ls -la) and that worked. I then tried system( /usr/local/bin/pdflatex temp/report_file

Re: [PHP] PHP/MySQL/XML

2002-04-01 Thread Erik Price
Shoot, kind of an important error I made in the code I gave you earlier -- the closing quote for $xml_document should be a single-quote, not a double-quote as I wrote. Sorry, Erik On Monday, April 1, 2002, at 04:26 PM, Erik Price wrote: Still, you want some advice? First, your SQL code

[PHP] RE: PHP/MySQL/XML

2002-04-01 Thread Jay Fitzgerald
OkThanks to all those who are helping me (sorry for cross-posting)... My scripts are working great except for one thingwhen it queries the db there are some fields that have a NULL value, thus when it writes the XML file it does this: null_field/null_field What I would like to do is

[PHP] PEAR vs. ADODB

2002-04-01 Thread jon
Hey folks... Does anyone out there have a feel for how widely distributed the PEAR libraries are? I want to add DB abstraction to my project, but I don't want to use PEAR if it's going to horribly inconvenience all the people out there on managed servers. Has any played around with the ADODB

Re: [PHP] PEAR vs. ADODB

2002-04-01 Thread Jochen Kaechelin
Am Dienstag, 2. April 2002 00:35 schrieb jon: Hey folks... Does anyone out there have a feel for how widely distributed the PEAR libraries are? I want to add DB abstraction to my project, but I don't want to use PEAR if it's going to horribly inconvenience all the people out there on

RE: [PHP] New php functions?

2002-04-01 Thread Jason Murray
It begs the question, why don't you just download the manual? It's available in a myriad of different formats, one of which must suit you. It may not be bang up-to-date and it may not have the (sometimes) useful user comments but it sure saves you a lot of time and bandwidth. Heheh ...

  1   2   >