Re: [PHP] Question regarding include() and symlinks to directories

2007-01-08 Thread Jochem Maas
Vincent DUPONT wrote: > hello, > if I can still contribute to this topic, I suggest you never use simlinks. > We experienced very bad maintenance problems at a customer : when copying new > files through FTP, the simlinks were often erased or overwriten. > And this occured on every upgrade of the

Re: [PHP] computing 60/10 - how to?

2007-01-08 Thread Jochem Maas
Merlin wrote: > Hi there, > > I do have a text value inside a variable: exif[FNumber] = 56/10 which I > would like to save as a float value: 5,6 into a database. > > How can I compute this 56/10? I tried things like calculate() or math() > but did not find the propper function to do this. > > Ca

Re: [PHP] question about str_replace function

2007-01-08 Thread Jochem Maas
Dick Jiang wrote: > I think you'd better use regular expression to replace the word agreed - only it a serious dive in the deep end of regexps - the OP may have to use a negative lookahead assertion, something like: $string="avenue 1, ave 1 both have av+e :-)"; $words = preg_replace("#\\bave(?!n

Re: [PHP] question about str_replace function

2007-01-08 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100: >> Dick Jiang wrote: >>> I think you'd better use regular expression to replace the word >> agreed - only it a serious dive in the deep end of regexps - the OP may >> have to use a negative lookahead assertion, something lik

Re: [PHP] send email by php class

