[PHP] Re: Re-initiating an autostarted session

2005-05-11 Thread Jason Barnett
Ville Mattila wrote: ... session_destroy(); session_regenerate_id(); session_write_close(); Header(Location: ...); exit; For my point of view, this should do exactly what I like to do: destroy the old session data, generate a new one, write them and redirect the user to next page. And you're

Re: [PHP] MySql injections (related question)

2005-05-11 Thread Jason Wong
to escape a single-quote. MySQL uses a backslash. Hence running addslashes() on a string destined for MySQL is usually OK whilst doing so for Postgresql is not. But now that mysql_real_escape_string() is available that is what you ought to use. -- Jason Wong - Gremlins Associates

Re: [PHP] MySql injections (related question)

2005-05-11 Thread Jason Wong
On Thursday 12 May 2005 09:57, Richard Lynch wrote: On Wed, May 11, 2005 5:23 pm, Jason Wong said: But now that mysql_real_escape_string() is available that is what you ought to use. But are they REALLY different. mysql_real_escape_string() is most certainly different from

[PHP] Re: number format?

2005-05-10 Thread Jason Barnett
Dustin Wish wrote: I have a number like -56.98 I need to convert it to -5698. I tried ?php $num = -56.98; $conv = $num * 100; /** -5698 */ ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: text with $

2005-05-09 Thread Jason Barnett
Martín Marqués wrote: I have a text variable that contains $ symbols, that when I pass it out PHP thinks that the $ mean that a variable name comes right after. I tried escaping the $ put with no luck. Is there something I can do? ?php echo '$'; echo \$; ? -- PHP General Mailing List

Re: [PHP] Re: Barcodes [Solved]

2005-05-06 Thread Jason Barnett
Mike Smith wrote: On 4/18/05, Eric Wood [EMAIL PROTECTED] wrote: - Original Message - From: Mike Smith I'm using a script to generate the barcodes (3 of 9 or Code39): http://www.sid6581.net/cs/php-scripts/barcode/ This script seems to limit the input barcode to 15 characters... um... -eric

Re: [PHP] newsgroup

2005-05-06 Thread Jason Barnett
Jochem Maas wrote: ... ** as in 'people who compulsively want to help newbies', rather than 'people that are newly infected by the helping virus' (of which there are many on this list also ;-). Hey, I resemble that remark! :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Objects in Arrays (without the READ prompt)

2005-05-05 Thread Jason Petersen
Hi, I think you need to serialize your objects. http://us3.php.net/manual/en/language.oop.serialization.php Jason On 5/5/05, Stuart Nielson [EMAIL PROTECTED] wrote: Sorry to everyone about the stupid READ notification on the posting. I completely forgot that it was enabled. This one

[PHP] Re: if then else statement not working

