Re: [PHP] Using PHP for accsess control, preventing access to staticfiles

2005-10-27 Thread Ben
Dan Trainor said the following on 10/27/2005 01:34 PM: Ben wrote: Move the files outside the document root so that they aren't available via a direct URL, then create a 'file access page' in php that will check for the session variable and either send or not send the file based

Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Ben
place to start looking. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a code question..??

2005-11-10 Thread Ben
p B... I quick stroll through the archives ought to answer your question. You have many options. It could be as simple as: if($login) { print("http://url.for.app.b\";>\n"); } It depends what you want to do and how aware you want your two applications to be of ea

Re: [PHP] a code question..??

2005-11-10 Thread Ben
s/comments.. As Richard suggested, curl ought to work or what ever web services flavour you prefer. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a code question..??

2005-11-10 Thread Ben
it on a remote server'. Request the file with curl and voila, you're done. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Install problem

2005-11-14 Thread Ben
assuming your on *nix) to r--r--r-- which will give your web server's user (and ever other user account on the machine - which may not be what you want) permission to read the file. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: checkng if string is a number

2005-11-17 Thread Ben
do something else. is_int doesn't work, intval converts "ten" to a number so that doesn't work is_numeric http://ca.php.net/is_numeric - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php error message

2005-11-17 Thread Ben
ut to a variable and only output it to the browser after any header() function use. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variables in Variables?

2005-11-18 Thread Ben
ey => $value) { $eval="\$temp=".$value.";"; eval($eval); echo $temp; } - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't execute external program

2005-11-21 Thread Ben
into whether you are running in safe mode or not, and if you are whether you have your program in the safe_mode_exec_dir or not. Also check disable_functions to see if any of the ones you are having trouble with are listed. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

2005-11-23 Thread Ben
me_content_type It seems to work well for me and there's no need to trust whatever the browser claims a file is or having to worry about different browsers inconsistently describing a mime type. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: page duration tracking

2005-11-30 Thread Ben
ious page. There is no reliable way to record if they leave your stie for another site or close their browser. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: problem in installing php5

2005-12-01 Thread Ben
development package installed?... Please provide more information about what you have done and what error messages you are receiving so that other readers are able to help you. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF Generator

2005-12-02 Thread Ben
t you would of course have to provide your code to your client, but then you have to do that with PHP anyway. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Ben
ty to SSH to your local machine) so that you can resize your shell window horizontally as well as vertically. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Ben
Jay Blanchard said the following on 12/06/2005 11:24 AM: [snip] And for those interested in using a real computer, it's GUI also runs under MacOSX. [/snip] If they are "real" why aren't there more of them? 'cause it's real expensive ;-). - Ben -- PHP General Ma

Re: [PHP] What software do you use for writing PHP?

2005-12-07 Thread Ben
web site you've just drawn, What, can't you use punch cards? - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File uploading?

2001-01-31 Thread Ben
f you are still stuck, Ben Lauri Vain wrote: > > Hello everybody, > > I'm trying to do a file upload from the users computer via HTML file form element > to a Linux server running Apache. The file is selected by the user from her > or his computer, they hit the submit butt

Re: [PHP] Creating mySql search feature.....

2002-11-24 Thread Hatem Ben
Hello, What you need is : 1- parse your query and make it boolean "apple orange" become "apple and orange" and so on 2- then you can generate a MySQL query based on that like this way --- SELECT id, field1 match (field1) against (' apple orange ') as relevance FROM hospitality WHERE

[PHP] Huffman encoding

2002-11-24 Thread Hatem Ben
Hey all I'm looking to implement the huffman encoding in PHP, but i would like to ask if it isn't already done ? (why reinventing the wheel) Thx Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Huffman encoding / almost done

