[PHP] %e blank with date_format() on windows

2002-09-29 Thread Gerard
"%e" with date_format doesn't print out anything on my windows 2k/xp machines, but does on linux. All other chars print fine. Is this a locale setting issue or something? Gerard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parse from a Text file

2002-03-21 Thread Gerard
C 3rd line Wind: from the NE (050 degrees) at 9 MPH (8 KT):0 4th line Visibility: 30 mile(s):0 And I would like to take only some data from the 4th line "30mile(s):0" and nothing else... Can somebody explain me who to do it ?¿ Many thanks Gerard -- PHP General Mailing List (http://w

[PHP] PHP slowness

2005-02-24 Thread Gerard
ago without any changes in the config or anything. At first I upped the amount of connections Apache would accept, but it soon turned out that was not the problem. Thanks, - Gerard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP slowness

2005-02-25 Thread Gerard
then click a link, it loads for 5 seconds again. I don't get this, especially since it seems to affect both PHP4 and PHP5... - Gerard > > On Feb 24, 2005, at 4:54 AM, Gerard wrote: > > > Hello people, > > > > Recently, one of my webservers became rather slow.

RE: [PHP] PHP slowness

2005-02-26 Thread Gerard
rather; for 5 seconds it does NOTHING and then it suddenly loads. This is not the case with .htm and .html files, they load at once... Somewhere there must be something which slows the execution of .php files for (exactly) 5 seconds. I just don't know what to think of this anymore :S - Gerard

RE: [PHP] PHP slowness

2005-02-26 Thread Gerard
> Gerard wrote: > > Another interesting note; if you click from page to page fast enough, it > > doesn't take as long to load. For some reason, after the > initial 5 second > > startup hic, it loads consequent pages smoothly. If you wait > for 10 seconds > >

RE: [PHP] PHP slowness

2005-02-26 Thread Gerard
<--snip--> > > I'm no expert on this stuff, but I'd be checking my swap space usage and > RAM usage with 'top' or any other tools available... I suppose you > probably already did that, but... Top shows that there's still normal non-swap memory avail

RE: [PHP] PHP slowness

2005-03-01 Thread Gerard
> On Thu, 24 Feb 2005 10:54:02 +0100, Gerard <[EMAIL PROTECTED]> wrote: > > > > Nevertheless, it IS slow and I have no idea why or where to > start looking. > > The phpinfo() can be found on www.debuginc.com/info.php. Any > help or hints > > are highly

[PHP] preg_replace wierdness

2002-11-22 Thread Gerard Samuel
ffected by preg_replace(). But if I break $foo into multiple lines like -> $foo = ' '; It works... Any tips would be appreciated... Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Logging out and session ids

2002-11-28 Thread Gerard Samuel
s the same (verified by the file name in /tmp and cookie manager in mozilla). My question is, even though the session contains no data after its destroyed, should the session id remain the same, after logging out, or should another be assigned when session_start() is called after the redirect?

Re: [PHP] Logging out and session ids

2002-11-29 Thread Gerard Samuel
session it will get used again, or at least I think that is what is happening :) This should not be a problem as the data associated with the old session is gone. If that is the case, then the setcookie() call to destroy the clien't cookie probably isn't neccessary. If you close the brow

[PHP] Sessions not written to db on windows...

2002-11-29 Thread Gerard Samuel
ter = nocache ; Document expires after n minutes. session.cache_expire = 180 ; use transient sid support if enabled by compiling with --enable-trans-sid. session.use_trans_sid = 0 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" -- Gerard Samuel http://www.trin

[PHP] How to handle "so called" expired sessions??

2002-12-02 Thread Gerard Samuel
ookie is still good, the next page load logs me back in. How do the people who use sessions handle this type of scenario?? Thanks for any insight you may provide... -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] How to handle "so called" expired sessions??

2002-12-02 Thread Gerard Samuel
scenario?? GS> Thanks for any insight you may provide... GS> -- GS> Gerard Samuel GS> http://www.trini0.org:81/ GS> http://dev.trini0.org:81/ Do your own session timing by storing a last access time in sessions and check the duration yourself, if it is over the timeout you want dele

