[PHP] Determining where a function is called from..

2003-08-15 Thread Wouter van Vliet
Howdy Fellas, I've got this problem .. not really a problem but still some thing to my disliking. For a project I wrote some database handling class, no big deal. When a function from this module is called with a query containing an error, or some other error occurs inside this class it reports to

RE: [PHP] Determining where a function is called from..

2003-08-15 Thread Wouter van Vliet
d backend). What I want dberror() to pass to my logging module is something like "You have an error in your sql syntax at line 1, called from index.php on line 20". The first part being just the mysql error, after the comma from where the errorfull query was called .. Thanks once more, Woute

RE: [PHP] Re: regex problem

2003-08-15 Thread Wouter van Vliet
So, what you want is to pretty much use this regex /^(.*)([^\/]+)\/([^\/]+)$/ when matched on this URI, the backreferences will contain \\1 partner/ \\2 name \\3 contact.html \\4 .html > > partner/name/contact.html I have not tested it, but I just guess it will work ;) Wanna kn

RE: [PHP] Determining where a function is called from..

2003-08-15 Thread Wouter van Vliet
-15 16:35 +0200, Wouter van Vliet wrote: >I noticed the __LINE__ and __FUNCTION__ magic constants too, but they don't >really contain the values I was looking for, as they have the current >function and line in it. But what I want my Logging class (I have one too >:D) to display is what

RE: [PHP] Determining where a function is called from..

2003-08-15 Thread Wouter van Vliet
RE: [PHP] Determining where a function is called from.. At 2003-08-15 16:35 +0200, Wouter van Vliet wrote: >I noticed the __LINE__ and __FUNCTION__ magic constants too, but they don't >really contain the values I was looking for, as they have the current >function and line in it. But

RE: [PHP] Checkboxes

2003-08-15 Thread Wouter van Vliet
I think I'd just use like then you can loop through it with foreach($_POST[box] as $BoxID => $Value) .. I assume the recieving script knows what boxes it expects? -Oorspronkelijk bericht- Van: Cesar Aracena [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 15 augustus 2003 20:38 Aan: [EMA

RE: [PHP] Bug in Ereg?

2003-08-15 Thread Wouter van Vliet
Hope I can be of any help again .. what you are doing seems rather complicated... what if you have your checkboxes like: and the recieving script just doing: if (isset($_POST['colors']) && is_array($_POST['colors'])) $colors = join(':', $_POST['colors']); PHP will only register indexes in th

RE: [PHP] Bug in Ereg?

2003-08-15 Thread Wouter van Vliet
ow .. this script won't work .. checkboxes like this: or var calling like this: $_POST['checkbox']['colors'] would do better ;) of course :D:D -Oorspronkelijk bericht----- Van: Wouter van Vliet [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 16 aug

RE: [PHP] better understanding of ereg_replace and other functions

2003-08-16 Thread Wouter van Vliet
You can just download the source distribution of php, and on a linux commandline do: grep -inr preg_replace * You'll find all occurances of preg_replace, including it's declaratin, which I have copies below. It seems like it's being passed thru to another function .. Which is also on the same fil

RE: [PHP] Sessions

2003-08-16 Thread Wouter van Vliet
As others have pointed out already, your problem indeed is about not being able to write in the tmp directory. Also, as others have pointed out, if it's not your server you would not be able to change file permissions of the /tmp directory. Your solution is probably found in changing the path where

RE: [PHP] Sessions

2003-08-17 Thread Wouter van Vliet
well .. that's odd. I use the same directive multiple times without any problems. The error tells that it thinks the php module which should provide this directive is not available. Odd thing is that you can run PHP scripts, so the PHP module is loaded .. so to speak. Somebody got a clue on this o

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

2003-08-17 Thread Wouter van Vliet
It's mostly just a wild guess .. but when I think about linking php.cgi/mod_php question to Peda's one about sessions, and later being unable to use php_value in a .htaccess file.. Is it likely that Peda's server runs php.cgi instead of mod_php? can somebody confirm this? Wouter -Oorspronkel

[PHP] test - please ignore

2003-08-17 Thread Wouter van Vliet
I'm just testing if this list accepts text attachments .. would be much easier for code exchange and stuff... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problem with the post variables.

