php-general Digest 8 Mar 2007 06:47:56 - Issue 4665
Topics (messages 250029 through 250051):
Re: determine time in city using GMT offset
250029 by: Richard Kurth
ldap change password
250030 by: Fabio Silva
250041 by: Holger Blasum
Re: PHP Patch open_basedir for
On 3/6/07, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
Oh, yes, about that, how do you _really_ use PHP to do some reading on
the
client machine... like say. listing files... ;D
[/snip]
You're kidding, right? Here's how, set up a PHP enabled.nah, never
mind. Just repeat to yourself
2007. 03. 7, szerda keltezéssel 12.58-kor Mathijs ezt írta:
Hello there,
I Use timestamps for logging etc..
But i need this timestamp to let is show the right time in different
timezones.
Now i wanted to use DateTime object, but it seems it needs a string as
reference, so i can't use a
Németh Zoltán wrote:
2007. 03. 7, szerda keltezéssel 12.58-kor Mathijs ezt írta:
Hello there,
I Use timestamps for logging etc..
But i need this timestamp to let is show the right time in different
timezones.
Now i wanted to use DateTime object, but it seems it needs a string as
reference,
Mathijs wrote:
Hello there,
I Use timestamps for logging etc..
so you do something like this no?:
$stamp = mktime();
so if you want to use DateTime why not do this?:
$stamp = new DateTime;
alternatively if you are stuck with the original integer timestamp,
then you can get round the issue
That sounds good. Could I know more about this clearing service? I
mean, to whom should my friend contact? Some bank? His company is in
Chicago. So, is there any central banking organization in United-States
that he should contact? Or some bank in Chicago?
try worldpay, they are
Hi,
I'd like to thank everybody who have helped me till now. All your
advices were very helpfull... :)
But I have a problem again
I need to build a script which will have have the following functions:
1.Be able to select 3 columns from a MySQL database(idnetify the columns
by ID) and put
Hi,
Coming from C++ world, i would like to know what in PHP, is the equivalent
of namespace in C++ ?
I have several class which should work together, or Class B which is used to
create a private property of class A.
How can i do that without including the class B into the class A definition
?
Jochem Maas wrote:
Mathijs wrote:
Hello there,
I Use timestamps for logging etc..
so you do something like this no?:
$stamp = mktime();
so if you want to use DateTime why not do this?:
$stamp = new DateTime;
alternatively if you are stuck with the original integer timestamp,
then you can
Alain Roger wrote:
Hi,
Coming from C++ world, i would like to know what in PHP, is the equivalent
of namespace in C++ ?
the closest you get to a namespace is a class (used purely as a static
place holder for a set of functions, constants variables).
namespaces is on the php dev list of
Hi,
i have a class A with some properties.
i have a class B with several public functions (i.e : Render())
i would like to do something like that :
class B()
{
B()
{
}
public function Render()
{
...
}
}
class A
{
private $myotherclass;
A()
{
$this-myotherclass = new classB();
}
public
On Wed, 2007-03-07 at 14:23 +0100, Alain Roger wrote:
Hi,
i have a class A with some properties.
i have a class B with several public functions (i.e : Render())
i would like to do something like that :
class B()
{
B()
I'm pretty sure you mean function B() or in PHP 5 function
A() or B() mean constructors of th class A and B respectively.
Al.
On 3/7/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Wed, 2007-03-07 at 14:23 +0100, Alain Roger wrote:
Hi,
i have a class A with some properties.
i have a class B with several public functions (i.e : Render())
i would
Hi,
I am trying to create a file with php. I want to enter the value of a string
into it and then browse (if possible) and save to a specified folder with
the filename/extension (.php/.txt) entered in the dialog box.
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On 3/7/07, Alain Roger [EMAIL PROTECTED] wrote:
A() or B() mean constructors of th class A and B respectively.
Al.
Yes but they are functions.
On 3/7/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Wed, 2007-03-07 at 14:23 +0100, Alain Roger wrote:
Hi,
i have a class A with some
Yes, for sure.
On 3/7/07, Tijnema ! [EMAIL PROTECTED] wrote:
On 3/7/07, Alain Roger [EMAIL PROTECTED] wrote:
A() or B() mean constructors of th class A and B respectively.
Al.
Yes but they are functions.
On 3/7/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Wed, 2007-03-07 at
On 3/7/07, Ross [EMAIL PROTECTED] wrote:
Hi,
I am trying to create a file with php. I want to enter the value of a
string
into it and then browse (if possible) and save to a specified folder with
the filename/extension (.php/.txt) entered in the dialog box.
R.
Sure it is possible, but it
On Wed, 2007-03-07 at 14:31 +0100, Alain Roger wrote:
A() or B() mean constructors of th class A and B respectively.
Obviously, but you appear to have declared them incorrectly by not
including the function keyword.
Cheers,
Rob.
--
..
I have this code:
mysql_connect ($local_host, $local_user, $local_pass);
mysql_select_db ($local_db);
mysql_query (DELETE FROM tmphitsmag);
$result = mysql_query (SELECT DISTINCT company FROM view_log WHERE
company != '');
if ($row = mysql_fetch_array($result)) {
do {
snip
It dumps the table fine, works the explode, outputs the string in the
echo command the way I expect, but doesn't place the value in
tmphitsmag
table.
Does it insert an empty record?
JM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 3/7/07, Ed Curtis [EMAIL PROTECTED] wrote:
I have this code:
mysql_connect ($local_host, $local_user, $local_pass);
mysql_select_db ($local_db);
mysql_query (DELETE FROM tmphitsmag);
$result = mysql_query (SELECT DISTINCT company FROM view_log WHERE
company != '');
if ($row =
I have this code:
mysql_connect ($local_host, $local_user, $local_pass);
mysql_select_db ($local_db);
mysql_query (DELETE FROM tmphitsmag);
$result = mysql_query (SELECT DISTINCT company FROM view_log WHERE
company != '');
if ($row = mysql_fetch_array($result)) {
do {
On 3/7/07, Ed Curtis [EMAIL PROTECTED] wrote:
I have this code:
mysql_connect ($local_host, $local_user, $local_pass);
mysql_select_db ($local_db);
mysql_query (DELETE FROM tmphitsmag);
$result = mysql_query (SELECT DISTINCT company FROM view_log WHERE
company != '');
if ($row =
On 3/7/07, Ed Curtis [EMAIL PROTECTED] wrote:
I have this code:
mysql_connect ($local_host, $local_user, $local_pass);
mysql_select_db ($local_db);
mysql_query (DELETE FROM tmphitsmag);
$result = mysql_query (SELECT DISTINCT company FROM view_log WHERE
company != '');
if ($row =
try:
mysql_query (INSERT INTO tmphitsmag (magazine) VALUES
('{$magazine_path[2]}'));
cajb.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$ php -r '
class A
{
function render() { echo foo\n; }
}
class B
{
function __construct() {
$this-a = new A;
}
function test() { $this-a-render(); }
}
$b = new B;
$b-test();
'
foo
... works for me.
Alain Roger wrote:
Hi,
i have a class A with some properties.
i have a class B with
Ed Curtis wrote:
mysql_query (INSERT INTO tmphitsmag (magazine)
VALUES ('$magazine_path[2]'));
Replace that with this...
mysql_query (INSERT INTO tmphitsmag (magazine) VALUES
('.mysql_real_escape_string($magazine_path[2]).'));
-Stut
Jason Karns wrote:
I'm trying to find a way to password protect a directory. I currently have
an authentication and authorization system in place for pages in my
directory. I'd prefer to use my existing system somehow (as it includes
OpenID authentication) as opposed to using htaccess and
Alain Roger wrote:
i have a class A with some properties.
i have a class B with several public functions (i.e : Render())
i would like to do something like that :
class B()
{
B()
{
}
public function Render()
{
...
}
}
class A
{
private $myotherclass;
A()
{
$this-myotherclass = new
[EMAIL PROTECTED] wrote:
is there a question here, or are you asking us to write the script for
you?
- Rick
Original Message
Date: Wednesday, March 07, 2007 01:54:04 PM +0100
From: Delta Storm [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP]
The file permissions are not set right, Apache is not able to read the PHP
file you've just uploaded to your server, chmod it to 644.
That should fix it.
Tijnema
On 3/7/07, Delta Storm [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
is there a question here, or are you asking us to write
Hello All,
I am trying to think through my new forms process. I want to allow a
customer to submit multiple orders using the same credit card. At the
bottom of my form I will have a Save link and a Save and Submit
Additional link/checkbox.
Basically what I want to happen is that if the user
Hi,
i was more thinking about automatically going to save.php, and if checked
(the code u used) redirect back to your shop, cart, etc. using header
function.
Tijnema
On 3/7/07, Dan Shirah [EMAIL PROTECTED] wrote:
Hello All,
I am trying to think through my new forms process. I want to allow
2007. 03. 7, szerda keltezéssel 16.28-kor Delta Storm ezt írta:
[EMAIL PROTECTED] wrote:
is there a question here, or are you asking us to write the script for
you?
- Rick
Original Message
Date: Wednesday, March 07, 2007 01:54:04 PM +0100
From:
On Wed, 2007-03-07 at 10:39 -0500, Dan Shirah wrote:
then return to the same screen with the credit card
information still populated
You should treat credit card information like a hot potato... get rid of
it as soon as possible. What happens if Johnny Forgetful forgets to log
out of his
I saw two people pointing two errors on the SQL insert statement which you
would have found yourself had you put the 'or die()' at the end of the
query, as someone else suggested. Do never leave any query without the 'or
die()' after it (or any other means to check if mysql_query returns
I've just run into this problem this morning
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo
$real_company_name; ?', 'Web Site');
This produces an Error on Page in IE 7, but works perfectly in Firefox
and
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta:
I've just run into this problem this morning
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo
$real_company_name; ?', 'Web Site');
This
Open the page with IE 7, and open the source, if it doesn't show any ? or
? tags, then it is a IE problem..
Tijnema
On 3/7/07, Németh Zoltán [EMAIL PROTECTED] wrote:
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta:
I've just run into this problem this morning
a href=#
I've just run into this problem this morning
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo
$real_company_name; ?', 'Web Site');
This produces an Error on Page in IE 7, but works perfectly in Firefox
Satyam wrote:
I saw two people pointing two errors on the SQL insert statement which
you would have found yourself had you put the 'or die()' at the end of
the query, as someone else suggested. Do never leave any query without
the 'or die()' after it (or any other means to check if
Satyam wrote:
I saw two people pointing two errors on the SQL insert statement which
you would have found yourself had you put the 'or die()' at the end of
the query, as someone else suggested. Do never leave any query without
the 'or die()' after it (or any other means to check if
Németh Zoltán wrote:
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta:
I've just run into this problem this morning
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo
$real_company_name; ?', 'Web
On 3/7/07, Ed Curtis [EMAIL PROTECTED] wrote:
Németh Zoltán wrote:
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta:
I've just run into this problem this morning
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent;
Robert Cummings wrote:
On Wed, 2007-03-07 at 10:39 -0500, Dan Shirah wrote:
then return to the same screen with the credit card
information still populated
You should treat credit card information like a hot potato... get rid of
it as soon as possible. What happens if Johnny Forgetful
I've just run into this problem this morning
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo
$real_company_name; ?', 'Web Site');
This produces an Error on Page in IE 7, but works perfectly in Firefox
But ofcourse you could add a lot of things to a shopping cart and checkout
once
btw, it's safer to use things like Paypal...
Tijnema
-- To the full PHP list now
On 3/7/07, Jochem Maas [EMAIL PROTECTED] wrote:
Robert Cummings wrote:
On Wed, 2007-03-07 at 10:39 -0500, Dan Shirah wrote:
Rght, that is similar to what I am trying to do...let them inout several
items to be paid on and let them all be tied to the same credit card to be
charged.
On 3/7/07, Tijnema ! [EMAIL PROTECTED] wrote:
But ofcourse you could add a lot of things to a shopping cart and checkout
once
btw,
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo
$real_company_name; ?', 'Web Site');
This produces an Error on Page in IE 7, but works perfectly in Firefox
and Netscape.
I have several other javascript calls on
So, what is your actual problem?
you can simple add all items to a session, and then when checking out,
getting all data from the session.
*means all data is lost when user leaves page...
Tijnema
On 3/7/07, Dan Shirah [EMAIL PROTECTED] wrote:
Rght, that is similar to what I am trying to
I have a little script that prints a number out from 1 to 100
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
}
?
[/php]
I just need to add code to print something different, say foo if the
output is a multiple of 5 or 10 for example. How do I go about doing
this?
--
::Bruce::
--
PHP
On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote:
I have a little script that prints a number out from 1 to 100
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
}
?
[/php]
I just need to add code to print something different, say foo if the
output is a multiple of 5 or 10 for example.
try this
if ($i%5 == 0) echo foobr;
-afan
I have a little script that prints a number out from 1 to 100
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
}
?
[/php]
I just need to add code to print something different, say foo if the
output is a multiple of 5 or 10 for
-Original Message-
From: Ed Curtis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 11:47 AM
To: php-general@lists.php.net
Subject: Re: [PHP] php and javascript error
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent;
Delta Storm wrote:
[EMAIL PROTECTED] wrote:
is there a question here, or are you asking us to write the script for
you?
- Rick
Original Message
Date: Wednesday, March 07, 2007 01:54:04 PM +0100
From: Delta Storm [EMAIL PROTECTED]
To: php-general@lists.php.net
-Original Message-
From: Brad Fuller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 12:02 PM
To: 'Ed Curtis'; 'php-general@lists.php.net'
Subject: RE: [PHP] php and javascript error
-Original Message-
From: Ed Curtis [mailto:[EMAIL PROTECTED]
Sent:
Dan Shirah wrote:
Hello All,
I am trying to think through my new forms process. I want to allow a
customer to submit multiple orders using the same credit card. At the
bottom of my form I will have a Save link and a Save and Submit
Additional link/checkbox.
Basically what I want to
a href=# onclick=javascript:window.open('web_forward.php?address=?
echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo
$real_company_name; ?', 'Web Site');
This is a JavaScript issue, but may have something to do with
the data you
are echoing out in PHP. Look at the source in
oops, ofcourse whe have the modular :)
On 3/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
try this
if ($i%5 == 0) echo foobr;
-afan
I have a little script that prints a number out from 1 to 100
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
}
?
[/php]
I just need to
Ed Curtis wrote:
Németh Zoltán wrote:
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta:
I've just run into this problem this morning
a href=#
onclick=javascript:window.open('web_forward.php?address=? echo
$web_url; ?agent=? echo $agent; ?real_company_name=? echo
Hi all,
it's a lot of time that i am trying to let Jason Greene open_basedir
patch work with apache massive virtualhost.
This is direct link to patch when it was developed:
http://www.phpbuilder.com/lists/php-developer-list/2000101/0994.php
This is a FreeBSD port more recent with same code:
- Original Message -
From: Jochem Maas [EMAIL PROTECTED]
Satyam wrote:
I saw two people pointing two errors on the SQL insert statement which
you would have found yourself had you put the 'or die()' at the end of
the query, as someone else suggested. Do never leave any query without
On 05/03/07, Chris [EMAIL PROTECTED] wrote:
Dotan Cohen wrote:
Are there any advantages/disadvantages to using and of the ` or '
punctuation symbols in MySQL queries? I usually only put them around
variables (after being sanitized, of course):
INSERT INTO places (country, city) VALUES
Edward Kay wrote:
you've got a stay quote mark in one of your PHP vars.
Not it, I looked and there's nothing there.
I'm sure it's because you've got some stray characters in your output that
mess it up. It would help if you actually posted the source rather than just
saying it's OK, when
Tijnema ! escribió:
On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote:
I just need to add code to print something different, say foo if the
output is a multiple of 5 or 10 for example. How do I go about doing
this?
I've seen that question a lot, what i use is fairly simple
if( intval($number
It is an old guy thing, at least in my case (trivia: I was born the day
after the ENIAC was turned off)
Aha! October 3, 1955
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Kurth wrote:
How would I determine the time in a different city If I know the GMT offset
in both placesSay GMT -1 in one city and GMT -7 in another city. What
would the math and code look like for this
show us what you have so far...
--
Enjoy,
Jim Lucas
Different eyes see
DoM wrote:
Hi all,
it's a lot of time that i am trying to let Jason Greene open_basedir
patch work with apache massive virtualhost.
This is direct link to patch when it was developed:
http://www.phpbuilder.com/lists/php-developer-list/2000101/0994.php
This is a FreeBSD port more recent with
That is what I am asking where do I start. I just need to be pointed in the
right direction. I have looked thru the manual for time and date and I have
searched this user group. Maybe I am not asking the question correctly.
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Hi all, i would like to know if anybody has a script in php that
change the password of the users in ldap???
That the user can do it by yourself
the user put your username old pass new pass confirm new pass
Somebody can help me?
Regards,
--
Fabio S. Silva
--
PHP General Mailing List
Jim Lucas wrote:
http://us3.php.net/manual/en/features.safe-mode.php#ini.open-basedir
Read the first line of the first paragraph.
/tmp/ is not with-in /var/www/php.net/%1 it is out side
Yes, of course i know this :)
As i wrote i would like to include static path after dynamic path like
Downloaded latest php_zip.dll; fixed!
KMiller wrote:
Been playing with this for a few hours and it seems that anything but a
plain text file (doc,xls,pdf,etc.) is being trashed by ZipArchive.
Has anyone had similar experiences or am I just doing something stupid and
can't see it?
DoM wrote:
Jim Lucas wrote:
http://us3.php.net/manual/en/features.safe-mode.php#ini.open-basedir
Read the first line of the first paragraph.
/tmp/ is not with-in /var/www/php.net/%1 it is out side
Yes, of course i know this :)
As i wrote i would like to include static path after dynamic
The following code returns a permisson error:
Quote:
Warning: DOMDocument::save(./save1.xml) [function.DOMDocument-save]:
failed to open stream: Permission denied in /Users/username/Sites/
xmlphp/dom/appendData/appendData.php on line 17
DOMCharacterData-appendData example
I attempted
PHP needs read/write access to the files. More than likely PHP is
running as Apache so the files would need to be owned by Apache* (or
whatever PHP is running at), not System.
*Or at least give the Apache group (or whatever PHP is running at) r/
w access, that way you don't have to resort
Thanks for the responses so far.
This is what I have come up with
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
if ($i%3 == 0) echo Foo ;
elseif ($i%5 == 0) echo Bar;
}
?
[/php]
and the results can be seen here
http://www.inspired-evolution.com/image_test/numbers_output.php
I
Jim Lucas wrote:
DoM wrote:
I mean something like this:
/var/www/php.net/%1/:/tmp/:/usr/local/xxx/ and so on.
does this work?
The manual says it should.
And it works for static path like /tmp/:/var/www/: but not for dynamic
path like /var/www/%0/%1 .
I need Jason Greene patch to let it
I would bet it's the www, sorry about that. I've had to change the
user/group name for mine so it will sync up with the linux file
server permissions across NFS.
On Mar 7, 2007, at 2:56 PM, CK wrote:
Hi,
Thanks, attempted to use appServer without luck, these are the
choices:
Picture
Are you only using 3 and 5? just echo 3 and 5 instead of Foo and Bar. and
for both, just have a 3rd condition including both ... if (($i%3 ==0)
($i%5 == 0)) echo both or foobar..
does this help?
Jake
- Original Message -
From: Bruce Gilbert [EMAIL PROTECTED]
To: Martin
Bruce Gilbert wrote:
Thanks for the responses so far.
This is what I have come up with
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
if ($i%3 == 0) echo Foo ;
elseif ($i%5 == 0) echo Bar;
}
?
[/php]
and the results can be seen here
Hi Fabio,
On 03-07, Fabio Silva wrote:
Hi all, i would like to know if anybody has a script in php that
change the password of the users in ldap???
That the user can do it by yourself
http://logout.sh/computers/ldap/ looks like a starting point.
In that example, however the connection
Hey all,
I have a need to monitor a download from the
server to the client's machine.
I'm not familiar with any mechanisms for doing so.
If anyone has any hints to point me towards I'll
get a' researching.
--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
Hello.. I searched for an answer on the simple quesiton but I am only finding
complex answers... I simply just want to add a link in my database so when
my results display you can see the information.. and when they click the
link it takes them to the webpage of the article. I tried inserting
On Mar 7, 2007, at 10:24 AM, Ed Curtis wrote:
Edward Kay wrote:
you've got a stay quote mark in one of your PHP vars.
Not it, I looked and there's nothing there.
I'm sure it's because you've got some stray characters in your output
that
mess it up. It would help if you actually posted the
:|
if i want link 3,
$result = mysql_query(SELECT address FROM db.links WHERE link_id=3);
$foo = mysql_fetch_assoc($result);
echo 'a href='.$foo['address'].'this is link 3/a';
On 3/7/07, StainOnRug [EMAIL PROTECTED] wrote:
Hello.. I searched for an answer on the simple quesiton but I am
Satyam wrote:
It is an old guy thing, at least in my case (trivia: I was born the day
after the ENIAC was turned off)
Young kids these days :-) I was born the month before it was turned _on_!
Cheers
--
David Robley
Why do we read left to right yet turn pages right to left?
Today is
LOL I told'ya I rememberd it from my 2nd semester :)
Ok, this is commonly known as the FizzBuzz problem and is used a lot as a
university project or interview question. If you can't do it, be afraid!!
http://dev.stut.net/php/fizzbuzz.php
-Stut
--
PHP General Mailing List
You have to add the href tags in the html output for the text to be a
link
in your while statement or whatever your using to obtains the links from the
database already,
instead of just displaying $link_value, change it to
a href=$link_value$link_value/a
Jake
- Original
Hi,
I upgraded to PHP 4.4.6 and APC 3.0.13 at the same time. Every day at
some point, it starts having a problem and the load on that machine
styrockets.
It does not happen with the opcode cache in Zend Platform for PHP 4.4.6.
Also, in the error log I see a lot of things like this:
Hello;
Is there a way to un include a file once it has been included in a
script.
My concern is where two php files might be included in another php
file they might have code or variables that conflict. I am thinking
of including files with different names but follow the same pattern
of code
On Thursday 08 March 2007 07:18, jekillen wrote:
Hello;
Is there a way to un include a file once it has been included in a
script.
You seems to want the wrong thing...
I could be mistaken, but from my point of view you would NOT include the file
if not apropriate at that moment.
My
AFAIK there's no function to un include a file, but i don't see a problem
here, as when you include your second file, everything (all conflicting
variables) will be overwritten.
If you still have problems, you might want to use classes around your
functions and variables.
Tijnema
On 3/8/07,
Hi,
I think that cURL would do the job, starting the transfer with
curl_init ,curl_setopt and curl_exec
then you can get the info about the download with curl_getinfo
Also take a look at the other curl functions, and have a look at the
curl_setopt function page, as there are a lot of options
Just a little side note, you said that firefox wasn't giving an error, i
think it does, but that it hides the error.
Open your page, and then go to Tools-javascript console.
There it will display all javascript errors. And gives a nice detailed
error.
Tijnema
No there is not, because an included file *executes* at the time it is
included and is then done. Any memory-resident objects (function/class
definitions, variables, etc.) that it defies then exist until you make them
un-exist (with unset() for variables or, well, you can't with functions and
95 matches
Mail list logo