Re: [PHP] How to handle "so called" expired sessions??

2002-12-03 Thread Gerard Samuel
expired. Maybe I'm just missing something here. If it's expired because you think it's too old, then you track your own timestamps and do your own cleanup. Is that what you're saying? ---John Holmes... -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.or

[PHP] Reject some?

2002-12-16 Thread Gerard Samuel
TED] or [EMAIL PROTECTED] Thanks for any insight you may provide... -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions and AOL

2003-01-03 Thread Gerard Samuel
I was wondering, if for example, an AOL user browses your site that uses php sessions, do the session ids change when they hop ip addresses? Im looking for a better way to counteract AOL's ip jumping. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP Ge

Re: [PHP] Sessions and AOL

2003-01-03 Thread Gerard Samuel
ly represents my personal experience, with the ip address jumping phenomena. Mark Charette wrote: From: Gerard Samuel [mailto:[EMAIL PROTECTED] I was wondering, if for example, an AOL user browses your site that uses php sessions, do the session ids change when they hop ip addresses? No. Sessio

[PHP] stripslashes and quoted material

2003-01-08 Thread Gerard Samuel
ot;', '', $var) and that worked. Any idea as to why stripslashes would not remove the slashes in the string? Thanks for any input. -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stripslashes and quoted material

2003-01-08 Thread Gerard Samuel
I figured out the problem. magic_quotes_sybase was turned on, on the IIS box. All is well with stripslashes() again. Chris Wesley wrote: On Wed, 8 Jan 2003, Gerard Samuel wrote: http://www.apache.org/\"; target=\"_blank\"> When trying to apply stripslashes, the slash

[PHP] Dynamic Regex

2003-01-08 Thread Gerard Samuel
the syntax of $foo is in -> $foo = '#\[this\](.*?)that#'; The second syntax of $foo works. I was wondering on the meaning of # in the string?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Gerard Samuel
\]#'; It does work. Not complaining but just trying to figure out why the first version doesn't work for future references. Thanks Greg Beaver wrote: Hi Gerard, all the preg_* functions require delimiters surrounding regular expressions. $foo = '\[this\](.*?)that';

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Gerard Samuel
Made sense. Thanks for your help. Greg Beaver wrote: hi Gerard, I didn't think you were complaining :) the problem is in [/url] $foo = '/\[url\]([a-z]+://.*?)\[/url\]/'; should be $foo = '/\[url\]([a-z]+://.*?)\[\/url\]/'; that "/" was ending the patter

Re: [PHP] session_destroy problem

2003-01-08 Thread Gerard Samuel
wser the session still hangs around. Is there something I don't know about sessions? I have read the documentation on the session_destroy function, I don't think that I am missing anything... Anyone have any suggestions? I am totally confused. Thanks Ken -- Gerard Samuel http:/

[PHP] XML Cleanup Regex

2003-01-11 Thread Gerard Samuel
#x27;', $foo); $bar = preg_replace('/()([\'])(<\/title>)/', '$1' . ''' . '$3', $foo); echo $bar; ?> Im trying the 2nd way, because I want to only do this clean up between certain tags.. Thanks for any help you may provide. -- Ger

[PHP] session_cache_limiter with Internet Explorer

2003-02-05 Thread Gerard Samuel
e tried it under php 4.2.3 and 4.3.0 on FreeBSD/Apache and WinXP/Apache. Any suggestions would be appreciated. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Internet Explorer cache friendly headers?

2003-02-05 Thread Gerard Samuel
behaviour? Are there any alternatives to using session_cache_limiter() that is friendly with all browsers? Any pointers would be appreciated. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Sessions and IP ports

2003-02-18 Thread Gerard Samuel
Has anyone noticed that different port numbers creates additional session ids? So if someone is browsing the site, and the remote port number changes, additional sessions are created... Is this the expected behaviour??? www.xxx.yyy.zz,3941 www.xxx.yyy.zz,3940 -- Gerard Samuel http://www.trini0

[PHP] ob_gzhandler problems under 4.3.0???

2003-02-21 Thread Gerard Samuel
utput_handler = --- Example script -> ob_start("ob_gzhandler"); ?> This should be a compressed page. - Error reported -> This should be a compressed page. Warning: (null)() [ref.outcontrol]: output handler &

Re: [PHP] ob_gzhandler problems under 4.3.0???

2003-02-21 Thread Gerard Samuel
already started. You may want additional logic that checks to see if the output buffer hander is ob_gzhandler. Jsaon -- Gerard Samuel http://www.trini0.org:81/ http://test1.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] http benchmark tools

2003-03-04 Thread Gerard Samuel
ks by resending real-life's request, but couldn't find one. Is there such a tool? Thanks, Arpi -- Gerard Samuel http://www.trini0.org:81/ http://test1.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Control over your Session

2003-03-10 Thread Gerard Samuel
e know what could be causing this type of behaviour?? Any help would be appreciated. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://test1.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Control over your Session

2003-03-10 Thread Gerard Samuel
ed to session_unregister it. Gerard Samuel wrote: Got a problem thats baffling me. I have a form that includes a file that starts a session. Creating sessions are no problem, but deleting the session variable is not working as its supposed to. Sudo code -> include('some_file.php'); // Th

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-13 Thread Gerard Samuel
The upload process, already collects info on file types when you upload. From the manual -> $_FILES['userfile']['type'] The mime type of the file, if the browser provided this information. An example would be "image/gif". So, check $_FILES['userfile']['type'] against a set of allowed file

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-13 Thread Gerard Samuel
David Otton wrote: $_FILES['userfile']['type'] The mime type of the file, if the browser provided this information. An example would be "image/gif". So, check $_FILES['userfile']['type'] against a set of allowed file types, and you're set... A client-supplied value isn't going

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-13 Thread Gerard Samuel
Gerard Samuel wrote: A client-supplied value isn't going to be too useful - it can be spoofed, or may not be present. (I believe a Windows browser would set the mime-type based purely on the file extension, though I haven't tested this myself). Then my apologies. I thought php dete

