What variable(parameter) in PHP stores file name?
TH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I meant, file that are being executed.
On Fri, 26 Nov 2004 09:46:05 -0500, John Nichel <[EMAIL PROTECTED]> wrote:
> Jerry Swanson wrote:
>
>
> > What variable(parameter) in PHP stores file name?
> >
> > TH
>
> Stores what filename? The name of
How to upgrade PHP 4.3.2 to new version? OS is Linux(Fedora Core 2).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to pass an array from one page to excell generation page. I
tried to pass through session($_SESSION['sql'] = $var). But value is
not set.
The array is actually $result = mysql_query($query);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
I know that "register_globals = on" is not secure. But one program
requires to use register_globals=on. So in php.ini register_globals is
set to on.
I have PHP 5.1, is it possible in the code set register_globals=off
for specific scripts.
So I want to keep PHP register_globals=on in php.ini, but
How I can enable php in FTP 5? What I should change in PHP.INI file?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it in "action" by visiting:
http://www.salkehatchiehuntersville.com/Salkehatchie_2005_Camp.php
--
Jerry Kita
http://www.salkehatchiehuntersville.com
email: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and give them a link that
logs them out.
if ($validlogon == "YES") {
print "\n";
print "\n";
print "\n";
print "YOU ARE LOGGED
IN AS: $_SESSION[userid]\n";
print "CLICK here TO LOGOUT\n";
print "\n"
t the
beginning of every script and it works fine. Here's the line of code I use:
session_save_path('c:\Program Files\Apache Group\Apache2\htdocs\tmp');
Again it doesn't answer the question you're asking but it might be
an approach that's easy for you to implement.
tically.
Still might not be practical for you for other reasons but I thought I
should give you a more complete answer .. Jerry
What I have here will not work on their servers if I do this. I could just
comment that line out, granted, but it doesn't seem practical for my
situation. Thanks
y. Otherwise I
would lose my session variables periodically.
--
Jerry Kita
http://www.salkehatchiehuntersville.com
email: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to replace a substr of the string that start from "Rated
blahblah;" azt the end semicolon.
Example:
safsagfasdfsdfdsfRated by 4 people;fafafaafafaf -> return
safsagfasdfsdfdsffafafaafafaf
$replacement ="";
$pattern = "/Rated.+;/";
$found_str = preg_replace($pattern, $replacement, $fo
Here's the code (with the domain name removed)
that doesn't work, "despite" the poor documentation
of the variable types:
/www/binary/";
$dh = opendir ($dir);
do
{
$file = readdir ($dh);
}
while (!strncmp ($file, ".", 1));
$filename =
Is there an example of the UNIX od utility written
in PHP? Is such a useful task even possible??
>From what I've seen of strings, they're completely
opaque, so what good does it do to be able to read
binary-safe strings from a file??? Even the deprecated
(why) $str{$inx} notation apparently r
There's a FAQ section entitled "PHP and Other Languages,"
C isn't even listed among them!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That should help. Thanks.
"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've written complete file parsers in PHP, and the only snag I've run
> into is dealing Signed integers (and larger).
>
>
> Jerry Miller wrote:
>
> >
I didn't want to give up entirely on the
flexibility of writing my scripts in C, so
I thought some more about how to get
a CGI script to use PHP without having
to spend a lot of time on PHP logic.
My first attempt was to see whether I
could substitute the extension ".php"
for the usual ".cgi" exte
> 0.95
> 0.96
> 0.97
> Duplicate entry '' for key 1
>
> The character strings shouldn't be repeated. Why did it stop at (0,97)?
>
Here's one thought . ascii (97) is the letter "a" is it
possible that the ascii (65) "A" was inte
cript ... then when
the form is submitted I'd let it go straight through to your standard
forms validation program ... I wouldn't even involve PHP.
--
Jerry Kita
http://www.salkehatchiehuntersville.com
email: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/
Would it be easier to return an OBJECT populated with all the items one
might need?
On 01/22/2001 12:38 PM, "Matt McClanahan" <[EMAIL PROTECTED]> wrote:
> On Mon, 22 Jan 2001, Abe Asghar wrote:
>
>> Hey there,
>>
>> is there a way that you can get a function to return multiple values. e.g.:
>
Is there somewhere I can get a list
of all the php functions and a brief
description, instead of the full manual
like a cheat sheet of sorts
Jerry Lake
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
Yep, ain't it grand...
I got hired on as a designer
and somebody got the bright idea
that I must be a programmer as well
funny I don't remember that on my resume.
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online
connection kit)
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
is there a way I can make a regex to add a comma
to the beginning of every line of a comma delimited
file ?
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
--
PHP General Mailing List (http
this doesn't relate directly to PHP,
but it will when I am done.
How can I create a file input that
reads from a directory on the server
instead of the users machine
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online -
so then maybe, if I understand it correctly
(which may or may not be true) I could read
the contents or a directory and populate a
dropdown list...?
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
that should be contents of,
not contents or...
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16
or
for an entire list of php setup and http variables
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
Any suggestions ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry for the late reply but maybe you should take a look at the function
range.
from the manual:
foreach(range('a', 'z') as $letter) {
echo $letter;
}
Jerry
-Original Message-
From: Daniel Harik [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 200
ia]),urlecode($resultado[CelebI
D ]),$resultado['Nome_Artistico']) ;
}
while($counter++%3>0)
$row .= sprintf(" ");
$row.="";
==
Jerry Verhoef
-Original Message-
From: Miles Thompson [mailto:[EMAI
mysql_query($query) or die(mysql_error($link_identifier));
die stops the script.
Or if you want a more subtile way you can try this
$result_identifier=@mysql_query($query);
if (!$result_identifier)
{
// Do some nice error handeling
}
Jerry Verhoef
-Original Message-
From
What is a code beautifier?
-Original Message-
From: George Nicolae [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 1:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php code beautifier
do you know if exist a php code beautifier for win32? pls tell me the
address.
--
Best re
No
Maybe you should consider database option or flat files to give info from
one user to the another?
Jerry Verhoef
-Original Message-
From: Alex Vargas [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 3:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Modify someone else
questing a page
user 2: is writing to the session variables of user 1
user 1: script is ending and writing the session variables to the session
handler. And writes over the modified session variables.
Jerry Verhoef
-Original Message-
From: Dave Brotherstone [mailto:[EMAIL PROTECTED
Don't think that a option like this exists.
But maybe you should consider using
include_once or
require_once
Also before you define the function use the function_exist("") and if the
function already exists don't redecleare it.
Jerry Verhoef
-Original Message-
Pseudo code:
check if pid file exists
yes -> DIE
no -> write pid file
At end of script
delete pid file
Jerry Verhoef
-Original Message-
From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 3:32 PM
To: Php General MailingList
Subject: [PHP] Only one in
Did you forget the tags?
Jerry
-Original Message-
From: Martin Schichl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 9:57 AM
To: Edwin Boersma; [EMAIL PROTECTED]
Subject: Re: [PHP] Select box won't display in Netscape 4.xx
Dear Edwin!
Yes, I have had this pr
Take a look at
exec()
passthru()
system()
Keep in mind that the webserver usally runs as User nobody or an equivilant
of that. So this user should have rights to run the program.
Kind Regards,
Jerry Verhoef
> -Original Message-
> From: Liam MacKenzie [mailto:[EMAIL PROTECTED]]
Not
MD5 is a hash code not an encryption!
Jerry Verhoef
> -Original Message-
> From: Jose [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How can I decrypt a password I previously coded with
> md5
Take a look at the mcrypt libary http://www.php.net/manual/en/ref.mcrypt.php
Jerry Verhoef
> -Original Message-
> From: Jose [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] How can I decrypt a passwo
I think I speak for everone:
HUH
Maybe some more info? A piece of code? Some clear infomation on what is
going wrong and when does this happen? And what action is happening two
times?
kind regards,
Jerry Verhoef
> -Original Message-
> From: M-H-d [mailto:[EMAIL PRO
t which makes the
request (the script with the form)
Jerry Verhoef
> -Original Message-
> From: Miftakhul Huda [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 12:45 PM
> To: Jerry Verhoef (UGBI)
> Subject: Re: [PHP] POST 2X
>
>
> I grab this from my Ap
Take a look at split, explode
> -Original Message-
> From: brendan conroy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 1:10 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Novice question - Please Help
>
>
> Hi,
>thanks for reading this. Ive looked at every php site an
firm.
>
It is possible to "steal" a session because a session_id is usually based on
a cookie. So I always store the IP, HTTP_X_FORWARD and USER_AGENT in the
session. And check them every page.
kind regards,
Jerry
>
> I should mention that I have register_globals = off in
When that happens a user has to relogin. No data will be lost.
Jerry
> -Original Message-
> From: Michael Kimsal [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 3:53 PM
> To: Jerry Verhoef
> Cc: PHP
> Subject: Re: [PHP] session data vs cookie data
>
That is a feature of internet explorer. You can disable this in one of the
config screens. I believe it is the print dialog window.
Kind Regards,
Jerry
> -Original Message-
> From: Rambo Amadeus [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 11:31 PM
>
First structure only
second data only
Don't forget to check the check box for complete inserts and extended
inserts
reload in new db.
create the DB
upload the 1 file
and then the second file
Done
> -Original Message-
> From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Friday
Or even better put them outside your www root.
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 01, 2002 4:19 PM
> To: qartis
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Making your include files invisible (header() in if
> loop)
>
>
>
> On T
http://www.php.net/manual/en/function.php-uname.php
Take a look at the example there
> -Original Message-
> From: Ivo Stoykov [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 04, 2002 2:45 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] whic OS is under?
>
>
> Hi group:
>
> Is there a
/Protocols/rfc2616/rfc2616
Force download:
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=downloaded.pdf");
/* ... output pdf file ... */
Kind Regards,
Jerry
> -Original Message-
> From: Alan McFarlane [mailto:[EMAIL P
http://www.php.net/manual/en/function.array-count-values.php
Jerry
I feel like a manual...
> -Original Message-
> From: Rainer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 05, 2002 2:51 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How do I find double values in
ion
?
Kind regards,
Jerry
> -Original Message-
> From: Gary [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 06, 2002 3:44 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Convert 24hr to 12hr
>
>
> Hello All,
> Can someone please RTFM me so I can convert
the next row.
step 4.
Get Item
step 5.
two options.
a: More items available
b: no more items
actions:
a. Goto step 3
b. -
step 6.
Go back to start point
HTH
Jerry Verhoef
-Original Message-
From: hamish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 5:00 PM
To: [EMAIL
$glacer[0]="test";
$category[0]="glacer";
echo ${$category[0]}[0];
echo returns test. That is what you wanted to do??
> -Original Message-
> From: Aric Caley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 07, 2002 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Seams not
http://php.resourceindex.com/detail/00896.html
GOOGLE is the ultimate programmers tool.
And i used this some time ago... :)
> -Original Message-
> From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 9:23 AM
> To: php-list
> Subject: [PHP] mime emails
>
ted i don't use nuke)
I think that this are your options
HTH
Jerry
> -Original Message-
> From: Vincent - D. Ertner [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 07, 2002 11:55 PM
> To: php
> Subject: [PHP] modDb Contribution
>
>
> Hi PHPers,
&
This is what we call a BUG
Report it on http://bugs.php.net
thx
> -Original Message-
> From: * R&zE: [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 1:44 PM
> To: PHP General Mailinglist
> Subject: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!
>
>
> Hi folks,
>
>
Use
$aFile=file();
//$aFile[0] contains the unwanted line
echo $aFile[1]; // displays line 2
echo $aFile[n]; // displays line n where n is an positieve interger and not
greater then the number of lines in the file
http://www.php.net/manual/en/function.file.php
HTH
Jerry
> -Origi
Yes there is!
Try reading the manual?
http://www.php.net/printf
printf ("%-5.5s",$fields[14]);
for the other function to make a line exactly 255 char long? Do you have the
perl Example?
HTH
Jerry
> -Original Message-
> From: Scott [mailto:[EMAIL PROTECTED]]
> Sent:
printf NEW ("%-193.193s");
printf ("%-193.193s",);
HTH
> -Original Message-
> From: Jerry Verhoef (UGBI) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 4:35 PM
> To: 'Scott'; Jerry Verhoef (UGBI)
> Cc: [EMAIL PROTECTED]
LOL
And i just thought it looked like spam Sorry my mistake >:)
> -Original Message-
> From: JSheble [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 5:09 PM
> To: php list
> Subject: Re: [PHP] check this new site
>
>
>
> looks like every other SLashdot, PHP-Nuke o
this should work
$contents = str_replace("", "", $contents);
btw. a welformed xml documented uses a space between "1.0" and ?>
> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 10, 2002 11:07 PM
> To: 'Steven Jarvis'; [EMAIL PROTECTED]
> Subj
You could also use the function getimagesize this will tell what kind of
image it is, and if it is not an image it will return false.
GD LIB is NOT needed for getimagesize.
Kind Regards,
Jerry Verhoef
-Original Message-
From: Daniel Grace [mailto:[EMAIL PROTECTED]]
Sent: Monday
Maybe you should take a look at serialize and unserialize?
http://nl.php.net/manual/nl/function.serialize.php
http://nl.php.net/manual/nl/function.unserialize.php
With serialize you translate a variable to a string. With unserialize you
translate it back to the original variable
Jerry Verhoef
You forgot the printf method
printf("Some text %s\n",$myhash['mykey']);
Jerry
-Original Message-
From: jimtronic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:59 PM
To: TD - Sales International Holland B.V.
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] A
The maximum allowed of characters in a domain name is 3 (www) + 64
(domainname) + 3 (tld) = 70 chars. So if you try to limit it within the 70
chars you should be safe.
Jerry
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 6:10 PM
To: [EMAIL
LAST_INSERT_ID() only works in a select.
This should be the correct syntax, but MySQL 3.xx.xx doesnot support
SubQueries. I believe that MySQL 4 does or will in the near future.
SELECT * FROM table WHERE aid=(SELECT LAST_INSERT_ID())
Jerry Verhoef
-Original Message-
From: Chris Lee
to work in emails?
And my answers is:
Stay within the 70 chars and you should be safe
Jerry Verhoef
-Original Message-
From: Richard Black [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 9:50 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: max # of characters for links to
There is a setting in de php.ini called "memory_limit".
Remember it is in bytes!
Jerry
-Original Message-
From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 4:09 PM
To: Php General MailingList
Subject: [PHP] Limit script memory usage !!
Hi a
Maybe you should take a look at XSL
http://www.w3schools.com/xsl/
http://www.w3.org/Style/XSL/
-Original Message-
From: php dood [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 2:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] arrays
I'm trying to figure out how to parse an xml d
It is a matter of a risk/cost evalution. How much risk is there and if an
anomaly occurs how much does it cost me?
My advise always use atleast 40(128 is better :) ) bit SSL3 encryption,
because SSL2 and lower have some bugs which make it possible to steal a
session between users and
Line 10 is?
$sid (login($user, $pass)); <--- missing =
-Original Message-
From: Necro [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Login Script
Lo all,
I am trying to get the following script to work..
http://localhost/hq.php
mp; $check==md5( . $delete))
$sql=sprintf("delete from tbl where id = %d",$delete);
This makes sure that the person is using the correct path.
Jerry
-Original Message-
From: Jaime Bozza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 7:32 PM
To: [EMAIL PROTECTED]
Subje
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
Jerry M. Howell II
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello all I seem to recall php being able to provide some suport for
asp. How would I turn this feature on? is it a line in the php.ini or is
it a compile time option?
--
Jerry M. Howell II
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ever have seen a wild
virus emailed to me, this is a bad one.
--
Jerry M. Howell II
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
chived on numerous sites.
>
So what your saying is that we password protect from ppl googleing up
answers so one person can avoid spam? I personaly think that day will be
a sad one. As of right now I see no php value to this thread so a;;
rplies will be nicely sent to /dev/null .
PS. Look into
es for free but anyplace thats free will probably have
banners and mabe even watermarks. Most anyone can probably send you to a
cheep place as prices have droped since I started but what your asking
is for someone not to make a living? Kinda unreasonable. Anyways, I try
and avoid these threads
wd" );
> > echo ( "end" );
> >
> > the output is - startend
> >
> > shouldnt be pwd showing the present working directory
> > to me.
>
> Yes, but exec() itself does NOT output anything.
>
If there is a beter way, someone reply but I be
just testing maildrop please ignore :)
201 - 281 of 281 matches
Mail list logo