2002-11-24 Thread Hatem Ben
Sorry for the last email (i wasn't looking to highjack any thread :( very sorry guys !) - Original Message - From: "Hatem Ben" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Sunday, November 24, 2002 2:06 PM Subject: [PHP] Huffman enc

Re: [PHP] Re: How to create zip files in PHP ?

2002-11-27 Thread Hatem Ben
check this, it could help : http://www.phpclasses.org/browse.html/class/42.html Hatem - Original Message - From: "Derick Rethans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 4:26 PM Subject: [PHP] Re: How to create zip files in PHP ? > Php User wrote: >

Re: [PHP] Help with the PHP

2002-11-28 Thread Hatem Ben
Welcome to the new world ;) before clicking or asking start reading what is PHP (http://www.php.net), and in what it could be usefull. then you can getting started here : http://www.php.net/manual/en/tutorial.php - Original Message - From: "Ted Frank" <[EMAIL PROTECTED]> To: <[EMAIL PROT

[PHP] Struggling with code

2002-12-04 Thread Ben C.
I am struggling with the code below. I keep getting the error "Couldn't execute query". Please help me out, let me know where I am going wrong. -- The content of this email message and any attachments are confidential and

RE: [PHP] Struggling with code

2002-12-04 Thread Ben C.
9:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Struggling with code On Thursday 05 December 2002 13:24, Ben C. wrote: > I am struggling with the code below. I keep getting the error "Couldn't > execute query". Please help me out, let me know where I am going wrong. &

RE: [PHP] Struggling with code

2002-12-05 Thread Ben C.
I have incorporated most of the suggestions. My most recent code is: -Original Message- From: Hugh Danaher [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:07 AM To: Ben C. Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Struggling with code please post lines 20 and 21, get

RE: [PHP] Struggling with code

2002-12-05 Thread Ben C.
Hugh, I took away the comma from $url and it works. Everyone, Thanks for your help! Ben -Original Message- From: Ben C. [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:15 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Struggling with code I have incorporated most of the

Re: [PHP] Getting full HTTP request the page was requested with?

2002-12-15 Thread Hatem Ben
$url = "http://myserver.com";; $sockhandle = @fsockopen($url, 80, &$errno, &$errstr); if(!$sockhandle) { $mes = "server $url not available!"; $result = "$mes"; return $result; } else { $request = "GET / HTTP/1.1\r\n"; $request .= "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)\r\n"; $r

[PHP] Training Courses in PHP & MySQL

2002-12-19 Thread Ben C .
Does anyone know where I can get a good training course in both PHP and MySQL that would make me proficient? Or does anyone know of a good tutor? I would prefer it to be in California or on the west coast. Please provide your comments. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Problem with comma in mail form

2002-12-24 Thread Ben Edwards
ail, $subject, $message, "From: $email" ); Problem is the message gets truncated if there is a comma in the message after the comma. Has anyone had this problem, got a solution to it. Regards, Ben ********

Re: [PHP] Problem with comma in mail form

2002-12-26 Thread Ben Edwards
Here is the code with suggestion added, message still gets truncated after comma. Ben include( "common.inc" ); $db = open_db(); html_header( "Contact Us" ); if(isset($doit)) { $errors=array(); check_email( $email, $errors ); if(!isset ($

Re: [PHP] Problem with comma in mail form

2002-12-26 Thread Ben Edwards
line character. So when I run $mgs through the function, do echo $msg, and look in the source of the HTML $msg is still on a number of different lines, Ben ******** * Ben Edwards +44 (0)117 9400 636 * * Critical

Re: [PHP] Problem with comma in mail form

2002-12-26 Thread Ben Edwards
Sorted it out with $message = ereg_replace("(\r\n|\n|\r)", "\n", trim( stripslashes( $message) ) ); trim and stripslashes not strictly speaking nessesery. Not 100% sure what happened here but guess \r\n or \r was causing problems. Ben At 11:11 26/12/2002 -0500, 1LT

[PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
Hello all, I got a strange problem, a wrong php script was upladed in my hosting server and make my website return a dns error ! i've discoverd after one day that my index.php was a wrong one ! normally it should return another error related to script not to dns ! can someone explain me this ?

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
> I don't get a dns error on this > > I get - 'zero sized reply' > > > can someone explain me this ? > > Is this caused by server configuration or something else ? > > I would say that a php error cannot directly cause dns problems - so the > error message may be wrong ! (what is generating the mes

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
it's not an IE specefic :)) netscape or opera or whatever will return the same error message. - Original Message - From: "Paul Reed" <[EMAIL PROTECTED]> To: "'Hatem Ben'" <[EMAIL PROTECTED]> Sent: Saturday, December 28, 2002 10:19 PM Subject

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
echo "server dynamix-tn.com not available!: $errno : $errstr"; } else { echo "server dynamix-tn.com is available!: $errno : $errstr"; } and run it from here, it return server not available. - Original Message - From: Leif K-Brooks To: Hatem Ben Cc: [EMAIL

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
- Original Message - From: "Sean Burlington" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 28, 2002 9:24 PM Subject: Re: [PHP] how could a php script return a dns error ? > Hatem Ben wrote: > > > > > This is what i g

[PHP] RE : [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
- Original Message - From: "Michael J. Pawlowsky" <[EMAIL PROTECTED]> To: "Hatem Ben" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, December 28, 2002 11:20 PM Subject: Re: [PHP] how could a php script return a dns error ? > The prob

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
Sorry I've just removed the file. - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Hatem Ben" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, December 29, 2002 12:55 AM Subject: Re: [PHP] how could a php script return a

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Hatem Ben
> >It's not censorship > > > >they are economising by using a proxy server > > > >and using one that gives unhelpful error messages > > > >BTW - they in this case are the people providing you with your > >connection (not the web hosting company) > > > >they are not blocking the site > > > >but whe

[PHP] Issues w/ WHOIS and Fgets

2003-01-07 Thread Ben Vaughn
3rd party php scripts that use sockets also work. It seems that WHOIS is causing the problem? Thanks for any help anyone can provide! Regards, Ben -- Ben Vaughn Security Analyst Blackbird Technologies 703-796-1438 W / 703-868-5258 C [EMAIL PROTECTED] -- BEGIN:VCARD VERSION:2.1

RE: [PHP] Issues w/ WHOIS and Fgets

2003-01-07 Thread Ben Vaughn
I was just about to reply that I found the problem, and you are correct. Fgets was reaching EOF, finding nothing, and tripping the die(). I was killing myself, quite literally. Thanks! -biv -- Ben Vaughn Security Analyst Blackbird Technologies 703-796-1438 W / 703-868-5258 C [EMAIL

[PHP] Interesting timeout issue

2003-01-09 Thread Ben Vaughn
it's completed. If anyone could give me a clue-in as to what's up, I would be much obliged. Cheers, Ben "; $qstart = sn_Msecs(); while ($row = mysql_fetch_row($result)) { $owner = getcache($row[1]); $id = $row[0]; $sqlu = "UPDATE b.c SET d =

RE: [PHP] Interesting timeout issue

2003-01-09 Thread Ben Vaughn
Running my code directly from console (/usr/local/bin/php ./code.php) allows the code to complete properly. It must be an HTTP issue. Cheers, Ben -- Ben Vaughn Security Analyst Blackbird Technologies 703-796-1438 W / 703-868-5258 C [EMAIL PROTECTED] -- -Original Message- From

[PHP] highlight keywords issue

2003-01-12 Thread Hatem Ben
Heya all, I'm trying to highlight search keywords in a string, everything work expect when this keyword is inside a tag like this : keyword (php) : php will be highlighted to : php">php php.gif" border=0 alt="php.net"> I have tryed to separate text from html, then highlight it then join ht

Re: [PHP] highlight keywords issue

2003-01-12 Thread Hatem Ben
I have find this code very helpfull : - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "'Hatem Ben'" <[EMAIL PROTECTED]>; "'PHP List'" <[EMAIL PROTECTED]> Sent: Sunday, January 12, 2003 2:28

Re: [PHP] highlight keywords issue

2003-01-12 Thread Hatem Ben
it's really boring without good docs - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "'Hatem Ben'" <[EMAIL PROTECTED]>; "'PHP List'" <[EMAIL PROTECTED]> Sent: Sunday, January 12, 2003 2:28 PM Subj

Re: [PHP] class inside class

2003-01-13 Thread Hatem Ben
Assuming you have class WebPage { var $property1; function get_property1() { return $this->$property1; } } class Sample extends WebPage{ } To access $property1 from your WebPage class just do $page = new Sample; $prop1 = $page->get_property1(); Otherwise try to send a snip

[PHP] create executable from php script

2003-01-22 Thread Hatem Ben
heya all, I remember that some developers started a project to create stand-alone application from php script, can someone guide me to find it again ? I haven't found any url talking about it. Regards, Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] create executable from php script

2003-01-22 Thread Hatem Ben
nop, not the php-gtk , but something that can create binary executable code from any php script. > Do you mean gtk.php.net? > > Hatem Ben wrote: > > >heya all, > > > >I remember that some developers started a project to create stand-alone > >application from

Re: [PHP] create executable from php script

2003-01-22 Thread Hatem Ben
I know it also, still related with php-gtk. Thanks anyway Hatem - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Hatem Ben" <[EMAIL PROTECTED]>; "Marek Kilimajer" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent:

[PHP] Select value for driopdown box

2003-01-22 Thread Ben C .
I am using the query below to edit a record. I want to edit the field which has a list of states in a dropdown box. I want to have the state that is in the selected field shown as the selected state. How would I do this? Query - $state"; } $display_block = " $optio

RE: [PHP] Select value for driopdown box

2003-01-25 Thread Ben C.
I tried to use the below but it does not work. Please help! -Original Message- From: Michael Sweeney [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 10:29 AM To: Ben C. Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Select value for driopdown box Assuming that you know which

[PHP] Money format

2003-01-30 Thread Ben Edwards
I wish to format money with a £ sign, two decimal places and commas separating thousands. I seem to be able to do the £ and decimal places with sprintf or use money_format to do the commas but cant find how to do both/combine them. any insight, ben

Re: [PHP] Money format

2003-01-30 Thread Ben Edwards
As I said it is almost what I want but not quite. If it can be done a code snipit would be good. Ben At 19:44 30/01/2003 -0700, V Dub wrote: http://php.net search in functions for number_format Cheers! Quoting Ben Edwards <[EMAIL PROTECTED]>: ### I wish to format money with a £ sig

Re: [PHP] WYSIWYG CMS Part2

2003-02-07 Thread Hatem Ben
Warning: Access denied for user: 'root@localhost' (Using password: YES) in /home/sascha/www/docs/freecon/includes/global.inc.php on line 8 Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: YES) in /home/sascha/www/docs/freecon/includes/global.inc.php on li

Re: [PHP] MIME Decoding Class

2003-02-08 Thread Hatem Ben
http://sourceforge.net/projects/phpmimeclass "Jonathan Chum" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I'm looking through Google for MIME decoding classes, one developed by > Richard Heyes used in Pear and a few others. What I'm curious is how > complete are these

[PHP] Removing a comma from a form field

2003-02-13 Thread Ben C .
I'm trying to update a field which contains a $USD figure. But when I update it as 200,000 it become 200. I need to take out the comma. Is using ereg_replace function the best way of doing so? What do you think. Thanks, Ben -- PHP General Mailing List (http://www.php.net

[PHP] Subtracting two dates

2003-03-10 Thread Ben C.
There are a lot of artlicles on this but I need a simple solution. I need to subtract two dates as follows: $date = date("Y-m-d"); $date1 = "2003-03-03"; $differencedate = ($date - $date1); echo $differencedate; When I do this I get 0. Please help!

RE: [PHP] Subtracting two dates

2003-03-10 Thread Ben C.
Thanks, Justin. It works. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 8:27 PM To: Ben C.; [EMAIL PROTECTED] Subject: Re: [PHP] Subtracting two dates Then you need to decide if you want to show days, or hours, or years difference

RE: [PHP] Subtracting two dates

2003-03-11 Thread Ben C.
Is there a way not to round the number but get a whole number? I don't want to have 1.5 days show as 2 days because it really has not gone into day 2? -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 8:27 PM To: Ben C.; [EMAIL PROT

[PHP] shoutcast communication

2003-07-09 Thread Ben Paul
really havent a clue how this is done. Thanks Ben Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C.
How do I add a column of numbers generated through a MySQL query without using the SQL SUM() function? I have tried looking through the different documentation. I am probably missing something. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C.
Yes. From there I want to add all the 'a' values together using PHP. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 12:40 AM To: Ben C. Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Addin a column of numbers not using MySQL D

Re: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Monday 04 August 2003 15:59, Ben C. wrote: > > Yes. From there I want to add all the 'a' values together using PHP. > > So do it then. > > $total = $total + $myrow['a'] // or something as you go through the loop > // is

Re: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Monday 04 August 2003 15:59, Ben C. wrote: > > Yes. From there I want to add all the 'a' values together using PHP. > > So do it then. > > $total = $total + $myrow['a'] // or something as you go through the loop > // is

Re: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
27;paid']; } CODE End- What I want to do from here is add up all the 'paid' figures. > > From: Jason Wong <[EMAIL PROTECTED]> > Date: 2003/08/04 Mon PM 01:55:40 EDT > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Addin a column of numbers not u

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. > > From: "Jay Blanchard" <[EMAIL PROTECTED]> > Date: 2003/08/04 Mon PM 04:09:36 EDT > To: "Ben C." &

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
ate: 2003/08/04 Mon PM 02:16:22 EDT > To: "Ben C." <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL > > [snip] > while ($row = mysql_fetch_array($result_2)) { > $paid = $row['paid']; &

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Unsure. How would I do that? > > From: "Jay Blanchard" <[EMAIL PROTECTED]> > Date: 2003/08/04 Mon PM 04:36:15 EDT > To: "Ben C." <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL >

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. > > From: "Jay Blanchard" <[EMAIL PROTECTED]> > Date: 2003/08/04 Mon PM 04:09:36 EDT > To: "Ben C." &

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. > > From: "Jay Blanchard" <[EMAIL PROTECTED]> > Date: 2003/08/04 Mon PM 04:09:36 EDT > To: "Ben C." &

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Jay, It still returns '0'. I think we are missing something. Any other ideas? Anyone else have any ideas? Ben > > From: "Jay Blanchard" <[EMAIL PROTECTED]> > Date: 2003/08/04 Mon PM 03:10:15 EDT > To: "Ben C." <[EMAIL PROTECTED]>,

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
I want to do now is add up the values 1-5 and get 800.00. Does this help clarify? > > From: "Jay Blanchard" <[EMAIL PROTECTED]> > Date: 2003/08/04 Mon PM 04:57:17 EDT > To: "Ben C." <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Subject: RE

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Jay, No results are returned. It is blank. > > From: "Jay Blanchard" <[EMAIL PROTECTED]> > Date: 2003/08/04 Mon PM 04:57:17 EDT > To: "Ben C." <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Subject: RE: Re: [PHP] Addin a column of numbers not u

RE: [PHP] Sum a column of values from a MySQL query

2003-08-05 Thread Ben C.
Yes, I know. However, the while() loop should generate all the invoice in a list. -Original Message- From: Giz [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:03 AM To: 'Ben C.'; [EMAIL PROTECTED] Subject: RE: [PHP] Sum a column of values from a MySQL query I thin

[PHP] Sum a column of values from a MySQL query

2003-08-05 Thread Ben C.
I am trying to sum a query of values from a MySQL table. The code I am using is: ---BEGIN CODE #1-- $sql_2 = "SELECT SUM(partpaidamount) as partpaid FROM $tb_name WHERE invoiceid = \"$invoiceid\" "; $result_2 = @mysql_query($sql_2,$connection) or die(mysql_err

[PHP] Passing database resource to object (OO)

2003-08-14 Thread Ben Edwards
Wan I insatiate an object I want to pass a database resource that can be used throughout the object. The below code should indicate what I want but I get the error "mysql_query(): supplied argument is not a valid MySQL-Link resource". I guess this is because "$this->$db = $

[PHP] array method attributes (OO)

2003-08-14 Thread Ben Edwards
I wish to pass a session variable into an object and have it available as an attribute. I have what I thought I needed below as a code segment but it douse no work. Has anybody got any idea how I should achieve this. Ben .. class Contacts{ var $db; array $SESSION

[PHP] Sum a column of values from a MySQL query

2003-08-14 Thread Ben C.
I am trying to sum a query of values from a MySQL table. The code I am using is: ---BEGIN CODE #1-- $sql_2 = "SELECT SUM(partpaidamount) as partpaid FROM $tb_name WHERE invoiceid = \"$invoiceid\" "; $result_2 = @mysql_query($sql_2,$connection) or die(mysql_err

Re: [PHP] array method attributes (OO)

2003-08-14 Thread Ben Edwards
into an object and have it available > as > an attribute. I have what I thought I needed below as a code segment > but > it douse no work. Has anybody got any idea how I should achieve this. > Ben > ... > class Contacts{ > var $db; > array

[PHP] PHP.ini file and register_globals

2003-08-15 Thread Ben C .
I have a quick simple question. I am using PHP 4.2.3 on Linux. I am trying to turn register_globals from off to on. Is all that I need to do change it from off to on in the php.ini file? Do you I need to reboot to have the changes go into effect? Sorry for a simple question but I am new at

Re: Re: [PHP] PHP.ini file and register_globals

2003-08-15 Thread Ben C .
Is the change in the php.ini file the only thing that I need to change to turn on register_globals? > > From: "Jonatan Pugliese." <[EMAIL PROTECTED]> > Date: 2003/08/15 Fri PM 01:18:01 EDT > To: "Ben C." <[EMAIL PROTECTED]>, <[EMAIL PR

Re: Re: [PHP] PHP.ini file and register_globals

2003-08-15 Thread Ben C .
Is the change in the php.ini file the only thing that I need to change to turn on register_globals? > > From: "Jonatan Pugliese." <[EMAIL PROTECTED]> > Date: 2003/08/15 Fri PM 01:18:01 EDT > To: "Ben C." <[EMAIL PROTECTED]>, <[EMAIL PR

[PHP] Mail() Problem Sending

2003-08-18 Thread Ben C .
I have recently had php installed on my server with sendmail. The server is behind a firewall and SMTP is open on the firewall. However, when I execute the mail(), it appears to have sent the mail, but I never receive it. I am not getting any error messages. Has anyone ever run into this pro

[PHP] Need help with coding problem

2003-03-18 Thread Ben C.
I have a subscription service and am trying to not allow the buyer to proceed purchasing another subscription if one of their subscriptions is over 29 days past due in their payment. I am trying to query each invoice and checking to see if it is past due more than 29 days, if it is I want a messag

[PHP] where is cookie limitation on php ?

2003-03-21 Thread Hatem Ben
Greetings all, Can someone tell me where is the limitation on the number/size of cookies that could be used ? Assuming we have : This is what php return : Array ( [DX_A] => Array ( [4] => e [5] => e [6] => e [7] => e [8] =>

[PHP] Help me pervade Bristol City council to use PHP

2003-03-24 Thread Ben Edwards
P that the people at Bristol city Council would of heard of (i.e. high profile sites). Also I think this type of thing should be on php.net. Ben **** * Ben Edwards +44 (0)117 968 2602 * * Critical Site Build

Re: [PHP] Viewing PHP pages

2003-03-24 Thread Ben Edwards
* Ben Edwards +44 (0)117 968 2602 * * Critical Site Builderhttp://www.criticaldistribution.com * * online collaborative web authoring content management system * * Get alt news/views films online http://www.cultureshop.org * * i-Contact

[PHP] Retrieving newly created ID from MySQL?

2003-03-26 Thread Ben Cheng
lect where the Title & Content fields are equal to the values I just inserted? -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Classes

2003-03-28 Thread Donahue Ben
;../A/ClassA.class.php"); ... } i cant get this working. How do i solve this problem without having both class files in the same directory. Ben __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://pla

[PHP] Validate MySQL date

2003-03-31 Thread Ben C.
How do I easily check to see if a MySQL formatted date is valid such as if a user enters 2003/02/28 would return true 2003/02/31 would return false I have check the manual and other resources but can't come up with anything. ---

Re: [PHP] Humour in programming?

2003-04-01 Thread Hatem Ben
hehe and the good news, ppl don't have to upgrade to the latest PHP 2.0.2 ... coz the php 2.0.1 don't seems to be seriously buggy ;-) Cheers, Hatem - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: T

[PHP] Wierd PHP Image

2003-04-01 Thread Ben Lake
Might anyone know why when I do a phpinfo() the image that appears where the PHP log is, is a picture of a dog with an alt="Thies"? This only seems to happen in PHP 4.3.x Any explanation?

[PHP] Menu from Directory

2003-04-02 Thread Ben Whitehead
not possible, could it us the information in a text file I have created and placed in this directory? Anyway help would be greatly received! (I'm new to PHP, so simple help would be even more appreciated!) :S Ben -- Ben Whitehead [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] PGP?

2003-06-06 Thread Ben Cheng
Any way in PHP to grab form info and then encrypt it with PGP before sending it out as an email? -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
Getting the below error from a php site I am developing. I am using a new server so I guess it is a php configuration thing, but how do I fix it. Ben Warning: SAFE MODE Restriction in effect. The script whose uid is 510 is not allowed to access /home/virtual/site4/fst/var/www/html/test owned

RE: [PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
$dp = opendir( $currdir ); Basically it seems like I need to turn 'SAFE MODE' off but I dont really know what it it or how to turn it off. In fact I am not sure where the config file is on a *nix box or what is it called. Ben At 15:58 09/06/2003 +0200, winst0n wrote: what doe

RE: [PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
. safe_mode_gid = Off So not quite sure why there is a phoblem Ben At 16:23 09/06/2003 +0200, winst0n wrote: Ok, I think the php comand opendir is blocked for security reason. Try with this : $dp = dir($currdir ); dir() and opendir() are the same for client. A lot of hostserver disable opendir(), I

<    1   2   3   4   5   6   7   8   9   10   >