[PHP] BigEndian to integer

2003-07-14 Thread Gerard Samuel
A bit off topic Im trying to figure out how to convert BigEndian byte words to integers. For example -> 0 0 0 18 = 18 The only way I know how to convert this is by writing down on paper, and writing 8 4 2 1 above the numbers and adding up the values. Trying to figure out a way via plain old mat

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Gerard Samuel
Thank you for your reply. A little background on what Im doing with file uploading. 1. Im allowing registered users to upload avatars for their own usage. 2. Im allowing image uploading for submitted articles by certain registered users. 3. And Im currently constructing a media gallery, where i

Re: [PHP] BigEndian to integer

2003-07-14 Thread Gerard Samuel
Marek Kilimajer wrote: http://www.php.net/pack A little background on what Im doing. Im attempting to read realaudio files for their metadata, so Im reading from a binary string, and Im currently using unpack() (Im new to using this function, so I may be wrong with its usage) to unpack the da

Re: [PHP] BigEndian to integer

2003-07-15 Thread Gerard Samuel
Joel Rees wrote: Just in case you're still groggy when you wake up this morning, the page for pack() lists an 'N' format for unsigned long big endian byte order for pack() and unpack(). I think what you probably want to do most is use the 'N' format when you unpack. (The other responses were amusi

Re: [PHP] BigEndian to integer

2003-07-15 Thread Gerard Samuel
Tom Rogers wrote: Trying to use unpack by itself on large binary streams with variable packet sizes and content buried in them can become a nightmare. Try to unscramble an excel file using unpack() :) Yeah, not exactly the most exciting thing to do. As long as I have some specs on the format, it

[PHP] Regex and variable usage

