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

2005-10-27 Thread Ben
to run on IIS, as well. 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 on whether the user has access. - Ben -- PHP General

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 on whether

[PHP] Re: Decompress a zlib'd string in PHP

2005-10-26 Thread Ben
friend :-). - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: str_split() and errors?

2005-10-26 Thread Ben
: PHP Fatal error: Call to undefined function: str_split() in file.php on line 21 Did you read the second comment on the str_split manual page? I suspect you're using php4. http://ca.php.net/manual/en/function.str-split.php - Ben -- PHP General Mailing List (http://www.php.net

Re: [PHP] GUID or any other unique IDs

2005-10-25 Thread Ben Litton
While not ideal, you could do a select on a db. MS SQL and MySQL both have functions to generate unique id's and I imagine the other databases do as well. While running a SELECT uuid() and hitting the database for each one of these things is annoying, it is one possible pseudo-solution. On

[PHP] Re: Email Validation built-in? RFC

2005-10-24 Thread Ben Litton
there are probably 'good enough' for your needs, and I haven't tested that C code on some of the stranger e-mail addresses out there in existance. Ben On Fri, 21 Oct 2005 22:58:38 -0400, Richard Lynch [EMAIL PROTECTED] wrote: Given: It is unacceptable to reject perfectly valid email addresses

[PHP] Re: moving website from windows to linux hosting

2005-10-24 Thread Ben
the other so I was getting errors about undeclared variables (bad habit) on one platform that I wasn't getting on the other. Otherwise I think you will find the move to be relatively painless. That said, I'd start testing on the Linux server as soon as possible just in case. - Ben -- PHP General

[PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread Ben Litton
Either cast your empty ints (which should make it zero) or do an if (!isset($variable)) { $variable = 'NULL'; } Ben On Tue, 18 Oct 2005 12:15:41 -0400, Shaun [EMAIL PROTECTED] wrote: Hi, Up to this point in time I used to construct my insert statements like this $qid = mysql_query

[PHP] Re: php, expect and screen

2005-10-18 Thread Ben
to be run interactively or are there other non-interactive ways to get your status information? - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread Ben Litton
Yes, but NULL is a special thing to MySQL. If you don't quote 'NULL' it just means 'empty' to mySQL. If your database schema allows NULLS (it's optional), your insert will go through. On Tue, 18 Oct 2005 13:10:32 -0400, Shaun [EMAIL PROTECTED] wrote: Hi Ben, Thanks for your reply