2003-08-18 Thread Wouter van Vliet
The problem is probably in the 'enctype="multipart/form-data"'. You should only use this enctype if you're gonna upload a file through the form. If not, just leave it away or use text/plain Wouter -Oorspronkelijk bericht- Van: Klaus Kaiser Apolinário [mailto:[EMAIL PROTECTED] Verzonden: m

RE: [PHP] Problem with the post variables.

2003-08-18 Thread Wouter van Vliet
t posting forms .. (checked it at www.handleidinghtml.nl, interesting for the fellow dutchmen over here ;)) -Oorspronkelijk bericht- Van: Chris Shiflett [mailto:[EMAIL PROTECTED] Verzonden: maandag 18 augustus 2003 19:09 Aan: Wouter van Vliet; Klaus_Kaiser_Apolinario; [EMAIL PROTECTED] Onderwerp: RE

[PHP] Array element from function return

2003-08-24 Thread Wouter van Vliet
Hi, I'm trying to get the first element of a value returned by a function .. == example == function return_Array() { return ('one', 'zwei', 'kolm', 'vier'); } print return_Array()[0]; ==/ example == Now i'd like this script to print 'one' for me .. can it be done without creating a temp

RE: [PHP] Array element from function return

2003-08-24 Thread Wouter van Vliet
Holmes [mailto:[EMAIL PROTECTED] -> Verzonden: zondag 24 augustus 2003 17:34 -> Aan: Wouter van Vliet -> CC: PHP General -> Onderwerp: Re: [PHP] Array element from function return -> -> -> Wouter van Vliet wrote: -> -> > I'm trying to get the first elem

RE: [PHP] In need of a script

2003-08-24 Thread Wouter van Vliet
Though no parse error, it can result in an notice about 'undefined index' .. I'd prefer Taking care of three things: - No undifined index notice - the cookie can also have a value that evaluates to false - the 'die;' makes sure the script really ends .. sometimes, somehow

RE: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Wouter van Vliet
So, while overnight everybody has said something about this.. Let me add a few lines. Also because I just want to keep the discussion running, since I'm having pretty much the same kind of situation. First of all, what I get fro your description is that your friend wants to make changes to access

[PHP] Uploading by email

2003-08-25 Thread Wouter van Vliet
Hi, I know it's slightly not totally about PHP.. but since I wanna do it with PHP, i'll post it here. I was wondering if anybody can help me to accomplish the following: - Somebody sends an email to, for example, [EMAIL PROTECTED] This email has some attachments, being photo's to be added to some

RE: [PHP] ob_start and transparent sessions 4.3.2

2003-08-25 Thread Wouter van Vliet
Hi, I too am running PHP4.3.2 and never took any notice about the session id's being appended and stuff .. after reading your message I got a little alarmed, since I'm also using output buffering. So, I turned off my cookies, restarted my browser and saw that indeed no session id's were appended.

[PHP] Automatically include global file ...

2003-06-04 Thread Wouter van Vliet
s my chaotic message and maybe even has an answer.. Greetz, Wouter _ esctoday.com | your daily eurovision centre Wouter van Vliet, Staff assistant, member technical staff E-mail: [EMAIL PROTECTED] Websit

RE: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Wouter van Vliet
One little addit: use indeed $_GET for vars passed through the query string and $_POST to read out postdate .. $_COOKIE for cookies, but you'll find a combination of them all in $_REQUEST (nobody happens to know why $_SESSION is not included in that one .. or knows one that includes $_SESSION in

RE: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Wouter van Vliet
P] Re: Migration from register_globals=on to register_globals=off probably because $_SESSION is a server side thing not coming from the client side in a Request ? R'twick - Original Message ----- From: "Wouter van Vliet" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

RE: [PHP] Inserting Processed Data from One Table 2 Another!

2002-07-24 Thread Wouter van Vliet
I don't see why your code is so wrong but neither do I see what it reall does. YOu are changing the clientID with some simple function into a password? As in everybody can do that trick by himself and login as whoever he wants .. What I'll mostly do for such things, is use this self written

RE: [PHP] How to Detect File in a Specifc Directory on Window Env?

2002-07-19 Thread Wouter van Vliet
I'd use something like: to retrieve dir listing. If you make a function from it, which you'll give a path for argument you can make the script index an entire dir struct. With is_file() you can check to see if the dirlist entry is a file. Then, you can split every filename in different parts

[PHP] Digit Grouping

2002-07-22 Thread Wouter van Vliet
Heey Listers, I've got a small question. Does php provide any function to group a number like 3193576 into 3.193.576 ? Just reads easier when the hits for my website are being displayed ... Or if php doesn't have a function for it .. anybody any good suggestions on how to do it? (it's not fully

RE: [PHP] Formating datevariables...

2002-07-22 Thread Wouter van Vliet
Yeah .. the php function date shud do it .. if only the timestamp would be in the correct format. I've been wrestling with it too, best way to do it for me was using some substr() calles to extract year, month and day from it. anybody better ideas? -- Alle door mij verzonden email is ca

RE: [PHP] Can we control the content of MS Outlook Express

2003-08-29 Thread Wouter van Vliet
I think not every server allows the mail() command ... That's why: > SubjectLine"; ?> mailto:[EMAIL PROTECTED]&subject=">click here to mail me Is probably what you would be looking for .. Notice the urlencode.. -> -Oorspronkelijk bericht- -> Van: Duncan [mailto:[EMAIL PROTECTED] -> V

[PHP] RH9.0: Upgrade to 4.3, mysql functions not working

2003-09-05 Thread Wouter van Vliet
Hi Folks, I've got a (in my eyes) very strange behaviour from my RedHat Linux 9.0 box. I needed to upgrade my PHP version to 4.3, since that's the version on the production server and well .. test and production should match pretty good ;). Since self compiling didn't work. All errors with apxs an

RE: [PHP] RH9.0: Upgrade to 4.3, mysql functions not working

2003-09-05 Thread Wouter van Vliet
ber 2003 19:21 -> Aan: Wouter van Vliet; PHP General -> Onderwerp: RE: [PHP] RH9.0: Upgrade to 4.3, mysql functions not working -> -> -> [snip] -> "undefined function mysql_select". -> [/snip] -> -> mysql_select by itself isn't a function. Are you using

RE: [PHP] str_replace question

2003-09-09 Thread Wouter van Vliet
$String = ""; preg_replace('/*\<[a-z]+)[0-9]+(\>)/', '$1$2', $String); will most likeley do. Btw, does anybody know why preg_replace is adviced over ereg_replace in the manual? .. and if ereg_replace doesn't have any advantages over preg_replace, couldn't this function get depricated? -> -O

RE: [PHP] ereg_replace vs. preg_replace [was: str_replace question]

2003-09-10 Thread Wouter van Vliet
ce -> question] -> -> -> * Thus wrote Wouter van Vliet ([EMAIL PROTECTED]): -> > -> > Btw, does anybody know why preg_replace is adviced over -> ereg_replace in the -> > manual? .. and if ereg_replace doesn't have any advantages over -> > preg_replace

