I am interested in detecting when the session expires and displaying a
your session has expired... page. If anyone can recommend how to do this
or recommend a tutorial it would be greatly appreciated!
Thanks!
-r
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
Thus, the way to logout is to maintain a dynamic unique dataset of
Realms and require authentication in a new Realm for any user that is
logged out
Yes, Richard recently advised me simialry. I set a cookie on a successful
login and then delete it on a logout. If the cookie is not present when
Clean Suse Linux install !
Get the following from phpinfo.php
PHP Version 4.0.4pl1
'./configure' '--prefix=/usr' '--bindir=/usr/bin' '--libdir=/usr/lib'
'--with-config-file-path=/etc' '--with-exec-dir=%{libdir}/php/bin'
'--with-pgsql=/usr' '--with-mysql=/usr' '--with-gd=yes'
Hello,
How can I find out from witch country user is based on user ip address? I
need this from php script.
Thanks,
Mihailo.
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP General Mailing List
How can I find out from witch country user is based on user ip address? I
need this from php script.
You can't. You can try with their hostname.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
so why when I try ImageTTFText do I get call to unknown function php must
be compiled with ttf ??
Try this first:
http://database.sourceforge.net/Installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html
Possibly also try configuring without somany options initially.
--
PHP General
hi.
how I compare two times with php?
12:23:50 - 13:12:00 = ???
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]
It's not possible to be assured of doing this properly for the following
reason..
1. not all hosts translate to IP address
2. Soem host names are often meaningless (eg .com)
The way to do it is basically this
1. use gethostbyaddr() (http://www.php.net/gethostbyaddr) to do a reverse
DNS from IP
hi.
you can find the field that any relationship with other
and place them in one table.
for example if the name and work have relate with
eachother ,build table with that 2 fields.
this problem solve with build 1nf,2nf,3nf,...
(normalization for tables).
I am software engineering,work on
hi.
how I compare two times with php?
12:23:50 - 13:12:00 = ???
Convert them to timestamps (unix timestamps) and subtract the two.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
Hello all. Does anyone know how i can set up the from and Return
Address fields in the mail functions in php?
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
Hello all. Does anyone know how i can set up the from and Return
Address fields in the mail functions in php?
mail([EMAIL PROTECTED], subject., body., From: php@$SERVER_NAME\n);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
You can set them using the header field in the mail function.
Checkout http://www.php.net/mail
Jan De Luyck
-Original Message-
From: PHP [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 11:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP] mail from
Hello all. Does anyone
HI.
I'd like to know if I can create 2D images with the
image function of GD Library.
Regards.
Augusto
___
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo!
Is it possible to surpress the
X-Powered-By: PHP/4.0.6
Content-type: text/html
text when running php from the commandline?
Thanks.
Nick.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
php -q
try php -h for other options - if that fails, there's always the manual -
http://www.php.net/manual
- Original Message -
From: Nick Davies [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 20, 2001 8:06 PM
Subject: [PHP] php executable
Is it possible to surpress
Onderwerp:[PHP] Function to Build Trees
A most interesting question!
Given a multidimensional array with words as keys, I want to match
the values of each array with the keys of the array and build a new
array that reflects these relationships as a sort of tree. So, in
Use the header field in the mail function:
$header =From: [EMAIL PROTECTED]\n;
$header .=X-Sender: [EMAIL PROTECTED]\n;
$header .=X-Mailer: PHP\n;
$header .=Reply-To: [EMAIL PROTECTED]\n;
$header .=Return-Path: [EMAIL PROTECTED]\n;
...
mail($recipient, $subject, $message,
Hi
I am a newbie to php + mysql and wanted to ask for some help on a
particular item which I can't seem to find the right key in the
documentation. I am trying to set up a simple QA system with an entry
page where one can select to either have all questions answers from a
mysql database
You should use the like clause whch allows the use of wild cards %
and ?.
Have a look at the MySQL manual, it should be explained there.
HTH
Gianluca
WS I am a newbie to php + mysql and wanted to ask for some help on a
WS particular item which I can't seem to find the right key in the
% works as a wildcard in mySQL.
Example:
SELECT * FROM table WHERE Question LIKE '%life%' would return all rows
with field Question containing string life.
Niklas
-Original Message-
From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
Sent: 20. elokuuta 2001 13:22
To: php-general
You can use the SQL keyword LIKE for this. Have a look at the MySQL docs
for full info, but the idea is you'd do something like:
$query = SELECT * FROM table WHERE question LIKE '%. $search_phrase. %';
HTH
Jon
-Original Message-
From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
Sent:
On Mon, 20 Aug 2001 13:35:39 +0300, Niklas Lampén wrote:
% works as a wildcard in mySQL.
Example:
SELECT * FROM table WHERE Question LIKE '%life%' would return all rows
with field Question containing string life.
Hello all helpers,
well ... thanks to those who have already replied and helped
Notice that if a user enters
life anger
in the search field
SELECT * FROM table WHERE question LIKE %life anger% none of the
questions
[1] How do you deal with anger?
[2] Ever been full of anger in your life?
[3] Is life always easy?
will match. For that you must split the query by and
This can be solved by building a function to split users entry to pieces so
that the query will be like
SELECT * FROM table WHERE Question LIKE '%word1%' || Question LIKE
'%word2%' || Question.
if only one of the words have to match the Question field.
Niklas Lampén
-Original
I am using PHP 4, I have a date which I am adding to a MYSQL db, I have that
bit sorted, I am trying to calculate an 2 expiry dates, one that is 1 year
and 11 months ahead of the 1st date and another that is 2 years ahead of the
1st date.
Any Ideas, I have seen lots of scripts for adding days
select * from yourtable where question like '%life%'
-- Original Message --
From: Wolfgang Schneider [EMAIL PROTECTED]
Reply-To: Wolfgang Schneider [EMAIL PROTECTED]
Date: Mon, 20 Aug 2001 12:22:15 +0200
Hi
I am a newbie to php + mysql and wanted to ask
On Mon, Aug 20, 2001 at 12:12:15PM +0100, Peter Allum wrote:
I am using PHP 4, I have a date which I am adding to a MYSQL db, I have that
bit sorted, I am trying to calculate an 2 expiry dates, one that is 1 year
and 11 months ahead of the 1st date and another that is 2 years ahead of the
1st
/usr/bin/php -q
...I believe.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
From: Nick Davies [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 20, 2001 6:06 AM
Greetings.
I am experiencing an odd issue that I am not sure is Apache or PHP
(php-4.0.4pl1-9) related.
The issue is that every once in a while I get a full copy of a page in my
system error_log. That is, not the error_log for the site the page exists
on, but the /var/log/httpd/error_log.
I
Dear sirs;
i have a simple snippet of code :
?
session_start();
$a = 10;
session_register(a);
?
i am trying to understand how do session work.
Accessing at this document directly from the server (it is a SuSE 7.2 PE -
running PHP 4.0.4
and apache 1.3.9) i find out the following
Simply user the GetVariable function in Flash.
The targeting file must be a PHP-File.
This File should reads out the Informations you want.
If the requests are also variable, call the file through
GET and add ?query=date to the filename.
The file must echo this...
variable=somethingcat=dog
Is there any way to tell ImagePNG() to create PNG24 images instead of PNG8
images? Seems that ImageCreateFromPNG() can read PNG24, but ImagePNG()
writes only PNG8.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Hi Folks,
Can't find an answer in the archives...
Can php parse DW templates?
ie. I want only a small amount of code to be editable with the ?php ? tag.
Dreamweaver places the following code to identify editable regions:
!-- #BeginEditable Name_of_region --
\\ editable code here
!-- #EndEditable
start your session before sending any html output to browser
check that register_globals is on
if not use $HTTP_SESSION_VARS(a) instead to reference your session var
assign a value after having initialiazed your var not before
-- Original Message --
From:
I think you should look at Smarty Template Engine:
http://www.phpinsider.com/php/code/Smarty/
Hope this helps.
Regards
--
Darius Ivanauskas
On Mon, 20 Aug 2001, -:-Doigy-:- wrote:
Hi Folks,
Can't find an answer in the archives...
Can php parse DW templates?
ie. I want only a small amount
start your session before sending any html output to browser
Okay. This solves the problem w/the warnings
check that register_globals is on
It is actually on
if not use $HTTP_SESSION_VARS(a) instead to reference your session var
assign a value after having initialiazed your var not
Steve Werby wrote:
Others on the list made good suggestions about the database structure. The
URL you referenced reloads the whole page. I've seen other sites achieve
the same functionality by loading the elements of the second, third and
fourth select boxes into javascript arrays which
Hi,
please, how to run php function which update mysql db from command line?
Thanks in advance
--
Moise Bertrand TACHAGO
Computer scientist, Volunteer DBMS Specialist
SDNP Cameroon, 506 Hajal Center Building, Yaounde CAMEROON
phone (237)22 24 90
E_mails [EMAIL PROTECTED]
[EMAIL
Have you tried this?
header(Content-Type: application/x-octet-stream);
header(Content-Description: MP3 file);
David Minor wrote:
Can anybody tell me why this doesn't work in IE? I need to force download
mp3 files instead of IE5.5 trying to apply a helper app. This code works
fine for NN.
First of all, you need to have php installed WITHOUT a webserver. If you
haven't done this already, download php, and this should be your
./configure command:
./configure --with-mysql
make; make install
your php binary will be in /usr/local/lib/php/bin/php (I think). Then put
this in
Dave [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
please hack apart this solution and point out the error/insecure nature of
the
setup.
goal, provide php access to name based virtual hosts on FreeBSD boxes
problem, security of PHP access to base system
With 4.04 I had PNG working fine and could create images in a cron job I was running.
When we upgraded to 4.06 we seemed to have lost the ability. While calling my PHP
file up in the browser, it creates the image but my cron job keeps failing with this
error:
ImageCreateFromPng: No PNG
Title: RE: [PHP] new one is it ??
Hiya again, Erik:
Here's the barely-tested but apparently functional Code Red detector. I added some variables at the top for configuring email destinations. The important change is that it will query ARIN, RIPE, and APNIC until it finds a reasonable
I have had the same problem with no resolution is this a BUG?
At 10:21 AM 8/20/01 -0400, Jeff Lewis wrote:
With 4.04 I had PNG working fine and could create images in a cron job I
was running. When we upgraded to 4.06 we seemed to have lost the
ability. While calling my PHP file up in the
I can't figure out why the if statement isn't working. The page displays
the same with or without the if statement. Any idea what I'm doing wrong?
I attached the code in a word document.
Thank you, Shawna
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Here's the attachment - I hate it when I do that! :)
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 8/20/01 10:25 AM
Subject: [PHP] while loop with if statement
I can't figure out why the if statement isn't working. The page
displays
the same with or without
PHP already ignores those SGML comments. They're just there for the
Dreamweaver editor to know where the editable regions are.
- Tim
On Mon, 2001-08-20 at 08:45, -:-Doigy-:- wrote:
Hi Folks,
Can't find an answer in the archives...
Can php parse DW templates?
ie. I want only a small
did you do it again ?
:-)
pasting you code is ok ...
Steve
[EMAIL PROTECTED] wrote in message
BB6D932A42D6D211B4AC0090274EBB1D2EF0EE@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1D2EF0EE@GLOBAL1...
Here's the attachment - I hate it when I do that! :)
-Original Message-
From:
Thanks Steve! :) Here's the code:
?
$results = mysql_db_query($db, select * from $table where $query order
by update_datetime desc limit $offset, 10);
while($one = mysql_fetch_array($results)){
$id=$one[id];
$title=$one[title];
$description=$one[description];
looks like some GD options were changed between builds.
check phpinfo() to find out how PHP was compiled,
and what version GD it's using.
-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 10:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PNG
Alex,
If your using sessions then just use session_destroy(); in your logout.
chuck
- Original Message -
From: Alex Sofronie [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Sunday, August 19, 2001 4:25 PM
Subject: [PHP] PHP based authentification ---
Hi all!
How
I am interested in speaking to anyone who has used PHP's gettext()
functionality on a fairly large website, preferably one that uses CVS for
development.
We are in the process of getting our site ready for i18n, and want to use
gettext(). However, I'm a bit unsure on how to set up the file
try using mysql_num_rows() to get the number of rows returned by the query.
you need to supply it with the identifier for the query not the sql you sent
to the query. not exactly sure what you're trying to do though ...
Steve
[EMAIL PROTECTED] wrote in message
hi.
I work in ISP and work on distrbuted database,
I want to secure it.
I search and find that freebsd work for help linux for secure it.
but I dont know how is it?
I define group and user in shell not in php.
my question is:
how do I do it with php?
and how freebsd help me??
thanks much.
okay - read all the code now.
this might be a better way:
?php
$results = mysql_db_query($db, select * from $table where $query order
by update_datetime desc limit $offset, 10);
$one = mysql_fetch_array($results);
$numrows=mysql_num_rows($one);// get the number of results
if ($numrows0)
Hi,
I would like to know how to crop this string from this,
$string = \home\folder1\folder2\page1.php
to this
$string = page1.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
basename()
On Mon, 20 Aug 2001, Jeremy Morano wrote:
Hi,
I would like to know how to crop this string from this,
$string = \home\folder1\folder2\page1.php
to this
$string = page1.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
At 11:02 AM -0400 8/20/01, [EMAIL PROTECTED] wrote:
?
$results = mysql_db_query($db, select * from $table where $query order
by update_datetime desc limit $offset, 10);
while($one = mysql_fetch_array($results)){
$id=$one[id];
$title=$one[title];
Hi all,
How could I use a script on the console - to interact, and take the users
input. Like a shell/perl script - but in php?
Bill.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
#!/path/to/php -q
?PHP
echo Hello World!\n;
?
On Mon, Aug 20, 2001 at 05:14:22PM +0100, Bill Brigden wrote:
Hi all,
How could I use a script on the console - to interact, and take the users
input. Like a shell/perl script - but in php?
Bill.
--
PHP General Mailing List
Or you could just buy from http://www.plumbdesign.com/
or write a PHP SDK for them.
:-)
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 4:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Function to Build Trees
Onderwerp:
Hi,
I'm trying to use crypt to make MD5 passwords and am having troubles. I
read that I need to have MD5 crypt support at ./configure time of
installation. I noticed from configure that I get this: checking for MD5
crypt... no.
I am running SuSE, what package do I need to get MD5
Wolfgang,
Use LIKE '%life%' as in
SELECT somecolumn FROM mytable WHERE LOWER(mycolumn) LIKE '%life%'
Don't forget to compare same case strings.
Johan Alfredeen
www.pongworld.com
From mySQL manual:
mysql SELECT * FROM tbl_name WHERE set_col LIKE '%value%';
mysql SELECT * FROM tbl_name WHERE
On which platform do you run?
set display_startup_errors = On
so that you eventually will see any php initialization problem (like the
folder where session data is stored being not accessible because of
permission restrictions...I say that because I ran into this problem)
to recap, code should
Does anyone know some good programs (or other ways) to download an entire
dynamic website?
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
I'm trying to get a working... informational dialog or window going
with my PHP page but I'm not getting anywhere. Here's the situation:
When the user clicks on a link that has to gunzip a very large file, I
want a popup to say Working... while the file is uncompressing.
Then, when the file is
on 8/20/01 12:07 PM, [EMAIL PROTECTED] wrote:
This gave the same result: it launches the helper app.
Please help!!
Regards.
dm
Have you tried this?
header(Content-Type: application/x-octet-stream);
header(Content-Description: MP3 file);
David Minor wrote:
Can anybody tell me why
When I use the fsockopen command onto an IP address that does not
exist, the page will freeze until it's execution time is up. Right now
I have it executing the external ping command and reading the results
from that. Does anyone have a better idea using maybe a OS-independent
scanner or some
Hello,
what he explained with GetVariable works fine. I just want to add that you
do the opposite,
sending value to flash via php, by echoing the querystring in a php file and
use LoadVariable
to read the value and display it in the flash movie.
py
- Original Message -
From: Tribun
Hello,
Can someone please show me how to use basename() correctly?
This is what I am doing:
$file = basename ($path);
$file = basename ($path,.php3);
This is the error I'm gettig:
Warning: Wrong parameter count for basename() in
/home/virtual/ppcu/home/httpd/html/jeremy/stats4.php on line 43
Hello all,
Is is possible to just append to the end of a file using
fwrite??? Currently I am reading the contents for the file into an array
then add to the array what I want and rewrite the file from the array...
And well that is just silly... How else would I do this??
--
PHP General
When I use Javascript with PHP i run into one problem. When I get the data i
need from the database it often has a lot of br and \n (new lines) in it.
The br are no problem when converting a string to a Javascript string, but
the \n are. The string has to be all in one line.
example:
? $temp =
use nl2br()
http://www.php.net/nl2br
or, alternatively, use a regex to strip out the newlines
hope this helps.
- Original Message -
From: Jens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 20, 2001 11:15
Subject: [PHP] converting str with \n to one line str??
When I
You could use str_replace().
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 20 Aug 2001 20:15:54 +0200
Jens [EMAIL PROTECTED] wrote:
When I use Javascript with PHP i run into one problem. When I get the
data i
need from the database it often has
when you open the file with fopen(), use the 'a' (writing only) or 'a+'
(reading and writing) arguments
ie:
int fopen (somefile.txt, a);
...
*'a' - Open for writing only; place the file pointer at the end of the
file.
If the file does not exist, attempt to create it.
*'a+' - Open
Thank you for your time
I did not even look at the fopen... DUH
Sorry about not researching properly...
At 11:14 AM 8/20/01 -0700, Anton Stroganov wrote:
when you open the file with fopen(), use the 'a' (writing only) or 'a+'
(reading and writing) arguments
ie:
int fopen (somefile.txt, a);
Hello,
I have read http://www.php.net/manual/en/function.setcookie.php and did not
find out a quick solution on how
to set a cookie that will NEVER expires ?
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Please try this:
?
echo 996448234192168122==996448234192168125;
?
I get true as a result. How's that possible?
But if I do:
echo 996448234192168122===996448234192168125;
then I get false as expected.
php 4.0.6, Debian Potatoe Linux.
Does this happen only on my computer?
thanks,
ratko
--
I don't believe that can be it. I have forms working under Netscape 4+ all day
with no problems, all unnamed. I would bet it's an html issue related to the
editor you're using to create the forms. I'd like to see the html that fails.
Steve Lawson wrote:
Try giving the form a name?
I normally
you are right.
?php
if (6448234192168122==6448234192168125) {
echo 'A' ;
} else {
echo 'B' ;
}
?
I tested with 99644xxx and 964 It printed A.
However, if you are down to 644xxx is prints B which is
correct. Perhaps a limitation of 16 digits.
?
good catch
--- Ratko [EMAIL PROTECTED]
Hi,
I am sure there is an easy way to do this...
But when my script is done doing whatever I want it to do - RATHER than
print text and all to a page, I want the browser (within the same window) to
go to a specific URL
Can this be done - let's say for example to: http://www.yahoo.com
Thanks!
http://www.php.net/manual/en/function.header.php
Hi,
I am sure there is an easy way to do this...
But when my script is done doing whatever I want it to do - RATHER than
print text and all to a page, I want the browser (within the same window) to
go to a specific URL
Can this be done
header(Location: http://location.com/blah.php;);
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 20 Aug 2001 13:56:25 -0500
RoyW [EMAIL PROTECTED] wrote:
Hi,
I am sure there is an easy way to do this...
But when my script is done doing
you're there already.
have an if statement on mail.php:
if (isset($posted_info))
{
// send mail here
// do db insert here
} // end of if
Steve
Jack [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Dear all
I was trying to get a user input form to insert to
Make sure you pass fsockopen() the optional timeout parameter, and that
the timeout is less than the maximum script execution time.
See http://www.php.net/manual/en/function.fsockopen.php
Ben
On Monday, August 20, 2001, at 12:49 PM, brian ellis wrote:
When I use the fsockopen command onto
Read in the mySQL manual at
/mysql_manual_split/manual-split/manual_Reference.html#CREATE_TABLE
etc
ie.
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name [(create_definition,...)]
[table_options] [select_statement]
ALTER [IGNORE] TABLE tbl_name alter_spec [, alter_spec ...]
and more ...
$file = basename ($path);
$file = $file.php3;
Jeremy Morano wrote:
Hello,
Can someone please show me how to use basename() correctly?
This is what I am doing:
$file = basename ($path);
$file = basename ($path,.php3);
This is the error I'm gettig:
Warning: Wrong parameter count for
Help me!
I'm working with sessions and having some difficulty. I have my
session_register(variable) at the top of page 1 and page 2.
I use the session_unregister(variable) at the bottom of page 2, everything
seems to work fine at this point. The problem is,
sometimes the user needs to visit
Hi from a recent PHP convert,
Having a heck of a time declaring and accessing 2 dimensional info in an array.
any input on where to start looking for the answer would be greatly appreciated.
I want to have a base array of 5 elements. The first 4 elements are variables, and the
fifth is an
Just out of curiosity, is there anyone here that is using phpwebhosting.com
to host their site? Due to ALL the problems with the DSL in my area, I am
thinking about not hosting my own site anymore and phpwebhosting.com seems
to be what I need, I am just looking for some input about any problems
I realize that this isn't a PHP issue, but I'd like find out they
why's/wherefore's of this:
The W3C HTM 4x spec(s) say that when using the file type on a form
input element, User agents may use the value of the value attribute
as the initial file name.
I can't get Mozilla, Netscape, nor IE to
Make sure you have GD 2.0.1 and PHP 4.0.6 or later for creating true-color
PNGs, per the
manual:
http://php.net/manual/en/function.imagecreatetruecolor.php
-Andy
-Original Message-
From: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]]
Is there any way to tell ImagePNG() to create
I am having a little problem with Regular Expressions
In the function below I am trying to make sure only these characters
are being used in the hostname. If the hostname contains
letters,digits,periods and minus signs then it is fine and we can
let the process continue. If it has
Hello
I have Following code
function updateHitCounter($id,$PHPSESSID,$type){
$flag=$this-validateSession($PHPSESSID);
if($flag==1){
include(admin/config.inc.php);
$connection = mysql_connect($host,$username,$password);
if ($connection == false){
echo mysql_errno().: .mysql_error().BR;
exit;
}
-Original Message-
From: Ratko [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Is this a bug?
Please try this:
?
echo 996448234192168122==996448234192168125;
?
I get true as a result. How's that possible?
But if I do:
I'm writing a script to post/validate payments to www.clickbank.com
They provide a method for passing encrypted data to them, and if you get it
back on your thank you page, you know 100% that the customer has paid.
Unfortunately, the validation routines are only available in Perl and C...
Hello,
I have created a predictionscompetition and some code counts te total score of a match
of a person.
On the screen it workes, but in de database it goes wrong. Each person gets the total
of the last person. There must be something wrong with the update statement.
I hope someone can help
No, I'm just using PHP_AUTH_USER and PHP_AUTH PW and i am trying to
logout... The session_destroy() is not working.
--
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
Hi,
How do I call on a switch from within an html-embedded
page?
Say I have a large php script that first verifies a
login, then allows templates for INSERTING, UPDATING,
DELETING various records-- I need to have separate
templates load for each set of steps, but I only have
the vaguest of
1 - 100 of 163 matches
Mail list logo