Re: [PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread Ben Litton
quotes he could make your else $value1 = '\'.$value1.\''; _Ben On Tue, 18 Oct 2005 13:42:19 -0400, [EMAIL PROTECTED] wrote: What Ben said is correct, but I'd like to elaborate so you know why it's correct. The INSERT statement you're trying to end up with is: INSERT INTO MYTABLE (column1

Re: [PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread Ben Litton
You're using two =='s for your assignment. On Tue, 18 Oct 2005 15:15:59 -0400, Shaun [EMAIL PROTECTED] wrote: Hi all, Thanks for your replies, rather than check each vaule by name I am trying to produce a more dynamic solution: foreach ($_POST as $key = $value) { if ($value == '') {

[PHP] Re: Recommended Reading?

2005-10-18 Thread Ben Litton
construction. Some seems fairly obvious, but if you're self-taught (like I am) then you're sure to take a few things away from it. Ben On Tue, 18 Oct 2005 14:43:36 -0400, Alan Lord [EMAIL PROTECTED] wrote: Hi all, Forgive this long diatribe, a bit off-topic I know, but it might

Re: [PHP] Uploaded CSV - database

2005-10-17 Thread Ben Litton
your own stream if one isn't already to your liking, but I'm afraid I haven't found need to go beyond the simple read-a-file-from disk style operation. Ben On Mon, 17 Oct 2005 11:45:04 -0400, Jim Moseby [EMAIL PROTECTED] wrote: -Original Message- From: Brian Dunning [mailto:[EMAIL

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Ben
under the Installation heading. You want to install the pdflib extension using PEAR with the command: pear install pdflib Once you've done that edit your php.ini and make sure it includes the line: extension=pdf.so Then restart your web server. - Ben -- PHP General Mailing List (http

[PHP] Re: fckeditor and PDF and pesky users

2005-10-14 Thread Ben
://jeff.cs.mcgill.ca/~luc/PSto.html You could convert the file to jpeg or gif and then make the graphic available for using in fckeditor. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Still struggeling with my first script...

2005-10-14 Thread Ben
have tried seems to fail. How can I learn when I'm apparently given the wrong information. Are you 100% certain that your php install is working properly? What error messages are you receiving? Make a page with only the following: ?php phpinfo(); ? What do you see when you open it? - Ben

Re: [PHP] prevent user from getting scripts outside the web folder [this better?]

2005-10-13 Thread Ben
if that is the case in your situation. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How can I connect a remote server from phpmyadmin?

2005-10-12 Thread Ben
. And of course the mysql server has to be configured to allow remote access for the user(s) involved. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Mac Address

2005-10-11 Thread Ben Sagal
I did mention this is an INTRANET server so all clients are be local, there are no router between the clients and the server. how would i go about accessing arp from php, (the server runs Linux)? Ben On 10/10/05, M. Sokolewicz [EMAIL PROTECTED] wrote: That will give you the *local* mac address

[PHP] Get Mac Address

2005-10-09 Thread Ben Sagal
I have a local intranet server, running apache1.3+php4. Is it possible to get the mac address of computes which access on of my php pages? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP SOAP for production

2005-10-03 Thread Ben
in the released version of PHP 5 or not ? Yes, already in the release version: http://ca3.php.net/manual/en/ref.soap.php For php4 try nusoap: http://sourceforge.net/projects/nusoap/ - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Broken pipe

2005-10-02 Thread Ben-Nes Yonatan
the PHP to wait how much I tell him? Ofcourse if im wrong I would like to know the reason also :) Thanks in advance, Ben-Nes Yonatan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Array within array

2005-09-30 Thread Ben Litton
I would do something like $fp = fopen($file_location, 'r'); while (!$fp) { $csv_line = fgetcsv($fp); //insert line into database here after appropriate validation and cleaning } On Fri, 30 Sep 2005 06:29:11 -0400, Chris [EMAIL PROTECTED] wrote: Greetings PHP community, I have a CSV text file

[PHP] Re: Trying to install PHP

2005-09-27 Thread Ben
check out the fedora legacy project (http://www.fedoralegacy.org/) which releases security fixes for RH9 and older Fedora versions. If you have any more questions on this feel free to email me off list since this is not really php related. - Ben -- PHP General Mailing List (http://www.php.net

[PHP] Re: newbie questionsession and cookie by javascript

2005-09-22 Thread Ben
.php.net/manual/en/features.cookies.php - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with Internet Explorer when downloading / viewing dynamically generated PDF files

2005-09-22 Thread Ben
; Let me know if this doesn't solve your problem. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: email validation (no regex)

2005-09-21 Thread Ben
the message is accepted and bounced. Your method will not detect this. - Ben function isValidEmail($address, $checkMX = false) { // Return true or false depending on whether the email address is valid $valid_tlds = array(arpa, biz, com, edu, gov, int, mil, net, org, aero, ad, ae

[PHP] Re: help out a noob w/ include switch?

2005-09-20 Thread Ben
are being passed in the url you should be referencing them with $_GET['variablename'], so for instance at the top of navigate.php you should have: switch ($_GET['nav']) - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SUCCESS! Re: help out a noob w/ include switch?

2005-09-20 Thread Ben
jay thompson said the following on 09/20/05 17:35: Thank you all for the kind help. I have The site working now (once i move it from the test loc. I'll post a link here. It's for a performance art festival here in vancouver). The was actually with $_GET in the switch as suggested by Ben. Thnks

Re: [PHP] trying to figure out the best/efficient way to tell whoislogged into a site..

2005-09-14 Thread Ben Holt
bruce wrote: ben... your statements/approach is pretty much what i've been thinking of. however, with regards to the forums/cms apps.. i've yet to find one that actually keeps a track of the logged in users, that works when the user kills the browser.. the ones that i've seen, that allow

Re: [PHP] trying to figure out the best/efficient way to tell whoisloggedinto a site..

2005-09-14 Thread Ben Holt
bruce wrote: ben... i understand what you've stated, but i was under the impression that a number of sites (etrade, etc...) can/do track who is/is not logged into their sites.. and not just by some crude 'timeout' function... Yes they do, the key there being that they are tracking who

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-14 Thread Ben
a get look for a $_GET. Ditto with cookies. You really need to know where your variables are coming from if you want a measure of security. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-14 Thread Ben
. And the lazy guy answer... typing $_POST and $_GET is faster than typing $_REQUEST ;-). - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: trying to figure out the best/efficient way to tell whois loggedinto a site..

2005-09-14 Thread Ben
submissions and have it pass the values on to your functions. IE In your post handling script: $result=doSomething($_POST['this'],$_POST['that']); In your get handling script: $result=doSomething($_GET['this'],$_GET['that']); - Ben -- PHP General Mailing List (http://www.php.net

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Ben
or marks as stale records for users who haven't requested a new page within a set period of time. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] trying to figure out the best/efficient way to tell whois logged into a site..

2005-09-13 Thread Ben
code/thoughts/comments/etc... Most forums have some type of who is online functionality, have a look at how they do it. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ben
conservative. Personally, SimpleXML was all I needed to switch after a particularly frustrating bought with php4 and xml parsing. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is php 5.0.4 using isapi unreliable?

2005-09-09 Thread Ben Duffy
Hi, We have a Windows 2003 server that seemed reliable using php as a cgi, then due to placing authentication on directories, we needed to switch to the isapi method about three months ago. The server reboots randomly maybe five times per week, but never outside office hours. I have read

[PHP] Deadlock with session handling code?

2005-09-08 Thread Ben Ramsey
The following message is from a co-worker. I'm passing it along as a favor. Any help would be greatly appreciated since we're both somewhat stuck with no clue how to proceed with this. Thanks, Ben Ramsey I'm having a major problem with my PHP scripts getting stuck on one of our production

[PHP] Re: Parsing MS-WORD docs

2005-09-08 Thread Ben Ramsey
://wvware.sourceforge.net/ Word2x: http://word2x.sourceforge.net/ -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking a date for validity

2005-09-07 Thread Ben
to put the year, month, and day. Once the info has been submitted you can check them against the checkdate function (http://ca3.php.net/manual/en/function.checkdate.php) to make sure they're valid (ie February 31st, etc.). - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: PHP MySQL insert

2005-08-19 Thread Ben Ramsey
Please always reply to the list so that others can benefit from the exchange. As it happens, I'm not exactly very knowledgeable about character sets, so someone on the list may be able to offer more help with regard to the problem you're experiencing. -Ben areguera wrote: On 8/19/05, Ben

[PHP] Re: Catching all errors and redirecting

2005-08-18 Thread Ben Ramsey
://www.php.net/set_error_handler -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
to use the stripslashes() function. Using stripslashes() will remove slashes that were intended to be in the output. Hint: turn off magic_quotes_gpc. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php cli script with if-then's very slow

2005-08-18 Thread Ben Ramsey
time. When you execute it, you are executing the compiled code that the machine natively understands. PHP, on the otherhand, is not compiled and has to be interpreted by the PHP engine each time it is run. This is, naturally, going to make it slower than C. -- Ben Ramsey http

[PHP] Re: Custom session handling - bad or good idea?

2005-08-18 Thread Ben Ramsey
Schlossnagle's _Advanced PHP Programming_ book. Take a look at pages 564 through 568. He talks about writing a custom session handler in C. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
said in this thread, the problem is on quoting and maybe on converting the values to entities, to prevent some quote break the sql structure. You don't need to convert the values to HTML entities when saving to a database. That's not going to prevent this problem. -- Ben Ramsey http

[PHP] Re: date field

2005-08-10 Thread Ben Ramsey
than 1 year ago (or should I think of 365 days)? `updated` date NOT NULL default '1999-12-12' I've looked at: http://ca3.php.net/manual/en/function.getdate.php Thanks, John -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] AJAX PHP

2005-07-21 Thread Ben Liu
I've been tinkering with AJAX for a few weeks now. I've used it in a simple user registration system form. Instead of submitting a desired username and waiting for a round trip to the server to verify that the username is not already in use, I used AJAX to perform the DB query in the

Re: [PHP] Echo array string index?

2005-07-17 Thread Ben-Nes Yonatan
() to the array to repeat the process again with the for(). Cheers, Ben-Nes Yonatan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trimming Text

2005-07-17 Thread Ben-Nes Yonatan
André Medeiros wrote: On Fri, 2005-07-15 at 16:03 +0100, Richard Davey wrote: Hello André, Friday, July 15, 2005, 4:24:23 PM, you wrote: AM I am trying to trim some text containing HTML tags. What I want to AM do is to trim the text without trimming the tags or html entities AM like nbsp;

Re: [PHP] blob and long blob

2005-07-17 Thread Ben-Nes Yonatan
, maybe MySQL got something similar also. Cheers, Ben-Nes Yonatan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] creating of multi dimensional arrays with unknown depth

2005-07-11 Thread Ben-Nes Yonatan
of the dimensions is really unknown and can be changed from 1 to 20 as far as I know. Is there a way to create such a dynamic depth in an automatic way and not by using lots of if's? Thanks in advance, Ben-Nes Yonatan Canaan Surfing Ltd. -- PHP General Mailing List (http://www.php.net

Re: [PHP] reading PDF's

2005-07-01 Thread Ben Ramsey
/ As for reading the text from a PDF, maybe there's some sort of OCR library for PHP out there, but I don't know about it. It'd be a great thing to see, though. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: splitting CSV rows into multiple SQL inserts?

2005-06-22 Thread Ben Duffy
would be the line number. You can set to 1, then increment until you detect a new ordernumber The contents of the detail sub array contains $item_num, $quan, $desc. Loop through this this array to produce your details table inserts. Ben. Vince LaMonica [EMAIL PROTECTED] wrote in message news

Re: [PHP] Re: splitting CSV rows into multiple SQL inserts?

2005-06-22 Thread Ben Duffy
of using arrays. If doing line by line, have you considered sql if not exists (select o_num from order_header where o_num = '$o_num') insert into etc. to prevent duplicates? Ben On Wed, 22 Jun 2005, Ben Duffy wrote: } I would read in the CSV file, and populate two arrays, using the } ordernumber

[PHP] Re: Is the syntax correct?

2005-04-12 Thread Ben Ramsey
BY id $order ); The rest of it looks fine to me. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shared library in php

2005-04-12 Thread Ben Ramsey
don't want to promote illegal activities on this mailing list. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: shared library in php

2005-04-11 Thread Ben Ramsey
the extension you're looking for. If it's a library you created and you want to use it as a PHP extension, take a look at the PHP manual, particularly the section on creating extensions: http://www.php.net/manual/en/zend.creating.php -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
permissions to the Web directory. In general, permission settings under Windows suck. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: On Apr 11, 2005 8:28 PM, Ben Ramsey [EMAIL PROTECTED] wrote: Ahmed Abdel-Aliem wrote: i have a problem with deleting files, i use windows XP and installed on it apache server PHP 5.1 i use unlink($file) to delete files but it doesn't work while it works fine on my

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
(files/.$this-File_Name, 0777); See here for more info: http://us2.php.net/chmod Like I said, I'm not sure whether this is the cause of the problem, but give it a shot and see what happens. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
John Nichel wrote: b) Paths in the MS world are with the backslash (\) and not the forward slash (/) Windows NT onward (XP, 2003, etc.) should understand both the forward slash and the backslash in a file path. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http

[PHP] Re: php rich text editors

2005-04-07 Thread Ben Ramsey
DuSTiN KRySaK wrote: Can anyone refer me to anything that will work with PHP? Just need it for a blog type application. FCKEditor works well, has a PHP version, and is cross-browser: http://www.fckeditor.net/ -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List

[PHP] Catching error from mail function?

2005-03-31 Thread Ben Cheng
Hi I'm using the mail() function to send email and I know it's failing because it's returning a false but how do I tell what problem is? Is there an error message that I can grab that will show me why the function is returning false? Any help greatly appreciated. Thanks! -Ben -- PHP General

[PHP] Removing non-numbers

2005-02-14 Thread Ben Miller
OK - easy one here, I know. Having troubles removing anything that is not a number from user input. According to manual, [!] is supposed to mean set of non-matching optional characters. Tried $var = ereg_replace([!0-9],,$var); and it removes the numbers, but so does $var =

[PHP] Adding Business Days

2005-02-11 Thread Ben C
I am trying to add 5 business/week days to today's date. Does anyone know a good way of how to do it? Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating a varable with a name held in a string

2005-02-11 Thread Ben Edwards
be wanting to run eatch var through a varable think I will use the foreach approch. Thanks everybody. From the manual For each key/value pair it will create a variable in the current symbol table. What exactly is a simble table? Ben -- ---John Holmes... Amazon Wishlist: www.amazon.com/o

[PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
? Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct) signature.asc Description: This is a digitally signed message part

Re: [PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
On Thu, 2005-02-10 at 13:28 +0100, Jochem Maas wrote: Ben Edwards (lists) wrote: Am I correct in thinking Magic Quotes automatically adds quotes to all posted variables, therefore if you are displaying post variables on a form you have to remove the quotes. They are only needed if you

Re: [PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
On Thu, 2005-02-10 at 13:45 +0100, Jochem Maas wrote: Ben Edwards (lists) wrote: PS phpsc.net seems to be down, or is the domain wrong? er yes, oops. as Jeffery pointed out it should have been phpsec.org. had a brainfreeze sorry. OK, trying to do a function to remove magic quotes from

[PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Ben Edwards (lists)
is false even if magic codes are on, any ideas? Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct) signature.asc Description: This is a digitally signed

[PHP] Creating a varable with a name held in a string

2005-02-10 Thread Ben Edwards (lists)
which takes a string and a value and creates a variable? Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct) -- Ben Edwards - Poole, UK, England If you have

Re: [PHP] Problem using return from a class.

2005-02-09 Thread Ben Edwards
On Wed, 9 Feb 2005 16:12:58 +0800, Jason Wong [EMAIL PROTECTED] wrote: On Wednesday 09 February 2005 01:33, Ben Edwards (lists) wrote: Maybe you should post a bit of code to illustrate your problem ;) I'me just doing:- return $radio_html; as the last line of the method. If I

[PHP] Problem using return from a class.

2005-02-08 Thread Ben Edwards (lists)
I am having a really odd problem. I have a class and if I do a return nothing is returned. If I do an echo of the variable that is being returned I can see it so there is something to return. Is there some strange bug in PHP? Ben -- Ben Edwards - Poole, UK, England If you have a problem

RE: [PHP] Problem using return from a class.

2005-02-08 Thread Ben Edwards (lists)
of the variable gets outputted. I could post the method here but its a bit long. Ben -- Ben Edwards - Poole, UK, England If you have a problem sending me email use this link http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct) signature.asc

Re: [PHP] PHP Memory limit exceeded

2005-02-07 Thread Ben-Nes Yonatan
can get to 1GB but apprantly they didnt wrote anywhere about the memory consumption diffrence... or maybe I dont control the english language as I wish to :) The large objects manual - http://www.postgresql.org/docs/7.4/interactive/largeobjects.html (for ver 7.4) Thanks alot again, Ben-Nes