2005-05-05 Thread Jason Barnett
Anasta wrote: What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { I think maybe you mean this: if ($seatnum == 'seat1') { Heck from the code above you won't even

[PHP] Re: OO toturial

2005-05-05 Thread Jason Barnett
Khorosh Irani wrote: hello Can anyone tell me the url of a good toturial about object and php that contain: polymorphism,Delegation,...? Thanks Google for Gang of Four Programming -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pear - make install fails (php5)

2005-05-05 Thread Jason Barnett
Gerold Kathan wrote: ... Installing PHP CLI binary:/usr/local/php5/bin/ Installing PHP CLI man page: /usr/local/php5/man/man1/ Installing PEAR environment: /usr/local/php5/lib/php/ make[1]: *** [install-pear-installer] Segmentation fault make: *** [install-pear] Error 2 = it

Re: [PHP] joining in php development

2005-05-05 Thread Jason Barnett
Bala Chandar wrote: Hey On 5/5/05, Angelo Zanetti [EMAIL PROTECTED] wrote: well your statement doesnt make any sense bala chandar wrote: hi, how to join in php development??? i want to develop some functions that is built in to the php. how to contribute or join in its development/? Fix

Re: [PHP] Tracking what has been changed

2005-05-05 Thread Jason Barnett
Mark Rees wrote: -Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 00:29 To: php-general@lists.php.net Subject: [PHP] Tracking what has been changed Here's the scenario... I am building a site in which users will be able to create and then later edit personal

[PHP] Re: Error suppression operator (@)

2005-05-04 Thread Jason Barnett
GamblerZG wrote: I would like to know, whether using @ is a good practice. For example, I have an array of unknown length $array. Is it all right write something like this: @list($first, $second) = $array; or is it better to do length check? Using @ is good practice in any case where you simply

[PHP] Re: forms

2005-05-04 Thread Jason Barnett
Lisa A wrote: Does anyone know of a good easy php script or Form that we can use with Front Page. We need a form to get results, that actually sends the results in a format that is easy to read. Not all run together with no spaces, etc. like the Front Page forms. Thanks, Lisa A ?php /** File

[PHP] Re: if then else

2005-05-04 Thread Jason Barnett
Anasta wrote: Can anyone help with a statement, ive tried but it never works. I need to show a value if it is set to a specific value ie: At the moment If a user is logs in a record is updated from 'away' to 'online'---so i want an echo statement to show a value from another table if they are set

[PHP] Re: is_numeric

2005-05-04 Thread Jason Barnett
pete M wrote: not a php expert but have filed this bug report re validating is_numeric('3e0'); http://bugs.php.net/bug.php?id=32943 Yeah I read that report... and as it says you're using Euler's notation. Now tried function isnumeric($n) { if (ereg(^[0-9]{1,50}.?[0-9]{0,50}$, $n)) { if

[PHP] Re: Request to subscribe

2005-05-04 Thread Jason Barnett
Venkatasatyanarayana Maddi wrote: Dear Team, I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to join this to share the PHP General. Good work, we can use more good soldiers like you. Thank u. Yahoo!

Re: [PHP] Valid email address syntax script?

2005-05-04 Thread Jason Sweeney
Borrowed with great reverence from http://ca3.php.net/function.mail: $regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]{2,})+$'; if (eregi($regex, $email)) return true; else return false; jason sweeney jason.designshift.com JM wrote: Does anyone have a nice email address

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Jason Barnett
PHP5: http://php.net/manual/en/ref.dom.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can someone help me build a regular expression?

2005-05-02 Thread Jason Sweeney
Give this a shot: ^[0-9]{2,3}\.[0-9]$ Returns regex that begins with 2-3 digits, followed by a period, and ends with one digit. jason sweeney jason.designshift.com [EMAIL PROTECTED] wrote: Hi All, I've sucessfully got a JavaScript validating some text boxes to make sure that only numbers

[PHP] Re: __autoLoad php5 callback is being triggered for every class ?

2005-04-29 Thread Jason Barnett
[EMAIL PROTECTED] wrote: I'm experiencing some issues with autoLoad with pear packages. DB_Error is contained within the DB.php, but my autoload method is trying to split the underscores with forward slashes and then load. Supressing errors with @ still doesnt work, its triggering a php error. Any

Re: [PHP] SOLVEDphp Full Page Calendar not date picker

2005-04-29 Thread Jason Motes
Here is cal from a scheduling app i have working on. http://www.imotes.com/cal2.php http://www.imotes.com/cal2.phps Richard Lynch wrote: Here's source code to one I wrote ages and ages ago... http://chatmusic.com/calendar.phps http://chatmusic.com/calendar.php Here's a similar one with PDF output:

[PHP] Re: Is there any way to show the error file without showing the dir information?

2005-04-29 Thread Jason Barnett
cchereTieShou wrote: In many case, if there is an error happen in a php script, it may return an error message something like Parse error: parse error, unexpected T_FUNCTION in /home/content/usr/html/test.php on line 6 Is there any way to not show the dir information, but only as test.php on line

Re: [PHP] Re: Templating engines

2005-04-29 Thread Jason Barnett
Mattias Thorslund wrote: ... Who says PHP itself is a template engine? I think nobody. What are the basic template features? Variables / placeholders Looping construct(s) Conditionals A way to apply styles to text / markup However, there is a school of thought regarding templates that advocates

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Jason Barnett
Vedanta Barooah wrote: btw! saying: add($a=null,$b=null,$c=null) is as good as saying: add($a,$b,$c) No, it's not. Because in this case $a, $b and $c are all uninitialized variables and (if this is a function definition) then you *have* to supply $a $b and $c parameters. Even if you were

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Jason Barnett
Please do not reply to me personally. I will usually read your responses in the newsgroup. Vedanta Barooah wrote: the code below was talking of function declarations ... reffer to the thread. will code injection in case of function declarations work? I am not sure!! OK. But even so

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Jason Barnett
Richard Davey wrote: RD As that code stands, even with register globals on, it will not echo RD 22. At least on PHP 4.3.11 on my server this is the case. I guess RG RD makes all variables global, but not super-global, which leaves the RD above safe as the null of $total overrides whatever may have

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Jason Barnett
Richard Davey wrote: Hello Jason, Thursday, April 28, 2005, 4:23:43 PM, you wrote: JB Indeed... and replace ?a=22 with ?first=22 in my message as well. JB :-/ Heh.. ok :) No worries, demonstrated to me that RegGlobs aren't quite as destructive as popular myth would lead you to believe

[PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. PHP itself is a templating engine, i.e. it can be used to filter input and format it into output. But Smarty is nice if you want your people to be able to create

Re: [PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Is it just me or is joking becoming outlawed on the list? Most of us are geeks or classified as geeks on the lista little geek humour please? programming is a serious business and i find myself getting quite stressed sometimesusing a little humour or reading others humourous replies helps

Re: [PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do with it. grt, Evert

Re: [PHP] Notice: Undefined index

2005-04-28 Thread Jason Barnett
Also see: http://php.net/manual/en/function.array-key-exists.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and Ajax?

2005-04-28 Thread Jason Sweeney
There is a good intro to the whole XMLHttpRequest (Ajax) process on Webmonkey right now: http://webmonkey.wired.com/webmonkey/05/16/index4a.html Good for those of us slower on the uptake... jason sweeney jason.designshift.com Chris W. Parker wrote: Jeremiah Johnson mailto:[EMAIL PROTECTED

[PHP] Re: beginner volunteer

2005-04-27 Thread Jason Barnett
Malcolm Mill wrote: Hi, I've been reading up on php for a while now and would like to get involved in a small open source LAMP project. I don't have any real coding experience to speak of but could bring proofreading, bug-reporting, testing and documentation skills to the project. What I'd like

Re: [PHP] Error en PHP

2005-04-26 Thread Jason Barnett
Pedro Luis Cruz Riguetti wrote: como puedo salir de sta lista q esta llenando mi correo. http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Designer 2005

2005-04-26 Thread Jason Barnett
The Disguised Jedi wrote: Some might consider this OT, but I need to figure this out somehow, and google has been no help. I downloaded and installed PHP Designer 2005, and I really like it so far, but I'm having some problems. Any time it is running, my CPU Usage goes up to 100% and the

[PHP] Re: step by step learning

2005-04-26 Thread Jason Barnett
Paul Kain wrote: Hi there are there any sites online that show one how to learn php in a step by step fashion? I am really lost and would need to start at the very beginning I already know and understand html Googling PHP Tutorial will give you more, but here's a few: PHPFreaks.com Zend.com

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Jason Barnett
Joseph Connolly wrote: Sorry, but i have had NO problems with PHP Designer 2005 I have it running on 3 machines...never a problem with memory usagei think it is the greatest thing since sliced bread. Then perhaps you can help out the OP? Do you have any idea why it's eating up CPU? --

[PHP] Re: Any clever ideas on how to find some random records?

2005-04-26 Thread Jason Barnett
Brian Dunning wrote: I have a MySQL database with about a million records. I'd like to use the SQL command order by RAND() but my ISP won't let me: whenever the server gets spidered, Google overloads their MySQL server because of all the overhead of that command. I can't just cloak the

[PHP] Re: problem with array diff, need to reindex array according to key

2005-04-26 Thread Jason Barnett
Angelo Zanetti wrote: HI all, I am using the array_diff function. The problem im having is the array that gets returned. Well here's an example: this is where i assign the values to two different arrays $a[]=0; $a[]=1; $a[]=2; $a[]=3; $b[]=1; $b[]=4; $b[]=0; $diff = array_diff_assoc($a, $b); /*

Re: [PHP] Re: problem with array diff, need to reindex array according

2005-04-26 Thread Jason Barnett
Angelo Zanetti wrote: sorry I'm not using array_diff_assoc just array_diff... /* Should also be able to re-index the diff of two arrays */ $diff = array_values(array_diff($a, $b)); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can this code go faster?

2005-04-26 Thread Jason Barnett
René Fournier wrote: I've looked in the docs and don't see anything for this per se... I need to convert a binary number of arbitrary length to a signed integer. This is how I'm doing it now: CODE function bin2int ($bin) { if (substr($bin,0,1) == 1) { $val = 0 -

[PHP] Re: Can this code go faster?

2005-04-26 Thread Jason Barnett
Well that was retarded of me... I missed that you said you needed negative integers... in which case I don't know of anything better than what you've already coded. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: phpclasses formerly Flash integration

2005-04-26 Thread Jason Barnett
I would normally prefer to not get involved at all, but in this case I would ask that we *just let this thread die*. All of the people that have responded to this thread are regular / helpful contributors to this group. If you take personal offense to ads or whatever then make this a private

[PHP] Re: Opera 8.0 cache ????

2005-04-25 Thread Jason Barnett
William Stokes wrote: ... This works fine in IE and Firefox but Opera remembers users previous choice and prints wrong info to user. After pressin refresh button it's back to normal. So does Opera store variable values to a local cache so that unset() won't clear them? Sounds odd? If this is

Re: [PHP] array from folder

2005-04-25 Thread Jason Barnett
Jay Blanchard wrote: [snip] Can PHP generate an array based on file names in a folder? For example, if I have a folder called photos that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP look at the file and generate a variable $photos= array (tree, house,boat). Any ideas

[PHP] Re: Hidden File Downloads

2005-04-25 Thread Jason Barnett
Stuart Nielson wrote: ... Does anybody know how to do this with php? I'm not sure how to find the file in the backend and kick it back to the user with the Save As box popping up. I'm thinking maybe it has something to do with headers, but I'm not sure. Thanks. Stuart Usually when you

[PHP] Re: Easy question about XML parsing

2005-04-22 Thread Jason Barnett
Brian Dunning wrote: I've been going through a number of easy XML parsing examples on the web, and they all have one thing in common: the XML is in a file, which they read in 4K chunks and parse. My application will be retrieving the XML from a web service, presumably like $xml =

[PHP] OT [Anonymous Browsing] WAS: Re: [PHP] Re: Php defense

2005-04-22 Thread Jason Barnett
Chris W. Parker wrote: Matthew Weier O'Phinney mailto:[EMAIL PROTECTED] on Friday, April 22, 2005 7:39 AM said: I'm not allowed to say what company it's for, but we just finished building a site for a Fortune 50 company. But what you could do is create an anonymous account

[PHP] Re: reverse MD5 ???

2005-04-21 Thread Jason Barnett
William Stokes wrote: Hello, I have a system that uses certain id info. This info is stored in a session cookie in MD5 format. At certain parts of the code I need to update or insert to MySQL DB with that id info value in cleartext. Is this possible? If so, how to put this to a sql query?

[PHP] Re: Is it possible to get the whole address (including http:// ) ?

2005-04-21 Thread Jason Barnett
Labunski wrote: Hello, I know for example how to get http vars or basename, but this time I need to get the whole address, including http:// . Is it possible? Thanks in advance, Lab. http://php.net/reserved.variables ?php var_dump($_SERVER['REQUEST_URI']); ? -- Teach a man to fish...

[PHP] Re: PHP4 to PHP5 upgrade help

2005-04-21 Thread Jason Barnett
Mike wrote: I want to upgrade my server from PHP 4.3.10 to PHP 5.0.4, however, many of my clients run scripts that will break if I do. The main problem seems to be 'classes'. Is there a way to put a band-aid on these scripts that will allow them to function when I upgrade? If the main

[PHP] Post shorter code

2005-04-21 Thread Jason Barnett
You're far more likely to get someone to look at your problem code if you can narrow it down to a block of code. Hell, you didn't even state a problem!!! Sorry, but if you come back with a well defined problem then maybe someone can help you. -- Teach a man to fish... NEW? |

[PHP] Re: PEAR Packages

2005-04-21 Thread Jason Barnett
Don wrote: Hi, I have just started to explore PEAR. I am using PHP 4.3.11 and so PEAR automatically comes with PHP. I would like to install PEAR's DB classes. However, I cam right now browsing the PEAR web site and cannot find information on how to install a package. I have also

Re: [PHP] PEAR Packages

2005-04-21 Thread Jason Barnett
[EMAIL PROTECTED] wrote: For us, the unix instructions worked 100% on Windows as well. Guess since it's all PHP based it didn't make a difference. Probably some minor internal tweaks and checks due to filesystem differences, but the PEAR guys did a great job in making it all very easy.

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jason Barnett
Dasmeet Singh wrote: Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any

Re: [PHP] Re: Session variables are not stored when set in implicitly calledconstructor!??

2005-04-19 Thread Jason Barnett
Adam wrote: Hallo again, thank You for Your response. // singleton for request class Request { function __destructor() { $_SESSION[variable] = hallo; The __destructor() method is supposed to be about killing the class (Request). It's probably bad practice to be changing $_SESSION

[PHP] Re: Question regarding PDF creation

2005-04-18 Thread Jason Barnett
Mário Gamito wrote: ... $pdf-Cell(40,10,'CV de ' . $full_name . ',' . 0,0 . ',C'); If I break down this argument to a simpler form, you are using: $pdf-Cell(40,10,'CV de Mario Gamito,0,0,C'); You aren't supplying the last 3 arguments! What I *think* you're going for instead here is:

[PHP] Re: CFP: DLS05: ACM Dynamic Languages Symposium

2005-04-18 Thread Jason Barnett
Please, do not cross-post. -- 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://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY |

[PHP] Re: Please update your account information

2005-04-18 Thread Jason Barnett
I guess Mailman fell asleep? :P -- 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://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY |

[PHP] Re: Session variables are not stored when set in implicitly called constructor!??

2005-04-18 Thread Jason Barnett
Adam wrote: Hallo everybody, hope I am writing to correct mailinglist(^_^*)... Absolutely! I have troubles with sessions and descructor in php5. Can not set session variable in destructor when it's called implicitly. Do You know solution please? I think problem is that session is stored

Re: [PHP] reducing array size

2005-04-16 Thread Jason Wong
(), array_splice() -- 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] Directory perms

2005-04-14 Thread Jason Wong
(and in fact the examples shows that). is_readable() and is_writeable() also works on files/dirs. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] ini_set and upload_tmp_dir

2005-04-14 Thread Jason Wong
(upload_tmp_dir,C:\\PHP5\\tmp\\); You can't do that. That has to be set in php.ini. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search

Re: [PHP] Apache2 html/php dir-where..?

2005-04-12 Thread Jason Wong
. What is it now..? Cheers. Look in /usr/local/apache2/conf/httpd.conf for DocumentRoot. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Regular expressions

2005-04-12 Thread Jason Wong
to spice it up with some ungreedy modifiers. -- 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: Update XML

2005-04-12 Thread Jason Barnett
Stefan wrote: Hi NG! I've a problem in updating an XML-Node value. How can I change the value of an XML node? Thanks in Advance Stefan AFAIK the sane way to do this is through the DOM API. Or if it's a one-off replacement you could use preg_match() and / or preg_replace() -- Teach a man

[PHP] Re: class calling script

2005-04-12 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi there, I have been testing a possible solution to reduce the ammount of interface calling scriptsto my class files. Currently each class has a calling script. I am For PHP5 you can try __autoload(). It provides for you a last-chance / just in time loading of a

Re: [PHP] Split command problem

2005-04-11 Thread Jason Wong
+/', $_POST['username']); -- 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

Re: [PHP] COM works on NT but fails on 2003?

2005-04-11 Thread Jason Wong
On Monday 11 April 2005 12:11, Theisen, Gary wrote: if ($excel !=== FALSE) { //This is the error line?!?! I even tried FALSE. if ($excel !== FALSE) { ... } -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Redirection after login with security

2005-04-11 Thread Jason Wong
and/or you're paranoid can be *encrypted*). The password is hashed (md5/sha, whatever) WITH a secret key. You can then verify whether username/password is correct and return an appropriate response. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

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

2005-04-11 Thread Jason Wong
On Tuesday 12 April 2005 02:28, Ben Ramsey wrote: In general, permission settings under Windows suck. Hmm I thought that the ACLs on NTFS were about the only thing that is good about Windows. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] Storing password in cookie

2005-04-09 Thread Jason Wong
person using the password to gain access from the legitimate user. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Jason Wong
steps ie editing httpd.conf so that it knows about PHP. RTFM for details. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Jason Wong
need to tell it what PHP files look like (step 15). -- 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

Re: [PHP] Storing password in cookie

2005-04-09 Thread Jason Wong
that they have forgotten the password? -- 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

Re: [PHP] sessions not being stored : DAY 2

2005-04-08 Thread Jason Wong
/cal_header.inc.php on line 19 * the /tmp directory is owned by root * the /tmp/sess directory is owned by the apache user and has 777 permissions * the directory in php.ini to store sessions is : /tmp/sess * there's not a php user what is the output of: ls -al /tmp/sess -- Jason Wong - Gremlins

Re: [PHP] Still not working: PHP4 running on server, but not on dev box (SuSE 9.2)

2005-04-08 Thread Jason Wong
the installation instructions in the [PHP] manual Installation on Unix systems Apache 2.0 on Unix systems. In particular verify steps 14 and 15. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

[PHP] Re: Installation Warning?

2005-04-08 Thread Jason Barnett
Apache2 uses threads. Searching the archives (both php-general below and php-dev would be good places to look) will give you the answer for this question. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2

Re: [PHP] Re: Signal 11 - php-5.1.0-dev - cygwin

2005-04-07 Thread Jason Barnett
Zac Barton wrote: Hi Jason I tried to compile php using cygwin last night and also got the same erorr. I could work around it by adding --without-pear (configure --without-pear) I'll give that a shot, but I'd really like to fix the underlying error (i.e. why did PEAR fail to load and give

[PHP] Re: zipfile problems

2005-04-07 Thread Jason Barnett
George Pitcher wrote: Hi, My first posting for a long while. If anyone is using the 'class.zipfile.php' library, can they help me. I am trying to create some PDFs, then zip and email them back to me. Not using the class, but... I get the zipfile but it only contains the first pdf file,

[PHP] Re: chop string

2005-04-07 Thread Jason Barnett
William Stokes wrote: What was the string chooping function? I need to chop a date value from DB like (07.04.2005) and time (22:00) to $day ='07' $month='04' etc. etc. Thanks -Will ?php list($day, $month, $year) = explode('.', $date_value); ? -- Teach a man to fish... NEW? |

[PHP] Re: File_get_contents()

2005-04-07 Thread Jason Barnett
Jeff McKeon wrote: Does anyone know if it's possible to have file_get_contents() accept a file handle? file_get_contents() does the file handle operations internally, so it only expects the name of the file. If you want to use file handles yourself, then you should just fopen(), fread(), and

Re: [PHP] File_get_contents()

2005-04-07 Thread Jason Wong
On Thursday 07 April 2005 20:21, Jeff McKeon wrote: Now that I look at it, does anyone think this would work... file_get_contents(php//stdin/); That should be: 'php://stdin' -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] Critical Thinking, or Several Why Questions

2005-04-07 Thread Jason Barnett
GamblerZG wrote: You can ask about a question. You can even try to improve the performance of a function. But at the end of the day unless you can come up with something that will do what the PHP community at large expects *and* it is faster it's not going to happen. How exactly PHP

[PHP] Re: Performance optimization

2005-04-07 Thread Jason Barnett
GamblerZG wrote: Are there any decent resources dedicated to PHP code optimization? By decent I mean ones that do not ask you to completely ruin readability for the sake of extra 0.003 seconds. The best way to go about it is to get a code profiler. apd / xdebug / Zend are popular choices. --

[PHP] Re: sessions not being stored

2005-04-07 Thread Jason Barnett
Change permissions for /tmp/sess. The PHP user needs read and write perms for this directory. PHP user might also need execute perms for /tmp. -- 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 |

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
, 'w+b')) { echo \nError! Could not open COMport - Got a terminal open?\n; exit; } else { $i = 0; while ((false !== ($char = fgetc($fp))) AND $i 10) { $i++; echo $i::[$char]br; } echo $i; } -- Jason Wong - Gremlins

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
with having SELinux enabled and were resolved when it was disabled. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] Critical Thinking, or Several Why Questions