2003-07-16 Thread Gerard Samuel
Has anyone had any success with using variables in a regex shown below?? $foo = 3; $bar = 4; preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}$/', $some_string) or even preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/', $some_string) but this would work preg_match('/^[a-z0-9

Re: [PHP] Regex and variable usage

2003-07-16 Thread Gerard Samuel
Curt Zirzow wrote: Gerard Samuel <[EMAIL PROTECTED]> wrote: or even preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/', $some_string) that should work. Unfortunately it doesn't for some reason. Don't know why. but you c

[PHP] Recovering from a time out

2003-07-17 Thread Gerard Samuel
Is it possible to *gracefully* recover from php timing out? For example, uploading a large file, and php times out, so display "Oops Timed out" This also assumes that we have no means of changing php's time out value?? Thanks for your comments.. -- PHP General Mailing List (http://www.php.net/)

[PHP] Securing File Uploads Was: Is it possible to test an uploaded fileto check the type?

2003-07-18 Thread Gerard Samuel
Sorry for bring this back to life, but Im looking for some more opinions. A friend and I are somewhat dead locked, as to whether with available tools via php, that its possible to *reliably* secure file uploads. File uploads currently encompass, images, mp3, real audio files, with plans for ogg vo

Re: [PHP] Securing File Uploads Was: Is it possible to test an uploadedfile to check the type?

2003-07-18 Thread Gerard Samuel
Jason Wong wrote: In a response to your previous posts on this matter, I suggested that you search freshmeat/sourceforge for a PHP-based media file metadata extractor (yes one does exist). I'm putting forward the same suggestion again. Ok, Ill look, but not sure what good it will do me, as Im

[PHP] Querying a form

2003-07-30 Thread Gerard Samuel
Im looking for links to tutorials, or if someone can post code here, where php can be used to query a form, so that I can retrieve its results. Thanks for any pointers... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Querying a form

2003-07-31 Thread Gerard Samuel
ul 30, 2003, "Gerard Samuel" claimed that: |Im looking for links to tutorials, or if someone can post code here, |where php |can be used to query a form, so that I can retrieve its results. |Thanks for any pointers... How about some of these? http://www.google.com/search?hl=en&ie=UTF-8&

Re: [PHP] Querying a form

2003-07-31 Thread Gerard Samuel
David Nicholson wrote: You can either use the cUrl functions: http://uk2.php.net/curl or if this is not an option to you, you can use the socket functions: http://uk2.php.net/manual/en/ref.network.php but you will have to deal with sending the HTTP request yourself (which is not very complicated

[PHP] Session ID as a regex

2003-08-06 Thread Gerard Samuel
How would you best describe a session id as a regex? [a-z0-9]{32} Just checking to see if any other characters can be in a session id. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Associative to Numeric

2003-08-11 Thread Gerard Samuel
What would be the quickest, most reliable means to convert an associative array to a numeric array. Running an implode()/explode() combination comes to mind, but reliablity can be questioned when it comes to deciding a delimiter, since, the data can possibly contain any character. Any suggestions

[PHP] PHP5 on IIS

2003-08-14 Thread Gerard Samuel
Are there any issues, or has anyone have any problems installing PHP5 with IIS 5? Following the install directions from the manual, always results with a 404 error when trying to view a php file. I have no problems with installing PHP 4.3.3R2 with IIS 5, so Im not sure if there are any issues wit

[PHP] Re: Associative to Numeric

2003-08-14 Thread Gerard Samuel
Excellent. Thanks. Greg Beaver wrote: $num = array_values($assoc); Regards, Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mod_php issues with security or stablility?

2003-08-17 Thread Gerard Samuel
Jason Sheets wrote: On cavaeat is with CGI PHP can execute as the owner of the script, with mod_php it executes as the web server. IMHO, the biggest difference between the two as far as security is concerned in favour for CGI. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Regex for Browser Versions

2003-06-06 Thread Gerard Samuel
Im trying to pull the Mozilla version and *possibly* the MSIE x.xx string out $_SERVER['HTTP_USER_AGENT'] If I did this correctly, (MSIE\s\d\.\d{1,2})? should mean that if its there pull it out, else move on, since its not there. When viewing this script via a windows browser, it doesn't match th

Re: [PHP] Re: Regex for Browser Versions

2003-06-06 Thread Gerard Samuel
True, but since the code is being run by 3rd parties, I don't have a guarantee that the browsecap.ini file is available on the server. Monty wrote: Maybe it might be easier to just use the get_browser() function: http://www.php.net/manual/en/function.get-browser.php Monty -- PHP General Mai

[PHP] Making a PHP Script "Very" Cache Friendly

2003-06-02 Thread Gerard Samuel
Searching through the archives, most people are running away from caching php scripts. Im trying to do the opposite. I have a script that fetches css files. Im trying to add header() calls to it so that browsers can cache it like a normal css file. This is what I have at the top of the file -> -

Re: [PHP] Making a PHP Script "Very" Cache Friendly

2003-06-03 Thread Gerard Samuel
Gerard Samuel wrote: Searching through the archives, most people are running away from caching php scripts. Im trying to do the opposite. I have a script that fetches css files. Im trying to add header() calls to it so that browsers can cache it like a normal css file. This is what I have at

Re: [PHP] header() and mozilla - HELP!

2003-06-13 Thread Gerard Samuel
Im assuming you are running mozilla 1.3.x Its not a php issue but a mozilla bug, that I've experienced first hand http://bugzilla.mozilla.org/show_bug.cgi?id=202210 deno vichas wrote: i'm runnig into a random problem of having all the headers being displayed instead on the actual web page in mozi

Re: [PHP] php editor?

2003-06-14 Thread Gerard Samuel
Because some of us, work directly on the server, instead of modifying files, then uploading to the server to test :) electroteque wrote: boy how painfully dweebish is vi why make it harder for yourself :O -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] When to escape slashes, and when not to???

