[PHP] Re: Help with dates

2005-03-06 Thread Jason Barnett
Kevin wrote: Hi there, I seem to be in a bit of a pickle. Right now I'm working on a script that would calculate dates from one calendar to another. The normal calendar we use and a newly invented one. In order to do that I need to find the exact days since the year 0 BC/AD. Do you

[PHP] Re: Undefined Variable Problems...

2005-03-06 Thread Jason Barnett
Please keep responses on the mailing list / newsgroup... Nick Zukin wrote: Thanks for the quick response. Yes, had to turn register_globals on because it broke things. Many of these sites aren't mine and I have no idea what's involved in trying to fix them all. If you saw a full 1.2 GB

Re: [PHP] Help with dates

2005-03-06 Thread Jason Wong
provides only allow up to the unix epoch. manual Calendar Functions -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

[PHP] Re: User rights assignment

2005-03-04 Thread Jason Barnett
William Stokes wrote: Hello I'am creating a web site for a soccer club with about 30 teams. The idea is that there are about 20-30 persons who will update the data on the site via web forms admin interface. I have really hard time to figure out how to do the users right assingment. So

Re: [PHP] which class it is?

2005-03-04 Thread Jason Barnett
Yangshiqi wrote: And I do not want all my classes to inherit the debughelper. Best regards, Yang Shiqi Yikes! I swear, some of these mailreader programs that people use... I thought this was an actual answer to someone's question... anywho... Have you checked out debug_backtrace()

Re: [PHP] line feed

2005-03-04 Thread Jason Petersen
On Fri, 04 Mar 2005 14:38:20 +, Bruno Santos [EMAIL PROTECTED] wrote: Hello. How do i print a line return using the echo command, for when i see the page source, i get the code line by line and not all in the same line. using double quotes ( ), i can put \n at the end and i get the

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jason Barnett
Jochem Maas wrote: Rob Adams wrote: ... you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? maybe you can make the problem go away by setting include_path to '.:/www/include' or '.:/www/lib' This still

[PHP] Re: mass emailing on windows server

2005-03-04 Thread Jason Barnett
Please do not send attachments to the list... feel free to post source code on the web though, and we will take a look at what you have. Actually, I'm afraid that I personally can't help you with this problem, but we try to keep code at pastebin websites and/or simplified code in your actual

Re: [PHP] Can't save multiple files if I'm using values pulled from another file...

2005-03-03 Thread Jason Wong
it is the only line that works. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

[PHP] Re: Simple XML

2005-03-03 Thread Jason Barnett
?php ini_set('html_errors', 0); $xml = XML ?xml version=1.0? epp xmlns=urn:ietf:params:xml:ns:epp-1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=urn:ietf:params:xml:ns:epp-1.0.xsd resData domain:chkData xmlns:domain=urn:ietf:params:xml:ns:domain-1.0

[PHP] Re: Authentication fails

2005-03-02 Thread Jason Barnett
I've got some more information and I hope someone can help me figure out the problem. I changed my original PHP program so that the form action script is a different script. In that file, I just do a var_dump on $_POST and $_SERVER. When I do that, it looks like all of the data comes

[PHP] Re: patch to php 4.3.10 to disabling URL wrappers in include like statements

2005-03-02 Thread Jason Barnett
Tom Z. Meinlschmidt wrote: Hi, I've experienced a lot of attacks in my hosting server due to silly users and their scripts with holes. So I prepared this little patch to 4.3.10, which disables using url wrappers in include/include_once/require/require_once statemens (switchable in php.ini).

Re: [PHP] How can I secure database passwords used by PHP

2005-03-02 Thread Jason Barnett
Who are these other webpage maintainers and why do they have access to your PHP source code? This isn't a PHP issue. The MySQL password has to be in a file as plain text; there's no getting around that (as recently discussed on here). Your issue is controlling access to the machine and the files,

Re: [PHP] Re: patch to php 4.3.10 to disabling URL wrappers in include like statements

