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 - 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:
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
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:
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
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]
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
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:
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
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
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
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
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_"
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]
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
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
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
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
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
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
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
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,
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
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
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
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]
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
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
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
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
-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
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
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
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
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
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
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
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
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
$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
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
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
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,
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,
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
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 ,
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
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:
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[].
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
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
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.
--
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
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";
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
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
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
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
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
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
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
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
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]
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
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"
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=',
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
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
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,
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
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!
[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
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
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
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
- 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
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
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
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
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
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.
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
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
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
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.
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
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:
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
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
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 =
$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
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,
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
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:// "
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
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
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
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
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:
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 - 100 of 208 matches
Mail list logo