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

[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

[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: 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

[PHP] Re: Hello, I'm new...

2005-05-13 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi all, I have only recently started to look at php, I hope this list dose not mind 'noob' questions. I have got 'Programming PHP' by Rasmus Lerdorf, Kevin Tatroe and 'Web Database Applications with PHP and MySQL' Hugh E. Williams, David Lane. I would like to create a

Re: [PHP] Seeking decent domain registrar

2005-05-13 Thread Jason Barnett
Marcus Bointon wrote: ... They did change the rules starting in November 2000, with RFCs (3454, 3490, 3491, 3492) finalised in 2003. See http:// www.verisign.com/products-services/naming-and-directory-services/ naming-services/internationalized-domain-names/index.html This page may be of

[PHP] Re: new security patch problem

2005-05-13 Thread Jason Barnett
K.S. Tang wrote: Thanks you, There is no ['PHP_AUTH_USER'] nor ['PHP_AUTH_PW'] in var_dum() I've asked the server administrator, He said he has installed a php security patch two days ago. Could anyone tell me how to config the php server so that ['PHP_AUTH_USER'] and ['PHP_AUTH_PW'] can be

[PHP] Re: php works in IE not Firefox?

2005-05-13 Thread Jason Barnett
Dustin Wish wrote: Anyone run across an issue where a php script works in IE and not Firefox? Christianboards.org is a PHP nuke site running on a Enism linux box that is having this issue. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com).

Re: [PHP] Hello, I'm new...

2005-05-13 Thread Jason Barnett
[EMAIL PROTECTED] wrote: I would like to create a 'community' website and was wondering if there was a framework available to get me started? Well now I don't even know what a framework is. I was expecting someone to say Oh, you should use model view controller or something. All the answers seem

Re: [PHP] Form handling

2005-05-13 Thread Jason Barnett
Dan wrote: Richard Lynch wrote: ... The value added of the central switch seems dubious to me. Just my opinion. Richard - I want your opinion, which is why I'm taking a stab at the list ;) What other methods would be good to use? Using a giant if statement? Thanks -dant Nononono a giant if

[PHP] Re: why are session only working with cookies?

2005-05-13 Thread Jason Barnett
Brian V Bonini wrote: Everything in php.ini seems to be correct. Is there soem thign I'm supposed to pass to 'configure' at compile time? Session support is now built-in by default, so unless you specifically compile without it then you should have support for sessions in your build. Although

Re: [PHP] Re: why are session only working with cookies?

2005-05-16 Thread Jason Barnett
Brian V Bonini wrote: On Fri, 2005-05-13 at 23:31, Jason Wong wrote: On Saturday 14 May 2005 09:42, Brian V Bonini wrote: Yeah, I know session support is there and I DO NOT have it set to use ONLY cookies. But if I disable cookies in the browser stuff relying on sessions stops working. I'm using

Re: [PHP] changing php ini location

2005-05-16 Thread Jason Barnett
Emre wrote: ... yes i aware of php ini set, but there is no logic using that command for global changes that you use each time. if you want to change global php.ini settings for a spesific script than its useful, but to change global settings for each script, thats smt like overkill :) eg. you

Re: [PHP] Re-initiating an autostarted session

2005-05-16 Thread Jason Barnett
Ville Mattila wrote: Marek Kilimajer wrote: You are right, unset($_COOKIES) does not remove cookie from the client. You need to unset() it so that your next call to session_start() does not use the same $_COOKIES[session_name()]. session_start will generate new session id if there is not one set

[PHP] Re: Add to array problem

2005-05-16 Thread Jason Barnett
Mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST[whatever]); I'm missing something easy. thx ?php $items[] = sanitize($_POST['whatever']);

Re: [PHP] extension development

2005-05-16 Thread Jason Barnett
Evert | Rooftop wrote: Basicly I want very rapid and easy information sharing between multiple processes. I'm not totally sure about the implementation yet. The most simple implementation would be using a $_APP global which is shared accross servers and processes, but to be honest I have to look

[PHP] Re: Firefox COM object

2005-05-16 Thread Jason Barnett
Dang Nguyen wrote: Hello, I would like to write some PHP scripts to automate web testing. I already have a framework that uses the COM class to automate the tests in IE. Now, I'd like to port that code so that I can test the same web pages in FireFox or Mozilla browsers. I haven't been able

