Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread Gustav Wiberg
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]>; Sent: Sunday, August 07, 2005 6:04 AM Subject: Re: [PHP] Fast count o

Re: [PHP] mkdir, Shared Hosting?

2005-08-06 Thread Burhan Khalid
[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 direct

Re: [PHP] mkdir, Shared Hosting?

2005-08-06 Thread Esteamedpw
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 directories and most likely files

Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread TalkativeDoggy
if you just wana get count of recordset, don't do this: $sql = mysql_query("SELECT col FROM tbvara WHERE Varunamn LIKE '$checkLev%'"); // record count echo mysql_num_rows($sql); be coz this way is slow and costs more overload. $sql = "SELECT COUNT(IDVara) cn FROM tbvara WHERE Varunamn LIKE

RE: [PHP] mkdir, Shared Hosting?

2005-08-06 Thread Robbert van Andel
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 directories and most likely files and other file system operations. It's a security issue. Robbert -Original Message- Fro

[PHP] mkdir, Shared Hosting?

2005-08-06 Thread Esteamedpw
Hi, I'm using Shared Hosting and I was told - then I learned from trial and error - that you can't use mkdir on Shared Hosting... is this *100%* true? is there a way around it? I get: Warning: mkdir(/home/***/public_html/test/): Permission denied in /home/***/public_html/test.php on

Re: [PHP] Average time spent on a page

2005-08-06 Thread M Saleh EG
Try using one of the log reader/analysis packages available for Apache or try doing it urself. Are you looking for the algorithm? let me know. On 8/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > LOL. This got nothing to do with my question . LOL again > > - Original Message -

Re: [PHP] varibles defination

2005-08-06 Thread Jochem Maas
[EMAIL PROTECTED] wrote: >>>How can we define and display the varibles by using for loop >>>function ? >> >>>for ($x=0;$x<10;$x++){ >> $func[$x]=$x; >>} >>print_r($func); >>?> > > > If I want to define a set of varibles ( two dimension array, eg : $func[0,0] ) $func[0,0] is not valid syntax. yo

[PHP] Re: [PHP-DEV] Re: [PHP] Exceptions: function x throws Exception

2005-08-06 Thread Jochem Maas
Marcus Boerger wrote: Hello Jochem, lookup the archieves. We have long ago decided agains that. I'll take your word on it. :-) (shame on me for not searching harder before asking) thanks for replying. marcus Friday, August 5, 2005, 2:26:04 PM, you wrote: Dear Internals, class Foo

[PHP] PHP 4.3.9 - Undefined variable: authed in

2005-08-06 Thread Trevor Tregoweth
Hi There I am trying to run a simple password /php / mysql script for a web page and get the following errors, it works fine on a earlier versions of php / mysql PHP Notice: Undefined variable: help_out_uid in /var/www/html/lcc/secure/secure.php on line 87, PHP Notice: Undefined variable: aut

Re: [PHP] PHP 4.3.9 - Undefined variable: authed in

2005-08-06 Thread Jochem Maas
Trevor Tregoweth wrote: Hi There point 1: you started a new thread by replying to an existing thread - BAD. point 2: the errors (notices) are telling you something. read them. if you don't understand them, try google first, then php.net hint: your php config has changed - error reporting has

Re: [PHP] Re: PHP 5.0.4 on AMD64

2005-08-06 Thread Joseph Oaks
that chcon did the trick, thanks. Joe Joseph Oaks ([EMAIL PROTECTED]) wrote: > > Thanks, I will give that a try, and let you know. > > Joe > > Holografix ([EMAIL PROTECTED]) wrote: > > > > Hi > > > > Take a look here: http://forums.fedoraforum.org/showthread.php?t=59163 > > > > I had that problem

Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread Sebastian
you'd be suprized how fast an index can be.. you should read the manual on indexes, http://dev.mysql.com/doc/mysql/en/mysql-indexes.html "If a table has 1,000 rows, this is at least 100 times faster than reading sequentially" while you may not get 100x faster, it will be faster than having no

[PHP] Re: [PHP-DEV] Re: [PHP] Exceptions: function x throws Exception

2005-08-06 Thread Marcus Boerger
Hello Jochem, lookup the archieves. We have long ago decided agains that. marcus Friday, August 5, 2005, 2:26:04 PM, you wrote: > Dear Internals, > class FooBar { public function foo() throws Exception {} } > function fooFoo() throws Exception {} > this came up on php-generals and I

Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread Matt Darby
$num=mysql_num_rows($sql); Gustav Wiberg wrote: Hello there! How do i get a fast count of a recordset in php? Look at this code: $sql = "SELECT COUNT(IDVara) cn FROM tbvara WHERE Varunamn LIKE '$checkLev%'"; $querys = mysql_query($sql); //Count products in db // $dbArray =

Re: [PHP] sorry for asking here,a small apache query

2005-08-06 Thread Alan Milnes
babu wrote: Hi all, I am sorry for asking in php forum.i am subscribed to php and not to apache.but i hope many people in this group also the solution to this query. If you know you are in wrong place why ask here? Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] Fast count of recordset in php...

2005-08-06 Thread Gustav Wiberg
Hello there! How do i get a fast count of a recordset in php? Look at this code: $sql = "SELECT COUNT(IDVara) cn FROM tbvara WHERE Varunamn LIKE '$checkLev%'"; $querys = mysql_query($sql); //Count products in db // $dbArray = mysql_fetch_array($querys); $nrOfProducts = $dbA