Re: [PHP] PHP Memory limit exceeded

2005-02-03 Thread Ben-Nes Yonatan
Ben-Nes Yonatan wrote: Hi all, I got a problem with uploading files which encounter the memory limit when their size is not even close to the memory limit itself, let me explain. My server is as follows: 1. PHP 4.3.9 2. DB - Postgresql 7.4 3. Apache 1.3.26 Here is my code that i made

Re: [PHP] PHP Memory limit exceeded

2005-02-03 Thread Ben-Nes Yonatan
Ben-Nes Yonatan wrote: Hi all, I got a problem with uploading files which encounter the memory limit when their size is not even close to the memory limit itself, let me explain. My server is as follows: 1. PHP 4.3.9 2. DB - Postgresql 7.4 3. Apache 1.3.26 Here is my code that i made

[PHP] PHP Memory limit exceeded

2005-02-02 Thread Ben-Nes Yonatan
. Thanks in advance, Ben-Nes Yonatan

Re: [PHP] cal_days_in_month() missing, how can I tell if it exists

2005-02-02 Thread Ben Edwards
On Tue, 1 Feb 2005 18:57:12 -0600, James Kaufman [EMAIL PROTECTED] wrote: On Tue, Feb 01, 2005 at 08:47:29PM +, Ben Edwards wrote: I have been implementing a system on a different ISP than I normally use and have got:- Fatal error: Call to undefined function: cal_days_in_month