[PHP] Re: learning classes - need pointer

2005-05-16 Thread Jason Barnett
Dustin Krysak wrote: ... that I should just pass to the class? Or would there be a more efficient way to do it? d http://pear.php.net/package/DB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Cache

2005-05-16 Thread Jason Barnett
Evert | Rooftop wrote: Hi, I'm developing a cache system. Which works in pseude code, like this: class Cache { function Fetchdata($id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); if ($this-DataIsExpired($id)) return false; else return unserialize(file_get_contents($id)); } function

[PHP] Re: Problem with an excel file generated with a PHP class

2005-05-16 Thread Jason Barnett
Jay Blanchard wrote: Hi all, I am getting this error when generating an excel file blah.xls cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding. I get this error if I click 'Open' in the

Re: [PHP] Re: Cache

2005-05-16 Thread Jason Barnett
... H... well, file_get_contents() doesn't lock the file so I'm interested in how you're accomplishing this feat. Perhaps you're creating a temporary directory (atomic IIRC) for the filename and then flocking that? I dunno, I hate race conditions. I was to fast with that, I didn't look

Re: [PHP] regex question

2005-05-16 Thread Jason Barnett
?php $text = 'Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@.'; /** Word boundaries before and after @ */ $regex = '/[EMAIL PROTECTED]/'; preg_match_all($regex, $text, $matches); var_dump($matches); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Components

2005-05-16 Thread Jason Barnett
So rather than starting YAPF[1] go and make an existing one better! [1] Yet Another PHP Framework I don't want to go on a rant here, but... I agree 100% with the above statement. So much code is out there that is free (however you want to define that). However, there isn't much code that is

Re: [PHP] Re: why are session only working with cookies?

2005-05-17 Thread Jason Barnett
Brian V Bonini wrote: ... Still no go... Other changes in php.ini DO take effect, just not this I'm at a loss By any chance are you changing PHP values through Apache's conf file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Complex Data Structures