Re: [PHP] Average time spent on a page

2005-08-06 Thread virtualsoftware
Guess what? I've googled for it and nothing - Original Message - From: "Burhan Khalid" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Saturday, August 06, 2005 5:07 PM Subject: Re: [PHP] Average time spent on a page [EMAIL PROTECTED] wrote: Hi, How can i found out the a

Re: [PHP] Average time spent on a page

2005-08-06 Thread virtualsoftware
LOL. This got nothing to do with my question . LOL again - Original Message - From: "Frank de Bot" <[EMAIL PROTECTED]> Cc: Sent: Saturday, August 06, 2005 10:20 PM Subject: Re: [PHP] Average time spent on a page [EMAIL PROTECTED] wrote: Hi, How can i found out the average time us

[PHP] sorry for asking here,a small apache query

2005-08-06 Thread babu
Hi all, I am sorry for asking in php forum.i am subscribed to php and not to apache.but i hope many people in this group also the solution to this query. how can i configure apache so that users are forbidden to see my docroot file structure. for example i have a file at http://localhost/dir

Re: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-06 Thread Jochem Maas
Rick Emery wrote: Quoting "Chris W. Parker" <[EMAIL PROTECTED]>: Rick Emery on Friday, August 05, 2005 4:54 PM said: Well, as I found out when I Google'd before I posted, it *lists* plenty of JavaScript mailing lists. But it can hardly "recommend a good" one, whi

Re: [PHP] how to check http:// or https:// ?

2005-08-06 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Right. Tested and found $_SERVER['HTTPS'] has to be 'on' :) But, there is something in the code Jochem wrote that bothers me for a while: if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') { echo 'you are secure(-ish?)'; } Doesn't $_SERVER['HTTPS']=='on' a

Re: [PHP] Bug or programmer-error?

2005-08-06 Thread Frank de Bot
Rob Ziere wrote: Dear PHP_friends, I have found a strange behaviour of the "include" function. Here it is . // 1. this works fine include ("../../gps_info/fetch_fields.php"); // 2. this works fine $doc_root=$_SERV

[PHP] Bug or programmer-error?

2005-08-06 Thread Rob Ziere
Dear PHP_friends, I have found a strange behaviour of the "include" function. Here it is . // 1. this works fine include ("../../gps_info/fetch_fields.php"); // 2. this works fine $doc_root=$_SERVER[DOCUMENT_RO

Re: [PHP] Can I retrieve a stored php session variable from within a javascript function?

2005-08-06 Thread Rick Emery
Quoting Mauricio Pellegrini <[EMAIL PROTECTED]>: Hi , I wonder if it's possible to retrieve the value from a php session variable from within a javascript function. I'm no PHP expert, but I'll give it a try (there are plenty of smart people on this list who will correct me if Im wrong :-)

Re: [PHP] Return Path [SOLVED]

2005-08-06 Thread sub
Works great. Thank you. Although I swear I tried that last night. Eh I probably messed something up. Andrew Darrow Kronos1 Productions www.pudlz.com - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Saturday, August 06, 2005 6:12 AM Subject:

Re: [PHP] Average time spent on a page

2005-08-06 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Hi, How can i found out the average time users spent on a page. Anyone know a tutorial? Thanks in advance for your help !!! PLEASE ONLY SEND YOUR MESSAGE ONCE!!! Also, remember that google is your friend. -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Can I retrieve a stored php session variable from within a javascript function?

2005-08-06 Thread Burhan Khalid
Mauricio Pellegrini wrote: Hi , I wonder if it's possible to retrieve the value from a php session variable from within a javascript function. Does anyone have any ideas about this? No. You cannot retrieve it, restore it, read it, send it, anything else. You can write it from PHP : echo 'va

Re: [PHP] Return Path

2005-08-06 Thread Sebastian
try using -f mail($toemail, $subject, $message, $from, '-f [EMAIL PROTECTED]'); [EMAIL PROTECTED] wrote: I don't seem to be able to set the "return path" using the mail() function. I can't figure out why "from" will let me set it, but not the return path. $headers = 'From: [EMAIL PROTECTED]'

Re: [PHP] Re: Sending post data from a script

2005-08-06 Thread glumtail
you can try this: $sock = fsockopen($parse_url['host'], $parse_url['port'], $errno, $errstr, 30); if (!$sock) { die("$errstr ($errno)\r\n"); } $tmp = explode('&',$parse_url['query']); $data = NULL; foreach($tmp as $val) { $p = explode('=',$val); if(empty($data)) {

[PHP] PHP based Menu Builder for Flash (by Stephen Fegan)

2005-08-06 Thread Gurdeep Singh (Guru)
Hi All, I am trying to develop a script that would add/delete/modify the menus in the Flash (http://www.netsoc.ucd.ie/flash/) The file that is used to build the menu is "system.menu" located in the /usr/slocal/lib/flash/ directory. So far I have made few scripts that would take inputs from th

Re: [PHP] Average time spent on a page

2005-08-06 Thread Frank de Bot
[EMAIL PROTECTED] wrote: Hi, How can i found out the average time users spent on a page. Anyone know a tutorial? Thanks in advance for your help !!! A hello world page will take me around 15 secs I guess... A full blown website with everything you can imagine a few months orso. -- PHP G