php-general Digest 12 Apr 2004 03:58:45 - Issue 2700
Topics (messages 183124 through 183139):
Re: trying to output a hyperlink
183124 by: Michal Migurski
Re: adding items to a list or menu
183125 by: Robert
PHP5 RC1 rpms for Mandrake 10
183126 by: Andrei Verovski (a
Richard,
You would do that by looking at the user_agent parameter that is being send
by the browser to the server. PHP automatically places the user_agent
information in the superglobal: $_SERVER['HTTP_USER_AGENT']. The user_agent
string might seems cryptic, therefore PHP provides you a built-in f
How are you passing the name through?? If using a form to do it then just
use the $_POST[name] or $_GET[name] in the logfile. You have to have the
name pull in the previous page, just pass it through:
or:
got it will try that instead..
>
> - Original Message -
> From: "John W. Holmes"
Hi all,
This is just a general question to get some ideas from the "wider
world" as it were.
Say you've finished your site. It looks lovely and works perfectly.
You have a CSS file for modern browsers and one that degrades for
text-only devices also. You even have a special "small width" version
got it will try that instead..
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "Andy B" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, April 11, 2004 8:23 PM
Subject: Re: [PHP] creating log files out of a delete statement
> Andy B wrote:
>
> > i have a sec
> Andy B wrote:
>
>> //log function
>> //writes log files
>>
>> function WriteLog($LogType){
>> switch($LogType:
>> case "login":
>> //use session vars here...
>> }
>
> Yes.
>
yes in the latest, all request methods are in the super global scope,
$_POST, $_GET, $_SERVER, $_SESSION and constants
Andy B wrote:
//log function
//writes log files
function WriteLog($LogType){
switch($LogType:
case "login":
//use session vars here...
}
Yes.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--
Andy B wrote:
i have a section of a website that deletes records from a mysql table...
right now all the query is is a delete statement but i need to make a "log
file" in this format:
current time::username who executed delete:: deleted(name of record)::delete
completed
or delete failed depending
didnt know if it was possible to use $_SESSION vars in that function or any
user defined functions for that matter...
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 11, 2004 8:11 PM
Subject: Re: [PHP] using $_SESSION inside of user functions
> //log function
> //writes log files
>
> function WriteLog($LogType){
> switch($LogType:
> case "login":
> //use session vars here...
> }
>
What is the question ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
//log function
//writes log files
function WriteLog($LogType){
switch($LogType:
case "login":
//use session vars here...
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi...
i have a section of a website that deletes records from a mysql table...
right now all the query is is a delete statement but i need to make a "log
file" in this format:
current time::username who executed delete:: deleted(name of record)::delete
completed
or delete failed depending on what
about GD, Warning: imagecreatefromjpeg():
'/var/www/html/datos/2004/02/crio25.jpg' is not a valid JPEG file. how can i
solve it please?
image pass the EOF and BOF test, so this is not the
problem :)
here you got the image with problems , i'm sorry
about the content of image...
http:/
about GD, Warning: imagecreatefromjpeg(): '/var/www/html/datos/2004/02/crio25.jpg' is
not a valid JPEG file. how can i solve it please?
image pass the EOF and BOF test, so this is not the problem :)
Hi,
Anyone can suggest me where I can get PHP5 RC1 rpms (with possible max# of
extensions) for Mandrake 10? I have tried to make them myself, but run into
numerous problems.
Thanks in advance for any suggestion(s)
Andrei Verovski (aka MacGuru)
--
PHP General Mailing List (http://www.php.net/
"R.G. Vervoort" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Not sure if it is a php question but since i am working in php here it is.
>
> Ho can i add items to (the item label=visual text and the value=index
> number) a list object on a website.
>
> I am having a list with
>Although, it could be shortened even more, to:
>
>Click here";
> echo $link;?>
Or still more, to:
Click Here
...which starts to approach the original legibility of HTML for me, and
the syntax hilighting in BBEdit is corrrect. I've been tending to use
constructions like that instead
php-general Digest 11 Apr 2004 15:02:14 - Issue 2699
Topics (messages 183097 through 183123):
timestamp to readabe date and time ?
183097 by: Damian Brown
183098 by: Ryan A
183099 by: Andy Ladouceur
183104 by: Damian Brown
183106 by: Andy Ladouceur
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sunday 11 Apr 2004 10:35, David Robley wrote:
> [EMAIL PROTECTED] (Elfyn McBratney) wrote in
> > On Saturday 10 Apr 2004 00:39, -{ Rene Brehmer }- wrote:
> >> I'll second that ... keep getting this in response from them:
> >>
> >> Thank you !!
> >>
OOP? Stay tuned for PHP5
-Original Message-
From: jdavis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 1:45 PM
To: PHP List
Subject: [PHP] PHP OO concepts
Hello,
I have am checking out PHP OOP and it's pretty smooth. I have a decent
amount of Java experience so PHP OOP is
Damian Brown schrieb:
I need to output a date and time that shows more clearly than just
outputting the timestamp
what is the correct way to go about it ?
I have looked at getdate(), but I haven't fathomed it out yet !
--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in
found problem...apache died somehow for some reasonall better now
- Original Message -
From: "Andy B" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 11, 2004 6:32 AM
Subject: [PHP] cannot find server even though the page is there?
> hi...
> i have a page on my test
[EMAIL PROTECTED] (Elfyn McBratney) wrote in
news:[EMAIL PROTECTED]:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> [postmaster@ added to Cc:]
>
> Hello,
>
> On Saturday 10 Apr 2004 00:39, -{ Rene Brehmer }- wrote:
>> I'll second that ... keep getting this in response from them:
>>
>> T
hi...
i have a page on my test web server... it has php/mysql stuff in it that
points to another db elsewhere that i have remote access to... my ip
address/domain name exist but when i go to it to test the page it says
cannot find server?? im lost now...it worked last night why not now...
--
PHP
[EMAIL PROTECTED] (Cosmin) wrote in news:[EMAIL PROTECTED]:
> sorry for the off topic but i didn't knew where to ask this.
> does anyone know what's happening with the php-gtk mailing list. I
> haven't received a message for more than a month now and any message
> that i try to send comes back sa
On 11-Apr-2004 Ryan A wrote:
>
> If you are using timestamp(14), here is how i do it: (after
the
> select)
>
> if(($row = mysql_fetch_row($result))>=1)
> {
> $d_year = substr($row[4],0,4);
> $d_month = substr($row[4],4,2);
> $d_day = substr($row[4],6,2);
> $d_hours = substr($row[4]
26 matches
Mail list logo