2005-03-02 Thread Jason Wong
On Wednesday 02 March 2005 22:03, Jason Barnett wrote: Tom Z. Meinlschmidt wrote: which disables using url wrappers in include/include_once/require/require_once statemens (switchable in http://php.net/manual/en/ini.php#ini.list allow_url_fopen = 0 I haven't had a look at the patch

Re: [PHP] sql query

2005-03-02 Thread Jason Petersen
/manual/en/function.mysql-query.php Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: patch to php 4.3.10 to disabling URL wrappers in include like statements

2005-03-02 Thread Jason Wong
and keeping remote file? I believe you're missing the point of the patch. It is to prevent people from injecting malicious remote locations in $somewhere: include($somewhere); Of course one should always validate $somwhere before using it but ... -- Jason Wong - Gremlins Associates

[PHP] Re: PHP5 DOM - DomDocumentFragments empty

2005-03-02 Thread Jason Barnett
Here is a modified version of the code that you posted that should explain it. ?php $xmlData = XMLDATA ?xml version=1.0 encoding=ISO-8859-1 ? root subElementcontent/subElement /root XMLDATA; $dom = new DomDocument; $dom-loadXML( $xmlData ); $dom2 = new DomDocument; $fragment =

[PHP] Re: Authentication fails

2005-03-01 Thread Jason Barnett
John Swartzentruber wrote: Somehow my PHP 5.0.3 or something is configured incorrectly. When I try to get past an authentication input, nothing happens. For example, I have phpMyAdmin configured now to use mysqli, but when I enter the username and password, the screen doesn't change. In

Re: [PHP] Program flow?

2005-03-01 Thread Jason Barnett
Richard Davey wrote: Hello Rory, Tuesday, March 1, 2005, 4:58:20 PM, you wrote: rw Hi I have a one simple question that I need to sort out before I rw continue writing any PHP scripts. Every time I call a script are the rw variables reset to the default values? Yes this is nearly

[PHP] Re: Current dilema for Novice

2005-03-01 Thread Jason Barnett
I know that you were posting a lot of detail because you wanted to make it clear what you were doing, but next time you might try to be a little more succinct in your description. Give us the most relevant facts... not a flame, just some friendly advice to get you (more) answers to your question.

[PHP] Re: Self calling PHP

2005-03-01 Thread Jason Barnett
Phillip Armitage wrote: I'm working on an ftp login form using PHP. I'm trying to set it up so that the PHP file is self calling. eg. file FTP.PHP displays an html form in which the form action setting calls FTP.PHP. Essentially the program does the following: ... The $_REQUEST array is

[PHP] Re: PHP5 Static Object Function Issue

2005-03-01 Thread Jason Barnett
A switch statement can accomplish what you seek. ?php class MyClass { static $instance; protected function __construct() {} static function getInstance() { if (!self::$instance) { self::$instance = new MyClass(); } return self::$instance; } } function

[PHP] Re: PHP 5.1 CVS Interface Question

2005-03-01 Thread Jason Barnett
Gavin Roy wrote: ... Is this a bug, or a new intended behavior? Gavin To get the long answer you can search through the php.internals list for this topic. The short answer is: this is the new intended behavior. -- Teach a man to fish... NEW? |

[PHP] Re: Supporting Cancel

2005-03-01 Thread Jason Barnett
Richard Lynch wrote: My current employer has designed a sort of CMS (except it has so many site-specific hard-coded features that it's not a CMS at all) where things happen such as: Your current employer? I didn't think CEOs had bosses... anywho ... One idea I'm pondering goes like this:

[PHP] Hmmm

2005-02-27 Thread Jason Bennett
I just installed a new MYSQL version 4.1 (from 4.0) and now none of my PHP scripts work anymore. They are all complaining about attempting to login as root. Normally, I referance a class like: class DB { function DB() { $this-host = 127.0.0.1:3306; $this-db = mydatabase;

RE: [PHP] Hmmm

2005-02-27 Thread Jason Bennett
Oooo.. good one. I used the RPM install for MySQL.. can you point me in the right direction for doing this? Thanks!! J. -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 27, 2005 9:40 PM To: php-general@lists.php.net Subject: Re: [PHP] Hmmm Jason

[PHP] Uploading a File

2005-02-26 Thread Jason Bennett
Hi all, I'm having this problem trying to upload a file using PHP. I am using Apache (compiled from source) and PHP 5.0.3 The entire contents of the page is: form method=post enctype=multipart/form-data action=/upload.php INPUT TYPE=hidden name=MAX_FILE_SIZE value=52428800 input type=file

RE: [PHP] Uploading a File Solution

2005-02-26 Thread Jason Bennett
, it took it as 2 bytes either way. Cheers, J. -Original Message- From: Jason Bennett [mailto:[EMAIL PROTECTED] Sent: Saturday, February 26, 2005 11:05 PM To: php-general@lists.php.net Subject: [PHP] Uploading a File Hi all, I'm having this problem trying to upload a file using PHP. I am

Re: [PHP] Hi ALL

2005-02-25 Thread Jason Barnett
Chris Shiflett wrote: --- Jochem Maas [EMAIL PROTECTED] wrote: 1. total number of posts 2. highest average no. of posts/week 3. longest post 4. total no. of words written 5. highest average no. of words/post Richard certainly contributes a lot, and I think he's in the top 10 (Curt Zirzow

Re: [PHP] PHP slowness

2005-02-25 Thread Jason Barnett
Gerard wrote: Hi Brent, I noticed you have your error_reporting level set really high (2039), which is pretty close to everything. That may be fine on a development server, but I wouldn't set it that high on a production server. I'd be curious what you log looks like. Perhaps this is causing

[PHP] Re: what does this mean?

2005-02-25 Thread Jason Barnett
Diana Castillo wrote: on which page of php.net can I find out what this code does? $a = $b? $a :dian; This is the tertiary operator. It's a shorthand version of ?php if ($b) { $a = $a; } else { $a = dian; } ? -- Teach a man to fish... NEW? |

[PHP] Re: What's up with the list?

2005-02-25 Thread Jason Barnett
John Nichel wrote: Haven't gotten anything from the list since yesterday...is it me, or is it the list. Fix it Jay!!! ;) Sorry, I had to give the server a good kick, then once more for good measure. Nothing like a swift reboot ;) -- Teach a man to fish... NEW? |

[PHP] Re: Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Jason Barnett
Lef1 wrote: Hi, I am in desperate need of some help in calling a vbscript file from a php file. A vbscript file? Do you mean you want PHP to send vbscript to the web browser? If that's the case then just echo the vbscript in some script tags. Or did you mean that you were hoping to run

[PHP] Re: [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread Jason Barnett
The solution for this problem (doing it in the matter that you are suggesting) is certainly going to involve preg_replace(). However, this will require you to match only the tags you want to let through (which is always dangerous) and then strip out all of the rest of them. This can be very

Re: [PHP] what does this mean?

2005-02-25 Thread Jason Barnett
Leif Gregory wrote: Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D on which page of php.net can I find out what this code does? D $a = $b? $a :dian; It's called a ternary operator, basically an if-else statement. Note to self: write ternary on the blackboard 100

Re: [PHP] hash issues

2005-02-25 Thread Jason Wong
suspiciously like 'password1'. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

[PHP] Re: Like ternary but without the else.

2005-02-25 Thread Jason Barnett
Chris W. Parker wrote: Hello, I couldn't find this anywhere on google or PHP's site but I'm pretty sure there's an answer to it. How can I turn the following into something that resembles the ternary operator? ?php if($something) { $this = $that; } ? $this =

Re: [PHP] replace special characters

2005-02-24 Thread Jason Wong
, RTFM for details. The code above is resulting in the following error massage: Parse error: parse error, expecting `')'' in /xxx/xxx/xxx/TMPz06yoces6o.php on line 2. Switch to using a decent syntax highlighting editor and these types of errors will be immediately obvious. -- Jason Wong

[PHP] Re: Server includes and Absolute URL

2005-02-24 Thread Jason Barnett
Jacques wrote: Can make use of an absolute URL when using require() or require_once()? Yes, as long as you have allow_url_fopen = 1 in your php.ini Regards Jacques -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

[PHP] Re: Problem with XML

2005-02-24 Thread Jason Barnett
Juan Antonio Garrido wrote: Hi everybody What functions should be use for XML in PHP 4? I've tried with DOM Functions but it appears an error not class, DOM-XML Functions(experimental) don't work well. Thank you... You want the xml_* functions. You start out with xml_parser_create()

Re: Fwd: [PHP] Word file to PDF

2005-02-24 Thread Jason Barnett
Rory Browne wrote: Sorry - forgot to cc this to the list. [off-topic] Any idea if there is any way to set up gmail so that it automaticly replys to the list. -- Forwarded message -- From: Rory Browne [EMAIL PROTECTED] Date: Thu, 24 Feb 2005 13:12:15 + Subject: Re:

[PHP] Re: [Pear] go-pear.php

2005-02-23 Thread Jason Barnett
James Nunnerley wrote: Hi, I'm having two problems: Firstly, the new update of go-pear.php I believe is not working. Does anyone know when a new fixed one is being released? Not sure. What error are you getting? It is possible that it is trying to look for the PEAR scripts

[PHP] Re: Bug or undocumented functionality of unset()?

2005-02-23 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi All, Does unset() create a copy of the array and then overwrite the original somehow destroying the reference? ... --- ?php $stuff = array(array('one','two'), array('one','two'), array('three','four'),

Re: [PHP] hash issues

2005-02-23 Thread Jason Wong
are exactly the same. I'm not sure why this is happening. I strongly suspect you're hashing an empty string. echo password [$password]; $pass=bin2hex(mhash(MHASH_SHA1, $password)); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

[PHP] Re: cannot remove cookies

2005-02-22 Thread Jason Barnett
Bruno Santos wrote: Hello. I'm using 2 cookies to control some user environmente. every time the user logs in, the cookie is set, but when i try to change the value of that cookie, deleting it firts and then setting a new one with another value, when i print the value of that cookie the

Re: [PHP] Writing PNG Images to File from Command Line

2005-02-22 Thread Jason Barnett
Richard Lynch wrote: ... Good stuff ... All that said: If you only have a handful of color coded flags, and you are using GD to re-draw an image every time, that's kinda silly... Perhaps I'm missing something here, but: Just use your query to decide which flag to *USE* instead of drawing

[PHP] Re: uploading remote server

2005-02-22 Thread Jason Barnett
Sebastian wrote: i have some php forms which uploads files/images and i would like to know if its possible to upload them to a remote server instead, if so, how? cheers Yes it is possible. This is a bit of reading, but it is exactly what you need to read:

[PHP] Re: Unable to load extension (was Re: PHP to C interface?)

2005-02-21 Thread Jason Barnett
N Deepak wrote: On Fri, Feb 18, 2005 at 09:20:02AM -0800, Richard Lynch wrote: N Deepak wrote: Is there a way to invoke C functions in a library (.so) from PHP? Like Xs in Perl? By definition, then, all you have to do is learn how to write a PHP extension, which Rasmus tells you how to do

[PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Jason Barnett
Stanislav Kuhn wrote: ... PHP Fatal error: Maximum execution time of 30 seconds exceeded in .php on line 130 Has somebody seen something like this or has an idea what's going on there? When I get this error it is often because I found myself running into an infinite loop someplace.

Re: [PHP] [NEWBIE] PEAR::Mail Help Please

2005-02-21 Thread Jason Barnett
Jay Blanchard wrote: [snip] Hello all. I am new to using PEAR, but not so much to PHP. I was looking for a little help. [/snip] Have you tried a PEAR mailing list? http://pear.php.net/support/lists.php Agreed... some of us on this list use PEAR, but PEAR developers will often watch the

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-19 Thread Jason Barnett
Your Name wrote: Thank you very much for that solution however I need something slitely different. This is a CMS for distribution... not everybody that's going to use it can go in and edit the config files. I've heard of a command called ini_set(); which temporarily changes it just for

[PHP] Re: Destroying the Session Object

2005-02-19 Thread Jason Barnett
pete M wrote: here's the way I do it Depends on what you're going for exactly. Based on what the OP said I believe he'll also want to destroy the session cookie. If you want to completely destroy the session you need the extra step that I copied and pasted from the manual. :) logout.php

Re: [PHP] XHTML 1.1 + php sessions = :(

2005-02-19 Thread Jason Barnett
b1nary Developement Team wrote: Oh I'm sorry, that was just a typo, I meant the use only cookies one... god I'm an idiot, thank-you. Not an idiot... we all had to learn it once. And some of us a few times more than that! You're welcome. Jason signature.asc Description: OpenPGP digital

Re: [PHP] Crontab for Windows

2005-02-18 Thread Jason Barnett
[EMAIL PROTECTED] wrote: On W3K you could use this as the run line in Scheduled Tasks and probably the same in XP although I have not tested this. The same components exist in the W2K version although may be in different locations/names. Run: cmd /c c:\php\php.exe -q

[PHP] Re: Dynamic/runtime object creation

2005-02-17 Thread Jason Barnett
joe Lovick wrote: Thanks for your help Jason, yes aggregating methods was what i had in mind, but now as i explore it as a option i realise that it would work best is if their was a way for me to pull my object out of the database variables, data, This is certainly do-able. You serialize

[PHP] Re: map internal extension name to actual file

2005-02-17 Thread Jason Barnett
Zac Barton wrote: Hi, Does anyone have any good ideas of how to find out what extension was loaded/enabled from what actual file. For example the ming extension (thats its internal name) could come from php_ming.dll in my extensions dir. But if the file name is say mingFlash.dll how

Re: [PHP] Hashing strings

2005-02-17 Thread Jason Barnett
Gerard Samuel wrote: ... Im trying to determine if md5() would be the fastest, *cheapest* solution. ... What Im looking for is something where the generated hashes can be reproduced. For example, md5('foo') today, will be equal to md5('foo') tomorrow. Thanks AFAIK crc32() is the fastest

[PHP] Re: Date() reporting wrong on OS X server intermittently

2005-02-17 Thread Jason Barnett
Rowan Hick wrote: ... Has anyone out there seen weird problems like this before ? Many Thanks, Rowan The other suggestions are good. If they don't pan out, check to see if you use the function strtotime(). It has been buggy in a few versions of PHP and may not be acting properly in your

[PHP] Re: Problems with print html to pdf

2005-02-17 Thread Jason Barnett
Juan Antonio Garrido wrote: Hi everybody: Does it exists someone library I can print html files to pdf without it loss information about my property css classes(background,color,width...)? With GPL library HTML_To_PDF3.3 it isn't possible... If the library is GPL much better. Thank

[PHP] Re: Storing formulas

2005-02-17 Thread Jason Barnett
Mike Smith wrote: ... TopMeasurment+1.6875+OutOfPlumbWall ... static). Other formulas have 10 and 12 variables in them. How have others gone about storing formulas that require such modifications? TIA, Mike Smith If I was programming this I would probably create 16 functions for

Re: [PHP] mysql query

2005-02-17 Thread Jason Petersen
On 17 Feb 2005 19:28:18 -0600, Bret Hughes [EMAIL PROTECTED] wrote: On Thu, 2005-02-17 at 18:24, Sebastian wrote: Hello, im working on an article system and looking to avoid running three queries. example, i have this query: SELECT id,title FROM articles WHERE id=$_GET[id] now say

Re: [PHP] other mhash hashes

2005-02-16 Thread Jason Barnett
Burhan Khalid wrote: ... David: You should really post this at the mhash manual entry in php.net. I'm sure others would find it useful. Good find :) Cheers, Burhan [ snippity snip snip ] Agreed! I found it very, very useful. -- Teach a man to fish... NEW? |

[PHP] Re: php login

2005-02-16 Thread Jason Barnett
William Stokes wrote: Hello, I need to create solution for user authentication/recognition in my web page. I think it would be a good idea to use mysql database for storing the user info because the user info is later used to determine what parts of site the recognized user is allowed to update.

Re: [PHP] Re: Minimalist permissions

2005-02-16 Thread Jason Wong
and the group. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] other mhash hashes

2005-02-16 Thread Jason Barnett
Richard Lynch wrote: ... http://www.schneier.com/blog/archives/2005/02/sha1_broken.html Before we get a hundred posts about SHA-1 being broken would eveyrbody please read: http://nuglops.com/blog/index.php?p=1021 and maybe *ALL* the contributions way down at the bottom of the original post link?

[PHP] Re: Dynamic/runtime object creation

2005-02-16 Thread Jason Barnett
joe Lovick wrote: Hi, forgive me if this is a complete noob question What i want to do is create an object at runtime with members and methods based on the result of queries from my db back end. is this (a) Creating an object based on the result of a query shouldn't be a problem.

Re: [PHP] php products licensing system

2005-02-15 Thread Jason Barnett
Jad Madi wrote: as I said, we are willing to have our product open source, but No free. and that fair enough, thats why I'm asking about a good method to protect our products from being used illegaly and keeping it open source It's a tough balancing act. Encoding / closing the source with one of

[PHP] Re: Running PHP from inside another application!

2005-02-15 Thread Jason Barnett
Mikael Andersson wrote: Hi, I've a case where I have to run a lots of php-scrips, in a short time, from inside a delphi-application. Every script connects to the same databas. Today I use CreateProcess to start php.exe and then I'm using pipes to get the php-result. I'm doing this for each

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
Scott Fletcher wrote: I created the token via Javascript where the billing can be controlled better and to prevent the mixed up of the billing such as incorrect statements or calculation. I use the billing lock file for that purpose. I found that it doesn't alway work that way when the browser

[PHP] Re: Set a timeout on file_get_contents?

2005-02-15 Thread Jason Barnett
Brian Dunning wrote: Is there any way to specify a timeout on a file_get_contents()? I'm trying to verify a URL but I don't want to spend more than a few seconds on it. - Brian Note that using file_get_contents to do this is only going to work if your php.ini has allow_url_fopen = 1. Actually I

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
serial number of some sort but I don't see how. Scott Jason Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://www.php.net/manual/en

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
Scott Fletcher wrote: Never heard of the uniqid() before and looked it up on the php.net. It look very promising. I can do that. That leave me with 2 questions. How do I do (or how does it work) this with a token if 1) The webpage is submitted (goes from page 1 to page 2) with the uniqid(). 2)

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Jason Barnett
Shaun wrote: Hi Marek, Thanks for your reply, could you tell me how I would go about this please? ?php header('Content-type: text/csv'); header('Content-Disposition: attachment; filename=download.csv'); /** Now you perform the MySQL query, DECODE the information and echo it to the screen.

[PHP] Re: Question: re: Session-only cookies and Firefox

2005-02-14 Thread Jason Barnett
Rgl wrote: Question: Has anybody else noticed session-only cookies not disappearing when using Firefox? Is this a Firefox bug (should they be notified/ or I get latest Firefox) ? grinThey finally released 1.0, and yet you still use 0.8?/grin I use Firefox quite regularly, but I don't experience

[PHP] Re: php/mysql url validation methods...

2005-02-14 Thread Jason Barnett
Darren Kirby wrote: Hello all, On the main page of my website I have written a very simple comments feature that allows people to leave a message under my posts, much like a blog. I have purposely kept this very simple... On the main page I have simple text links that someone can click on if they

[PHP] Re: calling php function when submit button is pressed

2005-02-14 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Can anyone show me how to call a function when submit is pressed or a form is submitted. When submit is pressed... as in instantly / on the web browser's side? You need Javascript for that; PHP simply won't do that. Or did you mean when a form gets posted to the server?

[PHP] Re: Delete all files in DIR every 20 days

2005-02-14 Thread Jason Barnett
Tim Burgan wrote: Hello, How can I delete ALL files within a specified directory every 20 days? Does anyone know of any code-snippets that are around at the moment that are able to do this? (And where I can find them?) Thanks Tim Please give the list longer than an hour to respond to your request

[PHP] Re: who's on-line application - php

2005-02-14 Thread Jason Barnett
Jacques wrote: I would like to indicate the particulars (from a MySQL database) of all those users that are currently on-line (those whom have successfully signed in). How should I go about achieving this? Does it have something to do with Sessions? Jacques: the best solutions that I have seen

[PHP] Re: PHP book recommendations

2005-02-14 Thread Jason Barnett
Dave Bosky wrote: I'm looking for an easy to read PHP book that will help me learn a solid foundation in PHP. I'm already familiar with the language but want to make sure I'm coding in the most efficient manner. What's a few of the better books out there? HTC Disclaimer: The information

Re: [PHP] User Passwords: checking for unique chars

2005-02-14 Thread Jason Barnett
Chris W. Parker wrote: Alex Gemmell mailto:[EMAIL PROTECTED] on Monday, February 14, 2005 7:24 AM said: Hello! Hi! Bonjour! # Code: beingfunnynotmean!Do you also have a label on your computer that says Computer?/beingfunnynotmean! No, but I do have a label that says My

Re: [PHP] Re: Delete all files in DIR every 20 days

2005-02-14 Thread Jason Barnett
Tim Burgan wrote: Jason Barnett wrote: Please give the list longer than an hour to respond to your request ;) Thanks for the suggestion.. I've just given the list 6 hours at the moment. Why do you say this? Tim Only because I saw your message listed twice... and there was only 50 minutes

Re: [PHP] Minimalist permissions

2005-02-12 Thread Jason Wong
by searching this list). Feel free to redirect me to existing documentation that I woule have missed, if needed. http://marc.theaimsgroup.com/?l=php-generalm=105793487024873w=2 -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

[PHP] [Fwd: Re: [PHP-WIN] Re: SESSION]

2005-02-11 Thread Jason Barnett
PROTECTED] To: php php-windows@lists.php.net, Jason Barnett [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] Thanks Jason ! It'll be great if you could also tell me whether I can launch applications like MS WORD using COM or any other technology. Basically I want the user sitting

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

2005-02-11 Thread Jason Barnett
Ben Edwards wrote: ... What exactly is a simble table? Ben The symbol table is the where, deep down inside the guts of the Zend Engine, your variables are stored. There are symbol tables for different scopes (function, class, global) -- Teach a man to fish... NEW? |

Re: [PHP] quotemeta() question...

2005-02-11 Thread Jason Barnett
Richard Lynch wrote: Steve Kaufman wrote: Why does quotemeta(pat:1$WRW) return pat:1 instead of pat:1\$WRW What am I misunderstanding about quotemeta function? You usually would use quotemeta on data coming from the database, or the user, or externally, or, errr,

[PHP] Re: How can I read the output from a local php file [fopen()]?

2005-02-11 Thread Jason Barnett
Al wrote: ... But, but, it doesn't work when my script is started from a cronjob, only from a remote browser. Any suggestions? Thanks. cURL extension: http://www.php.net/manual/en/ref.curl.php -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

Re: [PHP] Uploading products in database using zip file?

2005-02-11 Thread Jason Barnett
[EMAIL PROTECTED] wrote: One more thing marketing person use Windows and he will probably use Winzip. Is this still ok, or it's better to use some other application? First of all I would suggest using 7zip on Windows. Its usage is 100% free (you can of course donate to the project if you feel it

Re: [PHP] quotemeta() question...

2005-02-11 Thread Jason Barnett
Jochem Maas wrote: ... A better example code would be: $string = 'period.backslash\\plus+star*question?lbracket[rbracket]carat^lparen(rparen)dollar$'; echo PRE, quotemeta($string), /PRE; Interesting aside... with the test string above, I noticed that backslash\\ only resolved to two backslashes.

Re: [PHP] Secure system calls -- how

2005-02-10 Thread Jason Wong
you how to write a complete procmail parser, that's why they're hard to find, and ditto for whatever else you want your sudo to be doing. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Jason Wong
On Thursday 10 February 2005 23:36, Ben Edwards (lists) wrote: The cleaning works but magic_quotes_runtime is false even if magic codes are on, any ideas? There are at least two magic_quotes_* settings, make sure you are referring to the correct one(s). -- Jason Wong - Gremlins Associates

Re: [PHP] fireing function with onChange

2005-02-10 Thread Jason Barnett
Bob. Copyright Jason Barnett and the NFL. Unauthorized re-broadcast is a violation of Federal Law. :-) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://www.php.net/manual/en/index.php STFW | http

[PHP] pdf properties

2005-02-10 Thread Jason Motes
the actual title of the document instead of just the file name. I have searched the manual and google, everything that comes up refers to generating pdfs on the fly, not working with an already made pdf. Thanks in Advance, Jason Motes -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] pdf properties

2005-02-10 Thread Jason Motes
the actual title of the document instead of just the file name. I have searched the manual and google, everything that comes up refers to generating pdfs on the fly, not working with an already made pdf. Thanks in Advance, Jason Motes -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] pdf properties

2005-02-10 Thread Jason Motes
the actual title of the document instead of just the file name. I have searched the manual and google, everything that comes up refers to generating pdfs on the fly, not working with a already made pdf. Thanks in Adance, Jason Motes -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] pdf properties

2005-02-10 Thread Jason Motes
the actual title of the document instead of just the file name. I have searched the manual and google, everything that comes up refers to generating pdfs on the fly, not working with an already made pdf. Thanks in Advance, Jason Motes -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] pdf properties

2005-02-10 Thread Jason Motes
snip Maybe if you send it 5 more times, someone will answer you. /snip Be kind, i tried sending this yesterday and my post would not show up and they were not bounced back to me. Then i figured out what i did wrong and they all went through. Sorry -- PHP General Mailing List

Re: [PHP] Re: Multi-Page Forms

2005-02-10 Thread Jason Barnett
Gh wrote: Question. Does the Tabs and Divs work under Mozilla Based Browsers? Generally speaking... if it's a part of a standard / RFC then it will be supported by Mozilla. If not, then probably not. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

[PHP] Re: php in free() error

2005-02-10 Thread Jason Barnett
Gerard Samuel wrote: ... ?php $array = array(0 = array('world')); class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator { function hasChildren() { return (is_array($this-current())); } function getChildren() { return new self($this-current());

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

2005-02-09 Thread Jason Wong
could post the method here but its a bit long. You only need to post concise code that illustrates your problem, a one liner to return a value is all the that your method needs. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: AW: [PHP] Parsing pdf file

2005-02-09 Thread Jason Barnett
Mirco Blitz wrote: Thank you for that huge code. I will try. Greetings Mirco Blitz -Ursprüngliche Nachricht- Von: Matt M. [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 9. Februar 2005 22:39 An: Mirco Blitz Cc: php-general@lists.php.net Betreff: Re: [PHP] Parsing pdf file did you try this?

<    8   9   10   11   12   13   14   15   16   17   >