2005-05-17 Thread Jason Barnett
Zzapper wrote: Hi, I seem to remember that you access/use PHP data in the same/similar way to Perl data and that you can create complex data structures ie arrays of arrays, arrays of records etc. For once Google let me down so can any one point at any doc info. ?php class A { } /** Initialize

Re: [PHP] server taking long time to make graph

2005-05-18 Thread Jason Barnett
Balwant Singh wrote: Hi I am making graph in PHP using JPGRAPH. I am not taking big data, my data is only 48 points. Through TOP command in linux, I found that httpd is taking lot of time to make the simple x-y graph. I found that the graph size is 47.75kb only. May pls suggest if any

Re: [PHP] hey dip shit

2005-05-18 Thread Jason Barnett
John Nichel wrote: Jason Motes wrote: HAH This list could really use an active moderator. Did Mr. Nichel just volunteer for that task... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Applications?

2005-05-18 Thread Jason Barnett
Evert | Rooftop wrote: Chris Shiflett wrote: Danny Brow wrote: Zend sells a compiler to speed up your PHP code. Since it's compiled, it also does not contain the source code in readable form. You should visit the Zend website. Any free ones? http://pecl.php.net/package/APC APC won't work for

Re: [PHP] Re: why are session only working with cookies?

2005-05-18 Thread Jason Barnett
Brian V Bonini wrote: On Mon, 2005-05-16 at 22:10, Richard Lynch wrote: Let him fight with phpIniDir some other day. Something interesting maybe: http://gfx.gfx-design.com/session_test.php Hit your browsers refresh button. I would think SID is NOT supposed to change with every page refresh..??

Re: [PHP] Re: why are session only working with cookies?

2005-05-18 Thread Jason Barnett
Please keep questions regarding PHP problems on the list instead of in my inbox. Thanks. Brian V Bonini wrote: On Wed, 2005-05-18 at 12:58, Jason Barnett wrote: Brian V Bonini wrote: On Mon, 2005-05-16 at 22:10, Richard Lynch wrote: Let him fight with phpIniDir some other day. Something

[PHP] Re: gather reply from POST

2005-05-18 Thread Jason Barnett
Jeremy Reynolds wrote: I received this useful bit of code for storing a page into a variable instead of loading it as an include. But how can I modify this to submit some parameters to a page and collect the returned page / HTML into a variable?? Jeremy -- ?php /** DocumentB.php

Re: [PHP] Responses in my email.

2005-05-18 Thread Jason Barnett
Rory Browne wrote: This is primarly a mailing list. Not a news group. The whole idea of a mailing list is that you get every message mailed to you. I use this solely as a news group. The news group seems to lag the email responses a little, but not too badly. For those that are interested I

[PHP] Re: array_diff odities

2005-05-19 Thread Jason Barnett
Pablo Gosse wrote: Howdy folks. I'm running into something strange with array_diff that I'm hoping someone can shed some light on. I have two tab-delimited text files, and need to find the lines in the first that are not in the second, and vice-versa. There are 794 records in the first, and 724

[PHP] Re: printf() in a variable, or alternative to printf()

2005-05-27 Thread Jason Barnett
sprintf() http://php.net/manual/en/function.sprintf.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: xml

2005-05-27 Thread Jason Barnett
Andy Pieters wrote: Hi all I recently decided to switch to xml for the configuration of our programs. I am now looking for a good way to handle that xml data. Basically, what I am looking for is a functionality where I say Get tag x with attribute1=y, attribute2=z,..., read its contents and

[PHP] Re: Sorting Objects in an array by object properties

2005-05-27 Thread Jason Barnett
Reto M. Kiefer wrote: ... PS: The array has the following structure: Array ( [0] = mail_Header Object ( [id] = 1 [pid] = 1 [read] = r [flagged] = n [from] = [EMAIL PROTECTED] [subject] = Re: [ugffm] TYPO3 anybody ? [sendtime] = 2005.05.17 - 18:27:25 ) [1] = mail_Header Object (

[PHP] Re: Voting Polls and preventing multiple votes

2005-05-27 Thread Jason Barnett
Dan Rossi wrote: Hi there I am mocking up a quick voting poll system, however I would like to put hooks in place to prevent users posting more than once, voting bots etc. Is there a way to prevent them, obviously sessions, cookies, host ips cant be used as they can be removed, and especially

[PHP] Re: Moving PEAR installation (for self-contained class library)

2005-05-31 Thread Jason Barnett
Andrei Verovski (aka MacGuru) wrote: Hi, I have a PEAR-related question. My class library using some PEAR packages, and I would like to make it self-contained, i.e. to be able to move it to a server (for example MacOS X) which do not have (and will not require) installation of any PEAR

[PHP] Re: .INC files

2005-05-31 Thread Jason Barnett
Martin Zvarik wrote: Hi, I saw files like file.inc.php and file.inc What is the *.inc suffix good for ? Thank you for replies. Martin STOP SPAMMING THE LIST! .inc is just a shorthand for include files and it's just a different way of organizing code -- PHP General Mailing List

[PHP] Re: PHP and USB Devices

2005-05-31 Thread Jason Barnett
Joe Harman wrote: Has anyone out there found a way to get information from a USB device running on their computer... what i am trying to do is retrive the fingerprint ID that the Microsoft USB fingerprint reader returns for a finger print and put it in a webpage form??? There has to be a way to

Re: [PHP] PHP 5 Question about OO

2005-06-02 Thread Jason Barnett
Jochem Maas wrote: Richard Lynch wrote: On Wed, June 1, 2005 3:53 am, Marcus Bointon said: On 1 Jun 2005, at 11:38, Jochem Maas wrote: all true, now imagine that you install a couple of 3rdparty php5 'packages' and they all define __autoload() - ain't gonna work! which is why there has

[PHP] Re: Best way to use other objects within classes?

2005-06-03 Thread Jason Barnett
Matthew Weier O'Phinney wrote: * Murray @ PlanetThoughtful [EMAIL PROTECTED]: snip (Note: my development environment is PHP 5.0.3, but the production environment is 4.3.10. This is my first project built with 5.x local and 4.1.x remote, so if anyone with more experience spots any fatal flaws

Re: [PHP] Newbie - Request interface for PHP 5 website

2005-06-03 Thread Jason Barnett
Greg Donald wrote: On 6/2/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: For PHP 4.x sites I used my index page to capture the HTTP request and use a switch statement to call the content or task based on the $_GET and $_POST arrays. That was very inefficient and the Switch case became totally

Re: [PHP] Re: Best way to use other objects within classes?

2005-06-03 Thread Jason Barnett
Then you're a better coder than me, but then again who isn't. :) It's just that in general I try to make things as strict / difficult as possible to code during development so that I will catch as many errors as possible before hand. But then again I use error_reporting(E_ALL). -- PHP

[PHP] Re: Exporting to MS Word or Excel

2005-06-03 Thread Jason Barnett
Miguel Guirao wrote: Hi!!! Are there any chances that I could export a dynamic created web page into MS Word or Excel? I know this can be done with PDF!! I'm using LAMP!! If you're using LAMP then you're probably out of luck. The only possibility I can think of would be to check out the

Re: [PHP] about the absolutely path

2005-06-07 Thread Jason Barnett
http://marc.theaimsgroup.com/?l=php-generalm=111008638014141w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The goto discussion on the Internals List

2005-06-07 Thread Jason Barnett
I agree 100% with Greg's comments for the goto() / ifsetor() discussion on the internals list. As far as speed goes if the dev team knew of ways to improve specific parts of the codebase (while maintaining the rest of the features available in PHP) then I'm confident they would make that

Re: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-08 Thread Jason Barnett
Marek Kilimajer wrote: Matt Babineau wrote: Hi all - I've got a great html invoice that prints like crap because of my user of background images and foreground images. Does anyone have any good suggestions other than turn on images in IE to get this thing to print the graphics? Is there a

Re: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-08 Thread Jason Barnett
@media print { /* style sheet for print goes here */ } http://www.w3.org/TR/REC-CSS2/media.html ^^^ This is a good suggestion. But if you only need to print just this one invoice then you can also take a full screen shot, paste that into your favorite image program and then print from

