Re: [PHP] running cmd via php

2007-11-28 Thread Jochem Maas
Daniel Brown wrote: > On Nov 28, 2007 3:28 PM, adam_99 <[EMAIL PROTECTED]> wrote: >> [snip] >> On the server? http://www.php.net/exec >> [/snip] >> I don't know how to use these functions in PHP can you explaine it? >> And I don't need outpu from the function. >> Thanks you! >> >> >> -- >> PHP Gene

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Jochem Maas
you need a *seperate* script that outputs the image data only (+ relevant headers) and then you refer to that script (passing it a suitable parameter so it knows which image to output) in the src attribute of an IMG tag. you seem to be trying to output image data and html in a single request, whi

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
Jean-Michel Philippon-Nadeau wrote: > Dear Tedd, Dear List, > > tedd wrote: >> As for being "hung-up" -- again, I'm clueless. I mistakenly thought >> that anything obtained from the browser was subject to suspicion as is >> any outside data. But apparently you can "trust" (I realize within >> cert

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
tedd wrote: > At 3:01 PM +0100 11/28/07, Jochem Maas wrote: ... > Jochem: > > This just hasn't been my week -- everyone (long story) thinks I'm being > sarcastic when I'm not. ouch! > > The "Sorry, my bad" means "I apologize, my mistake.&qu

Re: [PHP] CVS TO ICAL

2007-11-28 Thread Jochem Maas
Wolf wrote: > Always make sure you reply to the list... > > And yes, you can export as an ical format, just look at an ical file and > format your output to it. It's just like doing the CSV/CVS/TXT or any > other file, you just have to put it in the right format with the right > extension when ex

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
Jeff Benetti wrote: ... > Am I correct that if two people are logged on using two different languages > that the session var will keep track of the different users (by IP I assume) > and the server won’t mess up? yes, the contents of $_SESSION are stored per user. this is tracked by way of a ses

Re: [PHP] The PHP License

2007-11-28 Thread Jochem Maas
AmirBehzad Eslami wrote: > Hi list, > > Below statement is borrowed from PHP License here[1]: > > The name "PHP" must not be used to endorse or promote products > derived from this software without prior written permission. For > written permission, please contact [EMAIL PROTECTED]

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
tedd wrote: > At 12:56 AM +0100 11/28/07, Jochem Maas wrote: >> Colin Guthrie wrote: >>> tedd wrote: >> >> ... >> >> > >> > Sorry Tedd, but I'm not sure where the browser sniffing stuff came in. >>> IE and FF both offer a U

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-27 Thread Jochem Maas
Colin Guthrie wrote: > tedd wrote: ... > > Sorry Tedd, but I'm not sure where the browser sniffing stuff came in. > IE and FF both offer a UI to input the user's preferred language, it's > an HTTP standard thing and nothign to do with user agents string > parsing. It uses the Accept-Language hea

Re: [PHP] Newbie asks about multi-lingual website strategies

2007-11-27 Thread Jochem Maas
tedd wrote: > At 9:37 AM -0400 11/27/07, Jeff Benetti wrote: >> Any any and all comments are welcome, it will be a learning curve no >> matter >> which route I take so a little advice on the best direction pros cons >> would >> be great. >> >> >> Thanks, >> Jeff > > Jeff: > > If it were me, I wou

Re: [PHP] Nested include/require not working in 5.2

