[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: File Uploads Send this file: ACtion.php has the follow

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: Chris

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 P

[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: /opt/gislab/apache/bin/htt

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, 20

[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: [E

[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 http://myproject

[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

[PHP] limitation of file upload??

2001-02-13 Thread John LYC
is there limitations on file upload.. such as file size when using ??? 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 PROTECTED]

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 Send this file: consult the following section of th

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 m

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 executio

[PHP] Your Opinion?! PHP4 coding style - Comment and Splitting source code

2001-02-13 Thread Yasuo Ohgaki
Hello all. I'm running PHP4 as Apache module under Linux. I would like to know good script coding style. I should not write long comments in code or not? With Zend Cache, comments should not matter. How about w/o Zend Cache? If I want to write long comments, should I get Zend Cache? Or can I igno

[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 > $im

[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 Genera

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: the enctype in my form tag is ENCTYPE="multipart/form-data" and METHOD = POST *The code that actually *should* tak

Re: [PHP] checkboxes and arrays

2001-02-13 Thread Christian Dechery
>$num_inputs = 5; // if you want 5 sets of checkboxes and text inputs. > >for ( $i = 0; $i < $num_inputs; $i++ ) > { > echo "Cb $i name=text[$i]>\n"; > } yeah... that can work, I think it's a little less messy than what I've done... I did it like this: for each checkbox I did echo

Re: [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.pl group.c

2001-02-13 Thread Alexander Bokovoy
On Tue, Feb 13, 2001 at 12:26:04PM +0200, 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 (

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 Stanislav Malyshev
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 logic). We had problems with re

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 al

[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 command

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 p

[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 --with-

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 SEPARAT

RE: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-13 Thread Scott Brown
oh hell. Do I ever feel stupid now. That explains that test script perfectly now I just have to figure out whats wrong with the rest of my site Obviously, too much "What-the-f..." and not enough "lets look at this logically" occured. Sorry about that. I'll crawl back under my rock now

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 http://www.dtonline

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 di

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 backgrou

[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 thi

Re: [PHP] mktime + 4 days

2001-02-13 Thread Jason Stechschulte
On Mon, Feb 12, 2001 at 11:06:16PM -0600, Christopher Allen wrote: > $tomorrow = date ("d", mktime(0,0,0,0,date("d") +4 ) ); > echo "Today + 4 days is $tomorrow "; > screws up Feb et al If you add the month and year, it should work just fine. $tomorrow = date ("d", mktime(

[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 call

Re: [PHP] Reg. Exp. Help

2001-02-13 Thread Christian Reiniger
On Tuesday 13 February 2001 04:59, Scott Mebberson wrote: > I think that maybe preg_match() or preg_match_all() is the answer but I > have know idea on how to make the regular expression I am using perl > comptaible. > > Here it is: > $txt = ereg_replace("src=\"([^>]+)\.(gif|jpg)\"", > "src=\"http

[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 libgd.(

Re: [PHP] limitation of file upload??

2001-02-13 Thread Christian Reiniger
On Tuesday 13 February 2001 11:21, Ankur Verma wrote: > Another thing that you might want to look out for in this case would be > the maximum execution time of the script Shouldn't matter as the file is uploaded *before* the script is invoked. -- Christian Reiniger LGDC Webmaster (http://suns

Re: [PHP] help with classes

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

[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 directl

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 p

RE: [PHP] Search & replace text

2001-02-13 Thread PHPBeginner.com
ok, here's a scratch: $contents = file ($file); for($i=0; $imailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 3:29 AM To: PHPBeginner.com Subject: RE: [PHP] Search & replace text Thanks for the idea. Can you give me an example of how to load a file into an array? My efforts failed.

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 B

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 filesy

RE: [PHP] Mail classes

2001-02-13 Thread PHPBeginner.com
Why reinvent the wheel? there are already a whole bunch of software like that has been written. Just search for it on sourceforge.com or hotscripts.com Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Orig

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 PROTEC

RE: [PHP] SELECT statement

2001-02-13 Thread PHPBeginner.com
There must be some funny problem. You code looks alright. Try to output mysql_error() in your code to see what happens. Or simply try it from command line. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com

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 -Ori

RE: [PHP] How To Tell Which v. PHP?

2001-02-13 Thread PHPBeginner.com
it is even cooler to do: $version = floor(phpversion()); It will then return eigher 3 or 4. I use it all the time while creation install scripts. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original

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

2001-02-13 Thread PHPBeginner.com
foo['bar']; Unless the array key (or any other kind of key, like these in functions or in SQL statements) is an integer you should insert it between quotes. Let's say that stings should be treated as 'strings' and integers can be treated as integers. Sincerely, Maxim Maletsky Founder, Chief

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; $imailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 11:34 PM To: PHP; CDitty Subject: RE: [PHP] Search & replace text ok, here's a scratch: $contents = file ($file); for($i=0; $imailto:[

[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 , Mkdir

[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]> Sen

[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 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 Jon Haworth
Presumably if you have mailto:[EMAIL PROTECTED]] Sent: 13 February 2001 15:38 To: [EMAIL PROTECTED] Subject: [PHP] Mystery quotes 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 there are

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(\" To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 10:38 AM Subject: [PHP] Mystery quotes > I'm encountering the following problem and now wonder if it's related to > magic quot

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, Febru

[PHP] Setting Enviromental variables

2001-02-13 Thread Scott
I know that by using the header you can bring up a standard user authenication dialog box, that sets the EVs: $PHP_AUTH_USER $PHP_AUTH_PW But is it possible to use a custom form to set these variables manually for site wide useage? Thanks Scott -- PHP General Mailing List (http://www.php.net

[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 "") { $str = "where Cook = $cookieinfo"; $cx=odbc_pconnect("doc","",""); } else setcookie ("getdwgnum", $cook,time()+28800

[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 mi

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",

[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 can

[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 php4/main/internal_functi

[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 /home/web/vacagor

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 rea

[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 php4/e

[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 C

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 '', $subcategories[$index], ''; and: echo "Main ->

[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 thi

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 Nets

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 '', > $subcategor

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 PROT

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. > ...

[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 pas

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-general&m=97948720824237&w=2 http://marc.theaimsgroup.com/?l=php-general&m=97621741324759&w=2 http://marc.theaimsgroup.com/?l=php-general&m=97413389003820&w=2 Can

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 ther

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 fixe

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 res

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 shel

[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 everything

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 [mailto:[E

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. Al

[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 b

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 (http://

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 va

  1   2   3   >