2007-01-08 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hi, > To send email confirmation (after registration or to administrator after > Contact us form is submitted) I use the "standard" way: > > function send_confirmation($to, $subject, $message) > { > $header = "Content-type: text/plain; charset=iso-8859-1\n"; > $

Re: [PHP] send email by php class

2007-01-08 Thread Jochem Maas
[EMAIL PROTECTED] wrote: >> [EMAIL PROTECTED] wrote: >>> Hi, ... >>> >>> Was looking on phpclasses.net for the class but there are tons of them. >>> Can somebody recomend any class? Something simple. >> phpmailer.sourceforge.net > I think this is it. > :) not to sound like an ass (there's at lea

Re: [PHP] send email by php class

2007-01-08 Thread Jochem Maas
[EMAIL PROTECTED] wrote: >> [EMAIL PROTECTED] wrote: >>>> [EMAIL PROTECTED] wrote: >>>>> Hi, >> ... >> ... > > Jochem, > I'm reading most of the posted questions/answers on the mailing list > because of exact reason you mentioned.

Re: [PHP] send email by php class

2007-01-08 Thread Jochem Maas
Sancar Saran wrote: > On Monday 08 January 2007 16:56, Jochem Maas wrote: >> [EMAIL PROTECTED] wrote: >>>> [EMAIL PROTECTED] wrote: >>>>> Hi, >> ... >> >>>>> Was looking on phpclasses.net for the class but there are tons o

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Jochem Maas
Bill Moran wrote: > With reference to: > http://bugs.php.net/bug.php?id=40067 > > I'm confused as to why this was marked bogus, and the message that > marked as such doesn't give much insight. > > It would seem to me that infinite recursion within PHP is a bug. > Shouldn't the interpreter catch t

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Jochem Maas
Robert Cummings wrote: > On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote: >> Bill Moran wrote: >>> With reference to: >>> http://bugs.php.net/bug.php?id=40067 >>> >>> I'm confused as to why this was marked bogus, and the message that >&g

Re: [PHP] Convert .txt or .doc to Javascript data format

2007-01-08 Thread Jochem Maas
Jade Tippett wrote: > New to php. > > I took over a web site where everything is written in javascript and > renders on the browser level. One of the pages is a weekly announcements > page that takes an hour to update by hand, copying in the text, then > escaping all the "'s etc., then adding

Re: [PHP] Re: Domain Search

2007-01-09 Thread Jochem Maas
Colin Guthrie wrote: > Marcelo Ferrufino Murillo wrote: >> I have to make a domain search so I don´t know if there is an API or >> something that could help me in this o if you know how I could make this. > > Should just be a matter of spewing out the results of the command "whois > mydomain.com"

Re: [PHP] unzip openDocument in safe mode

2007-01-09 Thread Jochem Maas
Bernhard Zwischenbrugger wrote: > I try to unzip openDocument files with pclzip. > At my laptop this is no big problem, but the target server has "safe > mode" switched on (no way to change that). > > The problem with safe mode and unzipping openDocument ist, that a > openDocument zip file contain

Re: [PHP] Introduction and questions...

2007-01-09 Thread Jochem Maas
Jason Pruim wrote: > Hi Everyone, I'm very new to php and to this list. I'm hoping to be able > to suck up as much knowledge from this list as I possibly can and be > able to help and contribute in the future. > > But until that time, I'm in need of some help. > > I'm trying to write an image gal

Re: [PHP] Introduction and questions...

2007-01-09 Thread Jochem Maas
Jason Pruim wrote: ... >> http://php.net/htmlentities >> > > Okay, So after this post I have 1 more before everyone throws the manual > at me... So lets make this good, I added that as you suggested, but > think I may have put the entries in the wrong place... As it sits right > now the $img

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-10 12:09:40 +1100: >> RN> What makes you think simplexml is not for you? I don't say it is, but >> RN> you need to tell us exactly what you need. >> RN> >> >> From what I can see, unless I am mistaken, SimpleXML can not deal with >> attributes

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-10 Thread Jochem Maas
Richard Luckhurst wrote: > Hi Jochem, > > Thanks for your reply. Here is a short sample of the XML I have to parse. I > need > the data in the attributes as well as the data in the character fields. > > > I'm fairly certain that this 'ypsilon' tag

Re: [PHP] Problems with mysql_connect()

2007-01-10 Thread Jochem Maas
Delta Storm wrote: > Hi, > > I'm having problems with this code (a simple exercise where i wanto to > connect to sql server and get data from it and write that data in html) > > //Prolazi kroz skup zapisa > //ispisuje svako polje > while ($row = mysql_fetch_row($result)

Re: [PHP] PHP milter SAPI: problem with smfi_getsymval

2007-01-10 Thread Jochem Maas
would like to do this - but silly old me can't figure out even where to start learning about this great sounding functionality. apologies if I am asking the blindingly obvious :-/ rgds, Jochem > > Thanks > Alex, Atpic.com Webmaster > http://atpic.com > >> Hi, >&g

Re: [PHP] mssql_* overhead

2007-01-10 Thread Jochem Maas
Philip Thompson wrote: > Hi. > > Does anyone know if the mssql_connect/_init/_bind/etc require a lot of > overhead? > > I have a page that requires multiple function calls and each of those > opens a new connection to the database, performs the necessary actions > in stored procedure(s), and then

Re: [PHP] PHP milter SAPI: problem with smfi_getsymval

2007-01-10 Thread Jochem Maas
Atpic wrote: > Hi Jochem, > > Well, the best known spam filtering solution is PERL based > (mimedefang/spamassassin). spamassassin at least I (a little) familiar with (I usually leave the intricacies to someone with much more knowledge about this kind of stuff - what are sys

Re: [PHP] mssql_* overhead

2007-01-10 Thread Jochem Maas
Philip Thompson wrote: > On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: > >> Philip Thompson wrote: >>> Hi. >>> >>> Does anyone know if the mssql_connect/_init/_bind/etc require a lot of >>> overhead? >>> >>> I have a page that

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-10 Thread Jochem Maas
I think what your doing now is reasonably safe, but it assumes that apache will actually pass all .php files to php for processing. if the php module doesn't load for some reason then the contents of the file will be output in it's entirety - this is why it's much better to store this file outside

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-10 Thread Jochem Maas
ll = "utf8_unicode_ci"; >> ?> >> >> Is this save enough or are there better ways? Where should I store >> this file so it isn't accessible via the net but inside scripts? >> >> O. Wyss >> > > Besides what Jochem has already sugested,

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-10 Thread Jochem Maas
Richard Luckhurst wrote: > Hi Jochem, > > Thanks for your reply > >>> >>> > > JM> I'm fairly certain that this 'ypsilon' tag is going to cause a > JM> problem - although that's just a guess, it's based on the 'know

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Jochem Maas
Ryan Fielding wrote: > Ryan Fielding wrote: >> Chris wrote: >>> Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the optio

Re: [PHP] Extending 'include' behavior in a function

2007-01-10 Thread Jochem Maas
short of playing around with the global keyword (which won't work when you call includeIt() from another function)) your pretty much stuck. basically imho you need to rethink what it is your trying to do. function have their own scope for a reason; maybe consider using an array argument like so:

Re: [PHP] Extending 'include' behavior in a function

2007-01-11 Thread Jochem Maas
Eli wrote: > Jochem Maas wrote: >> short of playing around with the global keyword >> (which won't work when you call includeIt() from >> another function)) your pretty much stuck. >> >> basically imho you need to rethink what it is your trying to do. >

Re: [PHP] readfile()

2007-01-11 Thread Jochem Maas
Steven Macintyre wrote: > HI all > > I'm currently using this function to read a remove address to create a > mailbox ... > > However - It ALWAYS displays the output of that file to the user screen ... > all I wish to do is something like ... use a different file function. e.g. file_get_conten

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-11 Thread Jochem Maas
Satyam wrote: > > No problem there, the include in my DB abstraction layer includes and > calls the separate file with the function to make the connection to the > database. Though the main application source doesn't know about the > include file with the connection data in it, the DB laye

Re: [PHP] Extending 'include' behavior in a function

2007-01-11 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-11 09:47:04 +0100: >> Eli wrote: >>> [extending include] >>> >>> Your solution is good when you know what variables you want to transfer >>> ahead, and then make a list of them. But if I want to transfer all the >>> variables in the current env

Re: [PHP] RE: web analytics

2007-01-11 Thread Jochem Maas
Kencana wrote: > hi Edward, > > thanks for the recommendation. will google analytics affect my web > performance? in short, no. in contrast to a small site that's being well indexed - a double edged sword whereby you want the search engines robots to spider your site as often as possible but you'

Re: [PHP] newbie question regarding URL parameters

2007-01-11 Thread Jochem Maas
Dave Goodchild wrote: > Wow, there are some really bitchy, unattractive people here. No wonder some not to mention some very judgemental people as well. :-) it's pretty funny that someone who purports to aspire to buddhahood is so stuck in complaining about other people's bitchiness and unattracti

Re: [PHP] file_get_contents gets 404 error

2007-01-11 Thread Jochem Maas
Németh Zoltán wrote: > Hi all, > > I have some php websites, for example http://www.alterationx.hu/ > > Now I'm trying to get the site with file_get_contents, and I'm getting > this error: > > Warning: file_get_contents(http://www.alterationx.hu/): failed to open > stream: HTTP request failed! H

Re: [PHP] Please Help with simple Noob problem

2007-01-11 Thread Jochem Maas
Scott Bounds wrote: > Hello all. I seem to be having a terrible tim ewith something that is so > simple it makes me sick. I have a server running FC2. it has Apache > 2.x.x on it and it came installed with php-4.x.x. Sorry I don't have > the exact versions but fatigue and frustration has taken o

Re: [PHP] uploaded fiel size limitiation

2007-01-11 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hi, > I have a little script that was working fine when uploaded files up tp 16MB. > I moved to other hosting company and use the same form/script. Not, I > can't upload eitherr 2MB file. > > Where to look for limitation first? > > According to phpinfo() post_max_size i

Re: [PHP] uploaded fiel size limitiation

2007-01-11 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hi, > I have a little script that was working fine when uploaded files up tp 16MB. > I moved to other hosting company and use the same form/script. Not, I > can't upload eitherr 2MB file. > > Where to look for limitation first? > > According to phpinfo() post_max_size i

Re: [PHP] Handling SimpleXMLElements

2007-01-11 Thread Jochem Maas
I'm guessing you have php5.0.x running - you really want a php5.1.x version if your going to use XML - it will avoid *alot* headaches with regarding to using var_dump() (or print_r() or even echo) to figure out what the simpleXML objects are/contain. Satyam wrote: > I have a problem trying to hand

Re: [PHP] IMPORTANT: PHP does NOT cause browser issues.

2007-01-11 Thread Jochem Maas
it can never hurt to repeat this kind of thing! Raphael Martins wrote: > Hi everybody. > > Due some recent messages in this list and other CSS/XHTML list, I´ve > decided > to post this to clarify a very common question: PHP is compatible with ALL > browsers. Why? Because PHP runs at the server, a

Re: [PHP] Normalized Numbers

2007-01-11 Thread Jochem Maas
Brian P. Giroux wrote: > I am just learning PHP and as a practical exercise I've been working on > a set of functions to process and manipulate what I call "normalized > number" (ISBNs, EANs, UPCs, etc...) > > My ultimate goal is to create a normnum class and child classes for the > different type

Re: [PHP] Variance Function

2007-01-11 Thread Jochem Maas
hi Richard, your email was hard to follow, and I don't have real answers for you but maybe my simpleton's view of the situation might offer you new avenues of thought to consider. Richard Lynch wrote: > It's been 20+ years since I took a stats class... 20 years ago I was mostly riding a push bik

Re: [PHP] CHMOD a file in windows server 2003

2007-01-11 Thread Jochem Maas
Kencana wrote: > Hi all, > > anybody knows how to CHMOD a file to 777 or 666 or etc. in windows server > 2003? windows server 2003 (et al) uses a completely different mechanism to the std linux way of doing things with regard to file permissions. other than opening lots of dialogs and checking

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-12 Thread Jochem Maas
Otto Wyss wrote: > Jochem Maas wrote: ... >>> ?> >> >> I never include the closing php tag in include files to avoid >> stray empty lines being output - which can cause any headers >> that you try to send after the offending include file is included >&

Re: [PHP] Normalized Numbers

2007-01-12 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: >> Brian P. Giroux wrote: >>> If anyone can help me out with that or provide any other advice about >>> the rest of it, I'd be grateful. >>> The file can be found at http://www.senecal.ca/normnums.php.txt > >> keep commentin

Re: [PHP] Normalized Numbers

2007-01-13 Thread Jochem Maas
, Jochem Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-12 13:39:59 +0100: >> Roman Neuhauser wrote: >>> # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: >>>> Brian P. Giroux wrote: >>>>> If anyone can help me out with that or provide any other advic

Re: [PHP] Include file error, common one I think

2007-01-13 Thread Jochem Maas
Chris Carter wrote: > Hi, > > I have used this file in my index file. When I run this file separately it > shows the random image but not when I include on my index.php. your image script shouldn't be included in your [index] page. instead it should be referenced by the src attribute of an img ta

Re: [PHP] circular dependency between libraries

2007-01-14 Thread Jochem Maas
Roman Neuhauser wrote: > I have a circular dependency, and am looking for thoughts on breaking > the cycle without (much) redundancy or hard to automate procedures. > > I'm developing two programs, Testilence, a unit testing library, and > Amock (library for mock object generation, but that's irre

Re: [PHP] Normalized Numbers

2007-01-14 Thread Jochem Maas
Brian P. Giroux wrote: > > Jochem Maas wrote: >> Brian P. Giroux wrote: >>> I am just learning PHP and as a practical exercise I've been working on >>> a set of functions to process and manipulate what I call "normalized >>> number" (ISB

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-14 Thread Jochem Maas
tedd wrote: > At 12:43 PM +0100 1/11/07, Jochem Maas wrote: >> Satyam wrote: >> >>> No problem there, the include in my DB abstraction layer includes and >>> calls the separate file with the function to make the connection to the >>> database. Thoug

Re: [PHP] circular dependency between libraries

2007-01-16 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-14 20:47:02 +0100: >> Roman Neuhauser wrote: >>> I have a circular dependency, and am looking for thoughts on breaking >>> the cycle without (much) redundancy or hard to automate procedures. >>> >>> I'm developing two programs, Testilence, a un

Re: [PHP] circular dependency between libraries

2007-01-16 Thread Jochem Maas
ok, I'm starting to grok it now :-) Roman Neuhauser wrote: ... >> from looking at runkit it would seem using runkit_import() would work, >> it would mean you simply 'include' the utility class(es) in both Testilence >> and >> Amock using runkit_import() and that would simply cause the second 'i

Re: [PHP] classes and objects: php5. The Basics

2007-01-16 Thread Jochem Maas
Martin Alterisio wrote: > Forgot to mention that calling a non-static function this way should > generate an E_STRICT warning. and IIRC it will eventually be made a fatal error in php6, somebody please correct me if I'm wrong! > > 2007/1/16, Martin Alterisio <[EMAIL PROTECTED]>: >> >> Backward c

Re: [PHP] circular dependency between libraries

2007-01-16 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-16 13:56:01 +0100: >> my gut says that it would be easiest to just keep to seperate copies of >> the utility class(es) one for each project, although it kind of depends >> on how large & complicated the utlity is ... this would remove all the

Re: [PHP] running exec() on client

2007-01-16 Thread Jochem Maas
George Pitcher wrote: > Hi, > > I am looking for a solution to a server problem. I am part of a 2-person > team - I look after document scanning, OCR (by outside agencies) as well as > all development. > > My colleague is responsible for obtaining copyright permission from > publishers (for what

Re: [PHP] running exec() on client

2007-01-16 Thread Jochem Maas
George Pitcher wrote: > Jochem, > >> -Original Message----- >> From: Jochem Maas [mailto:[EMAIL PROTECTED] >> Sent: 16 January 2007 3:31 pm >> To: George Pitcher >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] running exec() on client >>

Re: [PHP] running exec() on client

2007-01-16 Thread Jochem Maas
George Pitcher wrote: > >> I'm guessing a bit but it sounds like inserting a stack of RAM will make >> the problem go away for the foreseable future. >> > I will ask. > ... >> > I do a lot of PDF building and that was my first suggestion, before we > looked at Word. My colleague rejected this o

Re: [PHP] sms through teleflip and php?

2007-01-16 Thread Jochem Maas
also consider that there maybe a reverse lookup being done on the sending MTA that the sms gateway doesn't consider kosher .. and/or that the IP of the sending MTA is grey-listed/black-listed. also a check may be being done to see if the sender's account exists on the sender's [your servers] domai

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Jochem Maas
generating/resampling image data is a relatively heavy job for a script to perform. there maybe optimizations available in the script itself but generally caching the results the generation/resampling action is the way to increase performance ... you need a mechanism to check/store/retrieve cached

Re: [PHP] sms through teleflip and php?

2007-01-16 Thread Jochem Maas
tup properly - I can't really tell you what properly entails - it's a responsiblity I hand off to the relevant sys admin :-) > > Thanks! > > On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> >> also consider that there maybe a reverse lookup being done

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Jochem Maas
Jason Pruim wrote: > > On Jan 16, 2007, at 4:10 PM, Jochem Maas wrote: > >> generating/resampling image data is a relatively heavy job for a script >> to perform. there maybe optimizations available in the script itself but >> generally caching the results the generati

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Jochem Maas
Curt Zirzow wrote: > On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> ... >> if ($cacheState) { >> $headers = getallheaders(); >> if (isset($headers['If-Modified-Since']) && >> ($headers['If-Modifi

Re: [PHP] I lied, another question / problem

2007-01-16 Thread Jochem Maas
Beauford wrote: > ... >>> function invalidchar($strvalue) >>> { >>> if(!ereg("^[[:alpha:][:space:]\'-.]*$", $strvalue)) { >> That regexp matches if $strvalue consists of zero or more >> ocurrences of a letter, a whitespace character, and any >> character whose numeric value lies between

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: >> Beauford wrote: >>> Further to my previous email, there is something weird going on here. I just >>> tried using this: >>> >>> if (!ereg('^[A-Za-z0-9]', $strvalue)) { >>> return "error"; >>> } >> stop

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Jochem Maas
BTW: always reply to the list unless asked otherwise. Jason Pruim wrote: > you don't know what a class is or how to use one do you? (correct me if I'm wrong) the idea of my particular class is that it is used in the *script* that serves all your resampled images. something *like* (it an overly

Re: [PHP] Php coding help - Newbie question

2007-01-17 Thread Jochem Maas
Ramdas wrote: > Hi Group, > > A very newbie question. Might be discussed earlier, please forgive. Are so much of a noob that STFW is not within your capabilities? (just thought I'd ask, given that you admit to realising the info *might* be out there already) > > I am having a site in PHP ( not

Re: [PHP] md5

2007-01-17 Thread Jochem Maas
Ross wrote: > Hi, > > Does md5 really offer much in terms of protection? can you STFW? http://search.yahoo.com/search;_ylt=A0oGkkQsQ65FTlkBrTVXNyoA?p=does+md5+offer+any+protection&ei=UTF-8&fr=moz2&x=wrt > > The algorithm is really well known. do you work for microsoft? strength of a crypto a

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 11:41:54 +0100: >> Roman Neuhauser wrote: >>> # [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: if (!preg_match("#^[A-Z0-9]+\$#i", $s)) { (ps the above is a crappy regexp for real world use imho, but it serves the purpose of

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 11:41:54 +0100: >> Roman Neuhauser wrote: >>> # [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: if (!preg_match("#^[A-Z0-9]+\$#i", $s)) { (ps the above is a crappy regexp for real world use imho, but it serves the purpose of

Re: [PHP] web form data to arrays?

2007-01-17 Thread Jochem Maas
Németh Zoltán wrote: > And how does it work? does it create a sub-array of $_POST? test it and find out: echo ''; var_dump($_POST); echo ''; > And is it documented somewhere in the manual? more than likely. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Jochem Maas
Curt Zirzow wrote: > On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Curt Zirzow wrote: >> > On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> >> ... >> >> if ($cacheState) { >> >> $headers = getall

Re: [PHP] dynamic lists

2007-01-17 Thread Jochem Maas
Kevin Murphy wrote: > > > On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote: > >>> -Original Message- >>> From: Jay Blanchard [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, January 17, 2007 4:05 PM >>> To: Don; php-general@lists.php.net >>> Subject: RE: [PHP] dynamic lists >>> >>> [snip] >>

Re: [PHP] dynamic lists

2007-01-17 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 23:20:23 +0100: >> Kevin Murphy wrote: >>> On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote: #1) Submit the form (to itself) when a user chooses an option from the first list (using onChange=form.submit()) then with PHP query the >>>

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Bogdan Ribic wrote: > Hi all, > > Try this: > > $a = ''; > echo "\{$a}"; > > from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) no-one here supports Zend. > it outputs "\{}", thus breaking existing scripts. AFAICT the escaping in that string is wrong - the fact that it d

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Németh Zoltán wrote: > On cs, 2007-01-18 at 14:19 +0100, Jochem Maas wrote: >> Bogdan Ribic wrote: >>> Hi all, >>> >>> Try this: >>> >>> $a = ''; >>> echo "\{$a}"; >>> >>> from php 4, it outp

Re: [PHP] dynamic lists

2007-01-18 Thread Jochem Maas
tedd wrote: > At 2:33 PM -0800 1/17/07, Kevin Murphy wrote: >> Not saying I disagree with you. which is why i tossed it out there >> as an FYI rather than anything else. But its something that you should >> be aware of when designing a site and weighing your options. For me, >> working for a go

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Jochem Maas
Bogdan Ribic wrote: > >> >> be pragmatic - fix your script :-) > > I did :) > > It was a part of code generator, and I had something like : > $res .= "function $this->insert_prefix() \{$this->_global_db\n"; > > and replaced it with > > $res .= "function $this->insert_prefix() {{$this->_global_

Re: [PHP] PHP5 Cross Compilation

2007-01-18 Thread Jochem Maas
Kiran Malla wrote: > Hello, > > I am trying to cross compile PHP-5.2.0 for arm linux. > > # export CC=/usr/local/arm/3.3.2/bin/arm-linux-gcc > # export AR=/usr/local/arm/3.3.2/bin/arm-linux-ar > # export LD=/usr/local/arm/3.3.2/bin/arm-linux-ld > # export NM=/usr/local/arm/3.3.2/bin/arm-linux-nm

Re: [PHP] regular expression help!

2007-01-18 Thread Jochem Maas
William Stokes wrote: > Hello Roman, > > Could you specify the functionality of your script a bit please. (How it > works) it's a hint as to how you might use simpleXML to extract the values of a src attribute from the definition of an img tag. > > I forgot to mention that this part: > > ', >

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread Jochem Maas
Németh Zoltán wrote: > On cs, 2007-01-18 at 02:04 -0800, pub wrote: >> On Jan 18, 2007, at 2:00 AM, Németh Zoltán wrote: >> ... > maybe you should use a parameter for it, place it into the link in the > first query loop, get it here and query based on it > > like "SELECT * FROM job WHERE id={$_

Re: [PHP] Security Question

2007-01-19 Thread Jochem Maas
Al wrote: > I've got a website on a virtual-host, Apache/Linux system running php > scripts. > > I particular, I've designed a CMS where designated individuals compose > and edit text in an html textarea, and then save the raw text in files. > Custom [i.e., proxie] tags are used for emphasizing an

Re: [PHP] Re: PHP5 Cross Compilation

2007-01-19 Thread Jochem Maas
Kiran Malla wrote: > Hello, > > What are all the flags and variables to set to cross compile PHP for arm? I > didn't get any info on the query I posted earlier. If anyone has tried php > on arm linux, please let me know the steps. if google didn't give any answers then I might suggest the php int

Re: [PHP] Where can I get the Printer extension?

2007-01-19 Thread Jochem Maas
Chris wrote: > Chuck Anderson wrote: >> Chris wrote: >>> Chuck Anderson wrote: >>> It thought it would be bundled with my Windows version pf Php 4.4.1, but it is not. I've searched for it and can't find it at php.net. >>> >>> You didn't search very hard. >>> >> >>

[PHP] non-blocking request to a url (via curl or file_get_contents or whatever)...

2007-01-19 Thread Jochem Maas
this. I've been reading about non-blocking sockets/streams etc but I'm just becoming more and more confused really, anyone care to put me out of my misery? rgds, Jochem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Security Question

2007-01-19 Thread Jochem Maas
Al wrote: > Good point about the ' evil haxor code here; '. That's > bad for our users, not the site, per se. what is bad for your users is bad for your site, on top of that the script is running in the context of your domain - all sorts of nasty possibilities that could affect your site. > > R

Re: [PHP] non-blocking request to a url (via curl or file_get_contents or whatever)...

2007-01-19 Thread Jochem Maas
because I like talking to myself :-P Jochem Maas wrote: > hi, > ... > I definitely give a hoot about the content returned ... all I want is for the > request to > go out on the wire and then have my script immediately continue with what it > should be doing. > &

Re: [PHP] non-blocking request to a url (via curl or file_get_contents or whatever)...

2007-01-20 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-20 00:33:10 +0100: >> I have a tradedoubler webbug to implement in site > > Pardon my ignorance, what's "a tradedoubler webbug"? http://www.tradedoubler.com/pan/public should explain; a webbug is merely an tag with a src pointing to some kin

Re: [PHP] Request for...

2007-01-20 Thread Jochem Maas
Wikus Moller wrote: > Hi. > > Since this is a mailing list for web developers, I thought I might as > well post an o f f t o p i c request. > Does anyone know of any website where I can get a exe or jar sitemap > generating software? php. > Particularly not GsiteCrawler as it uses too much > s

Re: [PHP] non-blocking request to a url (via curl or file_get_contents or whatever)...

2007-01-20 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-20 01:30:55 +0100: >>> I definitely give a hoot about the content returned ... all I want >>> is for the request to go out on the wire and then have my script >>> immediately continue with what it should be doing. >>> >>> I believe this would r

Re: [PHP] non-blocking request to a url (via curl or file_get_contents or whatever)...

2007-01-20 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-20 16:50:48 +0100: >> Roman Neuhauser wrote: >> 1. user stuffs things into shopping basket on [my] site (data stored in >> session) >> 2. user goes to check out. >> 3. user chooses online payment. >> 4. user is redirected to online payment pro

Re: [PHP] Request for...

2007-01-20 Thread Jochem Maas
Børge Holen wrote: > On Saturday 20 January 2007 17:09, Stut wrote: >> Wikus Moller wrote: ... >> -Stut >> >> Easily annoyed today. dunno - I reckon the OP was trying pretty hard ;-) >> Must be a Saturday, I never could get the hang of >> Saturdays. > > ah,,... you say, I'm just ackin' to get

Re: [PHP] Request for...

2007-01-20 Thread Jochem Maas
Jay Blanchard wrote: > [snip] > Since this is a mailing list for web developers, I thought I might as > well post an o f f t o p i c request. > Does anyone know of any website where I can get a exe or jar sitemap > generating software? Particularly not GsiteCrawler as it uses too much > system res

Re: [PHP] Security Question

2007-01-20 Thread Jochem Maas
gt; "\">", > ''=> '', > ''=> " '' => '">', > ''=> "\n", > ''=> "\n", > ''=> "", > ''

Re: [PHP] PHP Warning: session_destroy

2007-01-20 Thread Jochem Maas
Andre Dubuc wrote: > Hi, > > To stop bots from accessing secured pages, I've added the following code to a > banner page that is called by every page. Furthermore, each page starts with > and includes the banner page: > > 'top1.php' [banner page] > >if((eregi("((Yahoo! Slurp|Yahoo! Sl

Re: [PHP] I lied, another question / problem

2007-01-20 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 16:59:26 +0100: >> Roman Neuhauser wrote: >>> re_format(7) on FreeBSD: >>> >>> A bracket expression is a list of characters enclosed in `[]'. >>> (...) >>> If two characters in the list are separated by `-', this is >>> s

Re: [PHP] Re: most powerful php editor

2007-01-21 Thread Jochem Maas
Gregory Beaver wrote: > Vinicius C Silva wrote: >> hi everyone! >> >> i'd like to ask something maybe commonly asked here. what is the most >> powerful php editor? > > I am that's it, consider yourself enrolled in a Celebrity Death Match against mr Lerdorf :-P > > Yours, > Greg > -- PHP Gen

Re: [PHP] Forced File Downloads

2007-01-21 Thread Jochem Maas
Don wrote: > I've been having my forced downloads sometimes finish prematurely using > readfile(). I'm downloading a Windows .exe file. > > I've read several posts that have suggested the substitution of a fread/feof > loop to write out the download in smaller chunks. I tried using a function > (r

Re: [PHP] First Character In A String

2007-01-21 Thread Jochem Maas
Christopher Deeley wrote: > Can anyone tell me if there is a function to return the first letter in a > string, such as: > > $surname="SMITH"; > $forename="ALAN"; > > Is there a function which I can use to make $forename "A", so I can display > it as A SMITH? another alternative to the other ans

Re: [PHP] proxy

2007-01-21 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hi list, > > I am trying to create a link checker that would look for broken URLs > with help of the following code" > > $handle = @fopen("http://www.circle.am";, "r"); > if ($handle): > print "OK"; > else: > print "Error"; > endif; > > The problem is that I want to ch

Re: [PHP] First Character In A String

2007-01-21 Thread Jochem Maas
Robert Cummings wrote: > On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote: >> > >> $initial = (is_string($forename) && strlen($forename) > 0) >> ? $forename[0] >> : '' >> ; >> >> echo trim($initial.'

Re: [PHP] First Character In A String

2007-01-21 Thread Jochem Maas
Robert Cummings wrote: > On Sun, 2007-01-21 at 16:27 +0100, Jochem Maas wrote: >> Robert Cummings wrote: >>> On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote: >>>> >>> >>>> $initial = (is_string($forenam

<    1   2   3   4   5   6   7   8   9   10   >