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 - 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
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
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
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
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: [E
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 http://myproject
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
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]
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
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 m
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
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
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
> $im
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
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
>$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
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 (
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
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
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
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 p
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-
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 SEPARAT
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
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
>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
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
> -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
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(
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
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
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.(
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
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
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
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
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.
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
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
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
$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 PROTEC
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
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
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
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
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; $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:[
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 , Mkdir
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]>
Sen
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[].
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
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
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, Febru
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
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
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
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",
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
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
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
/home/web/vacagor
>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
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
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
C
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 '',
$subcategories[$index], '';
and:
echo "Main ->
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
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
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
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
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.
> ...
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
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
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
- 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
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
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
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
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
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
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 b
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://
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 va
1 - 100 of 236 matches
Mail list logo