2003-06-19 Thread Gerard Samuel
I have a class method that does one thing and one thing only. Escape characters before going to the DB. Part of it is -> if (!get_magic_quotes_gpc()) { $string = pg_escape_string( $string ); } return "'" . $string . "'"; In everyday get/post operation it seems to work flawlessly. I've come acro

[PHP] Passing objects into methods or functions

2003-06-22 Thread Gerard Samuel
Im trying to pass an object into functions and class methods, and for some reason, Im unable to access the object's methods. When I var_dump() the object, its a valid object with the function or class method. When I check via get_class_methods, all the methods are there, from within the function

[PHP] unpack() and binary data

2003-06-26 Thread Gerard Samuel
First of all, I have nearly no idea as to how to interpret binary data. But Im attempting to parse binary data for file metadata information (like mp3 files). Concerning unpack(), I can across this link from the notes in the manual -> http://fooassociates.com/phpfer/html/rn45re877.html This has s

[PHP] Regex Help with -> ?

2003-06-26 Thread Gerard Samuel
I have a string something like -> <[TIT2]> ABC <[TPE1]> GHI <[TALB]> XYZ Im applying a regex as such -> // Title/Songname/Content preg_match('/<\[TIT2\]>(.*?)(<\[)?/', $foo, $match); $title = trim( $match[1] ); The above regex doesn't work. At the end of the pattern Im using (<\[)? The pattern may

Re: [PHP] session_regenerate_id() -> "Call to undefined function"

2003-06-26 Thread Gerard Samuel
PHP 4 >= 4.3.2 D. R. Hansen wrote: I am getting a "Call to undefined function" when invoking session_regenerate_id(). No typos -- I've checked. Fatal error: Call to undefined function: session_regenerate_id() in /path_to_my_script/resetsession.php3 on line 5 Running PHP 4.3.1 on RH 8.0 and A

Re: [PHP] Re: Regex Help with -> ?

2003-06-27 Thread Gerard Samuel
sven wrote: looks like id3v2 ;-) how about this: $string = "<[TIT2]> ABC <[TPE1]> GHI <[TALB]> XYZ"; $pattern = "/<\[TIT2\]>([^<]*)/"; // matches anything exept '<'; till '<' or end of string preg_match($pattern, $string, $match); var_export($match); Yeah, Im trying to figure out a way to parse t

[PHP] Paying Job...

2002-07-25 Thread Gerard Samuel
may provide... -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Variable naming standards???

2002-08-13 Thread Gerard Samuel
A philosophical question Are there any standards to naming variables?? I was told that one should include a letter or combination of letters to describe a variable i.e. $sfoo = 'string'; // string $bfoo = true; // bool $nfoo = 10; // interger etc Thanks -- Gerard S

[PHP] Output Compression & output buffering..