RE: [PHP] Simple (?) var_dump question

2003-09-12 Thread Wouter van Vliet
aiaiaia ... you are all pretty right, for another function was forged. var_export has a "return" flag as second argument where print_r and var_dump both have other variables as second (and third, and fourth, and sixth) .. So you can do: $logger->debug(var_export($Var), true)); which will log the v

RE: [PHP] Simple (?) var_dump question [summarization]

2003-09-12 Thread Wouter van Vliet
ohn W. Holmes [mailto:[EMAIL PROTECTED] -> Verzonden: vrijdag 12 september 2003 19:06 -> Aan: Wouter van Vliet; Chris Boget; Thomas Panzarella; -> [EMAIL PROTECTED] -> Onderwerp: Re: [PHP] Simple (?) var_dump question -> -> -> From: "Wouter van Vliet" <[EMAIL P

[PHP] Session stealing, ..

2003-09-12 Thread Wouter van Vliet
Hi All, There's always been a lot of discussion about how safe sessions are. I'd like to store a complete user object (instance of a class) in a session with the best security measures possible. Who doesn't. Now, to prevent that the session file from the server gets stolen by some other user of t

[PHP] Headers, outputting a file ..

2003-09-17 Thread Wouter van Vliet
Hi All, I feel almost ashamed for having to ask this question. Mostlly because I know it's been asked so many tmes but I just don't seem to be able to get it working. I want to secure some files from viewing by putting them in a different folder than the document root. Then, through a simple Cont

[PHP] Returning a reference

2003-10-09 Thread Wouter van Vliet
Hi Folks, I've been using the "passing arguments by reference" thingie for a while now. But what I want to do know is something I'm used to using in perl, returning a reference. Situation is as follows. 3 Changed = "sure"; 11 } 12 13 }; 14 15 Class Bar {

RE: [PHP] Passing array variables in a GET

2003-10-22 Thread Wouter van Vliet
Take a look at http://nl.php.net/manual/en/function.serialize.php and http://nl.php.net/manual/en/function.unserialize.php. Or if the keys don't matter and the array has just one level (strange, I know there's a different term for that, totally cannot find it in my memory :S) you can consider join(

RE: [PHP] using mail() - what is max number of email addresses I can specify in To field?

2003-10-24 Thread Wouter van Vliet
Here's some of my considerations ;) First of all, for the matter of anti-spam, please do not use the to for more people than, well .. Usually just one actually. Rather use the 'Bcc:' line. If there's no personalized information in the email (you might, for example, want to start with "Good Afterno

RE: [PHP] prepend file to all scripts...

2003-10-24 Thread Wouter van Vliet
Add: php_value auto_prepend_file "/path/to/file" To your .htaccess or VirutualHosts section. You might also want to use auto_append_file Wouter -Original Message- From: Jonathan Villa [mailto:[EMAIL PROTECTED] Sent: Friday 24 October 2003 22:00 To: [EMAIL PROTECTED

RE: [PHP] fwrite, fopen, or fread limit?

2003-11-05 Thread Wouter van Vliet
I highly doubt that was all. Now uploads bigger than 7megs are allowed, you should also make sure your script is able to deal with it files LARGER than that. Hmm, maybe this didn't seem to make much sense. What I'm talking about is this: memory_limit = 8M ; Maximum amount of memory

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Wouter van Vliet
That depends on the moment this emailing is sent, and how. If you do it at night, when there's less visitors (assuming you run a site mostly meant for ppl in 'your own country'), there's no real need to get a second server to to this. I fourth the thing about database access. As long as you reali

RE: [PHP] the function of the "@" symbol?

2003-11-05 Thread Wouter van Vliet
To me .. This looks more like a line of perl code. I am familiar with the @ sign to kindly ask a function not to give any errors to a function. But can it really be used like this on vars? What would it suppress, the "notice: undefined variable $first on line 44" notification? Funny.. -Origi

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Wouter van Vliet
t's faster? -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday 06 November 2003 02:17 To: Php-General (E-mail) Subject: RE: [PHP] High bandwidth application tips Wouter van Vliet <mailto:[EMAIL PROTECTED]> on Wednesday, November 05, 200

RE: [PHP] High bandwidth application tips

2003-11-06 Thread Wouter van Vliet
Yes, a filesystem hit is a filesystem hit .. And yes, be worried about the number of GIF files you serve. Less is always better in this. What I meant in my advice about the readfile() function is that it makes a big deal of a difference whether a file is sent directly to the client, or first also

RE: [PHP] $HTTP_SERVER_VARS["HTTP_PC_REMOTE_ADDR"] returns no value

2003-10-29 Thread Wouter van Vliet
$_SERVER['REMOTE_ADDR'] $HTTP_SERVER_VARS['REMOTE_ADDR'] = what you want :P -Original Message- From: Randall Perry [mailto:[EMAIL PROTECTED] Sent: Wednesday 29 October 2003 15:54 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] $HTTP_SERVER_VARS["HTTP_PC_REMOTE_ADDR"] returns no

RE: [PHP] explode () question

2003-11-10 Thread Wouter van Vliet
s NT 5.1) Referer > > > >when what I really want is ; > > > >Time - November 8th 2003, 07:15PM - PST IP - Address xx.xx.xx.xxx > >Browser Type - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) > >Referer - I'd try something like: 1 '; 3

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Wouter van Vliet
> -Original Message- > From: Dave Carrera [mailto:[EMAIL PROTECTED] > Sent: maandag 10 november 2003 17:45 > To: [EMAIL PROTECTED] > Subject: [PHP] Whats wrong with this query? > > $addamysqluser = mysql_query("grant > select,insert,drop,update,delete,create,index,alter on $_POST[f2] to >

RE: [PHP]

2003-11-12 Thread Wouter van Vliet
> -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: woensdag 12 november 2003 17:23 > To: Alan Lord; [EMAIL PROTECTED] > Subject: Re: [PHP] > > --- Alan Lord <[EMAIL PROTECTED]> wrote: > > can I put a function_name() in the place holder? For once and for all .

RE: [PHP] Explode a string

2003-11-12 Thread Wouter van Vliet
Jay Blanchard wrote: > [snip] > Considering Jay's answer for this question, do I always do things the > hard way or what?? [/snip] > > Young Grasshopper...there is more than one way to do things, > a lot of them are "right"some are just harder than others. Isn't that the diplomatic equivalent

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Wouter van Vliet
Jay Blanchard wrote: > [snip] > I have someone here at my desk arguing that Microsoft's .NET > is better than PHP - faster to process, easier and quicker to > program, etc. > > They also (claim) that Microsoft's SQL is much faster and such vs. > MySQL. > > Any comments to help me defend PHP or

RE: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Wouter van Vliet
> -Oorspronkelijk bericht- > That's simple, just modify your Apache httpd.conf on the line > where it says something along the lines of: > > AddType application/x-httpd-php .php4 .php .php3 .inc > > change it to: > > AddType application/x-httpd-php .php4 .php .html .php3 .inc And please,

RE: [PHP] sorting an array of regexes

2003-11-18 Thread Wouter van Vliet
> -Oorspronkelijk bericht- > Van: Eugene Lee [mailto:[EMAIL PROTECTED] > On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka > Gasiorowski FNORD wrote: > : > : There is an array of regexes, for example > : > : $array = array('moon', '[wh]ood', '[^as]eed' ... > : (about 300 entr

RE: [PHP] How to get the key of a specific index of array?

2003-11-18 Thread Wouter van Vliet
> -Oorspronkelijk bericht- > Van: PhiSYS [mailto:[EMAIL PROTECTED] > > How to get the key of a specific index of array? > > It seems that key($_POST[$i]) is a wrong syntax. > > I've worked around like this: > > $allkeys = array_keys($_POST); > $allvalues = array_values($_POST); > > fo

RE: [PHP] I need answers for the questions

2003-11-18 Thread Wouter van Vliet
> -Oorspronkelijk bericht- > Van: John Nichel [mailto:[EMAIL PROTECTED] > > Arivazhagi Govindarajan wrote: > >PHP Questions > > > > 1. Explain about session management and cookies ? In PHP how we can > > maintain a session While writing PHP code you put your body in risk of getting "wo

RE: [PHP] RE: Prefilled forms (solved)

2003-11-20 Thread Wouter van Vliet
> -Oorspronkelijk bericht- > Van: Eugene Lee [mailto:[EMAIL PROTECTED] > > On Thu, Nov 20, 2003 at 11:22:02AM +0200, Veress Berci wrote: > : > : Scuse me, if I write some totally dumb thing. > : I am quite new to PHP and programming, and maybe I'm not understanding > : the question, but: >

RE: [PHP] Why is the php loop, 'for()', so slow????

2003-11-20 Thread Wouter van Vliet
As a substitute for substr, you might want to give a regex a chance.. have no clue if it's faster, but it might just be. /^.{2}(.{0,8})/ would be your regex if you want to start at offset THREE and take out a MAX EIGHT char string (remove the 0 and get ONLY EIGHT char strings). Not sure i

RE: [PHP] Removing security-problematic chars from strings

2003-11-21 Thread Wouter van Vliet
> -Oorspronkelijk bericht- > Van: John W. Holmes [mailto:[EMAIL PROTECTED] > > Troy S wrote: > > > What is the best way to remove the characters from strings that may > > cause security problems? Namely, `, ', ", <, >, \ and all non-printing > > strings. Did I miss any? Thanks. > > Why d

RE: [PHP] xslt_create error

2003-11-21 Thread Wouter van Vliet
In your configure command, you have enabled xml support, but not xslt support. Read http://nl3.php.net/manual/en/ref.xslt.php " Installation On UNIX, run configure with the --enable-xslt --with-xslt-sablot options. The Sablotron library should be installed somewhere your compiler can find it. Mak

RE: [PHP] Removing security-problematic chars from strings

2003-11-21 Thread Wouter van Vliet
> -Oorspronkelijk bericht- > Van: John W. Holmes [mailto:[EMAIL PROTECTED] > Verzonden: vrijdag 21 november 2003 14:38 > > Wouter van Vliet wrote: > >John W. Holmes > >>Troy S wrote: > >>>What is the best way to remove the characters from str

RE: [PHP] Removing security-problematic chars from strings

2003-11-21 Thread Wouter van Vliet
CPT John W. Holmes wrote: > From: "Wouter van Vliet" <[EMAIL PROTECTED]> > >> Let's make this personal: what would be your answer if I would advice >> the friendly person to do this: > > Heh.. I hope you're just kidding about "making it >

RE: [PHP] Removing security-problematic chars from strings

2003-11-21 Thread Wouter van Vliet
Chris Shiflett wrote: > --- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: >> Heh... my turn to disagree again. You can do a simple str_replace() >> to convert "" back into "", but you're going to have to >> do it for each case. Also by doing that blindly, you can end up with >> orphaned tags a

RE: [PHP] tar and ownership

Rodney Green wrote: > Marek Kilimajer wrote: > >> Rodney Green wrote: >> >>> Greetings! >>> >>> I'm writing a script that downloads a tarball from an FTP server and >>> unpacks it into a directory. Here's the line of code that does this. >>> >>> exec("tar -C /scripts/ -zxv --preserve-permission

RE: [PHP] echo or print

David T-G wrote: > Eugene, et al -- > > ...and then Eugene Lee said... > % > % > % > % Also, the letter 'e' is smaller than 'p', so ASCII-based > function % lookups will be faster as well. > > Most of these speed increases can't be noticed in a small > script, where the end is within a few lines

[PHP] FW: [ERR] RE: [PHP] tar and ownership

[EMAIL PROTECTED] wrote: > Transmit Report: > > To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) Is someone able to unsubscribe [EMAIL PROTECTED] .. I'm getting annoyed by all those "User inbox full" replies. --- Begin Message --- Rodney Green wrote: > Marek Kilimajer wrote:

RE: [PHP] echo or print

Chris W. Parker wrote: > Wouter van Vliet <mailto:[EMAIL PROTECTED]> > on Friday, November 21, 2003 10:55 AM said: > >> Point is, which of the inline printing style is preferred by you >> guyes. I tend to use a lot, since it reads easier but get >> into str

RE: [PHP] tar and ownership

Nigel Jones wrote: > I think if you are using the Unix Tar Version you can do tar > -C /scripts/ -zxv -f ./scripts/mailfiles.tar.gz > --owner=REPLACEME --group=REPLACEME > I sure hope this is NOT possible, since it would be a major security problem. Think for example in terms of the php safe_mod

RE: [PHP] echo or print

Kelly Hallman wrote: > On Fri, 21 Nov 2003, Wouter van Vliet wrote: >> Point is, which of the inline printing style is preferred by you >> guyes. I tend to use a lot, since it reads easier but get >> into struggles with myself when I do that multiple times in a row. > &g

RE: [PHP] Time

Fernando Melo wrote: > Hi there, > > I have a RH Linux Web server running apache and PHP. > > I recently changed the system clock, the time zone and hardware clock. > The time and date are showing up correctly in Webmin and in > the O/S itself. > But when I call a php function to display the dat

RE: [PHP] Locking mysql tables with PHP

Marek Kilimajer wrote: > Tony Crockford wrote: >> Hi >> >> bit confused! >> >> here's what I want to do: >> >> get a numeric value from a MySQL table, do a calculation, then on >> another PHPpage update the numeric value in the table. >> >> what I don't want is anyone else getting the same numb

[PHP] "Bless"ing an object

Hi Folks I was wondering (mostly because I came across some situations where I need it) if PHP supplies any methods to "bless" an array or object to become some other object. In perl, I can simply do: my $SomeInstance = bless { item => 'value', 'Item2' => 'value2' }, 'SomeObject'; And th

RE: [PHP] "Bless"ing an object

Raditha Dissanayake wrote: > Hi Wouter, > > Wouter van Vliet wrote: > >> Hi Folks >> >> I was wondering (mostly because I came across some situations where >> I need it) if PHP supplies any methods to "bless" an array or object >> t

RE: [PHP] Re: "Bless"ing an object

[EMAIL PROTECTED] wrote: > Hello > > Just out of curiosity why do you need such a function? I'm no > perl programmer and have very little knowledge of the > language ... yet ; ) but the way you describe it it seems to > me that you have a fundamentle design flaw in your script if > you need to ch

RE: [PHP] how can I capture/ or make a history file?

[EMAIL PROTECTED] wrote: > Hello all, > > I want to make a history file while > runing a script in a shell. > > Does anyone know how to store all > the history and the result to a file I want? > > what is the command for it? > > thank you in advance > > Joshua Though way off topic, ... Linux

RE: [PHP] Receiving a warning... no clue how to resolve it and need help badly :(

| \./ . Aaron Wolski wrote: > *** Sorry if this is a duplicate for some on another list** > > Hi Guys, > > I need help with this code I am about to paste. It works on a > testing server running PHP 4.2.2 but not 4.3.2 > > Here is the error: > > Warning: array_merge_recursive(): recursion det

RE: [PHP] .htaccess authentification problem

Michael Hübner wrote: > Hallo, > > Hope somebody can help me. > > I'm working on Linux, Apache. > > On my start-site the user can log in via inserting Username > and Password into normal formfields, which are compared with a DB. > > After this login, he can change to his own user-directory > wh

[PHP] RE: "Bless"ing an object

Greg Beaver wrote: > Wouter, > > you could try this adding this method to each object you need > blessings from: > > function &bless($classname) > { > if ($classname == get_class($this)) { > return $this; > } > $vars = get_object_vars($this); > $ret = new $classname;

RE: [PHP] Capturing $_POST variables

Shaun wrote: > Hi, > > is it possible to capture $_POST variables sent from a > previous page so i can send them on to the next page? > > Thanks for your help. might wanna try (before any output, including spaces): $Value) $_SESSION[$Key] = $Value; But consider some checks to test if no value

RE: [PHP] Capturing $_POST variables

Thorsten Körner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Shaun > Am Freitag, 28. November 2003 14:41 schrieb Shaun: >> Thanks for your reply, >> >> I don't really need to do anything with them, just make sure they all >> retain their original values... > > If you are using

RE: [PHP] regular expression, image, name, alt, title, preg_match_all

Sophie Mattoug wrote: > Adam i Agnieszka Gasiorowski FNORD wrote: > >> I'm trying to develop a regex for matching with preg_match_all, I >> want to match such things like image name, image alt text, image >> title in construct like this: >> >> html... >> >>> style="style"> tex

RE: [PHP] include-problem

Rasmus Lerdorf wrote: > On Mon, 1 Dec 2003, Sophie Mattoug wrote: >> Victor Spång Arthursson wrote: >> >>> Hi! >>> >>> I'm having a problem with including files. What I want to achieve is >>> to execute a PHP-script on another server, and then to include the >>> result (which will be XML-output)

RE: [PHP] String construction help required please

Jay Blanchard wrote: > [snip] >> I need to display : "$_POST[$var]," >> >> Including the "" and the , . >> >> I have tried : \"\"$_POST[\".$var.\"]," but that is very wrong. >> >> Could one of you kind list members show me what it should be please ? > > > You have a couple of options... just p

RE: [PHP] include-problem

On maandag 1 december 2003 15:23 Rasmus Lerdorf told the butterflies: > On Mon, 1 Dec 2003, Wouter van Vliet wrote: > > > print "!!!"; > > ob_start(); > > include 'http://server.com/test/echo.php'; > > $XML = ob_get_clean(); // or use ob_get_cont

RE: [PHP] date() function doesn't seem to work right...

On maandag 1 december 2003 21:04 Curt Zirzow told the butterflies: > * Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > > When I do this script, I didn't get a ":" and numbers in > > second. --snip-- date("Y-m-d H:i:s"); > > --snip-- > > > > works fine with phpversion() 4.2.2 > > Curt > -- >

RE: [PHP] Error message trying to include a file

On maandag 1 december 2003 23:17 Curt Zirzow told the butterflies: > * Thus wrote Matthias Wulkow ([EMAIL PROTECTED]): > > > > I have an array filled with urls of javascript files and then I > > include them one by one in a loop. > > > > for( $i = 0 ; $i < sizeof($this->page->javascript) ; $i++ )

RE: [PHP] Picture Width and Height in $_FILES

On dinsdag 2 december 2003 3:40 Dimitri Marshall told the butterflies: > Hi there, > I've seen the code somewhere but can't remember what it is exactly. > Basically I need to know what the PHP is to get the picture > width and height. > > I tried: > > $pic = $_FILES[$objectNumber]; > $w

RE: [PHP] SID problem

On donderdag 4 december 2003 10:36 Binay told the butterflies: > Hi everybody, > > I m trying to disable/off "session.use_trans_sid". > I don have access to php.ini file... hence trying to unset in > the php scripts and .htaccess file . > > While this works in php script i.e > ini_set("session.u

RE: [PHP] SID problem

On donderdag 4 december 2003 10:53 Binay told the butterflies: > Yes AllowOverride is set to None > > But then i can not change it as i don have access .. wht > other method/solution i can look except ini_set then ?? > > - Original Message ----- > From: "

RE: [PHP] converting string into array with regex

On vrijdag 5 december 2003 12:23 Burhan Khalid told the butterflies: > Adam i Agnieszka Gasiorowski FNORD wrote: > > > How would you specify a regex to > > convert string into array using preg_split? > > Is there some symbol specyfying a place between letters ? > > > > s t r i n g => a

RE: [PHP] Re: post an array into another site

On dinsdag 9 december 2003 13:11 Jay Blanchard told the butterflies: > [snip] > ...wow... > [/snip] > > All of this an no one mentioned cURL? ;) http://www.php.net/curl Yes .. ehmm, especially considering this wasn't the guy's actual question. If I read it correctly, it was this: On 12/08/2003 1

RE: [PHP] Leechers...

On dinsdag 9 december 2003 13:50 [EMAIL PROTECTED] told the butterflies: > I've just installed and am happily using Galery HP > (http://www.galleryhp.org/) > A great photo gallery package... > Anyhoo, > > I want to now be able to stop people from linking to the > images directly, and only be able

RE: [PHP] Leechers...

On dinsdag 9 december 2003 14:30 Wouter van Vliet told the butterflies: > On dinsdag 9 december 2003 13:50 > [EMAIL PROTECTED] told the butterflies: > > I've just installed and am happily using Galery HP > > (http://www.galleryhp.org/) > > A great photo gallery pack

RE: [PHP] PHP IDE?

Yeah .. vim is my god too. You can do so many things with so little keystrokes. And it basically has the best syntax highlighting I've ever seen. With some easy tricks you can even let it highlight your own functions. I haven't doen so, but I know it's possible :P... Also, it exists on most servers

RE: [PHP] $GLOBALS containing itself!!!

On maandag 15 december 2003 10:24 Gerard Samuel told the butterflies: > Just curious about something I came across. > I was looking at the $GLOBAL array, to see what my script was leaving > behind. $GLOBALS contains a reference to itself. > Even though its a reference, whats the sense with that?? >

RE: [PHP] Request form duplicate names

:P On vrijdag 19 december 2003 11:10 Frédéric HARDY told the butterflies: > Try > > So in your script : > > $ids = $POST['name']; > $first_id = $POST['name'][0]; > > Best regards, Fred > === > Frederic HARDY

Re: [PHP] Re: Instantiating class, classname in constant

Quoting Catalin Trifu <[EMAIL PROTECTED]>: > > > class Foo { > > const Bar = 'Foo_Bar'; > > const Chocolate = 'Foo_Chocolate'; > > const Target= 'Foo Target'; > > } > > > > $bar = new Foo::Bar(); > > ?> > > Foo::Bar() is taken by php as a function call and then it tries to > insta

Re: [PHP] converting seconds since unix epoc to date array

> beware of dates before 1969. That problem mostly occurs on windows systems, and in fact it's dates before 1 jan 1970 0:00 - php on windows will issue a warning if you try to use dates like that > > > Can anyone tell me how to convert a date stored in the format > > > "-MM-DD" to an integer

Re: [PHP] Regex for Validating URL

On Tue, 7 Sep 2004 10:58:48 +0300, Burhan Khalid <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 02, 2004 11:59 AM > > Hi all, > > yeah, i know, i did do quite a bit of searching but I just cant find it... > > Does an

Re: [PHP] Dynamic Class Methods

On Tue, 7 Sep 2004 09:37:44 -0400, Mathieu Dumoulin <[EMAIL PROTECTED]> wrote: > I'm trying to setup a function from user code inside a defined object or a > class definition but it doesnt seem to work. Am i doing it right? Is there > something i need to know... is it even possible? > > I know cre

  1   2   >