2007-11-27 Thread Jochem Maas
Mike Yrabedra wrote: > > I am not able to use includes or requires in nested files using php 5.2.3 > (osx) > > Including or Requiring files directly works. > > Including files, that also have includes in them, does not. > > Say you have this... > > -TopDirectory > --index.php (contains include

Re: [PHP] Newbie asks about multi-lingual website strategies

2007-11-27 Thread Jochem Maas
your all missing something, namely that the browser can tell you what it's preferred language is (which you can use to select a language in the event no language has yet been determined for the current session). you do this by parsing the value of the HTTP_ACCEPT_LANGUAGE request header. HTTP_ACCE

[PHP] any phpers in or around Rotterdam, Holland looking for a job?

2007-11-27 Thread Jochem Maas
please contact me off list :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL Parsing...

2007-11-26 Thread Jochem Maas
Richard Heyes wrote: > Chris wrote: >> Richard Heyes wrote: well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? >>> >>> How does this

Re: [PHP] How to ask "if private IP"?

2007-11-26 Thread Jochem Maas
7;s "Reply" feature. [EMAIL PROTECTED] This confirmation verifies that your message is legitimate and not junk-mail. You should only have to confirm your address once. If you do not respond to this confirmation request within 14 days, your message will not be delivered. Jochem Maas

Re: [PHP] How to ask "if private IP"?

2007-11-26 Thread Jochem Maas
Ronald Wiplinger wrote: > I use $aa=$_SERVER["REMOTE_ADDR"]; > > and > > if(($aa=="192.168.2.108") || ($aa=="192.168.2.34")) { > $aa="61.64.101.101";// for testing put in a public IP > } > > > However, I would like to cover all private IPs (192.168.x.x and 10.x.x.x > and 172.??.x.x).

Re: [PHP] URL Parsing...

2007-11-25 Thread Jochem Maas
Richard Heyes wrote: >> well if you take a string (filename) and wish to change the end of it >> somone >> then I don't think str_replace() is the correct function. what's to >> say a script >> doesn't exist called 'my.cfm.php'? > > How does this: > > /\.cfm$/ > > take into account that? WTF >

Re: [PHP] URL Parsing...

2007-11-25 Thread Jochem Maas
Richard Heyes wrote: >> one of these should give you something to go on: >> >> echo preg_replace('\.cfm$', '-meta.cfm', >> parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)), "\n"; >> echo preg_replace('\.cfm$', '-meta.cfm', $_SERVER['PATH_TRANSLATED']), >> "\n"; >> echo preg_replace('\.cfm$', '-met

Re: [PHP] URL Parsing...

2007-11-24 Thread Jochem Maas
Amanda Loucks wrote: > Hi, > > I'm working on redesigning the backend of the website for work. It was > originally done in ColdFusion, but I'm switching it over to PHP - probably > going to transfer the website from where it's currently hosted to something > a lot cheaper, too, hence the switchin

Re: [PHP] quicktime new window php

2007-11-24 Thread Jochem Maas
kNish wrote: > Hi, > > Given that a pc has quicktime loaded, how is it > possible to have a hyper link open a new quicktime window. i.e. a > window that has a .mov file playing. Along with it, it has the play > stop pause options too. this is nothing to do with php. please find a

Re: [PHP] Parsing XML with DTD

2007-11-22 Thread Jochem Maas
Skip Evans wrote: > Hey all, > > I've been asked if it's possible to parse XML files given a DTD file > that describes the elements within it, so I've been looking through the > docs at php.net. > > So far I've found this: > > http://us.php.net/manual/en/ref.xml.php > > Which has some samples o

Re: [PHP] Code Critique Please :)

2007-11-21 Thread Jochem Maas
while feedback - but then again I didn't see any faux pas' either. you might consider checking out other implementations of similar functionality to compare your own idea/implementation against. oh and we prefer to keep all communications on list :-) > Simeon > > On Nov 21, 20

Re: [PHP] Code Critique Please :)

2007-11-21 Thread Jochem Maas
Simeon F. Willbanks wrote: > Hello, > > I am trying to increase my knowledge and understanding of OO and OO > Design Patterns. I'd like to request a critique of a program that > extracts MySQL table information and translates it into XML. In the > program, I tried to accomplish a few things: >

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Jay Blanchard wrote: > [snip] > huh? if I post a file to a script that returns a 204 status and nothing > else then the page should not change in the browser. > [/snip] > > True, the missing piece is that the post cannot move the file up to the > server. I was referring to a standard POST not us

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
tedd wrote: > At 12:23 PM -0600 11/21/07, Jay Blanchard wrote: >> [snip] >> But, take a look at this: >> >> http://www.captain.at/ajax-file-upload.php >> >> They look like their blowing the same wind. >> [/snip] >> >> Yep, look at all of the gotchas. > > > Well, I wasn't able to get it to work --

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Jay Blanchard wrote: > [snip] > So that I can get my head around this, are all of you saying there is > no Ajax equivalent of: > > > > > > > > We can't in some way use the ajax post method to send the file in the > background without a refresh (other than using iframe) is that > correct?

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Colin Guthrie wrote: > T.Lensselink wrote: >> On Wed, 21 Nov 2007 08:38:18 -0600, "Jay Blanchard" <[EMAIL PROTECTED]> >> wrote: >>> [snip] >>> Seems to me Pere want's to do an upload without reloading the whole >>> page. >>> [/snip] >>> >>> The problem is that you cannot upload files using Ajax alo