[PHP] Is there a function to c if a php function exists

2005-02-02 Thread Ben Edwards (lists)
I can have the relevant validation skipped if the function is missing (I will tell the client if they get decent hosting it will start working). So something like function_exists( cal_days_in_month() ) Anyone know what the function is called. Ben -- Ben Edwards - Poole, UK, England If you

[PHP] cal_days_in_month() missing, how can I tell if it exists

2005-02-01 Thread Ben Edwards
I can have the relevant validation skipped if the function is missing (I will tell the client if they get decent hosting it will start working). So something like function_exists( cal_days_in_month() ) Anyone know what the function is called. Ben -- Ben Edwards - Poole, UK, England

[PHP] Re: mail problem at interland

2005-01-29 Thread Ben Ramsey
/package.mail.mail.intro.php. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_pconnect / persistent database conections

2005-01-28 Thread Ben Edwards
On Thu, 27 Jan 2005 22:14:52 -0800, Steve Slater [EMAIL PROTECTED] wrote: At 10:43 AM 1/27/2005, Richard Lynch wrote: Ben Edwards wrote: Been meaning to investigate persistent database connections for a while. Coming from a rdbms background (oracle with a bit of whatcom sqlanywhare) I

Re: [PHP] Magic quotes question (still driving me mad)

2005-01-27 Thread Ben Edwards
On Wed, 26 Jan 2005 13:07:34 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Ben Edwards wrote: On Tue, 25 Jan 2005 17:02:21 -0800, Chris [EMAIL PROTECTED] wrote: You should probably use get_magic_quotes_runtime() , as _gpc only applies to GET/POST/COOKIE, htmlspecialchars