2005-04-06 Thread Jason Barnett
I do not question usefulness of include_once(). In fact, currently I'm developing application that might use it exactly the way you described. There are many API functions in several files, and there are cases when I do not need all of them. That is exactly why I am concerned with it's

Re: [PHP] Re: registering session with user and password

2005-04-06 Thread Jason Barnett
Tomás Rodriguez Orta wrote: ... what is the differnece between isset($_session['use']) and session_is_registered('user') ? session_register() and session_is_registered() rely on the php.ini directive register_globals. Register_globals *can* be an ugly monster that gives crackers an easy

[PHP] Re: PDO and Oracle

2005-04-06 Thread Jason Barnett
Charles FENDT wrote: I try to use PDO with Oracle and PHP 5.0.4 on windows... my php.ini includes php_pdo.dll and when I try to create an object, I got an error message could not find driver Any idea ? regards, FENDT Charles disclaimerI have never used Oracle or PDO/disclaimer I think

[PHP] Little Help Needed

2005-04-05 Thread Jason
Could someone tell me what I did wrong with this script. It should read the page http://www.mto.gov.on.ca/english/traveller/conditions/rdclosure.htm and only read between the 2 words in the script. And email any new stuff to the email address in the script. What did I do wrong that is

[PHP] Re: PHP config issues when moving from Fedora to SuSe