Re: [PHP] Re: reverse MD5 ???

2005-06-10 Thread Jason Barnett
That is incredibly interesting stuff, many thanks for that link! So the position seems to be that it may not be feasible to reverse MD5, but it is now feasible to create forged documents / binaries / whatever that result in exactly the same MD5 hash as the original. I actually tried it out

Re: [PHP] Re: reverse MD5 ???

2005-06-13 Thread Jason Barnett
Richard Lynch wrote: On Fri, June 10, 2005 3:01 pm, Jason Barnett said: That is incredibly interesting stuff, many thanks for that link! So the position seems to be that it may not be feasible to reverse MD5, but it is now feasible to create forged documents / binaries / whatever that result

Re: [PHP] What Works Works Validator

2005-06-13 Thread Jason Barnett
Although this isn't a validator, I recently found this site which seems to hold a lot of good information for supporting a wide range of browsers (especially some of the dinosaurs). http://www.quirksmode.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: retreiving postal/zip codes with PHP

2005-06-14 Thread Jason Barnett
Talk with Richard Lynch. He had talked about doing something like this several months ago and he might have worked on it since then... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: OT Major Release Versions

2005-06-16 Thread Jason Barnett
Richard Lynch wrote: This is Computer Software philosophical musing, not specifically related to just PHP, but applicable to PHP and, well, all other OpenSource software... As I sit here surrounded by machines (physically and virtually) and realizing that while I've got most of them on

[PHP] Re: Using Exec Function

2005-06-16 Thread Jason Barnett
Exec is the way to go... it gives you output as well as any error status. Here's an example script that works for a Win32 program I have and you should be able to adapt to your own usage: ?php /** Notice that the command has extra quotes around it for the Windows command line as well as

[PHP] Re: [RE-PHRASE] PHP ZIP Class

2005-06-16 Thread Jason Barnett
I have no clue why your PDF's are reading one byte short. However, I did find a class over at SourceForge which claims to do exactly what you want: http://sourceforge.net/projects/few/ noteI have never used this package and have no idea if it's going to explode when you use it./note --

[PHP] Re: Include and extending classes

2005-06-16 Thread Jason Barnett
Mike Smith wrote: I'm trying to consolidate code in a new project. My dirs are: / /inc core.class.php /mods /mods/system system.class.php //extends core.class.php user.class.php //extends system.class.php In core.class.php I have my generic special html methods and my db connection.

[PHP] Re: If I have 2 arrays...

2005-06-16 Thread Jason Barnett
Close... I think array keys are preserved from the (original) first array, but other than that those appear to be the values that should intersect. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: If I have 2 arrays...

