php-general Digest 8 Aug 2005 02:12:11 - Issue 3612
Topics (messages 220170 through 220189):
Re: Fast count of recordset in php...
220170 by: Marcus Bointon
220172 by: Satyam
Re: sorry for asking here,a small apache query
220171 by: mviron.findaschool.net
PHP error
[EMAIL PROTECTED] wrote:
In a message dated 8/6/2005 10:59:44 P.M. Central Standard Time,
[EMAIL PROTECTED] writes:
As far as I know, it's not a shared hosting issue, but a permission issue.
The site admin has not given the user under which your php scripts run
permission to create
Hi again!
Thanx!!! I think this will help a lot!!!
/mr G
@varupiraten.se
- Original Message -
From: TalkativeDoggy [EMAIL PROTECTED]
To: Sebastian [EMAIL PROTECTED]
Cc: Gustav Wiberg [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Sunday, August 07, 2005 6:04 AM
Subject: Re:
Um - did you read my last email regarding var_dump var_export and print_r
Did you try them?
Do they do what you want?
On 8/2/05, Adi Zebic [EMAIL PROTECTED] wrote:
Rory Browne a écrit :
I haven't a monkies what that code(your java) does, and I don't have
time to analyse it(in expensive
On 7 Aug 2005, at 05:04, TalkativeDoggy wrote:
be coz this way is slow and costs more overload.
$sql = SELECT COUNT(IDVara) cn FROM tbvara WHERE Varunamn LIKE
'$checkLev%';
$querys = mysql_query($sql);
//Count products in db
//
$dbArray = mysql_fetch_row($querys);
There are two ways to accomplish what you are asking. The quickest way,
without any modfication to httpd.conf, is to place an empty index.html or
other default index page into that directory. This will prevent the
directory listing from showing up. The other method, is to change
httpd.conf to
Marcus Bointon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
According to the docs, MySQL has a particular optimisation that means
that it should be:
$sql = SELECT COUNT(*) FROM tbvara WHERE Varunamn LIKE '$checkLev%';
It is not just a MySql optimization but this holds true
My hosting service recently switched to a newer server and in
transporting the websites (many) over, they set up php different
(vers 4.3.10). I know it's not nice to show errors on a published
website, but I don't have a testing server, and I need to debug
scripts once in a while. The
Hi
Please advise.
I need to create menu that has the following html
body
ul id=nav
lia href=#Home/a/li
lia href=#About/a
ul
lia href=#History/a/li
lia href=#Team/a/li
lia href=#Offices/a/li
/ul
/li
lia href=#Services/a
ul
Hey Gregory--
On 8/7/05 12:05 PM, Gregory Machin [EMAIL PROTECTED] wrote:
Hi
Please advise.
There was a thread on our forums a while back and one of my colleagues
posted a variant of the code we use for our menus, so maybe this will help
you:
Hey Terry--
On 8/7/05 11:03 AM, Terry Romine [EMAIL PROTECTED] wrote:
Any ideas on what flag may need to be set and how to do it on a file-
by-file basis so I am only tweaking it when testing?
Terry
Does your hosting provider support .htaccess? If so, you may be able to
change the error
On 8/4/05, Lizet Pena de Sola [EMAIL PROTECTED] wrote:
Ok, it's not the regexp for detecting email addresses what I need,
that's widely published, thanks. I'm using ereg to match this regular
expression:
(On)[\s\w\d\W\S\D\n]*(wr[i|o]te[s]?:)
That will match phrases like
On 8/3/05, Carol
Yes, I'm looking for the algorithm.
- Original Message -
From: M Saleh EG
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net ; Frank de Bot
Sent: Sunday, August 07, 2005 6:36 AM
Subject: Re: [PHP] Average time spent on a page
Try using one of the log reader/analysis
First, I'm new to PHP. I have a script that
has a piece of code that looks like this -
require_once($CFG-wwwroot . '/lib/mylib.php');
My question is this, I'm trying to find out
how the class $CGF was initiated.There are no
include or require statement before the statement.
Is $CFG a global
My Algorithm would look something close to this,
ForEach Session
ForEach Page_Visit
Record Page_Load
Record Page_Unload (could be clicking on a link on a page or just leaving
the whole domain which might end the session as well)
This would be the simplest form I coult put a rough algorithm
i have this app where a user fills out a form and after submit it
displays the values they entered. i want to save this info to a file
after they submit, then allow them to download the file. some other user
does the same, fills in the form and allow that person to download the
file... and so
That isn't created by PHP, it must be declared in the code somewhere.
Maybe there is an auto_prepend_file set?
http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
Chris
wayne wrote:
First, I'm new to PHP. I have a script that
has a piece of code that looks like this -
Or if it's PHP 5 they might be using an __autoload() magic function
which gets called whenever a class that isn't declared is instantiated.
That function could be require()ing another file.
Jasper
Chris wrote:
That isn't created by PHP, it must be declared in the code somewhere.
Maybe
If you use PHP 5 just use the __toString() magic method which does
exactly that.
http://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring
Jasper
Rory Browne wrote:
Um - did you read my last email regarding var_dump var_export and print_r
Did you try them?
Do they
On 8/7/05 4:24 PM, Jasper Bryant-Greene [EMAIL PROTECTED] wrote:
Or if it's PHP 5 they might be using an __autoload() magic function
which gets called whenever a class that isn't declared is instantiated.
That function could be require()ing another file.
Well, if it is PHP 5, then you can use
Thanks, but I've tried that when I first got the Error message, it still
gave me the error. Thanks though!
In a message dated 8/7/2005 1:29:26 A.M. Central Standard Time,
[EMAIL PROTECTED] writes:
Open up your FTP client and log into your website, then change the
permissions on your
wayne wrote:
First, I'm new to PHP. I have a script that
has a piece of code that looks like this -
require_once($CFG-wwwroot . '/lib/mylib.php');
My question is this, I'm trying to find out
how the class $CGF was initiated.There are no
include or require statement before the statement.
Is $CFG
Sebastian wrote:
i have this app where a user fills out a form and after submit it
displays the values they entered. i want to save this info to a file
after they submit, then allow them to download the file. some other user
does the same, fills in the form and allow that person to download
Hi Marco,
The version of php I have is 4.3.10. Is there something
similar to the below example in the version I have?
Thanks.
On Sun, 2005-08-07 at 16:39 -0400, Marco Tabini wrote:
On 8/7/05 4:24 PM, Jasper Bryant-Greene [EMAIL PROTECTED] wrote:
Or if it's PHP 5 they might be using an
Hi Jasper,
I thought about this and so I did a grep on autoload
and came up empty. Is there a different way of checking
for the magic function?
Thanks
On Mon, 2005-08-08 at 08:24 +1200, Jasper Bryant-Greene wrote:
Or if it's PHP 5 they might be using an __autoload() magic function
which gets
Well if you're using 4.3.10 as you said in your other post then
__autoload is not supported anyway. A grep on autoload would've turned
it up.
I'm assuming you've tried a grep for CFG to find the declaration?
Jasper
wayne wrote:
Hi Jasper,
I thought about this and so I did a grep on
26 matches
Mail list logo