2005-04-05 Thread Jason Motes
Whil Hentzen wrote: Hi folks, I've done a bit of work with PHP/MySQL on a Fedora Core server over the past few months and just about the time I got comfortable, it was time to change the server to SuSE. What a delight! Installed Apache 2, PHP and MySQL and I was processing pages within minutes.

Re: [PHP] Critical Thinking, or Several Why Questions

2005-04-05 Thread Jason Barnett
Jay Blanchard wrote: [snip] Why include_once() is doing some fancy logic, which nobody needs? I need it. If you don't need it, don't use it. Why array_shift() re-indexes arrays? Because most people *expect* it to behave that way. Why 2 simple string comparisons are slower than one

[PHP] Re: To session or not to session

2005-04-05 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi all I have been doing all my design by using POST to transfer user data and GET for user changeable variables. I would like to know what you guys think of using SESSION in production sites. SESSION is A Good Thing. Right now I am giving a trust factor of 80%

[PHP] Re: registering session with user and password

2005-04-05 Thread Jason Barnett
Tomás Rodriguez Orta wrote: Hi, people. I want to register all session of my web sitie, by the way in my index web I register all user with your username and password session_start(); $_SESSION['username']=$username; session_register('username'); You should use $_SESSION *or*

Re: [PHP] pass variable from vbscript to php

2005-04-04 Thread Jason Barnett
Ashley wrote: Ok, apparently I wasn't clear enough with my explanation due to the responses I have received. I have a webserver (not on the same computer as the users) that is hosting an Intranet app. I want to obtain the username of the current person logged into the workstation that is

[PHP] Re: file upload

2005-04-04 Thread Jason Barnett
Search the list archives for (noob) file -- 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://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY |

<    6   7   8   9   10   11   12   13   14   15   >