[PHP] File Upload stuck in the midst

2001-02-13 Thread Dhaval Desai
Hi! I am facing some problems while uploading files.. I just copied the code from php.net from the section "Handling File Uploads". My index.php pages has the following code: html head titleFile Uploads/title /head body FORM

php-general Digest 13 Feb 2001 08:38:31 -0000 Issue 509

2001-02-13 Thread php-general-digest-help
php-general Digest 13 Feb 2001 08:38:31 - Issue 509 Topics (messages 39255 through 39376): Apache not starting after adding php via mod_so. 39255 by: Sieger, Roland Re: Regex help needed... 39256 by: Jesse Swensen 39260 by: Jason Stechschulte 39270 by:

Re: [PHP] File Upload stuck in the midst

2001-02-13 Thread Ankur Verma
tuirn on the following setting in your php.ini file register_globals = On currently it seems to be off in your settings file hope that helps regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Dhaval Desai" [EMAIL PROTECTED] To: [EMAIL

[PHP] Fatal error loading extension

2001-02-13 Thread A. Giacomelli
Hi, I have managed (with some struggle) to compile an extension for PHP. I tried to open a test page, loading the extension wit the dl command, and this is what I get: Fatal error: Unable to load dynamic library '/opt/gislab/php/extensions/php_mapscript.so' - ld.so.1:

Re: [PHP] File Upload stuck in the midst

2001-02-13 Thread Ankur Verma
also take a good look at the following document http://www.php.net/manual/en/features.file-upload.php regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Dhaval Desai" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001

[PHP] Here you have, ;o)

2001-02-13 Thread James Moore
Hi: Check This! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Here you have, ;o)

2001-02-13 Thread Jonatan Bagge
You guys should really stop using outlook. ajay arora wrote: Hi: Check This! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] php socket function

2001-02-13 Thread Tissandié
Hi all, need some help about socket functions. I try tu use socket function.This is my script: if (($sock = socket(AF_INET, SOCK_STREAM, 0)) 0) {echo "socket() a echoué - raison : " . strerror($sock) . "\n";} And this is the error I always get :Fatal error: Call to undefined function:

Re: [PHP] php socket function

2001-02-13 Thread Ankur Verma
in php you need to use the function fsockopen() instead of the socket() check up the php manual for the scoket cunctions at http://www.php.net/manual/en/ref.sockets.php you can also download a good example of a class that uses the socket functions to send and recieve email from

[PHP] user rights for an upload

2001-02-13 Thread Bogdan Morar
Hi, On a linux system, I have an directory owned by the user X. How can I force an upload in that directory if my "apache user" is "nobody". I tried with PHP_AUTH_USER but doesn't work. I tried all the examples from php doc, all the "explorers" from zend.com, baut i don't find a good solution. I

Re: [PHP] user rights for an upload

2001-02-13 Thread Ankur Verma
Interesting Query! Please let me know of any solution that you might come up with. regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Bogdan Morar" [EMAIL PROTECTED] To: "Php general" [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 3:10 PM

[PHP] limitation of file upload??

2001-02-13 Thread John LYC
is there limitations on file upload.. such as file size when using input type=file??? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] limitation of file upload??

2001-02-13 Thread Ankur Verma
The maximum filesize for file uploads is either set in the php.ini file using the setting upload_max_filesize = 2M ; Maximum allowed size for uploaded files or you can also specify the maximum file upload size at runt time as follows FORM ENCTYPE="multipart/form-data" ACTION="_URL_"

Re: [PHP] problem with classes

2001-02-13 Thread Siim Einfeldt aka Itpunk
Thanks all for your help Siim Einfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] limitation of file upload??

2001-02-13 Thread John LYC
Hi.. can i upload a 50 Mb file thur this method?.. any complication? john Ankur Verma wrote: The maximum filesize for file uploads is either set in the php.ini file using the setting upload_max_filesize = 2M ; Maximum allowed size for uploaded files or you can also specify the

