No, this has not been implemented. I can't think of anything uglier and
less sensical than ?php=2? Code should be readable and not misleading.
-Rasmus
On Tue, 23 Apr 2002, Brinkman, Theodore wrote:
Does anybody know if they completed the handling of the 'echo shortcut' to
work with all 3
$lines = file('filename');
foreach($lines as line) {
list($var,$val) = explode('=',$line);
if(trim($var)=='total') $val = trim($val);
}
$val = $new_value;
$fp = fopen('filename','w');
fputs($fp,{\n'total' = $new_value\n});
fclose($fp);
-Rasmus
On Mon,
Read the error handling chapter in the documentation.
-Rasmus
On Mon, 22 Apr 2002, Jean-Rene Cormier wrote:
Ok I'm trying to create a script that would allow users to bind to an
LDAP server and we all know there's gonna be some people mistyping their
password but when I try to bind and put
Also see extract() and import_request_variables()
Although, an upgrade to PHP 4.2.0 is not going to automatically disable
register_globals. Upgrading PHP does not overwrite the existing php.ini
file, so unless you ISP specifically changes this php.ini setting, nothing
will change.
-Rasmus
On
read php.net/substr
On Mon, 22 Apr 2002, Craig Westerman wrote:
I have a string that ends in a comma. What is best method to remove the
comma?
Craig
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No you don't. You should go read the substr() docs as well:
substr($str,0,-1);
-Rasmus
On Mon, 22 Apr 2002, Tyler Longren wrote:
First, you'll need to get the length of the str with the str_len() function.
After you have that, use the substr() function like Rasmus mentioned.
Tyler
virtual()
On Sun, 21 Apr 2002, Werner de Schepper wrote:
Hello,
I like to include the html-output of a perl script in my php-page. The perl
script is on the same server as the php file, so I use de passthru(
[docroot/path/perl-file] ) function to include de html output of the script
in my
if($abc 2) echo 2 Blocobr\n;
if($abc 4) echo 4 Sessaobr\n;
if($abc 8) echo 8 Sistemabr\n;
-Rasmus
On Sun, 21 Apr 2002, albertonews wrote:
I want this:
2 Bloco
4 Sessão
8 Sistema
only this three
but I don't want nothing like this:
If ($abc == 10) {
}
I want something that really
To prove that it works. My infamous spinning logo example that everyone
has seen 10 times...
http://conf.php.net/pres/slides/intro/flash_ming.php
The phpinfo() with the configure flags are here:
http://conf.php.net/info.php
libswf is compiled in directly and ming.so is built externally and
Did you check the manual? Like php.net/delete perhaps which tells you the
PHP function that does this is actually called unlink().
-Rasmus
On Wed, 17 Apr 2002, jas wrote:
How can I delete a file in php?
thanks in advance,
Jas
--
PHP General Mailing List (http://www.php.net/)
To
Turn on the memory-limit option
On Wed, 17 Apr 2002, Dustin E. Childers wrote:
Hello.
I have found something interesting that can kill the server. I'm not sure if this is
because of Apache or PHP. If you use PHP to send a header() inside of a while loop,
the httpd process will begin to use
Try jpgraph
On Sun, 14 Apr 2002, Christian Calloway wrote:
hey ppl,
I need to create some fairly complex graphs dynamically, and I need to be
able to specify line, bar, or pie charts. Are there any PHP packages that
someone could point me to that would fill my needs. Thanks
--
PHP
You can't do a partial include. Put some logic into your include file so
only the appropriate lines are executed. Or if you are not executing
anything but simply reading a file containing data, use fopen()/fgets()
and read past the first 5 lines.
-Rasmus
On Sat, 13 Apr 2002, Alberto Wagner
Why do you want to include from localhost over HTTP? Sounds to me like
you want to do:
$foo='bar';
include $DOCUMENT_ROOT/folder/file.php;
-Rasmus
On Fri, 12 Apr 2002, Barýþ Mert wrote:
What i want to do is :
include(http://localhost/folder/file.php?foo=bar;);
but it doesn't work. As you
I guess the only real way is to use virtual() in this case. That's a bit
clunky as well, but it isn't quite as bad as going through CGI or all the
way out to the port 80 level.
-Rasmus
On Fri, 12 Apr 2002, Aric Caley wrote:
Is it possible to keep the variable name-space separate between,
See the curl extension. http://php.net/curl
And as of PHP 4.3 you will be able to open an https page directly with
fopen().
-Rasmus
On Fri, 12 Apr 2002, Ninety-Nine Ways To Die wrote:
Ok I got a question for you guys and gals, I am not sure how to go about this,
looking for opinions.
I
Read the chapter on connection handling in the manual. Basically you need
to register a shutdown function using register_shutdown_function() and
check connection_status() from that.
-Rasmus
On Fri, 12 Apr 2002, Charmaine Tian wrote:
Hi,
If a PHP script is terminated due to time out
The documentation is outdated. That restriction has been lifted as of PHP
version 4.0.6.
(cc'ing phpdoc to fix)
-Rasmus
On Fri, 12 Apr 2002, Aric Caley wrote:
but the virtual() documentation says you can't use it on a php script?
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL
We have just taken a contract for a dedicated server, and I tried rather
hard to get it to be a Linux server. The killer for that was that we
have a significantly complex site that will need to be migrated to the
server which has been coded in asp - which leaves us rather stuck with
Windows
Sounds like an Apache bug to me.
On Tue, 9 Apr 2002, Adam Plocher wrote:
So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working.
The only problem I am having now, is Apache's DirectoryIndex option.
Whenever I add index.php to that (like I would do in Apache 1.3), I get a
Just compile again with --with-apxs
On Sun, 7 Apr 2002, Chris Kay wrote:
Hi
I have compiled php -with-apxs option and I read in the archives it
don't create a /usr/bin/php.
But I wish to run 2 scripts I have made by command line, I have the 2
scripts outside the web server
Root.
Is
But you will most certainly need quotes.
And no, you don't need the ()'s but it works for exactly the same reason
that (1)+(2) is a valid expression with unneccesary brackets.
-Rasmus
On Sun, 7 Apr 2002, G-no / |{iller wrote:
try
?php
require (includes/footer.php)
?
Hint: You May or
Note that you rarely change a result set, so there is very little point in
returning a reference to it given PHP's shallow copy implementation. And
in your case you are just returning a resource id which you definitely
aren't going to change.
But if for some reason you feel it is important
Ideally, i'd like to evaluate the code the user has submitted, and if an
error is generated, notify the user of that fact.
Eval always returns false, and I'd like no runtime error to be generated.
Perhaps an error-handler is what's needed?
What can you suggest?
I think this should
a string at face value for parse errors ie. 'Look for
syntax errors, but don't evaluate the code.'?
Thanks again for the help, it is much appreciated
Regards
Scott
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Scott Houseman [EMAIL PROTECTED]
Cc: php-general
I got back quite a few responses on this list on the subject of having
variables that are not defined before they are used. That's
interesting -- it's nice to know that I can take shortcuts and conjure
them up on the fly, but I didn't realize that it was good practice to
declare the
I'd actually like to use MySQL's builtin date formats, but I like the
timestamp that PHP uses (and I like what I can do with a timestamp in
the date() function) so I have been using VARCHAR(20) to hold the date
as a string. MySQL's TIMESTAMP is not the same thing as PHP's.
But you can
date()
On Wed, 3 Apr 2002, Erik Price wrote:
On Wednesday, April 3, 2002, at 04:14 PM, Rasmus Lerdorf wrote:
But you can simply call MySQL's UNIX_TIMESTAMP() function on the mysql
field when you select it if you want it into unix timestamp format.
For SELECTs, this is fine, but what
They were breadsticks. Picture was taken in early 1999 in a restaurant in
Tel Aviv, Israel.
-Rasmus
On Tue, 2 Apr 2002, Erik Price wrote:
On Tuesday, April 2, 2002, at 11:52 AM, Frank Joerdens wrote:
Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1
yesterday? I
to haunt you :-)
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 11:52 AM
To: Erik Price
Cc: Frank Joerdens; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] April fools day - did anyone notice Thies's fangs on
rc1???
They were
You would be better off reading the security chapter in the PHP
documentation. It is much better informed than that study-in-scarlet
thing.
On Mon, 1 Apr 2002, Erik Price wrote:
On Sunday, March 31, 2002, at 04:05 AM, Liam wrote:
at the moment I have register_globals set to on
Is there
The other argument against adding is that it is the heredoc operator.
-Rasmus
On 1 Apr 2002, Jason Greene wrote:
Hello All,
One of the features that I have been working on for PHP5/Zend Engine 2
is better unsigned value support for the language. This involves the
addition of a new
ErrorDocument 404 your_script.php
then in your_script.php look at $REQUEST_URI
Or stick a phpinfo() call there initially to see what is set.
-Rasmus
On Sun, 31 Mar 2002, Andy wrote:
Hi there,
I am wondering how to get a parameter from url like on php.net Example:
php.net/functionname
I
I believe this is done with mod_rewrite
Nope. Absolutely no reason to incur the wrath of mod_rewrite for
something this simple. Just an ErrorDocument entry in your httpd.conf.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nope, that code makes no sense. $_POST is an array containing the POST
variables. You make a copy of that array an put it in $foo thereby
overwriting the passed in $foo. Then you return $$foo which actually ends
up returning a variable named $Array. It does not look like you have a
$Array
For example:
./configure --enable-ftp=shared
make
this will create modules/ftp.so
-Rasmus
On Mon, 1 Apr 2002, Prachait Saxena wrote:
So can u tell me how to complie one module only ?
as i am thinkg to complie that module on my local machine [Linux] and then
upload to the server.
Bye,
est($var)
{
return addslashes($var);
}
$foo = Yes, I'am Very Awsome;
$foo = test($foo);
echo($foo);
// echo's, Yes I\'am Very Awsome
Understand?
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Gary [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday,
Always always always check your queries for errors before trying to use
the result set.
ie.
$result = mysql_query($sql) or die(mysql_error());
(assuming you want a query failure to be a fatal error)
-Rasmus
On Sat, 30 Mar 2002, Brian Waskiewicz wrote:
Can anyone tell me what is causing
(c) Obviously, this won't prevent someone from
faking a username via the querystring, so you have to
specify that it's a cookie:
if(!isset($_COOKIE[username])) {
header(Location: http://www.mysite.com/login.php;);
exit;
}
Note that nothing prevents users
OK, I've figured it out. Apparantly when setting php
vars in an apache config file, you HAVE to use the
form
php_admin_value as opposed to just php_value.
Some of the php documentation is vague or even
misleading, such as this example from the online docs,
which does not use the form
exif_imagetype() is new function only available in PHP 4.2 (not released
yet) and above. Use GetImageSize() for now.
-Rasmus
On Sat, 30 Mar 2002, Dale Lora Marshall wrote:
Ok, I've been looking at the image functions, and found that I needed
to recompile PHP with exif support and load GD
My question is:
Is there a way to close this hole and let the session expire as soon as only
the active window
is closed?
Nope, that's how browsers work. Your only real way to fix it would be to
expire a session after a certain amount of inactivity. That's what the
PHP sessions do by
mediumtext is long enough, but you are putting binary data into it, not
text. You should be using mediumblob. The limit is 16M for that column
type.
-Rasmus
On Fri, 29 Mar 2002, Jay Paulson wrote:
Hello--
I can't quite seem to get this to work. What I'm trying to do is pull data
out of
That's the way it works since Apache runs as a single user id. There is no
way PHP can escape this. You might look into setting this user up with the
open_basedir restriction instead of safe_mode. Under open_basedir the
user's scripts can only manipulate files under the directory you specify.
Complex arrays inside quoted strings either need to be escaped with {}'s
or drop out of the quoted string to display them. ie.
echo td.$week[$i][$j].: .$week[$i][$k][0]./td;
or
echo td${week[$i][$j]}: ${week[$i][$k][0]}/td;
-Rasmus
On Fri, 29 Mar 2002, David Johansen wrote:
Ok, I have a
A couple of ways. The most flexible is probably to use number_format()
since that lets you set the separators as well.
printf(%.2f,$value) would also do it.
-Rasmus
On Fri, 29 Mar 2002, Ian Wayne wrote:
Hi all.
I can't believe I'm stuck on this - seems to me there ought to be an easy
way
This code works fine:
eregi(__([a-z0-9_]+)__, Hello __WO_RD__ Test, $Matches);
echo $Matches[1];
produces:
WO_RD
-Rasmus
On Thu, 28 Mar 2002, Sharat Hegde wrote:
Hello,
I am still having problems with the regular expressions. Looks like there
has been a change in the way they are
Did you flush the privileges? Using either flush privileges or mysqladmin
reload? And besides, you really should be using a GRANT query to do this.
-Rasmus
On Thu, 28 Mar 2002, hamish wrote:
Hello all,
I am using php and mysql with phpmyadmin. I am trying to set up a username
and password
I just tried it on 4.1.x and it is working fine.
On Thu, 28 Mar 2002, Sharat Hegde wrote:
Rasmus,
The code worked fine in PHP Version 3.x
It does not work with PHP Version 4.1.1. That is where I have a problem.
With Regards,
Sharat
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Sharat
:
The code worked fine in PHP Version 3.x
It does not work with PHP Version 4.1.1. That is where I have a problem.
With Regards,
Sharat
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Sharat Hegde [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Regular Expression
While I try and request for a recompile of the system, is there an
alternate way out?
Why don't you use the PCRE functions instead.
The equivalent preg would be:
preg_match(/__([a-z0-9_]+)__/i, Hello __WO_RD__ Test, $Matches)
By the way, what is the significance of the switch
You have to build the FDF extension to include FDF support by adding the
--with-fdftk to the PHP build flags.
-Rasmus
On Thu, 28 Mar 2002, Robert Stoeber wrote:
I just found the very cool looking new FDF functions to support Acrobat
forms. According to the documentation at www.php.net I
This is a bug in GD2 - When you use Truecolor images with GD2,
anti-aliasing of ttf fonts break. This is fixed in GD-2.0.2. You don't
seem to have all that many colours on those certificates. Try simply
using an indexed image just to see the real quality you can get with
GD+TTF before
Erik, I asked an editor at O'Reilly about this cover issue. Here is the
response:
We did switch to wite spines with black letters for a while, but now
we've switched back to our original colored spines with white letters.
Trust me, you don't want to know the sordid details...
-Rasmus
On
I don't really see how that patch could cause that. Any chance of an
truss or a gdb backtrace or something on one of these guys to give us a
clue?
-Rasmus
On Thu, 28 Mar 2002, Jason Murray wrote:
Hi folks,
Just curious to know if anyone has experienced a high server
load since installing
Is it because of the memory_limit that it doesn't work ?
Yes
Do I have a way to upload files (over 7M) on the server without increasing the
memory_limit ?
Not until PHP 4.2
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Or, of course, if you want to be cool like Carl:
http://lerdorf.com/buy/
;)
-Rasmus
On Tue, 26 Mar 2002, Ralph Friedman wrote:
In article [EMAIL PROTECTED], Septic Flesh wrote:
I wanna buy a book from amazon . . .but don't know which one..
Do you know where I will find examples of
It is, the picture should prove that.
On Tue, 26 Mar 2002, Scott St. John wrote:
I didn't think Programming PHP was out yet?
On Tue, 26 Mar 2002, Rasmus Lerdorf wrote:
Or, of course, if you want to be cool like Carl:
http://lerdorf.com/buy/
;)
-Rasmus
On Tue, 26 Mar
this is a localization thing.
On Tuesday, March 26, 2002, at 01:51 PM, Rasmus Lerdorf wrote:
Or, of course, if you want to be cool like Carl:
http://lerdorf.com/buy/
;)
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing
Just to clarify, that is a Windows-specific bug. Non-Windows works just
fine.
On Tue, 26 Mar 2002, Chris wrote:
On 26 Mar 2002 at 20:42, Evan wrote:
I have PHP 4.1.2 (the latest, I downloaded it a week ago).
PHP 4.1.2 has several bugs.
One of them is that Apache and sessions variables do
So use a Javascript meta-refresh
On Wed, 27 Mar 2002, webapprentice wrote:
Hi,
Thanks for the reply. I saw this as well in the mailing list archives, but
everyone is saying you cannot output ANYTHING before calling header.
Unfortunately, I'm calling this at the end of a process, so it
Hi Mr. Lerdorf,
I look forward to you upcoming O'Reilly PHP book. =)
Yes, a META tag refresh or Javascript control seems to be the only way left.
Strange that URL redirection is so unusual to implement in PHP compared to
ASP or Coldfusion (unless they do something klunky under the hood).
First, the execute bit means nothing over HTTP. So they couldn't just
execute it remotely. They would need an account on the box.
And second, PHP does not set the x bit, you are doing that. Check your
default umask or set it explicitly with a call to umask() before copying
the file into
true... if php is running as cgi it would need the
execution bit set. Or if someone wanted to write a shell script in php
to be used to help compromise a server it would need to be executable as
well...
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
See http://php.net/gettext
On Mon, 25 Mar 2002, Matt Friedman wrote:
Looking for some more detailed information on this subject.
Any experts out there?
Thanks,
Matt Friedman
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: Monday March 25, 2002 10:04
Why do you put each(explode()) ? Just list() = explode() is what you
want.
-Rasmus
On Mon, 25 Mar 2002, Chris Boget wrote:
Ok, I've got to be doing something wrong here. I've been
beating my head up against the wall for some time and I
just cannot figure out what it is. Before I say it's
if(count($HTTP_GET_VARS))
On Mon, 25 Mar 2002, Kai Schaetzl wrote:
I transferred an application from Linux/Apache to .NET/IIS6 and it
appeared to be working fine, first. A bit later I found that it
wouldn't switch to most functions derived from a GET variable. The
reason being that $query
Because 'j' was probably added somewhere in between the two versions...
On Mon, 25 Mar 2002, geoff wrote:
Any ideas why date (j) doesn't appear to work when I use it on my ISP
that has a Unix Server, but on my Windows ISP , it works fine ? The other
date() functions Y,m,d etc all work
Depends on whether you have GD without GIF enabled already built into your
PHP already. Check with phpinfo(). If you don't you have build a shared
gd extension against a version of GD that has GD support and add that
dynamically without recompiling PHP. If you do have GD in there already
you
^[ A-Za-z---]*$
On Mon, 25 Mar 2002, John Fishworld wrote:
How can I change this to accept spaces as well ?
(ereg(^[A-Za-zÀ-ÖØ-öø-ÿ]*$, $str))
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List
March 2002 23:14, Rasmus Lerdorf wrote:
You'll probably need PHP 4.2 for uploads that big to work well. Before
4.2 uploads were buffered in ram, so no, you have no way to recover a
broken upload.
But what, in that case, is the use or purpose of upload_tmp_dir ?? Moving
from upload - tmpdir
Sure, it just passes it off to the MTA. If the MTA drops the ball later
on we don't know about it. Check your logs.
On Mon, 25 Mar 2002, Kevin Stone wrote:
Anyone run into this problem before? I've got a simple email parser
that I've set up for our clients to access from their websites.
You read the entire file into memory (an array using file() perhaps) and
then edit it in memory and write the entire new file back out.
-Rasmus
On Mon, 25 Mar 2002, Randy Johnson wrote:
Hello,
I want to be able to edit part of a file. via a text box using php how do i read a
file and
You read all of it
On Mon, 25 Mar 2002, Randy Johnson wrote:
How do I know what part of it to read in the array?
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Randy Johnson [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 25, 2002 9:03 PM
Subject: Re
You'll probably need PHP 4.2 for uploads that big to work well. Before
4.2 uploads were buffered in ram, so no, you have no way to recover a
broken upload.
On Sun, 24 Mar 2002, Gerhard Hoogterp wrote:
Hello all,
I'm still having problems uploading BIG files (15MB and more) Is there a way
Did you read php.net/imap_open ?
On Mon, 25 Mar 2002, Kearns, Terry wrote:
The documentation for the IMAP functions is, er, virtually non-existent. I'm
not looking to read several sets of RFCs - all I want to do it check a POP
account on Exchange for messages and retrieve them.
Does
Depends on the OS. I suggest using md() instead.
On Sat, 23 Mar 2002, Steven Walker wrote:
Is there a string length limitation to crypt()? It generates the same
result for different input strings. I'm using crypt to store access
codes that are generated using uniqid. For example, if I do
In the NEWS and ChangeLog files in CVS. See
http://cvs.php.net/cvs.php/php4/NEWS and pay attention to the branch name.
On Sat, 23 Mar 2002, Gaylen Fraley wrote:
Where can I find the changes coming in 4.2?
--
Gaylen
PHP KISGB v4.0.2 Guest Book http://www.gaylenandmargie.com/phpwebsite/
So just put that file in your own directory and use it from there. It is
just a PHP script.
On Sat, 23 Mar 2002, lmlweb wrote:
Hello,
I've picked up a book called the PHP Developer's Cookbook, specifically
for the search engine that was featured in it. It required the use of
PEAR's
Try image/jpeg as your content-type
On Sat, 23 Mar 2002, Navid Yar wrote:
Hello,
I just enabled GD support for PHP via the php.ini file. When I try to
run a script that uses the functions included in the library, it gives
me a dialog box asking me whether I want to save the php file to a
Figure out where your mysql.sock file is and provide the path right in
your mysql_connect() call. mysqladmin version tells you the path.
-Rasmus
On Sat, 23 Mar 2002, Jim Hankins wrote:
I'm doing a simple database connection using the follow syntax:
html
head
titleBook-O-Rama Search
reading the ./configure -h I see that they CHANGED what the configure
options mean.
now --with-freetype=dir refers to freetype 2
Untrue, it only refers to freetype2 when you are building against GD2.
phpinfo() says I have FreeType linkage.
But both ImageFtText and ImageTTFText fail to do
Show us an example Perl one. Chances are you can get the PHP crypt()
function to do the right thing by feeding it the correct SALT.
-Rasmus
On Fri, 22 Mar 2002, R'twick Niceorgaw wrote:
Hi all,
I'm converting a site written in perl to php. It has a member section which
is password
text password : f0rget123
encrypted password: òOú«#7Fá73¯
Uh, that's not md5 at all. By definition md5 is 32 characters.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That's a FAQ
(did you try the obvious? http://php.net/faq)
On Fri, 22 Mar 2002, James Taylor wrote:
Has anyone given any thought to possibly maintaining a FAQ containing the
answers to the most commonly asked PHP questions on this list? I notice
duplicates roll through every couple of
I just don't see what the difference is. This is a PHP mailing list which
supposedly gets questions about PHP. Why would the PHP FAQ not be the
right place for this?
-Rasmus
On Fri, 22 Mar 2002, James Taylor wrote:
You are correct sir. The purpose of the FAQ would be so that, like I said,
So add it those.
On Fri, 22 Mar 2002, James Taylor wrote:
The PHP FAQ isn't really specific when it comes to most problems. The 'code'
section has like 10 questions, the rest of the FAQ is mainly how to
download/compile, what do these PHP errors mean, migration, etc. A FAQ that
had answers
http://www.php.net/manual/en/function.mysql-affected-rows.php
On Fri, 22 Mar 2002, Ashley M. Kirchner wrote:
After a bit of research:
--
Rick Emery wrote:
$result = mysql_query(.)'
mysql_num_rows($result)
Hrm, this is resulting in:
bWarning/b: Supplied
On Fri, 22 Mar 2002, Ashley M. Kirchner wrote:
Rasmus Lerdorf wrote:
http://www.php.net/manual/en/function.mysql-affected-rows.php
Thanks Rasmus. I did try that as well, same result. If I don't bother with the
$result, everything's fine. Like I said, the query runs, and gets executed
You can do exactly the same thing with PHP. The 205 would show up in the
$PATH_INFO variable.
-Rasmus
On Thu, 21 Mar 2002, Kelly Meeks wrote:
Does anyone have any ideas/info (or can you point me to) regarding how to make
dynamic php content more search engine friendly (losing the '?' when
The above speudo script work fine and when the user click 'Add to
Data', the data is added to my database. Howver, the
session_unregister and session_destroy do not clear the variable
Faction and its value. Therefore if the user click Reload on the
browser, the data gets added again.
What
Step 1 - upgrade to a recent version. Then report back.
-Rasmus
On Thu, 21 Mar 2002, Sam Jordan wrote:
Hello all
I'm working for an ISP and some weeks ago we noticed a problem
with PHP we never had before. Since then quite often the PHP
code is not interpreted, but displayed as plain
Please note, there are many German PHP developers. Most of them are
not so stupid ...
Oh, I don't know about that. I have met a bunch of them... ;)
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 21 Mar 2002, at 8:03, Rasmus Lerdorf wrote:
This Faction variable comes from the browser.
Thanks for answering Rasmus.
But is it possible to clear this variable. Is this what is called a
global variable? If not, does this means that the scope of POST
variables is as long as the life
Think about what you are doing a bit here. You want to store the pictures
outside of your document_root, yet you want to reference them directly
from a web page. That makes absolutely no sense. By definition,
something that can be accessed directly through your web server must be
accessible
Are you calling session_start() on the subsequent pages you want to be
part of the session?
On Thu, 21 Mar 2002, Randy Phillips wrote:
Hi,
I have tried every example of creating a session variable I could find on
php.net and have had the same results with all of them. The session
variables
So either turn off the DirectoryIndex or put an index.html in the dir.
On Fri, 22 Mar 2002, Jason Wong wrote:
On Friday 22 March 2002 00:54, Erik Price wrote:
Isn't it just a matter of setting the permissions? apache can't have
read access to this directory, that's all.
No, he doesn't
Well, a stray define('myvar','foo') somewhere would make a mess of that.
It is safer to use $myarray['myvar']. Inside a quoted string you of
course shouldn't use the ''
-Rasmus
On Thu, 21 Mar 2002, Kevin Stone wrote:
The single quotes in $_SESSION['myvar'] are not necessary. You're
reading
'none' comes from a failed file upload. Figure out why the file upload is
not working. Did you perhaps turn file uploads off in your php.ini file?
-Rasmus
On Wed, 20 Mar 2002, Rick wrote:
We have an application that used PHP's FTP function to upload files. Now it
worked until we upgraded
Well, how are you putting it into the string?
On Tue, 19 Mar 2002, Gil Disatnik wrote:
Hello there,
I have a 98 characters string (including spaces), wc -c says it's 98
characters and a file containing this string is 98 bytes as well.
For some reason - strlen() says it's more... it says
801 - 900 of 1546 matches
Mail list logo