Re: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
pere roca wrote: > Hi, a basic question: > I want to send a CSV file and some other parameters. In my FORM I have > method=POST input type="file" and action="http://php";; It sends it to > the php file but I don't want the php to be visualized (in fact it just > works with the data and inserts

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-21 Thread Jochem Maas
chetan rane wrote: > Sorry Buddie But Session dose not serialize the Object Please Have a look at > the Code Again I have tried it with PHP 5.2 > IT dose not call __sleep function. only when you have serialize it calls it. this is completely untrue. during the shutdown phase objects in the $_SESSI

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread Jochem Maas
Andrés Robinet wrote: >> -Original Message- ... >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php > > Just wanted to add, I found a log.txt at "D:\xampp\apache" which happens to > be the root of the apache installation on my

Re: [PHP] two small issues with php mail OT

2007-11-20 Thread Jochem Maas
Stephen Johnson wrote: > Who says you can't please them all... ;) > Erin Brokovich. > -- > Stephen Johnson c | eh > The Lone Coder > > http://www.thelonecoder.com > continuing the struggle against bad code > > http://www.thumbnailresume.com > -- > > > > >> From: Jay Blanchard <[EMAIL PROTE

Re: [PHP] overloading members. aghhh!!!

2007-11-20 Thread Jochem Maas
Peter Ford wrote: > Jochem Maas wrote: >> Kiketom wrote: >>> Hi all. >>> Yesterday i have looking for the overloading members >>> >>> Member overloading >>> void __set ( string name, mixed value ) >>> mixed __get ( string

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Jochem Maas
Kiketom wrote: > Then if i make this > > $foo = new foo(); > $foo->ID = 12; > > what is happening?? > if __Set and __Get only works if a member isn't exits, > > How come I do this? > $foo->ID = 12; > if the member $ID is private??? > > I thought that this was possible because i have declared th

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Jochem Maas
Kiketom wrote: > Hi all. > Yesterday i have looking for the overloading members > > Member overloading > void __set ( string name, mixed value ) > mixed __get ( string name ) > > As an example i put this code: > > class foo > { > private $ID; > private $Name; > private $LastName; wh

Re: [PHP] Tree-like structure in PHP? (closed)

2007-11-16 Thread Jochem Maas
Paul van Haren wrote: > Thanks, the empasant helps! ampersand :-) > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Jochem Maas
Paul van Haren wrote: > I'm trying to use arrays to implement a sort of data tree. For the code to > work, it is essential that the nodes can be edited after they have become > part of the tree. That would require that the array elements are pushed > "by reference" rather than "by value". > >

Re: [PHP] PHP 5.2.3 segfault with syslog standard extension

2007-11-13 Thread Jochem Maas
hi Nir, I think you should direct this question to [EMAIL PROTECTED] (the php core developers list). Rachmel, Nir (Nir) wrote: > Hi, > > I am running PHP 5.2.3 as a statically compiled module for a web server > (appWeb, which is an embbeded apache-like server). > My platform is a ppc processor,

Re: [PHP] Re: Need a hint how to track an error

2007-11-13 Thread Jochem Maas
Al wrote: > Install the Firefox extension "HTML Validator". It does a real time Tidy > check for every page. good advice. > > Make your code W3C compatible and it'll work on all modern browsers. less good advice. I agree you should be doing everything to make your code validate 100% BUT having

Re: [PHP] Simple reading a file and extract fields

2007-11-13 Thread Jochem Maas
Ronald Wiplinger wrote: > I got a larger file which consists of lines with a defined length of 56 how large? for very big files it's dangerous to read them in all at once, as was exampled in other replies. I would say that large in this case would be anything bigger than 5 Mb (this is a very rough

Re: [PHP] Need a hint how to track an error

2007-11-13 Thread Jochem Maas
Ronald Wiplinger wrote: > Chris wrote: >> Ronald Wiplinger wrote: >>> My php program is working with Firefox, but not with Internet Explorer. >> Nothing to do with php, your problem is javascript. >> >>> Is there a tool to find the problem? >> For IE, try >> >> http://www.microsoft.com/downloads/de

Re: [PHP] PHP editor

2007-11-11 Thread Jochem Maas
Børge Holen wrote: > On Sunday 11 November 2007 20:36:39 Jochem Maas wrote: >> Jay Blanchard wrote: >>> [snip] >>> Being very new to PHP (empahsis on VERY...), I wonder what most of you >>> use >>> to develop in PHP? >>> [/snip] >>>

Re: [PHP] PHP editor

2007-11-11 Thread Jochem Maas
Jay Blanchard wrote: > [snip] > Being very new to PHP (empahsis on VERY...), I wonder what most of you > use > to develop in PHP? > [/snip] > > Search the archives, there was a discussion on IDE's just last week. and pretty much every week before that :-) when beginning your most valuable tool

Re: [PHP] chrooted php5-cgi in a non chrooted apache

2007-11-10 Thread Jochem Maas
hi Joerg, not a solution but the open_basedir ini setting on a per Vhost setting may offer a [partial] work around > > What I've get so far is, that I've created a chroot jail within the > web-directory. I can chroot to there and execute php (I used "jailer", > for this). > > But I don't get it

Re: [PHP] Cannot send a hyperlink

2007-11-10 Thread Jochem Maas
.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; > mail( $email, "Your FREE book from Zone of Success Club .com", > $headers, $message, "From: $email" ); > ?> > > -Original Message- > From: Jochem Maas [mailto:

Re: [PHP] Re: debugging imap_open

2007-11-10 Thread Jochem Maas
John Gunther wrote: > Since no one seems to know about the debug feature, let me ask about the > imap argument directly. None of the following work, always "Couldn't > open stream": > mail.usservas.org:143 > mail.usservas.org:110 > >> wrong? Here's my code: >> >> ini_set('error_log','/tmp/imap.tx

Re: [PHP] Re: Help with preg_replace

2007-11-07 Thread Jochem Maas
Al wrote: > Delimiters needed. Can use about anything not already in your pattern. > "/" is very commonly used; but I like "#" or "%" generally; but, you > can't use "%" because your pattern has it. > > $html = preg_replace("#%ResID#",$bookid,$html); wont a str_replace() do just fine in this ca

Re: [PHP] re-post (unanswered) Tables, flash and text

2007-11-07 Thread Jochem Maas
Per Jessen wrote: > Brad wrote: > >> I just picked up an account to fix a website and the code is making no >> sense. > > Brad, it's been barely six hours since you first posted that question. > > 1) be patient. > 2) it's a lot of code to ask someone else to look at for you. I would > start

Re: [PHP] More info on timeout problem, with code

2007-11-07 Thread Jochem Maas
Jon Westcot wrote: > Hi Chris: > ... > That is, I need to close the single quote, place a comma after the > field, and then add in another opening quote. One other thing: I suspect I > need to use addslashes() to the elements in $data -- is there a way to do > this with one statement as you

Re: [PHP] Close a session knowing it's ID (not the current session)

2007-11-05 Thread Jochem Maas
Richard Heyes wrote: > unlink('/tmp/sess_' . session_id()); unlink(session_save_path().'/'.session_id()); // no? > ?> > > You'll need to know the session_id of the session you want to close. The > code above closes/ends the current users session, but simply substitute > the desired session

Re: [PHP] More info on timeout problem

2007-11-05 Thread Jochem Maas
Jon Westcot wrote: > Hi all: just show us the code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
ncrasity I guess). > > > On Nov 5, 2007 2:01 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> Jônata Tyska Carvalho wrote: >>> Well if i cant, i cant! But dont say i dont need >> why not? >> >>> Im working with a >>> framework th

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Jochem Maas
Nathan Nobbe wrote: > On 11/5/07, Jochem Maas <[EMAIL PROTECTED]> wrote: ... yes yes yes to all that, except for one thing. Im personally of the opinion such 'import' operation should involve no human interaction and garanteed to complete (e.g. auto resume), save for poss

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
hings not to do, don't f'ing reply off-list (unless asked), etiquette asks that you keep the conversation on the mailing list. if you wAnt to call me an ass because you don't like the way I tried to help that's fine but please do it in public :-) > > On Nov 5, 20

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Jochem Maas
Nathan Nobbe wrote: > On 11/5/07, Jon Westcot <[EMAIL PROTECTED]> wrote: >> Hi Nathan: >> >> No, I'm not familiar with Ajax. Where can I read up on it? More >> important, how can I find out if Ajax is implemented on the server? Or is >> it something I can add myself? >> > although it might

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
Stut wrote: > Jônata Tyska Carvalho wrote: >> Im having a big problem because the name of one input type text that is ' >> table.name' in my html, becomes 'table_name' in php, it is a kind of >> bug?? >> =S >> >> >> >> >> >> in PHP we have: >> >> $_POST["table_name"] instead of $_POST["table.nam

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Jochem Maas
n nothing. > > I'm really struggling with this concept here, and I appreciate the help > that everyone is giving me! dont forget to read the manuAl AND the user comments on the pages relevant to the functions you are using to tackle the problem > > Jon > > -

Re: [PHP] Question about php.ini file

2007-11-04 Thread Jochem Maas
Jon Westcot wrote: > Hi Nathan: > > Another quick question regarding the use of the .htaccess file: > > If I'm trying to set something like post_max_size, which takes a > shorthand value such as 16M in place of the full value, will using the > php_value type of statement also accept the

Re: [PHP] Looking for ways to prevent timeout

2007-11-04 Thread Jochem Maas
Jon Westcot wrote: > Hi all: > > I'm hoping to find a solution to the problem I'm having with my script > timing out while inserting records into a table. > > Overall, the process is pretty fast, which is impressive, but when it > gets to the 22,000 to 23,000 record mark, it seems to ti

Re: [PHP] Transfer query result to another script

2007-11-02 Thread Jochem Maas
C.R.Vegelin wrote: > - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> > To: "C.R.Vegelin" <[EMAIL PROTECTED]> > Cc: "David Giragosian" <[EMAIL PROTECTED]>; "php-general" > > Sent: Friday, November 02, 2

Re: [PHP] Transfer query result to another script

2007-11-02 Thread Jochem Maas
C.R.Vegelin wrote: ... > > Hi Jochem, > > The reason for a redirect is that Report.php has functionality such as > sorting on report columns, checkboxes to make graphs etc. > > Suppose the following report columns: > Country 06.Q1 06.Q2 06.Q3 06.Q4 07.Q1 07.Q2 > 1 Austria 1226

Re: [PHP] Transfer query result to another script

2007-11-02 Thread Jochem Maas
C.R.Vegelin wrote: > Hello David, Jim, > > Thanks for your response. > Yes, I do have session_start() at the top of Report.php. > The reason for having the query on a different page than the result > is that the result may be sent to various output types / scripts. > I will change my code as follo

Re: [PHP] Re: Function variables in classes

2007-11-02 Thread Jochem Maas
Paul van Haren wrote: > OK guys, thanks for all your inputs. > > Based on your guidance, I have tested the following code with a > series of variations: > > class foobar { > function bar2 () { > echo "Yep, in bar2() right now\n"; > } > >

Re: [PHP] Threads

2007-11-01 Thread Jochem Maas
Instruct ICC wrote: >>> Greetings everyone, I was wondering where I could find information on the >>> status and possibilities of threads being included in PHP. Or if you are >>> knowledge-able on the status of threads, if it is a planned addition or not >>> and the reasons as such. I understand PH

Re: [PHP] Re: Function variables in classes

2007-11-01 Thread Jochem Maas
Robert Cummings wrote: > On Thu, 2007-11-01 at 16:10 +0100, Jochem Maas wrote: >> I've completely lost track of the state of the exact OO rules in any >> given version of php5) > > Haha, you too eh!? > > BTW, I finally bothered to download PHP 5.2.4 last night a

Re: [PHP] Foreign Key Problem

2007-11-01 Thread Jochem Maas
Kulluji wrote: > Hi Everybody, > > I am working in WAMP server for a small project. I am useing mysqlAdmin to > create my tables. In this version of Mysql I am unable to set foreign key > constraint. How do we do that? ask someone in on a mysql or phpmyadmin mailing list - we are not here to sup

Re: [PHP] Re: Function variables in classes

2007-11-01 Thread Jochem Maas
Sebastian Hopfe wrote: > I think you should log it, because it seems to be, and you found this > error. it's not a bug - especially because nobody has bothered to mention the php version. I'm guessing that it's being run on a version php5, in which case the fatal error seems correct - you have

Re: [PHP] GD Library

2007-10-30 Thread Jochem Maas
Charlene wrote: > I have the GD Library installed, but I don't see any of the fonts. What > is the preferred location to download fonts (standard fonts like Arial, > Verdana, etc.) and which directory should they be stored in? 'standard fonts' is not. and any directory you want. upload any legal

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread Jochem Maas
David Christopher Zentgraf wrote: > On 31 Oct 2007, at 15:32, Jochem Maas wrote: > >> aside from this error (my guess is your not allowed to override it) I >> can't >> see the problem of serialization .. don't put the object in $_SESSION? > ... >> wha

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread Jochem Maas
David Christopher Zentgraf wrote: > Hi, > > I'm trying to set up my PHP app at my host, but am stumbling over the > PHP configuration there. register_globals is enabled, which seems to > auto-serialize my objects into $_SESSION, which in some cases overwrites > variables in there. I'm not sure if

Re: [PHP] using `php' in the name of software

2007-10-28 Thread Jochem Maas
Andrew O. Shadoura wrote: > Hello. > > Jochem Maas wrote: > >> you should ask this on [EMAIL PROTECTED] but if you ask me you >> should just call the extension netcdf e.g. it's full name would be "the >> php netcdf extension". the 'php-' is

Re: [PHP] using `php' in the name of software

2007-10-28 Thread Jochem Maas
Andrew O. Shadoura wrote: > Hello. > > I'm developing an extension for PHP to support netCDF format (a special > format > for multidimensional scientific data). It is non-commercial open source > project. At http://www.php.net/license/3_01.txt it is said that I cannot name > my extension php-n

Re: [PHP] SPL

2007-10-27 Thread Jochem Maas
Børge Holen wrote: > On Sunday 28 October 2007 01:32:15 you wrote: >> On 10/27/07, Børge Holen <[EMAIL PROTECTED]> wrote: >>> I'm currently using RecursiveDirectoryIterator and >>> RecursiveIteratorIterator. >>> I'm using fwrite to write to a file while parsing throught the file >>> structure, >>>

Re: [PHP] unable to find running php script

2007-10-26 Thread Jochem Maas
ah yes ... Dan said it better :) but then he is a bigger nerd than me ... he has a truck which is more dalek than pickup :-P Daniel Brown wrote: > On 10/26/07, Jean-Christophe Roux <[EMAIL PROTECTED]> wrote: >> Hello, >> I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler >> I

Re: [PHP] unable to find running php script

2007-10-26 Thread Jochem Maas
Jean-Christophe Roux wrote: > Hello, > I am runnign on a Centos 5.0 php 5.1.6 as Server API Apache 2.0 Handler > I launched a script, which contains an infinite loop, from bash typing: > php script.php > > I'd like to end that process. when typing ps -A, try ps -e, or run top and look there (you

Re: [PHP] CURL + Frames, fopen + remote sessions

2007-10-26 Thread Jochem Maas
jenix wrote: > Hi, > > When using CURL to access a page with frames I get the "Your browser does > not appear to support frames" error. How can get around this? Is there > special header info that can be added? try spoofing the USer Agent string - i.e. tell the server your 'Firefox' rather than

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
T.Lensselink wrote: > ... >> php -r 'function foo() { static $x = 1; echo "foo ", $x++, "\n"; foo(); } >> foo();' >> >> ... >> >>> Running your code shows that there is a limit. Although it doesn't throw >> an >>> error. >>> It just stops after n recursive calls: >>> >>> php4 recursive calls:

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
T.Lensselink wrote: > > On Fri, 26 Oct 2007 14:32:42 +0200, Jochem Maas <[EMAIL PROTECTED]> > wrote: >> Paul Scott wrote: >>> On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: >>> >>>> since when is there an arbitrary maximum recursion

Re: [PHP] e-mail code

2007-10-26 Thread Jochem Maas
arash moosavi wrote: > First: how can I write php code that alert me when I have new mail? > such as Gmail first you read lots about php and programming, whilst your doing that you you try out lots of code to see what it does ... eventually your understanding gets to a level where you are capable

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
Paul Scott wrote: > On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: > >> since when is there an arbitrary maximum recursion limit??? > > Since forever... ;) thats you think, personally I test this kind of thing when Im not sure: php -r 'function foo() { static

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Jochem Maas
Larry Garfield wrote: > If I had to venture a guess, you nested 100 functions (called 100 functions > in > a stack), and therefore reached the maximum limit in PHP. That is, you > overflowed the stack. You may have a recursion problem, especially if you're > using an XML parser that is not th

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread Jochem Maas
Stut wrote: ... > > Say you have a function that builds a fairly large array and then > returns it. If you just return it as usual PHP will make a copy of that > array and therefore use twice the amount of memory than it needs to. php has something called 'copy on change' so until an attempt to

