I think the response to this will probably be equally informative and
hilarious.
- k
- Original Message -
From: Kyle Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 02, 2001 7:34 PM
Subject: [PHP] Spot the difference?
Whats the difference between ASP and PHP cause
I'm almost positive there's no reason the first should work while the
second fails...can you post what you've done...it's probably a typo...
jack
-Original Message-
From: BRACK [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP]
actually, it removes everything from $string that is not in the range 0-9.
when a ^ is the first character inside [], it negates whatever is inside.
ereg_replace (^[0-9],,$string); would remove the first character from
$string if it were in the range 0-9.
on 8/2/01 6:39 PM, Martin Cameron at
Quick question..
I'm installing PHP 4.0.6 on a fresh install of Trustix 1.2. It compiles
fine (I've even slimmid down the modules I'm compiling it with down to
just apxs+mysql), but when I try to restart apache, it gives me the
following error:
Starting httpd: Syntax error on line 241 of
Hi!
I wanted to use the full SMTP-Protocol including MAIL FROM: and RCPT
TO:, and therefore I can't use mail().
I have written a perl-script, I call from PHP, that connects to the
SMTP-server directly and this worked fine - until a server went down, and my
ISP's-SMTP-Server told my perl-script,
I think the problem with spreading out discussions that can be as broad as
the PHP discussion is that you still tend to have people gravitate towards
some of the more general or higher level discussion groups regardless of
whether or not it should fall into the newbie category or not.
This is
-Original Message-
From: BRACK [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 10:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Syntax
I'm in a process of doing site with MySQL database, and most of
the code I plased in index.php3 (in one file) but I've got some
Hello I am trying to install PHP 4.0.6 with GD 2+ support and I am
receiving an error at `make` time. Can anyone suggest something to try and
fix this problem? Thankyou :)
I have installed the following with no path changes to the defaults:
freetype-2.0.4.tar.gz
gd-2.0.1.tar.gz
Hello Gerard,
Saturday, August 04, 2001, 7:34:06 AM, you wrote:
GS Ok I have a form with a $PHP_SELF target, and I enter parts of the form
GS when they enter information if something is wrong with their input. Now
GS what I would like to do is destroy all the variables when the form is
GS
Hi all,
I have a table with the column id, which is a unique number,
auto-incremented, so the highest id is the most recent.
I wish to retrieve the last five rows from the table (there
will be hundreds of rows) and print some columns to the screen.
I have this table:
id,heading,text,user
Try this SQL Justin:
$sql = SELECT * FROM news DESC LIMIT 5;
Jeff
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 04, 2001 5:52 AM
To: php
Subject: [PHP] most recent 5 rows
Hi all,
I have a table with the column id, which is a
Gerard,
Try using:
unset($Age);
Jeff
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 04, 2001 1:34 AM
To: PHP
Subject: [PHP] How to destroy a $variable
Ok I have a form with a $PHP_SELF target, and I enter parts of the form
when
Jeff Lewis wrote:
Try this SQL Justin:
$sql = SELECT * FROM news DESC LIMIT 5;
Hrm,
Won't that retrieve the FIRST 5 rows, not the LAST 5?
Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
It will give you the 5 HIGHEST values in your auto incremented field. If it
was returneding the first 5, or the wrong 5, repace the DESC with ASC.
Jeff
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 04, 2001 6:09 AM
To: [EMAIL PROTECTED]
when i make apache activate-module=src/modules/php4/libphp4.a
it display this error
/usr/src/bs/BUILD/imap-2000/c-client/auth_gss.c:344: undefined reference to
`gss
_release_buffer'
/usr/src/bs/BUILD/imap-2000/c-client/auth_gss.c:349: undefined reference to
`gss
_release_name'
Sorry, forgot the ORDER BY, here is what you're looking for:
$sql = SELECT * FROM news ORDER BY id DESC LIMIT 5;
In a list of numbers up to 10, this would return rows 6,7,8,9, and 10.
Jeff
www.hyrum.net
www.xnull.com
-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
Jeff Lewis wrote:
$sql = SELECT * FROM news ORDER BY id DESC LIMIT 5;
many many many thanks for your (very quick) help!!
Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
I am having trouble with the following function working _with_
sessions. If I turn off my session checking function it enables you to
download the file flawlessly, if sessions are turned on then Internet
Explorer displays an error:
Internet Explorer cannot download ...URL
Internet Explorer was
At 04.08.2001 01:33, Matthew Tyler wrote:
Hey all,
I have a server with Apache running on it, and it currently uses PHP3
(installed with the OS). I am trying to upgrade to PHP4, but from the
php.net documentation it appears that I have to reinstall Apache in order to
have access to the PHP4
hi Ryan,
did u make clean on your php 2?
i can't recall, u must delete a file config.*** (i can't recall the
extension...) b4 u reconfigure...
refer in the php install.txt
hope it works :)
regards,
James
Ryan Christensen wrote:
Quick question..
I'm installing PHP 4.0.6 on a fresh
hi gerald,
ok.. u could assign values to form input...
eg:
$myname= ;
input type=text name=name value=?=$myname?
ok..
for the thank you?
simply do a if syntax to check if it's been submited... and put in a alert
for ur javascript..
eg:
?
... //do your statement to put in the values
?
This brings me back to an original problem I had before, I do have the
instruction in my conf file to load php as a module but I get the following
error:-
[warn] loaded DSO c:/usr/php/sapi/php4apache.dll uses plain apache 1.3 api,
this module might crash under EAPI! (please recompile it with
on 8/3/01 6:43 PM, Ben Bleything at [EMAIL PROTECTED] wrote:
Whacky. It works now =
i seem to remember a thread not that long ago (maybe it was on a different
list) similar to this.
the conclusion was that netscape and ie (and i'm sure others as well) handle
this differently, and one of them
Hi,
I would like to know the correct syntax of include_path for php.ini
under windows. I have tried to set the include path as
C:\home\main\require but it doesn't work.
Thanks in advance
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Why does this code produce a page cannot be displayed error?
?php
mysql_connect(localhost,username,password);
mysql_select_db(database);
$query = SELECT file_path from photos where photos_id=$photos_id;
$result = @mysql_query($query);
$row = mysql_fetch_row($result);
$path = $row[0];
Why does this code produce a page cannot be displayed error?
Your query is probably wrong. Comment out the header stuff and add some
error checking to your query.
?php
mysql_connect(localhost,username,password);
mysql_select_db(database);
$query = SELECT file_path from photos where
Similarly the FAQ is easy to find, and I do believe the words support
suggest where help may be found.
Actually my suggestion would be to take a page from way the Python lists are
and call it tutor or PHP-tutor.
Joel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Yup, I did. I actually later found out that all I had to do was remove
the old libphp4.so file, THEN recompile.
Thanks anyways,
Ryan
-Original Message-
From: James Tan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 04, 2001 5:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re:
I made the changes you suggested and it's still a no go. I'm sure of the
query because
print img src=\$path\;
Will display the image I'm trying to download.
This is my environment.
PHP Version 3.0.16
Apache/1.3.3 Cobalt
safe_mode 1
?php
mysql_connect(localhost,user,pass);
I made the changes you suggested and it's still a no go. I'm sure of the
query because
print img src=\$path\;
Will display the image I'm trying to download.
How does that make the SQL query valid? You didn't implement the
mysql_query() error checking I suggested. That's likely what is
Hi,
I'm using sessions and everytime my script is called, I want to add all
elements of $HTTP_POST_VARS to my $HTTP_SESSION_VARS
so that I can access them throughout the session.
I cant seem to get this working. This is what I have:
session_start();
while ( list($name,$value) =
Syntax error on line 205 of /etc/httpd/conf/httpd.conf:
Cannot load /var/www/libexec/libphp4.so into server: undefined symbol:
gss_mech
krb5
/var/www/bin/apachectl start: httpd could not be started
any one can help?
Add --with-kerberos to your PHP configure line
-Rasmus
--
PHP General
I usually put or die(mysql_error()) and make it work before I put in the @,
that's been done already. This will display the image
$result = @mysql_query($query);
$row = mysql_fetch_row($result);
$path = $row[0];
print img src=\$path\;
What I want is to display a 'save as' box to download the
the same problem occur
Rasmus Lerdorf [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Syntax error on line 205 of /etc/httpd/conf/httpd.conf:
Cannot load /var/www/libexec/libphp4.so into server: undefined symbol:
gss_mech
krb5
/var/www/bin/apachectl start:
Hi
I'm very news in php
Anyone knows how can i submit sample HTML form by php and write into
database ???
I have anly one registration form username, password, First name last_name,
and phone
I need only small samples and all will be ok ..
thanks in advance
Or, you could do two steps
1) retrieve the last inserted ID, with mysql_last_inserted_ID (or
something like that).
2) then, all records with id(s) greater then the_last_id_number minus
five.
something like
$most_recent = select mysql_last_id();
select * from TABLE where id
In file included from libmysql.c:10:
global.h:240: warning: redefinition of `uint'
/usr/include/sys/types.h:146: warning: `uint' previously declared here
global.h:241: warning: redefinition of `ushort'
/usr/include/sys/types.h:145: warning: `ushort' previously declared here
In file included from
this is the main probelm
mysql_version.h:15:41: warning: MYSQL_UNIX_ADDR redefined
Spear [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In file included from libmysql.c:10:
global.h:240: warning: redefinition of `uint'
/usr/include/sys/types.h:146: warning: `uint'
Peter Dowie [EMAIL PROTECTED] wrote in message
001201c11d08$1b3fe280$021ea8c0@petexp">news:001201c11d08$1b3fe280$021ea8c0@petexp...
Hi,
I'm using sessions and everytime my script is called, I want to add
all
elements of $HTTP_POST_VARS to my $HTTP_SESSION_VARS
so that I can access them
Do you have session db and your data db on the same db?
If you do, most likely, transaction is started in session open
handler. You cannot nest transaction and lo_read/open etc fails.
If you have situation like this, create dedicated database for session
db.
Regards,
--
Yasuo Ohgaki
Hmm so lets say in my images folder for the site if I just put an index
somewhere in there it prevents access?
Man that would be so cool. I really don't need some big security thing
happening with .htaccess etc, that would be way overkill
thanks,
Marcus
Jon Yaggie wrote:
i dont know if
Dave.O [EMAIL PROTECTED] wrote in message
000401c11ce9$c1ebd360$c0147ad5@tinypc">news:000401c11ce9$c1ebd360$c0147ad5@tinypc...
This brings me back to an original problem I had before, I do have
the
instruction in my conf file to load php as a module but I get the
following
error:-
[warn]
On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED])
wrote:
After a sign up page I want to check if someone is already entered
into a database. The First Name, Last Name and Address all have
to match exactly in order for it to be considered a duplicate.
However
this isn't doing what I
Actually it wouldn't be overkill or big...its really a small quick file
to setup...if you just put the index file in there, someone won't be
able to get a directory listing, but they'll still have access to your
files...if you put the htaccess file in there, they're secure...
jack
-Original
I've just discovered a weird quirk in PHP. I'd first like to check if it is
a known bug/weird feature/something else already known. I've not yet tested
it much, except I see it doesn't happen on every script, but either of the
two results are quite strange to me.
Suituation: file myscript.php
hello,
I have a Session variable $Stage which I want to update (increment by 1)when
my form submit button is pressed.
FORM Method=\post\ Action=\$PHP_SELF\
how can I update this session variable ?
I dont want to update it at the start of the script, because if the Reload
button is pressed, it
Thank you. That worked and I'm sure will have made it work a lot
faster later on when there is a lot of data in the database.
Jeff Oien
On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED])
wrote:
After a sign up page I want to check if someone is already entered
into a database.
I have the same problem running Win98, Apache 1.3.17 and PHP 4.0.6 as an
Apache Module. It doesn't return the source, but it's strange...
-Original Message-
From: Anthony Lieuallen [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2001 16:30
To: [EMAIL PROTECTED]
Subject: [PHP] Potential bug?
I have the following question :
I have a directory on my ftp server and i want give access to this directory
by group (the name of the group is test)
% ls
% /ftp/test
% chmod 070 test
how can i do this
Greetings,
Manu
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi, I couldn't find a similar function in the official documentation. Does
anyone know if there is a setInterval function in PHP? i.e., making repeated
calls to a function separated by a given time period. Is such a function
even possible in PHP? One way to do it, without a PHP function, is to
Yes, see http://php.net/declare
-Rasmus
On Sat, 4 Aug 2001, Zlutarch G. wrote:
Hi, I couldn't find a similar function in the official documentation. Does
anyone know if there is a setInterval function in PHP? i.e., making repeated
calls to a function separated by a given time period. Is
Sveiki, PHP,
Does anyone here has good php_gd.dll file that supports GD in
windows.I can't download it from http://php.weblogs.com/php_gd ,
because it is damaged or smth.
If you have, please email to me with this file. I need it very very
much...
Thank you
OFERTA PARA MEXICO:
[EMAIL PROTECTED]
1.8.2001.Publicidad/Enseñanza a Distancia
Hola que tal:
El motivo de la presente carta es informarte de la posibilidad de
Has anyone got PHP successfully compiled and using GD 2.0.1?
If so what was your configure line please and any other changes you had to
make in order to get PHP to compile. Thanks.
Build gd-2.0.1 with these two lines in your GD2 Makefile:
CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG
Has anyone got PHP successfully compiled and using GD 2.0.1?
If so what was your configure line please and any other changes you had to
make in order to get PHP to compile. Thanks.
Build gd-2.0.1 with these two lines in your GD2 Makefile:
CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG
I just tried to use the IMAP functions on my website. When I run the first
script, I get this error:
Call to undefined function: imap_open()
Does this mean the IMAP functions are not installed?
Damiano
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Build gd-2.0.1 with these two lines in your GD2 Makefile:
CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
Same as mine.
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
LIBS=libgd.a -lpng -lz -ljpeg
[root@b gd-2.0.1] ~ make test
gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11
-I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11
-L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm
gcc: libgd.a: No such file or directory
It's obviously a simple error but I have no idea about C.
You left out your PHP configure line
I was trying to make gd-2.0.1, are you saying don't make GD at all,
just go straight to configuring php?
Ah, no, type: make libgd.a
in your gd dir.
Ok, making libgd.a worked and php
Make php failed:
Make sure you don't have gd-1.x header files in /usr/local/include
-Rasmus
--
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
Make php failed:
Make sure you don't have gd-1.x header files in /usr/local/include
Excellent! That worked.
For everyone else, my documentation for installing:
Apache with GD, zlib, png, jpg, tiff, pdf support
is at:
ok,
if i understand you correctly, you're taking data from a form and want to
check that it is not already in the database, right?
then why don't you include the submitted vars in the query like this:
$sql = SELECT First_Name, Last_Name, Address FROM $table_name
WHERE (Family_Position = 'H' or
On linux 6.1, I've installed fresh builds of postgres 6.0.4, apache 1.3.20,
php 4.0.6.
Get postgresql 7.1.2, make and install.
Configure php --with-pgsql
./configure --help
Will show you all available configure options.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hello,
excuse my ignorance on that field, but if I use md5 in a java server page
(jsp), can I decrypt it
in php ? Is the implemantation of md5 the same on both language ?
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
excuse my ignorance on that field, but if I use md5 in a java server page
(jsp), can I decrypt it
in php ? Is the implemantation of md5 the same on both language ?
Sure, but you don't decrypt md5. You md5 again and compare the two md5's
-Rasmus
--
PHP General Mailing List
Hello !
Is there any free PHP/MySQL Web Hosting without add ? ... or ... at least ,
I could have the choice to choose where to place their banner on my pages
?
Thanks...
Arcad.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Sorry, I meant compare and I wrote decrypt,
We will:
- encrypt in jsp
- compare in php
I am curious about the should you wrote
py
- Original Message -
From: Joe Conway [EMAIL PROTECTED]
To: pierre-yves [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, August 04, 2001 10:03 PM
Sveiki, Arcadius,
2001 m. rugpjûèio 5 d.(sekmadienis), 14:26:56, jûs raðëte:
AA Hello !
AA Is there any free PHP/MySQL Web Hosting without add ? ... or ... at least ,
AA I could have the choice to choose where to place their banner on my pages
AA ?
AA Thanks...
AA Arcad.
www.f2s.com
Hello!
Let me introduce myself. My name is Mr. Rajesh Tavakari from
www.website-promotion-ranking-services.com, and you can contact
me at [EMAIL PROTECTED] or [EMAIL PROTECTED]
I enjoyed visiting your interesting site at
http://www.e-gineer.com/articles/php-hackers-paradise-revisited.phtml.
Since I am tired of switching from one web host to another because of the
limitations that are imposed... does anybody know of a host provider that
supports PHP MySQL and that, differently from my current host, will also
allow me to upload files and install the IMAP functions?
Damiano
--
I am trying to compile and install php-4.0.6 on a redhat-7.1 linux-2.4.3
server using the following for configure:
./configure --prefix=/usr --with-apxs=/usr/sbin/
apxs --enable-versioning --with-mysql --enable-track-vars --with-xml
--disable-
debug --enable-pic --enable-shared
Making all in main
make: don't know how to make
../php/php4-current/php4/ext/standard/php_output.h. Stop
__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
PHP General
Perhaps the manual should be made to reflect this since, my
understanding came from the online version of the manual.
Sterling
Philip Olson wrote:
Yes, this is essentially true. Zeev posted this to the list awhile ago,
see the following :
I've made some scripts that let a user work on a MySQL database via the
web. When a web user clicks a button in an HTML form, a new page is
loaded which runs PHP scripts which in turn manipulate the database
accourding to the users's request.
However I'm worried that the scripts may halt if
how can i to make my page as a browser for another
pages
i mean i want as a proxy
how can i do that
__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
PHP General Mailing
75 matches
Mail list logo