2005-06-16 Thread Jason Barnett
Jay Blanchard wrote: [snip] Close... I think array keys are preserved from the (original) first array, but other than that those appear to be the values that should intersect. [/snip] After a var_dump I am seeing that there is an extra space in each element of one array, so no intersection

[PHP] Re: Question to example from manual

2005-06-16 Thread Jason Barnett
janbro wrote: Hi, I've been working on this example and copied it in my webroot, it doesn't give me an output. Does anybody know why? System WinXP Apache 2.0.50 php 5.0.3 Because you've defined the function, but you've never called it. thx janbro Example 7-6. Static variables with

Re: [PHP] passthru() passing variables

2005-06-17 Thread Jason Barnett
What is a reliable cross-platform way of showing which user PHP is running as? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using Exec Function

2005-06-17 Thread Jason Barnett
Davide Pasqualini wrote: I did as You suggested: ?php $win_cmd = \C:\\Hello.exe\; exec($win_cmd, $stdout, $stderr); print Standard output:\n; print_r($stdout); print Standard error:\n; print_r($stderr); ? but Hello.Exe, a very simple program, doesn't run and my browser seems waiting something

Re: [PHP] Extensions: parameters as references

2005-06-20 Thread Jason Barnett
Yasir Malik wrote: Is there any list (or forum) that can help me with this? Thanks, Yasir You probably will have more luck trying out the PECL group. These authors write PHP extensions and have the knowledge / desire to work on extensions. Not too many of us regular developers have

Re: [PHP] asterix for arrray_search?

2005-06-20 Thread Jason Barnett
Richard Lynch wrote: On Sat, June 18, 2005 10:11 am, Merlin said: ... I believe that in recent versions of PHP, the preg_* functions will accept an array as an argument... Or maybe I dreamed that. FYI I thought this also... but it appears that you can only do one match at a time with

[PHP] Re: security question...??

2005-06-20 Thread Jason Barnett
bruce wrote: hi... a number of you write apache/web/server apps that deal with secure information.. in doing some research it occured to me that a potential weak link is on the client side, regarding the browser? how many of you actually attempt to verify that the browser being used by the

[PHP] Re: Predictable-random array

2005-06-20 Thread Jason Barnett
Dotan Cohen wrote: I've got an array $items which has about 200 entires. I want to print them out in random order, but as usual, I have a catch! I need to add a 'key' so that if need be, I can always return to the same 'random' order, like so: $items=predicatable_random($items, qwerty); Try

Re: [PHP] Re: security question...??

2005-06-20 Thread Jason Barnett
Please do not CC me; I will check the newsgroups and usually respond to all messages there. Onward! bruce wrote: jason... it's the 2nd point... the hacked app that i'm concerned/thinking about... as i stated, a secure app/system incorporates not just the system, and the wire, it also deals

[PHP] Re: So many returned mail notices!

2005-06-20 Thread Jason Barnett
Chris W. Parker wrote: Hey, I know this kind of post can be annoying to some people but I must ask anyway. Is everyone else getting a bunch of returned mail from [EMAIL PROTECTED] It looks like it has something to do with (possibly) an email address that is subscribed through Road Runner?

Re: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Jason Barnett
Rats, I guess Andrei is watching this list because it's already down :P I knew they used PHP... but it would have been cool to see what things they've done to handle the number of page requests they have. Oh well. :-/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: security question...??

2005-06-21 Thread Jason Barnett
I haven't tried it yet, but clock skew looks interesting: http://www.aunty-spam.com/track-any-computer-on-the-internet-using-its-clock-skew-fingerprint/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: security question...??

2005-06-21 Thread Jason Barnett
This was an interesting topic when it started, but this is getting way out of the realm of PHP and you are in danger of your messages going my /dev/null. I understand your concerns about application security being all-encompassing, but there have been a lot of good suggestions on how to

Re: [PHP] text areas and line brakes

2005-06-21 Thread Jason Barnett
http://php.net/manual/en/function.nl2br.php -- 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 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Strange notation to create object