Re: [PHP] json_encode/json_decode, take 2

2007-10-19 Thread Jochem Maas
try seeing what json_encode() creates: $json = "json"; $data = array( "no_1" => $json, "no_2" => $json, "no_3" => $json, "no_4" => array("foo" => $json, "bar" = $json), ); print_r({"{$json}_encode"}($data)); Christoph Boget wrote: > The string used below in "$myAr

Re: [PHP] json_encode/json_decode, take 2

2007-10-19 Thread Jochem Maas
Christoph Boget wrote: > The string used below in "$myArrEncoded" is generated in javascript, after > creating the structure and spitting out: > > var JSONVar = javascriptVar.toSource(); > > I can eval JSONVar and work with it as I would be working with the original > javascriptVar so I know the

Re: [PHP] Reference return buggy notice?

2007-10-18 Thread Jochem Maas
Ondra Zizka wrote: > Hello, > > please look at the code bellow and tell if it does not conform to rules of > returning a reference from a function. > In the first method, I return reference to $sRet variable, and PHP is quiet. > But in the second, PHP says: > > Notice: Only variable references s

Re: [PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Jochem Maas
Colin Guthrie wrote: > LKSunny wrote: >> > $a="1+1"; //variables(string) >> >> //how can arithmetic variables(string) ?? >> //N ROW >> >> //output >> echo $a //i need output "2" not "1+1" >> //Please Help, Thank You Very Much !! >> ?> >> > > You can do: > > eval("echo $a;"); you

Re: [PHP] FileZilla Password Decoder --- $i think therefore $i am

2007-10-11 Thread Jochem Maas
Amos Vryhof wrote: > Good Morning everyone, > > > def DecodePassword( strPass): > """Decode a filezilla password""" > strKey = "FILEZILLA1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ" > > nPassLen = len(strPass) / 3 > nOffset = nPassLen % len(strKey) > > strDecodedPass = "" >

Re: [PHP] Problem iterating over an array with foreach and a reference variable

2007-07-24 Thread Jochem Maas
Chris Mika wrote: > I don't know if I'm doing something wrong or if this is a bug. the problem is due ot reuse of the variable you define by reference in the second loop - cant really explain why its doing what you see but IIRC its not a bug, an artifact of the way references work. someone with a

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Jochem Maas
Colin Guthrie wrote: > Dotan Cohen wrote: >> I just found some jerk on StumbleUpon with titles like: >> PHP Essentials (c)2007 (Neil Smyth) >> PHP Cookbook (David Sklar/Adam Trachtenberg) >> PHP 5 Power Programming (c)2005 (Andi Gutmans/Stig Bakken/Derick Rethans ) >> A Programmer's Introduction to

Re: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Jochem Maas
some ideas about class design: 1. properties should normally (read almost always) be private. 2. the apps interface to the DB [connection] is via the 'generic' class, the app should have to know nothing about the drive object and should have no direct access to it. 3. use an interface definition f

Re: [PHP] Suggestion re: PHP Brain Teasers

2007-07-06 Thread Jochem Maas
Steve Edberg wrote: > At 7:37 PM -0400 7/5/07, Robert Cummings wrote: >> On Thu, 2007-07-05 at 16:27 -0700, Steve Edberg wrote: >>> Proposal - >>> >>> Perhaps we could separate Brain Teasers, Obfuscated PHP challenges, >>> and what-have-you to a separate mailing list, say php-fun (php-phun? >>>

Re: [PHP] PHP Brain Teasers

2007-07-06 Thread Jochem Maas
tedd wrote: > > 2b || !2b this is not javascript dude. $_2b | ~$_2b; that said this is one of the coolest so far, nice one tedd. > > Cheers, > > tedd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Brain Teasers

2007-07-06 Thread Jochem Maas
Daniel Brown wrote: >Let's get obscure try to guess it before running the code. It > actually shouldn't be difficult. I tried to figure it out - I couldn't, I ran the code and I still don't get it. oh well :-) > > > class Brainteaser { >function > paint($original_image,$rgb_string

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Jochem Maas
Daniel Brown wrote: > {snip="all"} > >Actually, PHP is a phenomenal, scalable, and > brilliantly-extensible language. Yahoo!, > IBM, Google, and (of course) Zend are just a few of the multi-million > and billion dollar players. The company for whom I'm building web and > desktop-level, as w

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Jochem Maas
Alan Milnes wrote: > On 05/07/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> 6. IBM, Oracle and others seem to be less sure about whether php will >> ever >> be a major player in the business solutions arena (often referred to as >> 'being enterprise r

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Jochem Maas
let's break this down shall we. 1. there is no such thing a business [programming] language (you can lie through your teeth and sell shit in any language ;-), although some language may be synonymous with business because of their frequent use to solve business specific logic problems. 2. busines

Re: [PHP] Re: Re 2D: [ 2CPHP 2D] 2CRe 2D: 2Cphp security books

2007-07-05 Thread Jochem Maas
Andrew Hutchings wrote: > In article <[EMAIL PROTECTED]> > [EMAIL PROTECTED](Jochem Maas) wrote: > >> > OK, well, for example page 3 of the book suggests making >> PHP output > errors into Apache's error_log. To do this on Linux >> it means PHP> wo

Re: [PHP] Re: php security books

2007-07-04 Thread Jochem Maas
Andrew Hutchings wrote: > In article > <[EMAIL PROTECTED]>quickshift > [EMAIL PROTECTED] ("Nathan Nobbe") wrote: > >> --=_Part_178329_18179255.1183569772294 >> Content-Type: text/plain; charset=ISO-8859-1; >> format=flowedContent-Transfer-Encoding: 7bit >> Content-Disposition: inline >> >

Re: [PHP] Re: PHP Brain Teasers

2007-07-04 Thread Jochem Maas
this one should be easy: function work($v) { echo "$v,"; } foreach(array_merge(range(9,12),range(1,5)) as $ing) work($ing); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Brain Teasers (SPOILER)

2007-07-04 Thread Jochem Maas
Colin Guthrie wrote: > Jochem Maas wrote: >> Jochem Maas wrote: >>> three for the price of one, cheap at half the price ... >>> >>> for ($me = 1; $you = $me; $me++); > > One for me and one for you? correct! > Everything that is mine is yours? &g

Re: [PHP] Re: developer seeking document writer

2007-07-03 Thread Jochem Maas
adel wrote: > hello? why am not getting any reply!? because nobody really wants to write documentation? not even for their own stuff, let alone someone else's. the lack of reply suggests no one is interested - this is not uncommon - it's very hard to get people interested in a project even when i

<    4   5   6   7   8   9   10   11   12   13   >