[PHP] mysql_pconnect / persistent database conections

2005-01-27 Thread Ben Edwards
question is what happens if lots of people connect using the same user/password. I tend to do my own user management so everybody douse. Is doing my own user management really dodge, if we were talking about oracle I would probably say it is. Ben -- Ben Edwards - Poole, UK, England WARNING:This email

Re: [PHP] Magic quotes question (still driving me mad)

2005-01-26 Thread Ben Edwards
up. Thanks for every body's help, hope I am nearly there;) Ben if the value in the text box was something like: Hello World! when you go to put in the value attribute it would end up: input type=text value= Hello World! / That would not parse correctly. but if you escaped

[PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
the standard installation of PHP on FC3, then it won't have pcntl enabled with --enable-pcntl because it's not enabled by default. You will have to recompiled PHP with this feature. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
the first note about leaving the program running in the background. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Magic quotes question

2005-01-25 Thread Ben Edwards
In the php manual it states ' Keep in mind that the setting magic_quotes_gpc will not work at runtime.' What douse this actualy mean? Ben -- Ben Edwards - Poole, UK, England WARNING:This email contained partisan views - dont ever accuse me of using the veneer of objectivity If you have

Re: [PHP] Magic quotes question

2005-01-25 Thread Ben Edwards
); } } And it is not doing the assslashes but stuff like \'s is still being added. wonce savein a few times I get \'. Ben On Tue, 25 Jan 2005 10:39:30 -0800, Chris [EMAIL PROTECTED] wrote: It means that you can't set that setting inside a script with ini_set. Since the earliest opportunity to set

