George,
Good point. I actually like your idea a lot. I have never thought about
using $SCRIPT_NAME.
You also mentioned using $PATH_INFO to implement elegant (and
search-engine safe) urls... below. Can you give me a couple of examples
of how I might do this? I always hated the GET strings at the
-Original Message-
From: Janet Valade [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 12:15 AM
To: gaukia 345; [EMAIL PROTECTED]
Subject: Re: [PHP] How to start a secure HTTP session?
To have a secure HTTP session, you must be communicating with a secure
web
server. This is
On careful reading of the php.ini file, I now realize that the settings
for the From is for WIN32 *only*. So, as a newbie to the world or
Linux/Unix, I am not sure where I place the setting for the default
From. I can add it as the fourth argument in the mail() function, but
I would prefer
hi
i'm testing the same thing under windows, the output is compressed but the browsers
prompt me with a download window , it seems they do not support this
compression...is this working under windows ???
18/02/2002 15:15:32, Rein Velt [EMAIL PROTECTED] wrote:
Dear PHP coders,
i am using
Hello,
How can i find out the difference between two dates.
I am having the date like this
$str=10-01-2001;
$str1=01-02-2002;
I need to find out the difference between the date,month and year.
If anyone know the solution for this problem plz tell me
-Uma
--
PHP General Mailing
There was a plugin for homesite to work with PHP,
can somebody help me please?
Jeroen
Read this article at PHPbuilder:
http://www.phpbuilder.com/columns/akent2610.php3
- D
- Original Message -
From: Uma Shankari T. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 19, 2002 9:50 AM
Subject: [PHP] Difference between two dates
Hello,
How
I need insert some variable ito log.txt file but every item (variable) must
be on other line
how to do this ?
$fp1 = Fopen(D:\\log.txt,a+);
fwrite($fp1,$start);
fwrite($fp1,$array[0]);
fwrite($fp1,$array[1]);
.
fwrite($fp1,$end);
Fclose($fp1);
roman
--
PHP General Mailing
Try this :
$d1=strtotime('d-m-Y',$str);
$d2=strtotime('d-m-Y',$str1);
var_dump($d2-$d1);
Best regards,
Andrey Hristov
- Original Message -
From: Uma Shankari T. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 19, 2002 10:50 AM
Subject: [PHP] Difference between two
What exactly are you looking for? I think that syntax coloring is
automatic for any file with a .php file extension since Homesite 4.
If you are looking for the PHP Manual formatted for HS or an expression
builder, check out:
http://www.wilk4.com/asp4hs/php4hs.htm
HTH
-jeff
At 09:50
three hours running on win2k not on a linux-system. the problem is that
the tiff-file has a CMYK-format an not RGB. i guess this convert takes
such a long time.
is there any other way?
-Ursprungliche Nachricht-
Von: Ironfroggy [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 19.
Help
Does anyone know where I can get a simple symbol font which is .ttf and unicode
compatible. Seems that my php graphic program is very sensitive to ttf problems.
It'll take one or two wingdings in imagettftext() before it up and dies.
Your help will be greatly appreciated.
Hugh
I need insert some variable ito log.txt file but every item (variable) must
be on other line
how to do this ?
If I am understanding your question correctly, you need to add a newline
character (\n) at then end every line. Like so:
$fp1 = Fopen(D:\\log.txt,a+);
fwrite($fp1,$start\n);
What exactly are you looking for? I think that syntax coloring is
automatic for any file with a .php file extension since Homesite 4.
If you are looking for the PHP Manual formatted for HS or an expression
builder, check out:
http://www.wilk4.com/asp4hs/php4hs.htm
HTH
-jeff
What symbols are you trying to use? Verdana is good enough for most unicode characters.
hugh danaher wrote:
Help
Does anyone know where I can get a simple symbol font which is .ttf and unicode
compatible. Seems that my php graphic program is very sensitive to ttf problems.
It'll take one
Hello,
If i executed code then nothing will be displayed...
-Uma
On Tue, 19 Feb 2002, Andrey Hristov wrote:
AHTry this :
AH$d1=strtotime('d-m-Y',$str);
AH$d2=strtotime('d-m-Y',$str1);
AHvar_dump($d2-$d1);
AH
AH
AHBest regards,
AHAndrey Hristov
AH
AH- Original Message -
The following code shows exactly what I want in IE5 but does not in
Netscape. I have tried various combinations of slashes and quotes but can't
get it to display properly. Can anyone show me the changes I need to make.
Code:
echo h6,$name, nbsp nbsp, E-mail:, nbsp,$email, nbsp
nbsp,$date, nbsp
On Tue, 19 Feb 2002 09:50, Narvaez, Teresa did align ASCII characters thusly:
When I execute the code below, why is PHP_SELF undefined? I will appretiate
any help on this. I can get its value by:
echo $_SERVER[PHP_SELF];Thanks in advance! -Teresa
HTML
HEAD
TITLEFeedback/TITLE
The following code shows exactly what I want in IE5 but does not in
Netscape. I have tried various combinations of slashes and quotes but can't
get it to display properly. Can anyone show me the changes I need to make.
HTML entities begin with a (ampersand) and end with a ; (semicolon).
You
The problem isn't php related - its HTML.
Try changing nbsp for nbsp;
The semicolon is, strictly speaking, required for proper HTML syntax, but IE lets you
get away with not having it.
I guess Netscape doesn't.
HTH,
Richy
==
Richard Black
Systems
Thank you - everything alright now. I guess this is what happens when you
learn using wiziwig editors.
--
Alex Francis
Cameron Design
35, Drumillan Hill
Greenock PA16 0XD
Tel 01475 798106
[EMAIL PROTECTED]
http://www.camerondesign.co.uk
This message is sent in confidence for the addressee
Hi!
I have seen lots of webiste with a sign [EMAIL PROTECTED] 2002 etc...
if I would like to do that, do I have to register myself to a certain
company or.. I just put it on my website?
Thanks!
regards
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi php4-Installers,
what reason might cause the subject above ?
We have installed (and working well):
o gcc version 2.95.3 20010315 (release)
o perl, version 5.003 with EMBED built under aix
o OpenSSL 0.9.6
o mm-1.1.3
o Apache-1.3.23 configured with:
time CC=gcc CFLAGS=-O ./configure \
I just send this again, just incase my email doesn't get through.
thanks
Dani wrote:
Hi!
I have seen lots of webiste with a sign [EMAIL PROTECTED] 2002 etc...
if I would like to do that, do I have to register myself to a certain
company or.. I just put it on my website?
Thanks!
You don´t have to register anywhere. You don´t even have to add a copyright
notice. But if you do you are signalling that the content of the website is
protected by copyright laws. No more complicated than that...
- D
- Original Message -
From: Dani [EMAIL PROTECTED]
To: [EMAIL
thanks for the reply!
Daniel Alsén wrote:
You don´t have to register anywhere. You don´t even have to add a copyright
notice. But if you do you are signalling that the content of the website is
protected by copyright laws. No more complicated than that...
- D
- Original Message
[EMAIL PROTECTED] (Jeroen Timmers) wrote:
There was a plugin for homesite to work with PHP,
can somebody help me please?
What do you mean work with? standard it has syntax highlighting etc.
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Timothy Taylor's and Sam Smith's are much better example of Yokshire beer. I
know people who've found bottled Sam's all over the world
Tim Ward
www.chessish.com http://www.chessish.com
--
From: Richard Crawford [SMTP:[EMAIL PROTECTED]]
Sent: 15 February 2002
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 5:58 PM
To: Lars Torben Wilson
Hm? I didn't think that this was the case -- I thought that although
there is a long-term move to making 'register_globals = off' default,
First off I would like to say Hello World to everyone here :)
Now for the business part of this post. I recently got appointed to run a
branch of my gaming clan as we expand into a new game. Now I run my website
using phpnuke, which except for figuring out what the heck to put for
content and as
At 06:17 PM 2/18/2002 -0800, Phillip S. Baker wrote:
I have a MyQSL back end.
It houses a users user_name and password.
I have a secure area of the site that I only want members to view.
The way I have it now is that the user logs in.
If user_name and password match cookies are set.
Each page
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 23:30
To: Lars Torben Wilson
$foo = This page is $_SERVER[PHP_SELF];
Or, better:
$foo = This page is {$_SERVER['PHP_SELF']};
You do have to concat to do this in single-quoted
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 22:44
To: 'JSheble'; [EMAIL PROTECTED]
window.document.frmName.elements[poly[]].value !!!
This should also work (well, it has for me in the past!):
window.document.frmName[poly[]].value
I can't upload images though text is ok. This worked on earlier version of
PHP and I don't know whether it is php, apache, or linux at fault.
The post basic code is as per documented example.
test_load.htm
FORM action=test_received.htm enctype=multipart/form-data method=POST
INPUT TYPE=file
Dani wrote:
Hi!
I have seen lots of webiste with a sign [EMAIL PROTECTED] 2002 etc...
if I would like to do that, do I have to register myself to a certain
company or.. I just put it on my website?
Depending on what country you are in, it would probably help to register
the information
Thanks to everyone that replied. After trying solutions from everyone and
still not getting it to work I finally figured out why my code:
$result = mysql_query($query,$connection) or die(Error in Query);
$num = mysql_num_rows($result);
if ($num == 0)
echo something;
else
echo
Has anyone compiled php on linux and found the binary executable file?
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
Phone: 801 887-9888
Fax:801 972-5789
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www:www.enterasys.com
Greg -
Many thanks! That is what I am doing now and I was hoping that I could
do the same in Linux as I do with the NT server: have a default in a
conf file.
Todd
--
Dr. Todd Cary
Ariste Software
707-773-4523
[EMAIL PROTECTED]
It is a worthy thing to fight for one's freedom;
it is another
On Sun, Feb 17, 2002 at 08:05:17PM +0100, Christian Blichmann wrote:
[ . . . ]
P.S.: Your code _always_ works? -Wow...
I was trying to say that I usually get things to work at the end of the
day, when I have enough time to tweak the code, but that my code at some
point tends to become
On Sun, Feb 17, 2002 at 12:39:49PM -0800, Lars Torben Wilson wrote:
[ . . . ]
An excellent book on coding practices is 'Code Complete', by Steve C
McConnell.
http://www.amazon.com/exec/obidos/ASIN/1556154844/qid=1013978113/sr=8-1/ref=sr_8_67_1/102-2030399-6728144
There is also the
Hi, mine is located here: /usr/bin/php
I don't recall telling it where to put the binary (if such an option
exists) so I assume that is the default location.
Jeff
At 09:28 AM 2/19/2002 -0500, Hunter, Ray wrote:
Has anyone compiled php on linux and found the binary executable file?
Ray Hunter
If you installed it with apache or some other webserver, and you didn't use
the --prefix option, it's probably here:
/usr/local/lib/php/
Somewhere in that directory would be my guess. I think that's where mine is
located.
Tyler
- Original Message -
From: Hunter, Ray [EMAIL PROTECTED]
Has anyone compiled php on linux and found the binary executable file?
I usually compile it and copy it to where I want it manually...
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ |
Hi,
I'm trying to make some kind of caching system that first delivers
the old page, and then regenerate the new one in the background. I
achieved this with register_shutdown_function(). The registered
function starts the real work, the normal php script just delivers
the old page (of course
Given the following code:
script language=php
function function1() {
global $bob;
echo Bob = $bob\n;
}
function function2() {
$GLOBALS[bob] = Joe Bob Briggs;
function1();
}
function2();
/script
function1() can echo out the value of $bob
Greg Donald wrote:
Use this to identify Netscape 4.x:
if(strstr($HTTP_USER_AGENT,Mozilla/4)
!strstr($HTTP_USER_AGENT,MSIE)){
// is Netscape 4
} else {
// is something else
}
Is that going to catch the Mozilla spoofers, like webtv and opera?
Err, no... if they are being spoofed then
Is it possible for function1() to access the variables that were defined
in the function2() namespace?
Must be defined with global construct, as you did in function1()
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 9:52 AM
To: PHP
Henrik Hansen wrote:
[EMAIL PROTECTED] (Jeroen Timmers) wrote:
There was a plugin for homesite to work with PHP,
can somebody help me please?
What do you mean work with? standard it has syntax highlighting etc.
There is an expressions builder for php that works like the one that
Hi again,
I read my email back and found a little hard to understand :)), so I
thought a code exmplae might help.
It's just pseudo code for explaining how my cache works:
//simplified main code
if page is in cache {
deliver the old one
register_shutdown_function(regenerate)
}
On Tuesday, February 19, 2002, at 06:18 AM, Erwin S R U B A R wrote:
So, no libphp4.so on the system.
Considering we have the products (in most cases the up-to-date
versions)
it must be some obvious problem - but I have no idea.
Thanks for help in advance,
I had the same exact
I noticed this server-side scripting language which has an interesting
twist: your code can be complied and loaded as an apache DSO. Would
this be feasible with PHP?
--
This space for rent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
There is an expressions builder for php that works like the one that
come with Homesite. I don't use it but it used to be on the Allire site.
Since Macromedia owns hs now, No telling where to find it.
Try: http://www.wilk4.com/asp4hs/php4hs.htm
c
--
Chris Lott
http://www.chrislott.org/
Hi all,
we're using PHP4.1.1 as apache module compiled with c-client-2001a.
So when I try to open imap mailbox server (cyrus-imapd v 2.0.16) says:
Feb 19 19:00:18 hermes imapd[10412]: badlogin: test.test.net[x.x.x.x]
CRAM-MD5 authentication failure [no secret in database]
We have to
Ben Curtis wrote:
I noticed this server-side scripting language which has an interesting
twist: your code can be complied and loaded as an apache DSO. Would
this be feasible with PHP?
http://www.php.net/manual/en/install.apache.php#AEN855
--
PHP General Mailing List
I have got the task to down our webserver, to see how stable she is, and how
easy/hard it is to get it on it's knees ;)
Does anyone have some ideas how to do it?
phpinfo() kan be found here:
http://devel.basm.be/phpinfo.php
Thanks Already,
Witch
--
PHP General Mailing List
Not PHP itself, heh, but PHP scripts that you write. Moto scripts can
be interpreted by moto, just like PHP, but the scripts can also be
compiled as DSOs.
On Tue, Feb 19, 2002 at 11:58:52AM -0500, Gary wrote:
Ben Curtis wrote:
I noticed this server-side scripting language which has an
On Tue, 19 Feb 2002, Ben Curtis wrote:
Not PHP itself, heh, but PHP scripts that you write. Moto scripts can
be interpreted by moto, just like PHP, but the scripts can also be
compiled as DSOs.
Don't suppose you have a URL where one could read more about Moto? =)
Cheers,
Nick Winfield.
-[
http://www.webcodex.com/moto/
On Tue, Feb 19, 2002 at 05:07:14PM +, Nick Winfield wrote:
On Tue, 19 Feb 2002, Ben Curtis wrote:
Not PHP itself, heh, but PHP scripts that you write. Moto scripts can
be interpreted by moto, just like PHP, but the scripts can also be
compiled as DSOs.
I'd start out by using ab, the apache benchmarker. Look for
$APACHE_PATH/bin/ab. You can start hammering away at the site by setting
the number of connections to try, conncurrent connections, etc. in ab,
which will spit out a bunch of interesting stats, like the number or errors
produced,
Hi All,
Could you please help me on how to create a file dynamically on the server
in PHP.
I wanted to open a new file for each day to save all the errors generated by
different web pages on that day.
I am using PHP 4.1.6 on, Win NT4 and IIS .
Thank you in advance!
Sridhar Moparthy
You need to make sure that php has the correct permissions to access the
directory and write the file that you want it to write too...
Check out the manual for this...
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Here is a good explanation, in laymen's terms, of intellectual property
laws:
'An Intellectual Property Law Primer for Multimedia and Web Developers'
http://www.laderapress.com/lib/laderapress/primer.html
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
I have got the task to down our webserver, to see how stable she is, and
how
easy/hard it is to get it on it's knees ;)
Does anyone have some ideas how to do it?
There are various useful torture scripts floating around the web that you
can use to create heavy, somewhat radom loads on a
Does anyone know how line numbers are figured? I get errors like the
following:
Parse error: parse error in
/home/sites/site104/users/walker/web/admin/_fileutils.php on line 74
Is PHP preprocessing the code to remove comments and white space? The
larger my code file, the more inaccurate the
On Tue, 2002-02-19 at 05:14, Ford, Mike [LSS] wrote:
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 23:30
To: Lars Torben Wilson
$foo = This page is $_SERVER[PHP_SELF];
[snip]
Can you expand on why the first option isn't generally
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Steven Walker declared
Does anyone know how line numbers are figured? I get errors like the
following:
Parse error: parse error in
/home/sites/site104/users/walker/web/admin/_fileutils.php on line 74
Is PHP preprocessing
Hi there
I have to get an RGB value of a specified pixel in an JPEG image. This image
uses 24bit per pixel (so is true-color). How could this be done?
Thanks a lot
Reto
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ben Curtis wrote:
http://www.webcodex.com/moto/
On Tue, Feb 19, 2002 at 05:07:14PM +, Nick Winfield wrote:
On Tue, 19 Feb 2002, Ben Curtis wrote:
Not PHP itself, heh, but PHP scripts that you write. Moto scripts can
be interpreted by moto, just like PHP, but the scripts can also
I'm using the gethostbyaddr() function in each webpage on my server to
monitor the users. Today I noticed that it causes a very slow speed but
before it was ok.
Is it commonly bad choise to use it like I do?
Should I rather check the host afterwards e.g. when I'm viewing the
log-database?
I want to check for new emails (with a specific subject) and extract the
message body. This message body will be used to update specific parts of my
website. Any ideas?
Many thanks in advance.
Regards.
Athar Hameed
[EMAIL PROTECTED]
P.S. I would like to meet other PHP programmers in
Greetings all,
I am looking for a good tutorial on the net about sessions.
I have found a few but they do not seem to go in much detail about full use.
Can anyone suggest anything?
Thanks
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
my take on it is that php reports the line it was on when it
encountered the error with isn't the same as where you've made your
mistake.
That sometimes is the case, depending on the error/omission. However, in
my case the error is reported on a line number -before- the actual line
number
On Tuesday, February 19, 2002, at 02:52 PM, Phillip S. Baker wrote:
Greetings all,
I am looking for a good tutorial on the net about sessions.
I have found a few but they do not seem to go in much detail about full
use.
Can anyone suggest anything?
How's this:
1) Put session_start()
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Phillip S. Baker declared
I am looking for a good tutorial on the net about sessions.
I have found a few but they do not seem to go in much detail about full
use.
Can anyone suggest anything?
Depends what you've found? There is
Yes... you definately want to wait to check the domains until later.
gethostbyaddr() (or any dns lookup) can be extremely slow...
Also, you're doing it *every* time even for the same visitor... if you
waited until you were parsing the log files you could do it *once* per
visitor (by caching the
Or you could just write
snip
$fp1 = Fopen(D:\\log.txt,a+);
fwrite($fp1,$start\n$array[0]\n$array[1]\n);
snip
to simplify...
--
Richard,
oblivion creations
http://oblivion.lunamorena.net
[EMAIL PROTECTED]
+4+ (0) 736 849 531 for sure contact..
Jeff Van Campen [EMAIL PROTECTED] wrote
Try passing
Header(Cache-Control: no-cache, must-revalidate);
Header(Pragma: no-cache);
in the beginning of the page, that way all contents MUST be re-valided, thus
disabling cache.
--
Richard,
oblivion creations
http://oblivion.lunamorena.net
[EMAIL PROTECTED]
+4+ (0) 736 849
Can someone tell me where to find documentation on defining mail headers
and formatting? I've been to faqs.org, but was hoping to find something
a bit more friendly.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
Which of them? A webserver sents quite many variables, and you can access
almost everyone of them with PHP. So perhaps giving some specifics?
--
Richard,
oblivion creations
http://oblivion.lunamorena.net
[EMAIL PROTECTED]
+4+ (0) 736 849 531 for sure contact..
Marcbey [EMAIL
How can I assign automatically all fields of a database to a variable of
the same name?
Instead of having to manually do
$user_id=$row[user_id];
etc
Then how could I know the number of fields in the table so I can do a
loop to print them all in html?
In advance, thanks for your help.
Alfredo
This isn't exactly what you want, but it is close:
list($user_id,$field2,$field3,$field4) = $row;
where $row was retrieved via mysql_fetch_array()
Just list each of the variable names in the list() function; include ALL
fields' names included in $row
-Original Message-
From: Baloo :0)
ImageColorsForIndex() and ImageColorAt()
But you will PHP 4.1 for these functions to work with TrueColor images.
-Rasmus
On Tue, 19 Feb 2002, Baumann Reto wrote:
Hi there
I have to get an RGB value of a specified pixel in an JPEG image. This image
uses 24bit per pixel (so is
Hello all,
I have a challenge that has been put on me. I have built a website for my
church and we are now wanting to put our newsletter online. It is currently
being done in Microsoft Publisher.
I would like to take the MS Publisher file and extract the data and insert
it into a database
An XML DTD would not work here; XML describes content, HTML describes
presentation.
You might consider translating to PDF via Adobe Acrobat. Acrobat supports
hyperlinks and PDF is a standard plugin for the IE and NN
-Original Message-
From: Kevin Old [mailto:[EMAIL PROTECTED]]
Sent:
First grab an associative array of the variables from the database with
mysql_fetch_array()
Then use extract($array); to extract all of the variables in the array
to the symbol table:
www.php.net/extract
Simon
Baloo :0) wrote:
How can I assign automatically all fields of a database to a
On Mon, 18 Feb 2002, Michael Kimsal wrote:
on IE on pc a this page cannot be displayed error (with possible
reasons like your browser needs to be set to accept SSL2 and SSL3 [it is
by the way]) is generated half of the time. the other half it works.
We've worked with this several times -
On Mon, 18 Feb 2002, J Smith wrote:
plaintext, no SSL at all. Useful if you want to keep your password safe
during transmission, but it sucks that everything can't be encrypted.
That's the way hotmail works too, f. ex. I guess it's to increase speed.
--
PHP General Mailing List
The other day, I was reading the docs and I just happened
across something that emulated argc and argv. However,
I just spent 2 hours in the docs and can't find it.
Is there something in PHP that you can use to get this info?
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To
Hi
I listed my shopping cart in this form:
product_name quantity(text field in form)price
And I want allow user to change quantity and then after submit load cart
contents with new quantity. I forward text value in one variable(name of
text field) and id of product in second(hidden
look in the manual under predefined variables:
language.variables.predefined.html
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 4:00 PM
To: PHP General
Subject: [PHP] argv and argc
The other day, I was reading the docs and I just
Here are all the predefined variables that are in PHP. You will notice that
there is an argc and argv here.
http://www.php.net/manual/en/language.variables.predefined.php
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-Original Message-
From: Chris Boget [mailto:[EMAIL
Good day,
The array $argv contains what you're looking for (I'm not sure if this is
deprecated in 4.1.0, though) so you'll have to flip through the manual and
release notes.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary,
look in the manual under predefined variables:
language.variables.predefined.html
Sorry, I should have specified for a function, not a script.
I found those vars, just couldn't find the same for a function.
Just found it, though:
func_num_args();
func_get_arg();
:)
Chris
--
PHP General
This may not be what you want to do, but should give you some hints.
(This is my code which I use to simply dump any SQL table into an HTML
table I can view in a browser ... for small tables, of course.)
Using MySQL as an example:
// assuming you ran a query and stored results in
This creates all the variables you asked for and also prints each one in a
column of a table.
foreach($row as $key=$val) {
$$key = $val;
echo td$val/td;
}
-Rasmus
On Tue, 19 Feb 2002, Baloo :0) wrote:
How can I assign automatically all fields of a database to a variable of
the same
oi ... typo! see below. sorry :(
~Chris
On Tue, 19 Feb 2002, Christopher William Wesley wrote:
This may not be what you want to do, but should give you some hints.
(This is my code which I use to simply dump any SQL table into an HTML
table I can view in a browser ... for small
Hey Gents and Ladies,
I read that sessions can be set to timeout after a certain period of time.
However I have not come across anything that tells me how to do that.
So how do I specify when sessions are to timeout?
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I feel kinda dumb for posting this but here it is... I am trying to query a
table then format the results so it looks like the rest of the site and the
darn delete button to remove db entries keeps showing up at the top. Here
is the code... Thanks in advance.
Jas
?php
require
Your problem is a simple HTML formatting problem - your FORM
submit button is inside your TABLE but outside a TD (it's
after the final /TR), thus Netscape puts it above the table
entirely.
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
-Original
IF it is deprecated in 4.1.0, then what are we meant to use in place of it?
Martin
-Original Message-
From: Darren Gamble [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 9:04 AM
To: 'Chris Boget'; PHP General
Subject: RE: [PHP] argv and argc
Good day,
The array $argv
1 - 100 of 156 matches
Mail list logo