2005-06-23 Thread Jason Barnett
Matthew Weier O'Phinney wrote: ... This doesn't demonstrate what the OP was talking about, which is initial assignment of an object using a reference operator. The results of this make perfect sense to me -- the references are passed exactly as I would expect. But not exactly as I would

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Jason Barnett
Robert Cummings wrote: ... There's a difference between a reference to a reference and a copy of a reference *hehehe*. Cheers, Rob. Dear diary: jackpot! Now that makes sense. And am I correctly filling in the blanks when I guess that $foo3 = $aObj is merely copying the reference instead

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Jason Barnett
Robert Cummings wrote: ... Yeah, *grin*. And on that note, there are times when you will actually want $foo = new SomeClass(); versus $foo = new SomeClass(); since assigning by reference will break any previous references -- something I forgot to mention to Matthew Weier when he challenged the

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Jason Barnett
Robert Cummings wrote: ... This is intentional behaviour, there are times when you want a copy of a reference and there are times when you want a reference to a reference. For instance consider the following: $foo1 = $foo2 = $foo3 = new a(); $foo2 = new b(); If these were references to

[PHP] Re: PHP search

2005-06-27 Thread Jason Barnett
Bruce Gilbert wrote: Hello, I am fairly new to PHP, and I am looking to create a search functionality on a website using php. Can anyone point me to a good tutorial that can walk me through this? Between Google / Codewalkers / PHPFreaks you should be able to find something. -- NEW? |

[PHP] Re: the EXEC command

2005-06-27 Thread Jason Barnett
mikael wrote: I wanted to use the exec function but when i did a simple test script i got no result. This is the testscript: ? echo exec(whoami); exec('whoami', $stdout, $stderr); print Standard Out:\n; print_r($stdout); print Standard Error:\n; print_r($stderr); -- NEW? |

Re: [PHP] looking for a pure startup opportunity..

2005-06-28 Thread Jason Barnett
OK, let me put this another way... while trying to remain polite. Let's suppose that I am an unknown (to you) member of this list and I have this great idea that I want to develop. My idea is a great one and it's going to make millions. Now since I'm the one that had the idea I think it's

[PHP] Re: DOM XML issue

2005-06-28 Thread Jason Barnett
Andrew Kachalo wrote: Hi! ... Fatal error: Call to undefined function domxml_open_file() in /Users/Andrew/Sites/portfolio/index.php on line 61 This is because PHP5 now has an object-oriented approach. You use DOMDocument's and/or SimpleXML to read your XML files. Also in the newest

Re: [PHP] Breaking up data efficiently

2005-06-28 Thread Jason Barnett
Kevin L'Huillier wrote: ... Create the function split_location to return the associative array or, if it is invalid, throws an exception. If PHP4, replace the exception with similar error handling. If efficiency is really the goal, then the OP probably shouldn't go the route of Exceptions.

Re: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Jason Barnett
Jay Blanchard wrote: [snip] the fact is, you misread, misinterpreted what we stated... [/snip] The fact is... there are at least 4 people that regularly post on this list that misinterpreted what you stated. Then we would be even... [snip] I was just pointing out that the style in which

[PHP] Re: constant() - php5

2005-06-29 Thread Jason Barnett
Actually, thanks for pointing out this function to me because I never even knew that it existed. You learn something new every day. I have to admit that a warning seems a little unusual given that an undefined variable would result in only an E_NOTICE. Especially since the default behavior

Re: [PHP] Re: constant() - php5

2005-06-29 Thread Jason Barnett
Marek Kilimajer wrote: Jason Barnett wrote: ... ?php /* Causes E_WARNING */ echo constant(UNDEFINED_CONSTANT); The above is wrong, use: echo constant('UNDEFINED_CONSTANT'); OK, that's a good catch. But this still causes an E_WARNING. -- NEW? | http://www.catb.org/~esr/faqs/smart

Re: [PHP] constant() - php5

2005-06-29 Thread Jason Barnett
Richard Davey wrote: ... Isn't the warning coming from the fact that $cnst isn't defined, rather than coming from the constant() function itself? Best regards, Richard Davey Nope... tested with PHP 5.0.5-dev ?php /* Causes E_WARNING */ echo constant('UNDEFINED_CONSTANT')\n; echo

[PHP] Re: __PHP_Incomplete_Class