Re: [PHP] Magic quotes question

2005-01-25 Thread Ben Edwards
PS. How does htmlspecialchars fit into this. The unprep function is to prepare date coming from the database to be used in input type=text, douse the below function make sence? Ben function unprep( $text ) { // Take data coming from the database an get it ready to be presented

[PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
' ); Date to String Function return str dateToString( date Date, str Format ) e.g. $todayStr = dateToString ( $todayDt,'DD/MM/' ); Anyone know of any functions that do this or have pointers as to how it can be done. Ben -- Ben Edwards - Poole, UK, England

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
there is an obvious way of reversing this (i.e. it has a simeler name). This douse not seem to be the case with PHP;( Ben -- Ben Edwards - Poole, UK, England WARNING:This email contained partisan views - dont ever accuse me of using the veneer of objectivity If you have a problem emailing me use http

Re: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
, validate it, and then convert it back to a timestamp. I cant beleve the PHP date/time functions suck this bad;( Ben From: Ben Edwards [EMAIL PROTECTED] Date: 2005/01/24 Mon PM 12:03:34 EST To: Jay Blanchard [EMAIL PROTECTED] CC: PHP General List php-general@lists.php.net Subject: Re: [PHP

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
On Mon, 24 Jan 2005 19:22:40 -, Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 17:04, Ben Edwards wrote: On Mon, 24 Jan 2005 10:38:03 -0600, Jay Blanchard

Re: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
learn to spell does :) That is awfull grammer. Ime dyslexic, whats your excuse. Was wondering if someone else has writern the function, dont have time at the mo and thought someone else may of. Ben -- Ben Edwards - Poole, UK, England WARNING:This email contained partisan views - dont ever accuse

Re: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
On Mon, 24 Jan 2005 20:15:15 -, Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 19:01, Ben Edwards wrote: On Mon, 24 Jan 2005 12:58:52 -0500, [EMAIL PROTECTED

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