2002-08-26 Thread Gerard Samuel
playing, I get an empty page, instead of the expected error page or the page hangs, depending on the browser. Has anyone gotten both forms of output control to work together without ill side effects?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP Gener

Re: [PHP] Re: Output Compression & output buffering..

2002-08-26 Thread Gerard Samuel
Eric Pignot wrote: >Hi Gerard, > >I never had any problem using output buffering... >Do you correctly dump the buffer when an error occurs ? I suppose you have >built your own error() function, a bit like this one : > >exit_on_error($msg){ >ob_end_clean(); >ech

Re: [PHP] flaking out on foreach

2002-08-27 Thread Gerard Samuel
; echo "$foo"; > } > ?> > >Rendering only "6". That's it. Just "6". What am I missing here? > > > -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/

Re: [PHP] PHPSESSID appended to URL on initial page load

2002-08-27 Thread Gerard Samuel
py_length = 0 > session.entropy_length = 32 > > ; Specified here to create the session id. > ;session.entropy_file = > session.entropy_file = /dev/urandom > > ; Set to {nocache,private,public} to determine HTTP caching aspects. > session.cache_limiter = nocache > > ; Document

[PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
And I feel foolish asking... What is meant by 'procedural code' ??? -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
ot; answer :) > > Try Google. Type: > > "procedural code" > > You might want to check, > > "object-oriented" > > as well... > > I'm sure, you'll find helpful explanations... > > - E > >> >> And I feel foolish

Re: [PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
gt; > >and > ><http://www.wdvl.com/Authoring/DB/SQL/BeginSQL/beginSQL2_2.html> > >There may be other contexts that the term "procedural" could be used >in, and if so it may have other meanings that I am not aware of > > > > -- Gerard Samue

[PHP] regex help

2002-09-01 Thread Gerard Samuel
tr); ?> Any help would be appreciated. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Info into Class

2002-09-03 Thread Gerard Samuel
; } .. } // class constructor here ... $class->outside_data($php); ?> -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Comments in code

2002-09-11 Thread Gerard Samuel
ut it. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Attack of the ghost double slash??

2002-09-20 Thread Gerard Samuel
oes anyone know when paths contain double slashes on a w2k box, so that I can anticipate for them?? Thanks for any insight you may provide. -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Attack of the ghost double slash??

2002-09-21 Thread Gerard Samuel
Thanks much, that made all the difference in the world. The function would be get_magic_quotes_gpc() Chris Shiflett wrote: > Gerard, > > The most likely reason is a php.ini configuration called magic_quotes. > When enabled, PHP will automatically add slashes to single and double

[PHP] unlink() and IIS

2002-09-22 Thread Gerard Samuel
;Reset'] )) { if (!unlink($log)) { trigger_error('UNABLETORESETLOGFILE' , E_USER_WARNING ); } } Can anyone shed any light for me. Thanks for any insight you may provide. -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.or

Re: [PHP] form and php

2002-10-04 Thread Gerard Samuel
;Notice: Undefined variable: varone in c:\apache\htdocs\testphp1.php on >line 8 >the first variable is >Notice: Undefined variable: vartwo in c:\apache\htdocs\testphp1.php on >line 9 >the second variable is >*** &g

Re: [PHP] running slow on Win2k

2002-10-07 Thread Gerard Samuel
> http://www.fourthrealm.com > Tel: 519-739-1652 > - - - - - - - - - - - - - - - - - - - - - > > -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regex Help

2002-10-29 Thread Gerard Samuel
;Guantánamo" Could my regex be expanded to handle non-english type characters, or any workarounds to get a string into an array of words, where the string contains non english characters?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mail

Re: [PHP] ^M at the end of each line when I use php to write file

2002-11-01 Thread Gerard Samuel
es to on a linux box? Brandon Orther WebIntellects Design/Development Manager <mailto:brandon@;webintellects.com> [EMAIL PROTECTED] 800-994-6364 <http://www.webintellects.com/> www.webintellects.com -------- -- Ger

[PHP] xml parser breaking on legal xml chars