2005-06-29 Thread Jason Barnett
Jay Wright wrote: ... My page uses a header.php5 include file to call session_start(). Next a require_once(classloader.php5) performs the autoload. Here is the problem... you need to switch the order. Load the classes / autoloader first, then session_start(). PHP was able to serialize

Re: [PHP] Object Oriented PHP (5)

2005-07-01 Thread Jason Barnett
Richard Lynch wrote: ... Ooooh. At the risk of being branded a heretic, try to pick up another language or two. Start with something a whole lot like PHP. Maybe Perl, or even C. You'll have to shove all your PHP knowledge over to one side of your brain, cram all the new stuff into the other

Re: [PHP] reading PDF's

2005-07-01 Thread Jason Barnett
Richard Lynch wrote: On Fri, June 24, 2005 12:10 pm, Jon said: Is it possible to read text from a PDF file with PHP? How? ... There may be a free one, or even an OpenSource one, but I've never heard of it, possibly because they'd have to pay a license to Adobe (Macromedia this week?) to be

Re: [PHP] Problem serializing a mysqli_result object.

2005-07-08 Thread Jason Barnett
But why are you going to all of that trouble? What does the mysqli_result object have that you really need? If you just need the result set then you can fetch it as an assoc array and serialize that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-08 Thread Jason Barnett
The typical way that forums handle this is to use what is called BBCode. In short, you have a non-HTML way for users to supply information that will produce markup instead of just plain text. So if you want to allow italics, bolds, URL's, etc. then you have some codes for it like: [i]This

[PHP] Re: Register globals and ini_set

2005-07-08 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi, If i use, at the beginning of my scripts, ini_set('register_globals', 0), register globals will be turned off? Thanks ini_set() just doesn't make sense for that directive. register_globals takes the input data from HTTP requests and sets them in the symbol

Re: [PHP] Register globals and ini_set

2005-07-08 Thread Jason Barnett
Since you mention the PHP version was old (4.1) then I have to ask: were you using the $_SESSION array all along or were you using session_register to register session variables? Although you probably aren't since that would be rather easy to debug. The script in which your global_variable

[PHP] Re: proxy security

2005-08-18 Thread Jason Barnett
The problem here is that you need an anonymous proxy server that you trust. Most of the ones you can trust aren't going to be free. However, once you've identified an anonymous proxy server which you *do* trust then you can just pipe the mails to them like any old email server would. -- PHP

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

2005-08-18 Thread Jason Barnett
This can be a fine way to go, given that you have a specific reason to do so that is not easily handled by using session_set_save_handler. The most common session handler in use (besides the default handler) is a DB session handler. You could write this handler in C and it would possibly be

Re: [PHP] Unique user?

2005-08-19 Thread Jason Barnett
I'm going to agree with Jay... most users are lazy enough that if you just require them to have a user account then that will suffice. Since this is only for a joke site that would be my suggestion as well. However, if you really, really wanted to identify remote *computers* then you can try

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

2005-09-13 Thread Jason Barnett
Close: You mix both of these ideas. Create a custom session handler. This handler creates user entries in a database. Then when you want to know how many are online you do a count on the number of user entries in the table. Play around with different gc_probability values to tune the

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

2005-09-14 Thread Jason Barnett
On 9/14/05, bruce [EMAIL PROTECTED] 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... This might be possible to do

Re: [PHP] error message

2006-04-26 Thread Jason Barnett
Let's not open an error report just yet... there are already too many bugs in the database! A snippet of the relevant code would be nice though. Perhaps your odbc_errormsg($conn) is being echo'd to stdout? Or you are using those fun Exception beasts? On 4/26/06, chris smith [EMAIL PROTECTED]

[PHP] Re: [suspicious - maybe spam] Using heredocs

2005-01-21 Thread Jason Barnett
Tim Burgan wrote: Hello, I've just tried using heredocs [1] for the first time, but I am receiving parse errors always on the very last line of my document. The error is caused by my heredocs. Am I using it correctly? When I replaced the heredoc with a string.. everything worked again. Here's my

[PHP] Re: REPOST: Serving WML

2005-01-21 Thread Jason Barnett
Mikey wrote: Hi again - thought it best to keep the two topics separately... I have just leased a virtual hosting package and want to provide GPRS access to my email server using WML. disclaimerI have never built a site that served WML, but I know a small bit about it/disclaimer Now I have a

  1   2   3   4   5   6   7   >