Re: [PHP] limitation of file upload??

2001-02-13 Thread Ankur Verma
well! Nice question. I haven't gone beyond 2.5 MB on any occassion. but I guess theoretically this should be possible by setting the maximum upload file size setting using the methods already discusssed. Another thing that you might want to look out for in this case would be the maximum

[PHP-CVS] Re: [PHP-DEV] FW: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry

2001-02-13 Thread Alexander Bokovoy
On Tue, Feb 13, 2001 at 12:29:02PM +0200, Stanislav Malyshev wrote: RL The idea here is that Midgard has a large installed base of RL users, all of whom have to run a modified version of PHP. The RL extension, albeit rather large at this point, is supposed to RL provide the basic

Re: [PHP] problems with writing picture to the database.

2001-02-13 Thread Siim Einfeldt aka Itpunk
Thanks, I will take a look at it once more, probably will come with some more questions as at first it didn`t 'look like working', but it really worked and then suddenly I get complains that it doesn`t anymore Siim read the manual on handling file uploads. It looks like you're using

[PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Matthias Krehl
Hi there! I'd really appreciate a clear statement whether to use better $foo = array('bar' = 'boing'); doWhatSoEver($foo[bar]); or $foo = array('bar' = 'boing'); doWhatSoEver($foo['bar']); Someone to know that? bye Matthias Matthias Krehl [EMAIL PROTECTED] -- PHP General

Re: [PHP] problems with writing picture to the database.

2001-02-13 Thread Siim Einfeldt aka Itpunk
O.K. I still got the problems. I`ll paste everything needed here and please, if anyone knows how to make it work, let me know. *First, the part of the form is the following: INPUT TYPE="file" NAME="file" the enctype in my form tag is ENCTYPE="multipart/form-data" and METHOD = POST *The

Re: [PHP] limitation of file upload??

2001-02-13 Thread John LYC
well. tried a 20++ mb file... it was just as good.. :) thanks for the help! john Ankur Verma wrote: The maximum filesize for file uploads is either set in the php.ini file using the setting upload_max_filesize = 2M ; Maximum allowed size for uploaded files or you can also

[PHP] What Does This Mean?

2001-02-13 Thread Ben Ocean
Hi; I'm getting this error: Unsatisfied dependencies for mod-php3-mysql-3.0.8-2: mod-php3 = 3.0.8 What does it mean and what should I do about it (if anything)? TIA, BenO -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] What Does This Mean?

2001-02-13 Thread Ankur Verma
I am not very sure of what exactly does this this mean but I guess that the particular module that you are installing requires a cversion of PHP that has to be greater than 3.0.8. This is just a guess. I aplogize if it's wrong. regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India

[PHP-CVS] cvs: php4 /ext/midgard config.m4

2001-02-13 Thread Sascha Schumann
sas Tue Feb 13 03:58:34 2001 EDT Modified files: /php4/ext/midgard config.m4 Log: Outcomment everything contained in here. This file must not perform any checks, unless the user has enabled Midgard. Index: php4/ext/midgard/config.m4 diff -u

[PHP] PHP and Java (CVS version)

2001-02-13 Thread Montgomery-Recht, Evan
I've noticed a problem with the config.m4 in the ext/java directory. Basic issue I'm running redhat 7.0 with the sun jdk installed in /usr/java/jdk1.3 I type in really simple after doing a buildconf I have my JAVA_HOME and PATH's setup to get all java exe's. configure --with-mysql=/usr

RE: [PHP] Any image drawing tutorials anywhere?

2001-02-13 Thread Alain \Cyb\
http://www.phpbuilder.com/columns/rasmus19990124.php3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] help with classes

2001-02-13 Thread Marcus Rasmussen
You can allso do this: //foo.class.php class Foo{ var $bar; function Foo($bar){ $this-bar = $bar; } } //foo.php include("foo.class.php"); $bar = "1234"; $foo = new Foo($bar); //Now: $foo-bar = "1234" Regards: Marcus Rasmussen *** REPLY

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Phil Driscoll
This is the correct format: doWhatSoEver($foo['bar']); If your error reporting level is set high enough, php will complain about $foo[bar] unless you have defined bar as a constant elsewhere. -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com

Re: [PHP] PHP/Oracle mod

2001-02-13 Thread Rouvas Stathis
From your mail, I understand that you cannot proceed past the compilation step. I've seen the same on previous versions of PHP for Linux, but now this is solved. Maybe the Solaris version didn't got the same fixes... Anyway, PHP will look at ORACLE_HOME for the required libraries which has now

Re: [PHP] Any image drawing tutorials anywhere?

2001-02-13 Thread Lucas Persona
Hello, I've seen this 'text images generators' but I would like to know where I can find some explanation about image manipulation like merging/mixing two or more images. Something like, I have a background image and some small image elements that will be somewher on that

[PHP] RE: Newbie: Images refs not loading (Broken Icons) How to?

2001-02-13 Thread Tim Ward
-Original Message- From: Malouin Design Graphique [mailto:[EMAIL PROTECTED]] Sent: 13 February 2001 03:26 To: [EMAIL PROTECTED] Subject: Newbie: Images refs not loading (Broken Icons) How to? Hi, Is there anything wrong with this code below? Any help or fix to this code

[PHP] Creating mail users with PHP

2001-02-13 Thread Ian LeBlanc
I am attempting to create mail users with PHP. I have seen it done with perl and I am wondering if any of you have had success with doing it with PHP. So far this is the info I have. to create a user on a linux server you call "adduser -p password username" the only problem is you can not

[PHP] GD library

2001-02-13 Thread Rahul Hari Bhide
Hi , I am configuring php with the --with-gd option . My libgd.a is sitting in /usr/local/lib and other header files in /usr/local/include . ./configure --with-gd=/usr/local/lib gives me the following error : checking whether to include GD support... configure: error: Unable to find

Re: [PHP] help with classes

2001-02-13 Thread Jesse Swensen
on 2/13/01 12:04 AM, Joe Conway at [EMAIL PROTECTED] wrote: ?PHP class Foo { var $bar; function mymethod(){ global $foo; $this-bar = $foo; } } $foo = "hello world"; echo "htmlbody"; $cls = new foo(); $cls-mymethod(); echo $cls-bar; echo "/body/html"; ? This

[PHP] (robert)HELLO...all doubts about XML/APACHE/PERL/PHP/MOD

2001-02-13 Thread Celestino Roberto Alejandro
Hello...'m new in this list,and for this...Hello Hello to all people. ...and begin, with my first doubt... ..We (I, a friend, for the our job, need make application with xml, = better say, migrate a current system of news, to the structured of XML, = and procceses it with XLS, for generate

Re: [PHP] Creating mail users with PHP

2001-02-13 Thread Rick Hodger
Ian LeBlanc [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am attempting to create mail users with PHP. I have seen it done with perl and I am wondering if any of you have had success with doing it with PHP. Simple. Add each username and password to a plain

RE: [PHP] Search replace text

2001-02-13 Thread PHPBeginner.com
ok, here's a scratch: $contents = file ($file); for($i=0; $isizeof($contents); $i++){ $staff .= eregi_replace("this", "with_this", $staff); } $fp = fopen ($file, "w"); $fputs ($staff); fclose ($fp); I think this should work ... Sincerely, Maxim Maletsky Founder, Chief Developer

RE: [PHP] Regex help needed...

2001-02-13 Thread PHPBeginner.com
try ereg_replace("^[ ]+(.)[ ]+$", '_\\1_', $here) I haven't tested it, but if it won't work, then do this: $here = ereg_replace("^[ ]+", '_', $here) $here = ereg_replace("[ ]$", '_', $here) this should work... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP

RE: [PHP] create filesystem folder?

2001-02-13 Thread PHPBeginner.com
mkdir() Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: andrew [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 11:56 AM To: PHP General Subject: [PHP] create

RE: [PHP] mktime + 4 days

2001-02-13 Thread PHPBeginner.com
$time = time(); $timePlus4Days = $time + 60*60*24*4; $tomorrow = date ("d", $timePlus4Days); Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Christopher Allen [mailto:[EMAIL

RE: [PHP] SELECT statement

2001-02-13 Thread PHPBeginner.com
Yeah, sure you can: $sql="SELECT id, email FROM table WHERE user='$user' and pass='$pass'"; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Peter Houchin [mailto:[EMAIL

RE: [PHP] How to check if vaiable is defined or not?

2001-02-13 Thread PHPBeginner.com
There's also possible to do a simple "try" if($variable) echo 'It contains something'; else echo 'Has nothing inside, unless it's a 0'; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com

RE: [PHP] problems with writing picture to the database.

2001-02-13 Thread PHPBeginner.com
I am not sure on how to help you with this out, this is because I've never done so before. Why would you put files inside a database. Just copy them in some folder and name within a logic, inserting only a small string in your DB or even without it. Then call the graphic. This is easier, faster,

RE: [PHP] Search replace text

2001-02-13 Thread PHPBeginner.com
Sorry, I made a small mistake in my code ... this is correct: $contents = file ($file); for($i=0; $isizeof($contents); $i++){ $staff .= eregi_replace("this", "with_this", $contents[$i]); } $fp = fopen ($file, "w"); $fputs ($staff); fclose ($fp); Sincerely, Maxim Maletsky Founder,

[PHP] Problems with date() - what have I missed?

2001-02-13 Thread Jon Haworth
Hi list. I have a strange problem with a PHP script (WinNT/Apache/PHP4/MySQL). The line of code $dayname = date("D", mktime(0,0,0,$cmonth,$eventdate,$cyear)); should, if I understand it correctly, fill the variable $dayname with the three-letter abbreviation of the day of the week for

[PHP] rename?

2001-02-13 Thread Miguel Loureiro
Hi , having a hierarchy of directories, like A\b\d, A\c, I would like to move directory A\b\d to A\c\d , to (try) to get it I test something like rename(d,".. / c/d"), but I get " Warning: Rename failed (No such file or directory) in ", it's necessary create the directory first, I mean ,

[PHP] hidden form field.

2001-02-13 Thread Angerer, Chad
Hello list, Can someone please explain to me in simple terms. What the exact reason is for putting hidden form fields into an html document that uses PHP to connect to a mySQL db .. or any db for that matter. I have looked around and have not gotten a good clear answer? Thanks. Chad Angerer

Re: [PHP] hidden form field.

2001-02-13 Thread Ifrim Sorin
Hello, The reason is that you might want to pass to PHP script that process the form information that is not found in any other shown field of the form , for example an id code. HTH Sorin Ifrim - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] Mystery quotes

2001-02-13 Thread John Hofstad-Parkhill
I'm encountering the following problem and now wonder if it's related to magic quotes. The code in the current, non-working form. Please note that for the input.. there are no quotes or apostropies around the word "text" the size of 9, the name of proj[].

Re: [PHP] Mystery quotes

2001-02-13 Thread John Vanderbeck
What about just forcing the use of escaped quotes? Have you tried that? instead of: echo "document.write(\"tdinput type=text size=9 value='\" +\n"; try: echo "document.write(\"tdinput type=\"text\" size=\"9\" value='\" +\n"; - John Vanderbeck - Admin, GameDesign - Original Message

Re: [PHP] hidden form field.

2001-02-13 Thread Kevin McCarthy
If you mean why would any script bother using a hidden form field to hold a value between html pages as opposed to holding it in a db field, I would answer there are reasons. One would be to use a hidden form field as a buffer so that you don't have to change a field's value until you are sure

[PHP] Any performance penalties for switch vs. if/else?

2001-02-13 Thread John Guynn
If I have a complex if else statement and I replace it with a switch case statement do I loose any performance? I would think I would gain performance and the code is definitely easier to maintain but I wanted some other opinions. John Guynn This email brought to you by RFCs 821 and 1225. --

Re: [PHP] Any performance penalties for switch vs. if/else?

2001-02-13 Thread John Vanderbeck
In most cases, using a switch is preferrable. The code is cleaner, and the performance increases. This is true accross languages. - John Vanderbeck - Admin, GameDesign - Original Message - From: "John Guynn" [EMAIL PROTECTED] To: "Php (E-mail)" [EMAIL PROTECTED] Sent: Tuesday, February

[PHP] Cookies

2001-02-13 Thread Gary
I am getting the following error message from the code below. Warning: Undefined index: getdwgnum in d:\apache\htdocs/getdwgnum.php on line 4 ?php $cook = mt_rand (5, 5) ; $cookieinfo = $HTTP_COOKIE_VARS["getdwgnum"]; if ($cookieinfo "") { $str = "where Cook = $cookieinfo";

[PHP] OOP in web development

2001-02-13 Thread Joe Sheble (Wizaerd)
I've been using PHP for over a year now and have been successfully running three different websites developed with PHP, but I've never done anything with classes or objects. Even when returning data from a mySQL database, I use mysql_fetch_array() instead of mysql_fetch_object(). What am I

Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.cevent.c eventmember.c file.c fudge genentry.pl group.c

2001-02-13 Thread Emiliano
Stanislav Malyshev wrote: E I'm not familiar with the problems you may have had with readline. E If there's a licencing issue I'd love to talk about it. Basically, PHP code is non-GPL, thus you cannot have any GPL code distributed with PHP (since it makes all PHP "derived work", by RMSs

[PHP] PHP vs JSP

2001-02-13 Thread Website4S
Hi, Just wondering if anyone knows of any links to information relating to PHP vs JSP where PHP is my language of choice and another developer is recommending JSP but I know nothing about JSP to help me convince the buyer that PHP is a better choice. A question that was raised is that PHP

[PHP-CVS] cvs: php4 /main internal_functions.c.in internal_functions_win32.c

2001-02-13 Thread Thies C. Arntzen
thies Tue Feb 13 07:58:58 2001 EDT Modified files: /php4/main internal_functions.c.in internal_functions_win32.c Log: remove unneded comments Index: php4/main/internal_functions.c.in diff -u php4/main/internal_functions.c.in:1.16

[PHP-CVS] cvs: php4 /ext/midgard config.m4

2001-02-13 Thread Emiliano Heyns
emile Tue Feb 13 08:13:34 2001 EDT Modified files: /php4/ext/midgard config.m4 Log: Misplaced if spotted by Sascha Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.2 php4/ext/midgard/config.m4:1.3 --- php4/ext/midgard/config.m4:1.2

[PHP] Include

2001-02-13 Thread Fabian Fabela
Hello, I have php 4.0.3pl1. I am trying to install phorum (phorum.org). In a php file (index.php in admin) there is the function include for a file (common.php), I get the following error. Warning: Failed opening 'common.php' for inclusion (include_path='/usr/share/php') in

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Derek Sivers
I'd really appreciate a clear statement whether to use better $foo = array('bar' = 'boing'); doWhatSoEver($foo[bar]); or $foo = array('bar' = 'boing'); doWhatSoEver($foo['bar']); I had heard someone on the list say that it's always best to use quotes, for the same reason as

[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-02-13 Thread Thies C. Arntzen
thies Tue Feb 13 08:54:48 2001 EDT Modified files: /php4/ext/pgsql pgsql.c Log: @- fixes PostgeSQL pg_connect() bug. We would sometimes close the default @ link by acciedent. (Patch by: [EMAIL PROTECTED]) Index: php4/ext/pgsql/pgsql.c diff -u

[PHP] Return ODBC Results to an array

2001-02-13 Thread Karl J. Stubsjoen
Is there a way to return the results of a query straight into an array? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Problems with date() - what have I missed?

2001-02-13 Thread Jon Haworth
Don't worry. False alarm. My bad. (etc) Hint for people experiencing a problem like this in the future: when passing variables to mktime(), ensure $cmonth=3 and not $cmonth="March", I find it helps a *lot* :-) Moral to the story: when having difficulties, echo your variables to the screen

Fw: [PHP] Include

2001-02-13 Thread Fabian Fabela
Well The file is not in the same dir, but the php file that is calling it is using the chdir function to go to that dir, even if I put the file in the same dir I can't include it. Thank you. Fabian Fabela [EMAIL PROTECTED] www.vacagorda.com - Original Message - From: "Fabian Fabela"

[PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread John Vanderbeck
I'm having a problemin Netscape, any of my echo statements that use $PHPSELF, netscape isn't resolving $PHPSELF, but properly resolving all the other vars. There are several different types of echo statements, but here is a sample: echo 'BRA HREF="', $PHPSELF, '?mode=sub_categorycategory=',

[PHP] help: Mysql locking tables and persistent connections..

2001-02-13 Thread Eduardo Dominguez
I am trying to avoid some concurrency problems by using locking tables in mysql. Problem is, I already locked the tables and still had a concurrency problem. Our first guess is that since we are accesing the table with the same user, then when it ignores the log since it is the same user. But

RE: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread Jon Haworth
Is the script in the root? I seem to remember reading about problems with this and Netscape (although that sounds so strange I'm doubting myself here :-) Try shoving it in a subdirectory and see what happens. It's got to be worth 30 seconds to find out - I'd do it right now only I don't have

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread Pavel Jartsev
John Vanderbeck wrote: I'm having a problemin Netscape, any of my echo statements that use $PHPSELF, netscape isn't resolving $PHPSELF, but properly resolving all the other vars. There are several different types of echo statements, but here is a sample: echo 'BRA HREF="', $PHPSELF,

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread John Vanderbeck
Well, yes the script was in the root (root of the URL not root of the server). I threw it into a subdirectory, but no go. Same problem. Very strange. - John Vanderbeck - Admin, GameDesign - Original Message - From: "Jon Haworth" [EMAIL PROTECTED] To: "'John Vanderbeck'" [EMAIL

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Phil Driscoll
Bad practice alert!!! Derek Sivers wrote: I had heard someone on the list say that it's always best to use quotes, for the same reason as XHTML, where every value MUST have quotes. But honestly I've been using only NO-quotes all year and find it much easier to read. And NEVER any problem!

Re: [PHP] PHP vs JSP

2001-02-13 Thread Pavel Jartsev
[EMAIL PROTECTED] wrote: Hi, Just wondering if anyone knows of any links to information relating to PHP vs JSP where PHP is my language of choice and another developer is recommending JSP but I know nothing about JSP to help me convince the buyer that PHP is a better choice. ... Here's

[PHP] PARANOID PERMISSIONS for apache?

2001-02-13 Thread Derek Sivers
Can anyone think of any downside to this idea? Set Apache to run as user/group "www:www" Set ownership of PHP files and folders to "www:www" And set permissions to 700 So that ONLY Apache can read them. Now - even if I give someone shell access to my box, or someone finds my personal login

Re: [PHP] PHP vs JSP

2001-02-13 Thread Philip Olson
The general php mailing list discusses this every so often, here are a few threads : http://marc.theaimsgroup.com/?l=php-generalm=97948720824237w=2 http://marc.theaimsgroup.com/?l=php-generalm=97621741324759w=2 http://marc.theaimsgroup.com/?l=php-generalm=97413389003820w=2 Can find

Re: [PHP] Return ODBC Results to an array

2001-02-13 Thread Ifrim Sorin
You can use mysql_fetch_array() for each row returned in the cursor. Sorin Ifrim - Original Message - From: Karl J. Stubsjoen [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 7:32 PM Subject: [PHP] Return ODBC Results to an array Is there a

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread John Vanderbeck
- Original Message - From: "Pavel Jartsev" [EMAIL PROTECTED] To: "John Vanderbeck" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 12:49 PM Subject: Re: [PHP] Netscape not resolving $PHPSELF ?? Try $PHP_SELF. -- Pavel a.k.a. Papi Thanks that fixed it. I

Re: [PHP] Return ODBC Results to an array

2001-02-13 Thread Ifrim Sorin
For ODBC, the function is odbc_fetch_into(). Sorin Ifrim - Original Message - From: Karl J. Stubsjoen [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 7:32 PM Subject: [PHP] Return ODBC Results to an array Is there a way to return the results

Re: [PHP] PARANOID PERMISSIONS for apache?

2001-02-13 Thread Steve Smith
On Tue, 13 Feb 2001, Derek Sivers wrote: Can anyone think of any downside to this idea? Set Apache to run as user/group "www:www" Set ownership of PHP files and folders to "www:www" And set permissions to 700 So that ONLY Apache can read them. Now - even if I give someone shell access

[PHP] Bad Practices

2001-02-13 Thread Jeff Oien
Would people like to list bad practices and also point us newbies to any articles online dealing with syntax, correct use of single and double quotes etc.? I would like to get a good handle on these issues right from the beginning. As a Web designer I like to use standard HTML and do

RE: [PHP] Bad Practices

2001-02-13 Thread Benjamin Munoz
Three good articles by the author of PHP Developer's Cookbook. Top 21 PHP progamming mistakes By Sterling Hughes http://zend.com/zend/art/mistake.php http://zend.com/zend/art/mistake1.php http://zend.com/zend/art/mistake2.php -Ben Munoz -Original Message- From: Jeff Oien

Re: [PHP] Bad Practices

2001-02-13 Thread Philip Olson
Be sure to check this out : Using Strings : --- http://www.zend.com/zend/tut/using-strings.php Don't put large blocks of HTML within echo or print, don't be afraid to escape out of PHP for that.

[PHP] locating the actual php executable

2001-02-13 Thread Brandon Orther
Hello, I am trying to locate the php executable on my server. Is there an easy way to do this? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

Re: [PHP] Pay for help

2001-02-13 Thread rbradley
Thankyou Boaz, I'm sorry, I just needed help. I didn't care if I had to pay or got free assistance. I also realize that paying for Open Source software help may not be etiquette either. Please forgive me I'll post this in the places Boaz Yahav wrote: Hi A good place to put this would be

Re: [PHP] locating the actual php executable

2001-02-13 Thread Brian Clark
Hi Brandon, @ 1:36:32 PM on 2/13/2001, [EMAIL PROTECTED] wrote: I am trying to locate the php executable on my server. Is there an easy way to do this? Linux, I assume? shell su shell updatedb shell locate php | grep bin May find it. -Brian -- PHP General Mailing List

RE: [PHP] Return ODBC Results to an array

2001-02-13 Thread Andrew Hill
Karl, http://www.php.net/manual/en/function.odbc-fetch-into.php Best regards, Andrew -- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com -Original Message- From: Karl J.

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread Jason Stechschulte
Thanks that fixed it. I didn't realize there were two version of this variable. Why? Hmm, strange that the other one worked fine with IE but not Netscape. I thought all thi was done server side, so what the heck does the browser have to do with it? As far as I know, $PHP_SELF is the

[PHP] Knowledgebase HelpDesk

2001-02-13 Thread Ashwin Kutty
Anyone know of any project in the works right now that is a HelpDesk and Knowledgebase combined? Thanks.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

Re: [PHP] Knowledgebase HelpDesk

2001-02-13 Thread Albrecht Guenther
Hello Ashwin, Anyone know of any project in the works right now that is a HelpDesk and Knowledgebase combined? The groupware PHProjekt ( www.PHProjekt.de/en ) has a request tracker (same as help desk) and the searchable knowledge base is basically the sum of all solved request with the status

Re: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread John Vanderbeck
Thanks that fixed it. I didn't realize there were two version of this variable. Why? Hmm, strange that the other one worked fine with IE but not Netscape. I thought all thi was done server side, so what the heck does the browser have to do with it? As far as I know, $PHP_SELF is the

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread php3
Addressed to: Derek Sivers [EMAIL PROTECTED] "Matthias Krehl" [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from Derek Sivers [EMAIL PROTECTED] Tue, 13 Feb 2001 09:31:29 -0800 I'd really appreciate a clear statement whether to use better $foo =

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Andi Gutmans
$foo[bar] only works for backwards compatibility. In fact writing bar without '' means that it's a constant and if that constant value is defined it will be substituted instead of the bar. If it's not defined it defaults to the string 'bar'. So if you want to do it right (and faster) do

FW: [PHP] Here you have, ;o)

2001-02-13 Thread Thor M. Steindorsson
or simpler yet, REMOVE WINDOWS SCRIPTING HOST! It does nothing useful (or at least the few useful things it does are things we can easily live without). All it does is open every possible door on a windows box to viruses and hackers. Without the WSH, none of these worms will work. cheers,

[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2001-02-13 Thread Thies C. Arntzen
thies Tue Feb 13 10:28:25 2001 EDT Modified files: /php4/ext/pgsql pgsql.c php_pgsql.h Log: @- PostgreSQL now does a rollback at the end of a request on every @ persistent connection. This is done by doing an "empty" transaction @ on the connection

[PHP] XML Parsing through Proxy

2001-02-13 Thread Steve Haemelinck
Hi Anybody got an idea? I am sitting behind a proxy and I want to able to parse an XML. So I have to use fsockopen() to get through my firewall and get the page. So far, everything goes wel, but I am not able to parse the file, because I think it is not in XML format if I use "GET http:// "

Re: [PHP] OOP in web development

2001-02-13 Thread Kath
I find the ability to write something once (say a mysql_connect(); statement) and be able to run it on any page just with $db-connect(); is pretty cool. While that may not seem cool, if you some day change a a PHP statement that exists on many pages, this lets you change it in one place, instead

[PHP] parse speed vs require speed

2001-02-13 Thread Soma Interesting
I'm wondering if I should organize the functions for my project into a single large file and have only one include/require, or break the code out into separate function library files and use a number of includes/requires. With a single large function library I'm guessing PHP would parse this

Re: [PHP] OOP in web development

2001-02-13 Thread Mark Maggelet
On Tue, 13 Feb 2001 15:11:46 -0500, Kath ([EMAIL PROTECTED]) wrote: I find the ability to write something once (say a mysql_connect(); statement) and be able to run it on any page just with $db- connect(); is pretty cool. While that may not seem cool, if you some day change a a PHP statement

[PHP] Image in a Template

2001-02-13 Thread Gary
Hi All, I am writing a catalog and shopping cart. Our clients want a image on the page for the product. The page is a template generated on the fly. I could put the images in the db and call it from there, but I don't like doing that. Is there another way to put the pic on the page? TIA

RE: [PHP] Image in a Template

2001-02-13 Thread Andrew
Gary, Put the path to the pic in the database, and the pic in the filesystem. Ususally much faster, unless you have a very large number of pics in a folder. regards, andrew -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 3:25 PM To:

RE: [PHP] Image in a Template

2001-02-13 Thread John Huggins
In my humble opinion, I would place the actual images in your web directory and put the file names into the database so build your image tags. Sure the db can store the actual image data, but I really believe that the filesystem is the better medium for the raw files. Name the image relating to

  1   2   3   >