2002-11-01 Thread Gerard Samuel
tributes) { echo 'Opening tag: ' . $tag . "\n"; } function ending_tag($xmlparser, $tag) { echo 'Ending tag: ' . $tag . "\n"; } function character_handler($xmlparser, $data) { echo 'Data --> ' . $data . &

[PHP] My 2cents on xml/php

2002-11-01 Thread Gerard Samuel
This is not meant to put down the php/xml combo. Just putting down my 2 cents from my experience thus far, into the archive for anyone else looking for info. I just started getting deep into parsing xml yesterday, and the dust has just begun to settle. Im parsing rss files versions 0.91 - 2.0 j

[PHP] Your opinion on globals/reference

2002-11-03 Thread Gerard Samuel
$bar_object->do_something(); } Thanks for your thoughts... -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Geographic IP location

2002-11-03 Thread Gerard Samuel
vices look pretty decent. http://www.geobytes.com http://www.serviceobjects.com/products/dots_ipgeo.asp Thanks for any input, olinux __ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ -- Gerard Samuel http://www.t

Re: [PHP] Re: Your opinion on globals/reference

2002-11-04 Thread Gerard Samuel
ale W: www.depannekoekendekale.nl "Gerard Samuel" <[EMAIL PROTECTED]> schreef in bericht news:3DC54436.2090803@;trini0.org... Something I just thought of about using global in a function. Mostly I global objects in a function like -> function foo() { global $bar_object; $bar_object->do_s

[PHP] Resource type numbers

2002-11-11 Thread Gerard Samuel
t) My dummy script is able to to recieve a +OK from the pop3 server but the other file is getting an empty string. Is there a difference between 1 and 38?? Thanks... --- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Socket Connections Was: Re: [PHP] Resource type numbers

2002-11-11 Thread Gerard Samuel
rying to do, (I have no experience with this), is it correct to assume, that with each attempt to talk to the server, a new connection must be made to read data from it?? If you want more info, feel free to ask... Thanks Gerard Samuel wrote: Im debugging a script that opens a connection to a

Re: [PHP] PHP and UTF-8

2002-11-12 Thread Gerard Samuel
different PHP platforms. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] error handler

2002-06-04 Thread Gerard Samuel
og($msg, 3, './error/error.log'); if ($exit === TRUE) exit; } When I trigger and error with E_USER_ERROR, it executes error_display() but it continues to display the rest of the content for the page. I thought E_USER_ERROR stops execution of the script. Thanks for any input. -- G

[PHP] use of fsockopen

2002-06-05 Thread Gerard Samuel
Im trying to modify a script that fetches rss newfeeds. I was using fopen, but I decided to use fsockopen() for the timeout value. -- --- Does anyone see anything wrong with this code?? Thanks -- Gerard Samuel http://www.trini0.org:81

Re: [PHP] use of fsockopen

2002-06-05 Thread Gerard Samuel
Oh I forgot to mention that its not writing any content to the cache file... Gerard Samuel wrote: > Im trying to modify a script that fetches rss newfeeds. > I was using fopen, but I decided to use fsockopen() for the timeout > value. > -- > $data = &#

[PHP] PEAR Benchmark & other benchmark techniques??

2002-06-08 Thread Gerard Samuel
_once("Benchmark/Timer.php");| Warning: Failed opening 'Benchmark/Timer.php' for inclusion (include_path='.:/usr/local/lib/php') Also on a side note, I dont know much about benchmarking utilities, but what else is out there for windows/bsd?? Thanks -- Gerard Samuel http://w

Re: [PHP] Re: Date?

2002-06-09 Thread Gerard Samuel
ston wrote: >I added a comment to the FAQ: >http://www.php.net/manual/en/function.date.php > > > > -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Date?

2002-06-09 Thread Gerard Samuel
f >inaccurate reporting - the degree of error will be dependant on the >method chosen. > >CYA, Dave > > > > > > -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OO Question

2002-06-10 Thread Gerard Samuel
constructor >function One >{ >$this->two = new Two; >$this->test = $this->two->test(); >} >} > >Can you do that? If so is that how you do it? > >Thanks. > > > > -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ --

  1   2   3   4   5   >