On Friday, January 2, 2004, at 09:30 AM, Dino Costantini wrote:
i have a file name with the path ex food/italy/pizza/margherita.php.
how can i obtain the name of the file in this case "margherita.php" i
know there is a function, but i don't remember it.
thx
... will echo something like...
food
php-general Digest 2 Jan 2004 05:52:28 - Issue 2507
Topics (messages 173604 through 173622):
Re: PHP New Year
173604 by: Alex
Re: Having problems with a while loop
173605 by: Richard Kurth
173606 by: Richard Davey
173616 by: Tom Rogers
Re: No COOKIE Set?
That would be based on 'realms'.
see : http://httpd.apache.org/docs-2.0/mod/core.html#authname for more
info on how to set that.
Basicaly, most browsers cache the userid and password as long as the page
you are viewing is within the same realm (don't ask for userid and
password again).
Your solu
I was getting a posting failure message from this listserv's
auto-responder, but they appear to have posted anyway.
---
Tim
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm looking for help trying to do away with an error I get from time to
time in my access control session logic. Here is my session setup from the
php.ini:
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.aut
Hi,
I dont know if this is really a PHP problem but am wondering if I can
perhaps use php to solve this problem...
I dont know if this is just a problem on my server or if you have noticed
this too but...
heres my present setup:
/root/protected_files/
/root/protected_files/one/
/root/protected_f
You problem is probably right here:
session.gc_maxlifetime = 1800
That sets the garbage collection timeout to 30 minutes...
Per the manual:
session.gc_maxlifetime specifies the number of seconds after which data
will be seen as 'garbage' and cleaned up.
It is not "strictly" followed, but PHP
I'm looking for help trying to do away with an error I get from time to
time in my access control session logic. Here is my session setup from the
php.ini:
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.
Hi,
Friday, January 2, 2004, 3:56:35 AM, you wrote:
RK> Ok I changed it to look this way but it still is not working
RK> $filenum="test";
RK> $fpHt = fopen($filenum, "r");
RK> while(feof($fpHt)) {
RK> $fpLine = fgets($fpHt,512);
RK> $fpLine = trim($fpLine);
RK> $fpData = explode(":", $fpLine);
R
I'm looking for help trying to do away with an error I get from time to
time in my access control session logic. Here is my session setup from the
php.ini:
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.
>i have a file name with the path ex food/italy/pizza/margherita.php. how
>can i obtain the name of the file in this case "margherita.php" i know
>there is a function, but i don't remember it.
basename(__FILE__) may work.
-
micha
Dino Costantini wrote:
i have a file name with the path ex
food/italy/pizza/margherita.php. how can i
obtain the name of the file in this case "margherita.php"
i know there is a function, but i don't remember it.
basename()
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84
Happy New Year!!
Is there a more efficient type of class accessor than using Get/Set like
this?
function GetValue()
{
return $this->value;
}
function SetValue($value)
{
$this->value = $value;
}
Robin 'Sparky'
echo"$PHP_SELF";
maybe?
- Original Message -
From: "Dino Costantini" <>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 02, 2004 11:30 AM
Subject: [PHP] A simple instruction
i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain
the name
Dino Costantini wrote:
i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case "margherita.php" i know there is a function, but i don't remember it.
$_SERVER['PHP_SELF']
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain
the name of the file in this case "margherita.php" i know there is a function, but i
don't remember it.
thx
It worked but not at all. I placed the setcookie() function in a folder
that's under the main one. When displaying the cookie like you told me, now
appears right just in the .php files under the same folder of the
setcookie() function, but not in the other (like the site's main pages)...
¿?¿?¿?
I
Cesar:
I think that the problem is the array in the
"echo" statement. I have found that I have to do
something
like:
$simple = $_COOKIE["MemberId"];
echo "Member ID = $simple";
Hope that helps.
Jim
Hi all,
My head is about to explode here... I am trying to setup a cookie for every
new user
Hello Richard,
Thursday, January 1, 2004, 5:56:35 PM, you wrote:
RK> Ok I changed it to look this way but it still is not working
RK> $filenum="test";
RK> $fpHt = fopen($filenum, "r");
RK> while(feof($fpHt)) {
RK> $fpLine = fgets($fpHt,512);
RK> $fpLine = trim($fpLine);
RK> $fpData = explode(":",
Ok I changed it to look this way but it still is not working
$filenum="test";
$fpHt = fopen($filenum, "r");
while(feof($fpHt)) {
$fpLine = fgets($fpHt,512);
$fpLine = trim($fpLine);
$fpData = explode(":", $fpLine);
$fpData[0] = trim($fpData[0]);
echo $fpData[0];
}
And no I am just reading a .htp
Larry Brown wrote:
Happy New year all!
Looking forward to bigger better things this year.
Larry
yep, like php5 :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 1 Jan 2004 16:28:28 - Issue 2506
Topics (messages 173589 through 173603):
No COOKIE Set?
173589 by: Cesar Aracena
173590 by: Aidan Lister
173591 by: Cesar Aracena
Hiding File Name & Site Search Question
173592 by: Naveed Ahmad
17359
Hello,
I'm writing a routine that recursively reads an HTML document, looking for
"special tags". It's a template system, but contrary to what I've seen out
there so far, no template engines allow for any kind of customization from
within the document; they only seem to be variable replacement sys
The timer on the client browser would have to be done in some client-side
language.
On the server side you can place any order information that is out with a
supplier in a db field along with the time it was pulled. When the next
supplier submits a request, the db is parsed for pending jobs who
Larry Brown wrote:
foreach($_GET as $key=>$value)
{
$send = $send."&".$key."=".$value;
}
Just use $_SERVER['QUERY_STRING'] instead of recreating it using this
loop (unless the data is coming from $_POST).
As for the original question, just throw $_GET into $_SESSION
($_SESSION
How about this one? Add it to an include for the site and use it whenever
you have an error check.
function goBack($newSite,$errMsg)
{
$send = "";
foreach($_GET as $key=>$value)
{
$send = $send."&".$key."=".$value;
}
$goTo = urlencode($newSite."?errMsg=".$errMsg.$send);
This is not a php question, the simplest way to do this is with meta
refresh.
ike strong wrote:
Hi all,
I'm interested in finding out a way to set a time
limit to a displayed information - i.e. the displayed
information will sieze to appear to a viewer's browser
once a set time period is reache
Hi all,
I'm interested in finding out a way to set a time
limit to a displayed information - i.e. the displayed
information will sieze to appear to a viewer's browser
once a set time period is reached.
What I'm trying to achieve is a situation whereby a
certain 'info' (like an order!) would only
Hi,
your fgets should be inside the loop. else you are in an infite loop.
ps: are you brute forcing password file ;-)
Richard Kurth wrote:
Way does this while loop not work.
It does not read anything in the file. If I add ! in front of feof it
will just loop forever but still it will not read
The first one can be done with Apache URL rewrites. For the second
opinions vary. my own is that mnogosearch or aspseek would be best.
happy new year.
Naveed Ahmad wrote:
Im developing a site in PHP. I have two questions:
1: how i can I hide file names so that visitors cannot see file names like
You're right Jeremy. I found that the limitation was because of default
max_packet_size of MySQL.
It was limited to 1MB by default. Also I found that 400K of data reached the
1MB boundary, when I applied
urlencode function to it.
Maybe, Chris has a similar limitation problem.
--
Ahmet Aksoy
www.axt
For those interested I was able to get to the bottom of this issue. My
hosting supplier uses multiple servers to do load balancing. As such the
folder in which the session variables were stored was stored in a /tmp file
on each of the servers. That explained why the session variables would
randomly
Way does this while loop not work.
It does not read anything in the file. If I add ! in front of feof it
will just loop forever but still it will not read the next line in the
file. The file has two lines in it that look like this.
tester3:$1$09BZpdge$b7TQcsYSsAP1hgiCuCWtS1
tester5:$1$5eq3i75D$X
Im developing a site in PHP. I have two questions:
1: how i can I hide file names so that visitors cannot see file names like
this: somefile.php?name=value. and
2: How I can develope a site search (IR) in PHP???
Please tell me, Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
34 matches
Mail list logo