Re: [PHP] domxml problem
On Friday 13 May 2005 20:03, Brian V Bonini wrote: > On Fri, 2005-05-13 at 10:31, Georgi Ivanov wrote: > > But it gives me error on this line : > > $DomDocument = domxml_open_file($file); > > What's the error? The error is : "Call to undefined function" I tried with the new function ( domxml_open_file) and depricated one (xmldocfile) There is no dom_xml_file function . > Try: > > $dom = dom_xml_file($file); > > > -- > > s/:-[(/]/:-)/g > > > BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu > == > gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC > Key Info: http://gfx-design.com/keys > Linux Registered User #339825 at http://counter.li.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dynamically updating site
content management systems..like plone.org or creating your own system, with a backend where you update the text with a html teatarea editor (like bold italic etc...) and then update the DB and walla! hope this helps. Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052 Sebastian wrote: >I looking for a way to update certain parts of a site that is highly >dynamic. I've tried creating static files via cronjobs then including them, >but it is a pain to do. for instance, i have a news page that utilizes >mysql, rather than query the DB on each page load i would like to have it >update at say 5 minute intervals.. not sure if this is possible to do >without generating static files.. > >any suggestions? > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP-GTK, or something else, for desktop app development?
Hi All, I'd like to do some desktop app development and I'm looking for others' thoughts on whether PHP-GTK is a suitable environment in which to work? Years ago I developed desktop apps in Access / VB6, but it's been long enough now, and VB in particular has changed so much in the intervening time, that I'd have to relearn these anyway, so it seems like a good time to either consolidate my PHP coding or to pick up some other language. Not to mention that Access is entirely despicable for any purpose, desktop app development included [1]. I'm wondering if PHP-GTK is mature / featured enough to handle a relatively complex desktop app project, using features like table grids for displaying / editing data stored in a MySQL backend and so on. My other alternative is to bite the bullet and learn something like Java, though I assume my learning curve would be steeper and more time-consuming. I pick Java because a) Everyone Seems To Love Java, and b) there appear to be at least a couple of decent free Java IDEs available in NetBeans and Eclipse (and maybe others that I don't know about). In essence, I'm looking for a desktop app development environment that is featured, connects well to MySQL, and is relatively painless to learn. Java may not suit the last of those criteria, but I don't know enough about it at this point to be scared of it if it is painful to learn. Anyone have any thoughts to share about PHP-GTK and / or other desktop app development environments that might be more suitable? Freeness of development tools is a big plus to me in this, if that needs to be explicitly said. Much warmth, Murray [1] Just my opinion. I know I'd get a healthy argument from several developers that I know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re-initiating an autostarted session
Ville Mattila wrote: Leif Gregory wrote: session_destroy(); session_start(); session_write_close(); Header("Location: ..."); exit; I never tried regenerate. Just started a new session again. Hi Leif! Thanks for your reply. For some strange reason, this works not for me. The session cookie will not be overwritten and the user won't get a new session id - even all the session data from the server is destroyed. I tried to unset the session cookie manually (setcookie( session_name() ,"",0,"/");) but without results. the cookie variable still persists. you need to uset($_REQUEST[session_name()], $_COOKIES[session_name()] ...); Thanks also Mr. Jason Barrett for your reply, but I couldn't manage to get the session regeneration work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] domxml problem
On Monday 16 May 2005 09:52, Georgi Ivanov wrote: > On Friday 13 May 2005 20:03, Brian V Bonini wrote: > > On Fri, 2005-05-13 at 10:31, Georgi Ivanov wrote: > > > But it gives me error on this line : > > > $DomDocument = domxml_open_file($file); > > > > What's the error? > > The error is : > "Call to undefined function" > I tried with the new function ( domxml_open_file) and depricated one > (xmldocfile) > There is no dom_xml_file function . Hello (Zdrasti :-)), AFAIK the DOM XML extension is not being released with PHP 5. Yes you can configure PHP to use it, but will be released ONLY with PHP 4. I can advise you to use the DOM extension if you want to have DOM XML support, or the much easier SimpleXML extension for XML parsing, generation, etc. After PHP 5.1 is being released (chech the schedule) you can use the libxml extension which is the best for me. > > > Try: > > > > $dom = dom_xml_file($file); > > > > > > -- > > > > s/:-[(/]/:-)/g > > > > > > BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu > > == > > gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC > > Key Info: http://gfx-design.com/keys > > Linux Registered User #339825 at http://counter.li.org -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436 pgpcMDYYFmgPZ.pgp Description: PGP signature
Re: [PHP] Seeking decent domain registrar
On 14 May 2005, at 07:53, Richard Lynch wrote: For the record, no I haven't tried to go to that URL, because I don't even know how to type that symbol. Ah. I don't think you use a Mac ;^) MacOS (9 and X) has a wonderful system for typing any accented characters very easily (from an English keyboard) that can be explained and easily remembered in about 10 seconds. One simple technique enables me to type áéíóúäëïöüàèìòùöâêîôûñõ without having to remember large numbers of keystrokes or codes. If I did know how to type that non-ASCII symbol, I don't quite understand which of the umpteen "extended" character sets is going to get used by all the DNS machines, so I'd be kind of surprised if it worked, but, hey, if it all works and everybody is happy, it's all good. It's easy - it's all unicode mapped into ASCII so it works transparently with DNS systems, who don't have to think in anything other than plain ASCII. It's up to individual applications to map the presentational aspect - raw mappings will work in all applications - try going to www.xn--caf-dma.com (the punycode rendering of www.café.com). I feel sorry for anybody who has such a domain name, however, as it's going to be a real bear to get it listed/indexed correctly by search engines, I would guess. Maybe not. Maybe all the search engines are all ready for the non-ASCII domain names. [shrug] I certainly understand that the DNS space is now much bigger, and much nicer for non-English (or, perhaps more accurately, non-ASCII/Roman-alphabet) websites who can now get their domain name in their own native language. And I think that's really great. But it's sure gonna make it hard for a lot of users to figure out how to get there... Bear in mind that in languages that DO make use of accented (or just plain different) characters, they are utterly normal and everyday. Someone who considers "cafe" to be misspelled relative to "café" will find it EASIER to use the correct version than to have to translate into the English "dumbing down" of their language - that you might find it harder is not a consideration. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mod_rewirte loses POST data
On Friday 13 May 2005 14:58, Bart Seresia wrote: > Hi, > > I'm currently developing a webapplication that uses mod_rewrite. > > At some point i have to post data but i't seems to get lost, checking the > web and some archives i've found that normaly mod_rewrite should preserver > this data, but apparently it doesn't. Could anyone help me? Try this. RewriteCond METHOD POST RewriteRule (.*) http://www.yoursite.com$1 [P,L] > > Im using: > Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7b PHP/4.3.11 Server at > host.mydomain.com Port 80 -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436 pgpxcshrIZPx8.pgp Description: PGP signature
[PHP] mysql + addslashes + stripslashes
Hi, My question is about the norlmal behaviour of PHP and MYSQL but I cant explain it without a simple example. Thank you for reading: I have the following code: from a HTML form I send variable: ' \ \' \\ \\\ after addshashes it becomes: \' \\ \\\' \\ after that it gets in the database but after I get it out it becomes: ' \ \' \\ \\\ (without the backslashes!) and ofcourse after stripslashes it gets messed-up: ' ' \ \ So my question is if this is a normal behaviour for PHP+MYSQL or it may vary indifferent conficurations or versions of both php or mysql. It's not a bad thing to be like that but I wonder if my code will behave the same at most systems. Thank you very much -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql + addslashes + stripslashes
I do the following way to achieve portability: For GET/POST/COOKIE variables: 1. check "magic_quotes_gpc" PHP setting - if enabled strip slashes from input variables using stripslashes() 2. check input/anything 3. prior building SQL query escape stuff (mysql - mysql_real_escape_string(), others use different escaping methods) 4. run query For data that comes from SQL sources: 1. check magic_quotes_runtime PHP setting... On Monday 16 May 2005 10:32, Petzo wrote: > Hi, > > My question is about the norlmal behaviour of PHP and MYSQL but I cant > explain it without a simple example. Thank you for reading: > > I have the following code: > > print $t = $_POST['txt']; > print $t = addslashes($t); > >@ $db = mysql_pconnect(xxx,xxx,xxx); >mysql_select_db('test'); > >$q = "update ttable set ffield='$t'"; >mysql_query($q); > >$q = "select * from ttable"; >$result = mysql_query($q); >$bo = mysql_fetch_array($result); > > print $t = $bo['ffield']; > print $t = stripslashes($t); > ?> > > > > from a HTML form I send variable: > > ' \ \' \\ \\\ > > > after addshashes it becomes: > > \' \\ \\\' \\ > > > after that it gets in the database > > but after I get it out it becomes: > > ' \ \' \\ \\\ > > (without the backslashes!) > > and ofcourse after stripslashes it gets messed-up: > > ' ' \ \ > > > So my question is if this is a normal behaviour for PHP+MYSQL or it may > vary indifferent conficurations or versions of both php or mysql. > It's not a bad thing to be like that but I wonder if my code will behave > the same at most systems. > > Thank you very much -- Best regards, Bostjan Skufca system administrator Domenca d.o.o. Phone: +386 4 5835444 Fax: +386 4 5831999 http://www.domenca.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re-initiating an autostarted session
Marek Kilimajer wrote: the cookie variable still persists. you need to uset($_REQUEST[session_name()], $_COOKIES[session_name()] ...); Thanks Marek for a reply. I'm not sure but I have been thinking that unset($_COOKIES) does not destroy the cookie from the client side but just unsets the cookie variable from the script? My target is to destroy the cookie from the client or send a new session id there. Thanks, Ville -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] dynamically updating site
> I looking for a way to update certain parts of a site that is highly > dynamic. I've tried creating static files via cronjobs then including > them, > but it is a pain to do. for instance, i have a news page that utilizes > mysql, rather than query the DB on each page load i would like to have it > update at say 5 minute intervals.. not sure if this is possible to do > without generating static files.. > > any suggestions? I can't see why you couldn't have a class that you call at the top of the page that checks the date/time of the 'static' page, generates the content into the static page from the DB if older than 5 minutes and then passes to displaying the content of that static page. In pseudo-logic, this would be something like: If datetime_of_static_news_page > 5 minutes ago: Replace content of static news page with data from db End if Display content of static news page I doubt there'd be significant overhead in the static page generation, since it would only be called once per 5 mins. Though, I guess it depends on exactly how much data / markup / etc is going into that page, and the tradeoff between writing the file and then displaying it versus whatever performance concern you're attempting to address in hitting the db each time the page is viewed. Regards, Murray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re-initiating an autostarted session
Ville Mattila wrote: Marek Kilimajer wrote: the cookie variable still persists. you need to uset($_REQUEST[session_name()], $_COOKIES[session_name()] ...); Thanks Marek for a reply. I'm not sure but I have been thinking that unset($_COOKIES) does not destroy the cookie from the client side but just unsets the cookie variable from the script? My target is to destroy the cookie from the client or send a new session id there. You are right, unset($_COOKIES) does not remove cookie from the client. You need to unset() it so that your next call to session_start() does not use the same $_COOKIES[session_name()]. session_start will generate new session id if there is not one set in the request variables. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: why are session only working with cookies?
On Sat, 2005-05-14 at 22:44, Richard Lynch wrote: > Using Cookies, or using URL, the session DATA will be stored on the server > in /tmp files -- Unless you change php.ini to store them somewhere else, > in which case, again, the Cookie and URL only holds the ID and all the > data goes wherever you store it: database, shared memory, or an army of > elves for all PHP cares. > > If trans_sid is "not working" for you, let's narrow this down: > > If you do this: >session_start(); > echo "click me\n"; > ?> > > Do you see something like "?PHPSESSID=a847hjfu3734hgfjgurur" tacked on to > the end of the URL? > > If not, trans_sid is NOT enabled. I don't see the session id string, BUT, I do have session.use_trans_sid = 1 set in php.ini and I did restart Apache after setting it.. I can see the session file being created in /tmp but the values are not being incremented as they should per script below. > > Did you restart Apache? Yes. > > Did you turn *OFF* Cookies? If PHP *can* use Cookies, I think it's gonna > use Cookies, and not bother with the trans_sid stuff, though maybe it > always puts it there. I never really dived into that. To be certain, > though, turn off Cookies in php.ini and/or in your browser. I did turn them off in the browser. And tried in php.ini at some point. > > Re-start Apache for your php.ini changes to kick in. Did that... Is it something with my script? $xsl = new DOMDocument; $xsl->load('quotes.xsl'); // Configure the transformer $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); // attach the xsl rules // get elements to operate on $quotes = $xml->getElementsByTagName('quote_text'); $authors = $xml->getElementsByTagName('quote_author'); // store element values into array foreach ($authors as $author) { $author_result[] = $author->nodeValue; } foreach ($quotes as $quote) { $quote_result[] = $quote->nodeValue; } session_start(); header("Cache-control: private"); // IE 6 Fix if (!isset($_SESSION['user_quotes']) || $_SESSION['user_quotes'] >= count($quote _result) - 1) { $_SESSION['user_quotes'] = 0; } else { $_SESSION['user_quotes']++; } // convert to simple var $user_quotes = $_SESSION['user_quotes']; // session debug stuff /* echo ""; echo $_SESSION['user_quotes'] . "\n"; print_r($_SESSION); echo "Session Id:" . session_id(); echo ""; */ if(isset($user_quotes)) { $quote = htmlentities($quote_result[$user_quotes]); $name = $author_result[$user_quotes]; } $proc->setParameter('', 'quote', $quote); $proc->setParameter('', 'name', $name); $output = $proc->transformToXML($xml); ?> -- s/:-[(/]/:-)/g BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu == gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC Key Info: http://gfx-design.com/keys Linux Registered User #339825 at http://counter.li.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql + addslashes + stripslashes
Thanks for the reply from 1 to 4 I do the same.I havent wrote it here so that my sample to be more short whhat i didn't get from your reply was that part: > For data that comes from SQL sources: > 1. check magic_quotes_runtime PHP setting... so what do you do if that setting is on/off (in my case it is off) Milen "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I do the following way to achieve portability: > > For GET/POST/COOKIE variables: > 1. check "magic_quotes_gpc" PHP setting - if enabled strip slashes from input > variables using stripslashes() > 2. check input/anything > 3. prior building SQL query escape stuff (mysql - mysql_real_escape_string(), > others use different escaping methods) > 4. run query > > For data that comes from SQL sources: > 1. check magic_quotes_runtime PHP setting... > > > On Monday 16 May 2005 10:32, Petzo wrote: > > Hi, > > > > My question is about the norlmal behaviour of PHP and MYSQL but I cant > > explain it without a simple example. Thank you for reading: > > > > I have the following code: > > > > > print $t = $_POST['txt']; > > print $t = addslashes($t); > > > >@ $db = mysql_pconnect(xxx,xxx,xxx); > >mysql_select_db('test'); > > > >$q = "update ttable set ffield='$t'"; > >mysql_query($q); > > > >$q = "select * from ttable"; > >$result = mysql_query($q); > >$bo = mysql_fetch_array($result); > > > > print $t = $bo['ffield']; > > print $t = stripslashes($t); > > ?> > > > > > > > > from a HTML form I send variable: > > > > ' \ \' \\ \\\ > > > > > > after addshashes it becomes: > > > > \' \\ \\\' \\ > > > > > > after that it gets in the database > > > > but after I get it out it becomes: > > > > ' \ \' \\ \\\ > > > > (without the backslashes!) > > > > and ofcourse after stripslashes it gets messed-up: > > > > ' ' \ \ > > > > > > So my question is if this is a normal behaviour for PHP+MYSQL or it may > > vary indifferent conficurations or versions of both php or mysql. > > It's not a bad thing to be like that but I wonder if my code will behave > > the same at most systems. > > > > Thank you very much > > -- > Best regards, > > Bostjan Skufca > system administrator > > Domenca d.o.o. > Phone: +386 4 5835444 > Fax: +386 4 5831999 > http://www.domenca.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql + addslashes + stripslashes
Hi, I have a similar problem at the moment. I was waiting to scrape together an example, but since you posted first I will jump into the discussion now. My problem is that I have a large array (without any funnies like self-referencing) getting serialized. There are some funnies in the string fields though (like `'`s etc). After making a roundtrip to the mysql database, things start to get bad on me since I cannot unserialize the text anymore. This only happens for some of the arrays that I have. Other arrays with similar data can get serialized and unserialized just fine. I do suspect though, that the problem lies with how I am using addslashes and how I am not using it. Any definitive help would be much appreciated. pieter On 5/16/05, Petzo <[EMAIL PROTECTED]> wrote: > > Hi, > > My question is about the norlmal behaviour of PHP and MYSQL but I cant > explain it without a simple example. Thank you for reading: > > I have the following code: > > print $t = $_POST['txt']; > print $t = addslashes($t); > > @ $db = mysql_pconnect(xxx,xxx,xxx); > mysql_select_db('test'); > > $q = "update ttable set ffield='$t'"; > mysql_query($q); > > $q = "select * from ttable"; > $result = mysql_query($q); > $bo = mysql_fetch_array($result); > > print $t = $bo['ffield']; > print $t = stripslashes($t); > ?> > > > from a HTML form I send variable: > > ' \ \' \\ \\\ > > > after addshashes it becomes: > > \' \\ \\\' \\ > > > after that it gets in the database > > but after I get it out it becomes: > > ' \ \' \\ \\\ > > (without the backslashes!) > > and ofcourse after stripslashes it gets messed-up: > > ' ' \ \ > > > So my question is if this is a normal behaviour for PHP+MYSQL or it may > vary > indifferent conficurations or versions of both php or mysql. > It's not a bad thing to be like that but I wonder if my code will behave > the > same at most systems. > > Thank you very much > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- "Maybe I'm a little bit crazy, but I can't decide if it's psychotic or neurotic. You know the difference, don't you? A psychotic thinks that 2 + 2 = 5. A neurotic knows that 2 + 2 = 4, but it makes him nervous." - Larry Wall, The State of the Onion (speech) 2004. http://www.perl.com/pub/a/2004/08/18/onion.html
[PHP] Re: I have some upload questions.
Thanks for all of your helping. I think now maybe it's not the serve's problem because I CAN post forms and even I can upload some smaller size files. Then the following is my problem: This is the script of " justtest.php" : justtest.php I can upload a file of size 7KB, but when I want to upload a file of 20 or 30MB, it says : Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php on line 2 That means it took too long time to upload? But when I add some function to this script something like this: I add "two" set_time_limit(0)but when I want to upload a file of 20or 30MB, it still shows: Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php on line 2 the same line? So the POST action didn't complete? I don't understand. (AND I can upload a file of 7KB successfully without any problems) The following is some settings in the php.ini: post_max_size 200M upload_max_filesize 200M memory_limit 200M max_execution_time 30 max_input_time 60 And is there anything I should set? BTW, if I put this php file on OTHER server whose settings like this: post_max_size 100M upload_max_filesize 100M memory_limit 8M max_execution_time 30 max_input_time 60 It can work well, no matter the filesize is 30MB or 7KB. So I just wonder what I should do to solve this problem. (now I think it's not the hub's fault) Thanks. "Lee Chen" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] > If the server uses hub ( to make more computer connect online), can' I > upload files > to that server?? > > I face a problem like this , and I think that's the hub causing this > problem. > Did it? > > or if I can do something to solve this problem? > > (btw I am the administrator of that server. I can do anything on that > server) > > Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fwd: Re: [PHP] [php] Chrooting php...
On Friday 13 May 2005 19:23, Tony Di Croce wrote: > I'm trying to fully chroot my server. Right now, I have Apache running > in a chroot jail, and I need to get php5 working their too... Before I > dive in, I thought I'd just ask if anyone here has any experience > doing this...? Are their any known issues? Try this: http://penguin.triumf.ca/chroot.html > Also, I was going to chroot my postgres db, but now I'm not so sure. > It is not running as an exposed service (IE, its ports are not open to > the outside world. It's only used over the loopback interface by > PHP)... Is their any point to jailing it in this case? > > td -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436 pgpy9c0AP0Y8b.pgp Description: PGP signature
Fwd: Re: [PHP] lib ssh2 functions
On Saturday 14 May 2005 02:16, Oscar Gosdinski wrote: > Hello everybody: > > I need my PHP application connects through SSH to other server for > getting some info to display and i tried the following code to test > lib ssh2: > > $server = ...; > $user = ...; > $passwd = ...; > > $con = ssh2_connect($server, 22); > if (ssh2_auth_password($con, $user, $passwd)) { >$s = ssh2_exec($con, 'ls -l'); >$file = fopen("/tmp/test", "w"); >while ($line = stream_get_line($s, 1024)) { >fwrite($file, $line); Comment the following line. >fflush($file); > :-) : >} >fclose($file); > } else { >echo "Authentication Error"; > } > > The file /tmp/test was created but it does not have any data. I can > connect to the server using a normal ssh session in my laptop and the > 'ls -l' command returns me information. > I think that i installed correctly the ssh2 functions because if a put > an incorrect password i get the "Authentication Error" message. > > I searched the web for info about similar problems and no results. > Please, anyone can help me with this problem because i have been > spending three days with this. > > Thanks in advance for your answers. > > -- > Saludos / Regards > Oscar -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436 pgp8FWuX7dBPY.pgp Description: PGP signature
[PHP] Fwd: Re: [PHP-DEV] Function proposal
On Friday 13 May 2005 14:29, AnteD wrote: > Hi guys... > > Yes I know that this is a small function and yes I know it can be > copy-paste with every new project you do but from the first day I've > been using PHP until today this function follows me everywhere and I now > that everyone is using it one way or the other for debugging.. > > the problem is when you want to debug a piece of code separately or use > it in one script then you have to find the function...copy paste to that > script or write it again just for that script...and so on...it would be > great if it could be in the php core > > I have a very basic knowledge of C so implementing this function would > be a nightmare for me but for someone who knows C and the inner > "mysteries" of the Zend Engine :) this is a piece of cake > > Ok...here it is...don't laugh :) > > /** > * Prints the variable in HTML format... > * > * @param mixed $var > * @param bool $return return or print the var > * @return string > */ > function print_pre($var, $return = false) { > $retval = ÂÂ.print_r($var, true).Â; > if($return) return $retval; > print($retval); > } I think the Reflection API is enough and works great for me. Such a basic debugging is not the issue when speaking of serious projects with a large OO tree. Just an opinion. > oklet the shooting begin :) -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436 pgpVloMcpEEFm.pgp Description: PGP signature
Re: [PHP] Re: why are session only working with cookies?
Brian V Bonini wrote: On Fri, 2005-05-13 at 23:31, Jason Wong wrote: On Saturday 14 May 2005 09:42, Brian V Bonini wrote: Yeah, I know session support is there and I DO NOT have it set to use ONLY cookies. But if I disable cookies in the browser stuff relying on sessions stops working. I'm using 5.0.3 session.use_trans_sid 0 0 Set that to 1. Sessions *are* cookies, they're cookies that have been set to expire when the browsing session finishes (ie when the browser is closed). I thought the idea was; cookies if available otherwise the session data gets serialized and propagated in the URL? The later of which appears to not work, for me, if applicable While it is possible that you might save some data in a cookie (yes, I've seen it done) that's not usually the way that it works. Usually it's just as Richard has already described; the cookie just stores a name / value pair that identifies which session is yours and then PHP goes and retrieves that record. If you don't want to rely on cookies then using trans_sid is seriously the next best way to go. So go turn it on if you don't want to require cookies, it really should be that simple! Then the name / value pair is attached to the URLs instead of stored in a cookie. Do people actually try the code that I post to the list? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpMyAdmin authentication error
I haven't used mysqli, so I'm not as familiar with errors related to that library, but you said you downloaded "the latest package of MySQL," which is hopefully 4.1.12. This version shouldn't cause this error with mysqli. In my experience, this error has always been a case of PHP compiled against MySQL 3.x libraries, so that the PHP client is using the older authentication protocol of 3.23. See below for more information: http://dev.mysql.com/doc/mysql/en/old-client.html kgt Richard Lynch wrote: On Fri, May 13, 2005 3:56 pm, Sam Smith said: Because the install was from mysql.com I don't want to believe the client is out of date. I also don't know how to install another client. Most likely, it's Apple that's a bit behind the curve... So your phpMyAdmin is probably trying to use the mysqli client, but your MySQL server from Apple can only handle mysql client. See if you can get phpMyAdmin for the version of MySQL you have.
[PHP] Add to array problem
I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx
Re: [PHP] Re-initiating an autostarted session
Marek Kilimajer wrote: You are right, unset($_COOKIES) does not remove cookie from the client. You need to unset() it so that your next call to session_start() does not use the same $_COOKIES[session_name()]. session_start will generate new session id if there is not one set in the request variables. I see, thanks! I tried unsetting the cookies and request superglobals, but it still does not give a new session id. unset($_COOKIES[session_name()]); unset($_REQUEST[session_name()]); session_destroy(); session_start(); session_write_close(); I will try to use a session_start() instead of an autostarted session (per .htaccess) if it would help the situation. Ville -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] changing php ini location
Emre wrote: ... yes i aware of php ini set, but there is no logic using that command for global changes that you use each time. if you want to change global php.ini settings for a spesific script than its useful, but to change global settings for each script, thats smt like overkill :) eg. you can use phpiniset to increase a script max execution time, espesiaclly for upload or image manipulation process purposes. but for global execution time setting must be set via php.ini. thats what that file is for. Yep there are some php.ini options that you simply can't change at runtime. Period. For a listing of these options that you can't change you should go here: http://php.net/manual/en/ini.php#ini.list anyway after my research, I couldnt find a way to change php.ini location on this system: windows XP, apache 1.3, php5. This probably isn't the method that you envisioned, but if you run PHP as a CGI then you can specify which php.ini to use like the following: \php.exe -c Obviously you need to change the paths above. :) it sounds a little bit weird. why cant we use phpinidir at apache 1.3? since its supported by apache 2.0, it must also be supported by 1.3. how hard can it be anyway? most people (like me) still use and trust old good apache 1.3.XX its time to mail bomb apache dev team I think. All php users with apache 1.3, unite ! :) Better be careful there... Rasmus is/was on the Apache dev team... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] lib ssh2 functions and ssh2_exec stream reading work around
I ran in to many ssh2 stream problems as well. Problem 1. One problem I think related to the openssl version I was using. I was using the standard version with Fedora Core 3. ssh connected actions sometimes worked and sometimes did not work. I recompiled the ssh2.so with the following versions. libssh2-0.8 openssl-0.9.7g ssh2-0.7 Problem 2. At this point file transfers worked great. However, running commands and reading the stream was having problems. Using the classic I found that I never got any responses. After testing I found that my $||ssh_stream always had a true response to feof($||ssh_stream||)|; And that fread($ssh_stream,5120) did not always bring back data. While the following is not a Correction to the problem, it does allow you to read the incoming stream and know when it is done computing. This is the function I use which is in side a remoteConnection class I have wrapping the different ssh2 functions. If somebody comes up with a "CORRECTIOIN" to the problem rather than a work around, I would surely appreciate it. Here is my work around with comments. Hope it helps. function command ($command) { // attach "echo '__end_cmd_response__';" to the end of any command run. // this will be the last thing in the streams output so I can identify when my command // has finished. $stream = ssh2_exec($this->conn, $command ."\necho '__end_cmd_response__';" ); if ($stream) { // not fully sure why I do this. but it does not seem to hurt. The stream has no data // right away. sleep(5); // turning blocking off allows stream to keep moving eventhough no data is coming // through it. Required to make the time out work correctly. socket_set_blocking($stream,false); // the time out is set less than the php time out. Otherwise you run the risk of the // php timing out if the stream hangs. stream_set_timeout($stream,25); $start = mktime(); // manual indicator to exit the while $exit = false; while ($exit == false) { $read .= fread($stream,5120); // this pulls meta data from the stram so we can test for the time out. $info = stream_get_meta_data($stream); // test for the echo'ed __end_cmd_response__ if (ereg("__end_cmd_response__",$read)) { $exit = true; break; // check to see if the stream has timed out. } elseif ($info["timed_out"]) { // i just add this to tell the user that the stream timed out. $read .= "Exited stream reading (25 seconds). Check changes online.\n"; $exit = true; break; } } fclose($stream); return $read; } ?> Oscar Gosdinski wrote: Hello everybody: I need my PHP application connects through SSH to other server for getting some info to display and i tried the following code to test lib ssh2: $server = ...; $user = ...; $passwd = ...; $con = ssh2_connect($server, 22); if (ssh2_auth_password($con, $user, $passwd)) { $s = ssh2_exec($con, 'ls -l'); $file = fopen("/tmp/test", "w"); while ($line = stream_get_line($s, 1024)) { fwrite($file, $line); fflush($file); } fclose($file); } else { echo "Authentication Error"; } The file /tmp/test was created but it does not have any data. I can connect to the server using a normal ssh session in my laptop and the 'ls -l' command returns me information. I think that i installed correctly the ssh2 functions because if a put an incorrect password i get the "Authentication Error" message. I searched the web for info about similar problems and no results. Please, anyone can help me with this problem because i have been spending three days with this. Thanks in advance for your answers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re-initiating an autostarted session
Ville Mattila wrote: Marek Kilimajer wrote: You are right, unset($_COOKIES) does not remove cookie from the client. You need to unset() it so that your next call to session_start() does not use the same $_COOKIES[session_name()]. session_start will generate new session id if there is not one set in the request variables. I see, thanks! I tried unsetting the cookies and request superglobals, but it still does not give a new session id. unset($_COOKIES[session_name()]); unset($_REQUEST[session_name()]); session_destroy(); session_start(); session_write_close(); But this code *still* does not destroy the cookie on the client side. Are you doing that somewhere else? http://php.net/manual/en/function.session-destroy.php http://php.net/manual/en/function.setcookie.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: I have some upload questions.
Lee Chen wrote: Thanks for all of your helping. I think now maybe it's not the serve's problem because I CAN post forms and even I can upload some smaller size files. Then the following is my problem: This is the script of " justtest.php" : justtest.php I can upload a file of size 7KB, but when I want to upload a file of 20 or 30MB, it says : Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php on line 2 That means it took too long time to upload? But when I add some function to this script something like this: I add "two" set_time_limit(0)but when I want to upload a file of 20or 30MB, it still shows: Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php on line 2 Is safe_mode on? set_time_limit() has no effect when PHP is running in safe mode. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add to array problem
Hello, $items=array(); Sets $items to an array with nothing in, so if you had anything in there previously, its gone. Here is the example from the help file. Array ( [0] => orange [1] => banana [2] => apple [3] => raspberry ) Chris. -Original Message- From: mayo [mailto:[EMAIL PROTECTED] Sent: 16 May 2005 15:26 To: php Subject: [PHP] Add to array problem I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx This message has been delivered to the Internet by the Revenue Internet e-mail service * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add to array problem
> I'm having a little problem adding to an array. Each time I add to an > array it wipes what was previously added. I'm using array_push(). > > $items=array(); > $items=array_push($items, $_POST["whatever"]); > > I'm missing something easy. Try: $items=array(); array_push($items, $_POST["whatever"]); In other words, remove the "$items=" in front of "array_push(" Regards, Murray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Add to array problem
If you're doing: $items=array(); before each array_push() call, that is emptying the array, then pushing the value onto the empty array. mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add to array problem
-Original Message- From: mayo [mailto:[EMAIL PROTECTED] Sent: 16 May 2005 15:26 To: php Subject: [PHP] Add to array problem I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); Looking at the PHP docs (always a good place to start), it appears that you do not need to assign the result of this function to an array, rather it modifies the array you specify hence $items=array_push($items, $_POST["whatever"]); Should be array_push($items, $_POST["whatever"]); I'm missing something easy. http://uk.php.net/manual/en/function.array-push.php thx Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, Cisco, Sun Microsystems, 3Com GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 2000' REGISTERED COMPANY ** CONFIDENTIALITY NOTICE: This Email is confidential and may also be privileged. If you are not the intended recipient, please notify the sender IMMEDIATELY; you should not copy the email or use it for any purpose or disclose its contents to any other person. GENERAL STATEMENT: Any statements made, or intentions expressed in this communication may not necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no content herein may be held binding upon Gamma Global (UK) Ltd or any associated company unless confirmed by the issuance of a formal contractual document or Purchase Order, subject to our Terms and Conditions available from http://www.gammaglobal.com E&OE ** ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Add to array problem
Mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx $items[] = sanitize($_POST['whatever']); function sanitize($postdata) { /* Some function that will check this $_POST data. In this case we'll just return the original value i.e. do no data validation. */ return $postdata; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Add to array problem
mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx array_push() returns the number of elements in the array, not the array itself. You want just: array_push($items, $_POST["whatever"]); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Add to array problem
On Monday 16 May 2005 17:26, mayo wrote: > I'm having a little problem adding to an array. Each time I add to an > array it wipes what was previously added. I'm using array_push(). > > $items=array(); > $items=array_push($items, $_POST["whatever"]); Don't assign the result of the array_push() function to $items. That's the reason for flushing the array. try: if (array_push($items, $_POST['whatever'])) { // something } > > I'm missing something easy. > > thx -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436 pgp8UxOcbzGmK.pgp Description: PGP signature
[PHP] Special characters
Hi everyone, I have just begun writing PHP web-pages and I have come across an interesting issue. Whenever I use special characters within my code such as: a "©", the character displays as a "?". All other text and characters display properly, so I am not certain why some special marks do not show up or are shown as completely different characters altogether. Does anyone have any suggestions as to why this is the case and how I can fix this issue? Thanks.
Re: [PHP] Re: I have some upload questions.
Thanks I check the phpinfo, and my safe_mode is off. This is my phpinfo http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm It is just a copy, not on the server.(so it's html file, not a php file) Thanks. - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Lee Chen" <[EMAIL PROTECTED]> Cc: Sent: Monday, May 16, 2005 11:26 PM Subject: Re: [PHP] Re: I have some upload questions. > Lee Chen wrote: > > Thanks for all of your helping. > > > > I think now maybe it's not the serve's problem because I CAN post forms and > > even I can upload some smaller size files. > > Then the following is my problem: > > > > This is the script of " justtest.php" : > > > > justtest.php > > > if (is_uploaded_file($_FILES["upload"]['tmp_name'])) > > { > > $full_path = "D:/xxx/xxx.pdf"; > > move_uploaded_file($_FILES["upload"]['tmp_name'], "$full_path"); > > } > > ?> > > > > > > > > > > > > > > I can upload a file of size 7KB, but when I want to upload a file of 20 or > > 30MB, it says : > > Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php > > on line 2 > > > > That means it took too long time to upload? > > But when I add some function to this script something like this: > > > > > set_time_limit(0); > > if (is_uploaded_file($_FILES["upload"]['tmp_name'])) > > { > > $full_path = "D:/xxx/xxx.pdf"; > > move_uploaded_file($_FILES["upload"]['tmp_name'], "$full_path") ; > > } > > set_time_limit(0); > > ?> > > > > > > > > > > > > I add "two" set_time_limit(0)but when I want to upload a file of 20or > > 30MB, it still shows: > > Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php > > on line 2 > > Is safe_mode on? set_time_limit() has no effect when PHP is running in > safe mode. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Firefox COM object
Hello, I would like to write some PHP scripts to automate web testing. I already have a framework that uses the COM class to automate the tests in IE. Now, I'd like to port that code so that I can test the same web pages in FireFox or Mozilla browsers. I haven't been able to locate any documentation or otherwise regarding this matter. Does Firefox have any COM interface like IE does? Cheers, Dang Nguyen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: I have some upload questions.
btw, even if I set max_execution_time = 0in the php.ini, I still CAN'T upload a file of 30MB. and it still shows the same message: Fatal error: Maximum execution time of 0 seconds exceeded in justtest.php on line 2 I just don't understand how it can exceed a max execution time of "0". Anything wrong? THANKS. "Marek Kilimajer" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > Lee Chen wrote: > > Thanks for all of your helping. > > > > I think now maybe it's not the serve's problem because I CAN post forms and > > even I can upload some smaller size files. > > Then the following is my problem: > > > > This is the script of " justtest.php" : > > > > justtest.php > > > if (is_uploaded_file($_FILES["upload"]['tmp_name'])) > > { > > $full_path = "D:/xxx/xxx.pdf"; > > move_uploaded_file($_FILES["upload"]['tmp_name'], "$full_path"); > > } > > ?> > > > > > > > > > > > > > > I can upload a file of size 7KB, but when I want to upload a file of 20 or > > 30MB, it says : > > Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php > > on line 2 > > > > That means it took too long time to upload? > > But when I add some function to this script something like this: > > > > > set_time_limit(0); > > if (is_uploaded_file($_FILES["upload"]['tmp_name'])) > > { > > $full_path = "D:/xxx/xxx.pdf"; > > move_uploaded_file($_FILES["upload"]['tmp_name'], "$full_path") ; > > } > > set_time_limit(0); > > ?> > > > > > > > > > > > > I add "two" set_time_limit(0)but when I want to upload a file of 20or > > 30MB, it still shows: > > Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php > > on line 2 > > Is safe_mode on? set_time_limit() has no effect when PHP is running in > safe mode. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] extension development
Basicly I want very rapid and easy information sharing between multiple processes. I'm not totally sure about the implementation yet. The most simple implementation would be using a $_APP global which is shared accross servers and processes, but to be honest I have to look into it to find the best and most usefull implementation. I have written a web-application framework which uses persistant data objects which can be shared across XML-RPC, SOAP and AMF (for flash) and it is already live at some bigger hosts, but for a new client clustering is needed. It is a commercial project but I am willing to make the clustering system open source, because I love PHP and I would like making it grow. If there are more people who would like to work on this project, drop me a line so we can get a discussion started! grt, Evert Devraj Mukherjee wrote: Can you discuss the implementation of what you are doing. We are trying to get a momentum happening towards enterprise styled PHP and possibly write a PHP application server. Devraj devraj at eternitytechnologies dot com -- Eternity Technologies Pty. Ltd. ACN 107 600 975 P O Box 5949 Wagga Wagga NSW 2650 Australia Voice: +61-2-69255866 / Fax: +61-2-69251039 http://www.eternitytechnologies.com/ Evert|Rooftop wrote: Hi people, I want to write a PHP extension that allows clustering and simple information sharing between processes and hosts. What would be the prober mailing list subscribe to for my questions about the zend engine? grt, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parsing XML with php
On 5/12/05, Burhan Khalid <[EMAIL PROTECTED]> wrote: > Merlin wrote: > > Hi there, > > > > I am curious if PHP is now able to pars xml without aditional tools like > > xmlrpc. > > If yes which version is required? Is the current php 4.x tree sufficient? > > 4.x requires the expat parser (so I guess it would require external libs). Wrong, the exapt library is included in PHP 4. > 5.x has the simplexml extension (which I believe requires no external libs). Wrong, libxml2 is needed as external library for having *any* XML support in PHP 5 (if you have libxml2 installed, you should get SAX (aka ext/xml), DOM and simplexml support out of the box) chregu > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [EMAIL PROTECTED] | gnupg-keyid 0x5CE1DECB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Special characters
On Mon, 2005-05-16 at 12:23, Carlos Palomino wrote: > Hi everyone, > I have just begun writing PHP web-pages and I have come across an interesting > issue. > Whenever I use special characters within my code such as: a "©", the > character > displays as a "?". Because that's not valid HTML... See: http://www.w3.org/TR/html401/sgml/entities.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql + addslashes + stripslashes
> I do suspect though, that the problem lies with how I am using addslashes > and how I am not using it. Any definitive help would be much appreciated. i'm not an expert at this, but i think that since you're using mysql to store your data, you shouldn't use addslashes() and use mysql_real_escape_string() instead... http://us4.php.net/manual/en/function.mysql-real-escape-string.php but that's just me. i would run any user input through that function to make sure that it's 'safe' to put in your database. of course, i would also be checking the input to make sure that it safe by other means as well. hope that helps. -drew -- dc .. drewcore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Firefox COM object
I would doubt FireFox has a COM interface like IE. Remember, IE is really part of Windows so by default it would have a COM interface. FireFox is cross platform where COM won't exist. For example, on the Mac, Firefox only supports the required Appescript interface. Have you thought of using Javascript to get the browsers to do what you want? Not sure what you are trying to do in your test, but Javascript is quite versatile. On May 16, 2005, at 2:18 AM, Dang Nguyen wrote: Hello, I would like to write some PHP scripts to automate web testing. I already have a framework that uses the COM class to automate the tests in IE. Now, I'd like to port that code so that I can test the same web pages in FireFox or Mozilla browsers. I haven't been able to locate any documentation or otherwise regarding this matter. Does Firefox have any COM interface like IE does? Cheers, Dang Nguyen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] extension development
Evert | Rooftop wrote: Basicly I want very rapid and easy information sharing between multiple processes. I'm not totally sure about the implementation yet. The most simple implementation would be using a $_APP global which is shared accross servers and processes, but to be honest I have to look into it to find the best and most usefull implementation. Funny that you mention $_APP. Depending on your needs you might find the following classes will help you out: Store the result of function calls to disk: http://pear.php.net/package/Cache http://cvs.php.net/co.php/pear/Cache/Application.php?r=1.8 Shared memory streams wrapper class: http://pear.php.net/package/Stream_SHM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP-GTK, or something else, for desktop app development?
[pardon me for my poor english] What you want to do? If you just want to be a desktop applications programmer, i dont think learning PHP-GTK be a good way to produce them (learning a language like PHP that is specialized in web environment for desktop programming colud not be a good idea) but if you want to be a web programmer too, it's here you could use PHP-GTK with the most TRUST! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Firefox COM object
Dang Nguyen wrote: Hello, I would like to write some PHP scripts to automate web testing. I already have a framework that uses the COM class to automate the tests in IE. Now, I'd like to port that code so that I can test the same web pages in FireFox or Mozilla browsers. I haven't been able to locate any documentation or otherwise regarding this matter. Does Firefox have any COM interface like IE does? Cheers, Dang Nguyen Firefox makes use of Cross Platform COM, aka XPCOM. Now when I first read your question I didn't know what the answer was, but heck I was interested enough that I actually got off my lazy butt and searched for this one. A nice discussion here: http://forums.mozillazine.org/viewtopic.php?t=21&highlight=automated+test http://www.iol.ie/~locka/mozilla/control.htm I haven't tried it, but it looks like you can use some of your pre-exisitng code to test pages in Firefox as well. By the way, other people might find your code useful as well. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] learning classes - need pointer
Hi there - I am slowly converting all of my projects over to a OOP based structure with classes. Now I had a quick question. In my current case, I am trying to create all the generic SQL functions (IE insert, update, delete, etc). Now what I am wondering - what would be the best way to structure the code so that I can accommodate the possibilities for different fields and databases, etc? Is it something that I should just pass to the class? Or would there be a more efficient way to do it? d -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Components
Hi people, I'm working on a component system and started with a component class. The idea is the following: Sample text Don't worry about speed or anything, I'm taking care of that.. This is my PseudoComponent class | class PseudoComponent extends PseudoModule { function __construct(&$sabretooth, $id) {}// constructs the component function __destruct() {} // destructs the component function addChild(&$child) {} // Ads a child to the component function canAcceptCDATA {}// Returns wheter or not this component can contain CDATA function canHaveChildren {} // Returns wheter or not this component can contain children function display() { // displays the component function displayChildren{}// displays component children function &getParent() // returns this components' parent function getProperty($property) {}// returns a property-value function insertComponent($targer) {} // inserts this component into another component function setProperty($property,$value) {} // sets a property } I want to give PHP to have a natural application-programming feel, along with events and all (which is implemented by the PseudeModule class). And after that, start off with a web-based PHP RAD tool. (which I plan to do with either document.designMode or XUL) ||But! I also want to keep things simple, a low learning curve, and still very extensible. I want to start really good and I have given myself a lot of thought about it and I decided the best thing for me would be to start out with a proper base class while looking at how the guys from Macromedia Flex and Borland Delphi did it =) This is my idea, am I missing something essetial, I know everything is still very vague, but if you could give a comment on it, I would appriciate. One issue I still have, I would like to make the components produce different output based on skins, to give an idea about how I want to do this, i'll show you an example list: xhtml_default xhtml_fire xhtml_storm wml_default xul_default xul_pimping mxml_default xforms_default xhtml_ajax_default xhtml_ajax_fire Any ideas or suggestions are welcome =) grt, Evert | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cache
Hi, I'm developing a cache system. Which works in pseude code, like this: class Cache { function Fetchdata($id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); if ($this->DataIsExpired($id)) return false; else return unserialize(file_get_contents($id)); } function storeData($data,$id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); OpenTheFileAndWriteTheDataSerialized($data); } } $id1 $id2 and $id3 are when they are combined unique * Is there a chance of collision when MD5 is used on the id's and the ids are long strings * Is file_get_contents the fastest way to open the file? * Is serialize the fastest way to serialize ;) ? * Are there any other things I should consider? (I'm aware of file-locking issues, and have taken care of that) regards, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] regex question
What pattern can I use to match ONLY single occurrences of a character in a string. e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. I only want the two occurrences with a single occurrence of "@". @{1} doesn't work; there are 4 matches. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Components
On Tuesday 17 May 2005 03:24, Evert | Rooftop wrote: > I'm working on a component system and started with a component class. [...] > I want to give PHP to have a natural application-programming feel, > along with events and all (which is implemented by the PseudeModule > class). And after that, start off with a web-based PHP RAD tool. (which > I plan to do with either document.designMode or XUL) You might want to take a look at Prado http://www.xisc.com/ it seems to be exactly what you're trying to do and I believe it also has a RAD plugin for Dreamweaver. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] regex question
Try (for example if character was "A") ... ([^A]|^)A([^A]|$) This matches four cases: A is at beginning of string and there is another letter after it, A has a letter before it and a letter after it, A is at end of string and there is a letter before it, or A is the only character in the string. On 5/16/05, Al <[EMAIL PROTECTED]> wrote: > What pattern can I use to match ONLY single occurrences of a character in a > string. > > e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. > > I only want the two occurrences with a single occurrence of "@". > > @{1} doesn't work; there are 4 matches. > > Thanks > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] learning classes - need pointer
> > In my current case, I am trying to create all the generic SQL > functions (IE insert, update, delete, etc). Now what I am wondering - > what would be the best way to structure the code so that I can > accommodate the possibilities for different fields and databases, > etc? Is it something that I should just pass to the class? Or would > there be a more efficient way to do it? One of the things I hate most is having to rewrite code for insert and update. With that in mind what I do is name the form objects the same name as the db fields that they relate to. Then I iterate through the $_POST array as a whole and do the insertions and updates like that. The only thing that I have to pass to my class is the table name and any location string that will accompany the successful completion of the insert/update. All my validation is done right there with method overloading. It's not extremely clever by any means but it gets the job done. Besides I'm kinda lazy. I'm sure there are several wrappers that do the same thing. alex hogan
Re: [PHP] Re: I have some upload questions.
Lee Chen wrote: Thanks I check the phpinfo, and my safe_mode is off. This is my phpinfo http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm It is just a copy, not on the server.(so it's html file, not a php file) Thanks. Looks like you need to check this in your php.ini file. Could be your problem! max_input_time integer This sets the maximum time in seconds a script is allowed to receive input data, like POST, GET and file uploads. James Hicks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] regex question
On Mon, 16 May 2005, Al wrote: What pattern can I use to match ONLY single occurrences of a character in a string. e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. I only want the two occurrences with a single occurrence of "@". [EMAIL PROTECTED]@[EMAIL PROTECTED] should do it I think. @{1} doesn't work; there are 4 matches. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] regex question
> What pattern can I use to match ONLY single occurrences of a character in > a string. > > e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. > > I only want the two occurrences with a single occurrence of "@". > > @{1} doesn't work; there are 4 matches. "/[EMAIL PROTECTED]@[EMAIL PROTECTED]/" seems to do what you're looking for. In other words, match the "@" symbol where it is not preceded or followed by another "@" symbol. To test, try: preg_match_all('/[EMAIL PROTECTED]@[EMAIL PROTECTED]/','Some @ text with the @t sym@@bol @@@', $thing, PREG_OFFSET_CAPTURE); print_r($thing); There may be a more intuitive way to do this, but at least it seems to work. Regards, Murray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Including SSI in your PHP scripts
Is there any possible way to use my sitewide include files which have SSI in them in a PHP script, such as phpBB, with PHP installed as a cgi? I see there is a virtual() function which is intended to mimick apache's virtual include, however it does not work as a CGI. Thanks in advance, Brian
Re: [PHP] Add to array problem
mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx I am having a similar problem: if (! move_uploaded_file($_FILES['userfile']['tmp_name'], $image_file)) { $message = "Problem uploading the file: $image_file"; } else { $image_data = array ( "path" => $image_file, "type" => $_FILE['userfile']['type']); if (! is_array($_SESSION['image_data'])) { $_SESSION['image_data'] = array($image_data); } else { array_push ($_SESSION['image_data'], $image_data); } } Somehow, when I check the contents of $image_data, I get the expected two items + a "0 - Array" entry. I have no idea what it is or where it gets set. Additionally, when I print out the contents of $_SESSION['image_data'] via: foreach ($_SESSION['image_data'] as $image_datum) { if (is_array($image_datum)) { foreach ($image_datum as $key => $value) { echo "array: ".$key."-".$value."\n"; } } else { echo "data: ".$image_datum."\n"; } } I get: * data: tmp/image_dcaa588e5da9fa009e369b5715d0c1b0_23 * data: image/gif * array: path-tmp/image_dcaa588e5da9fa009e369b5715d0c1b0_23 * array: type-image/gif And, if the above initialization code is executed multiple times, the contents of $_SESSION['image_data'] are completely wiped and reinitialized instead instead of accumulating (array_push()). Any help would be much appreciated. -- Arshavir Grigorian Systems Administrator/Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with an excel file generated with a PHP class
Hi all, I am getting this error when generating an excel file blah.xls cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding. I get this error if I click 'Open' in the dialog box, or if I save it and then try to open it. At this point I am rather tired and may be over-looking something. Can someone shed some light on the problem for me? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] regex question
> What pattern can I use to match ONLY single occurrences of a character in > a string. > > e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. > > I only want the two occurrences with a single occurrence of "@". > > @{1} doesn't work; there are 4 matches. > > Thanks Please ignore my last email re: your question. I realized that the negation of the range containing the "@" would end up capturing unwanted characters. As an alternative, try the following: preg_match_all('/(?http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] WINBINDER! WOOT! Re: PHP-GTK, or something else, for desktop app development?
I missed the original post, but if you're looking at doing Windows desktop development and want a GREAT alternative to GTK, definitely check out Winbinder! Rubem and crew have done an awesome job (even though he modestly calls it an "alpha" release.. it's very function). It's a native Windows API wrapper for PHP.. so you have access to all the familiar Windows. http://www.hypervisual.com/winbinder/index.php = = = Original message = = = [pardon me for my poor english] What you want to do? If you just want to be a desktop applications programmer, i dont think learning PHP-GTK be a good way to produce them (learning a language like PHP that is specialized in web environment for desktop programming colud not be a good idea) but if you want to be a web programmer too, it's here you could use PHP-GTK with the most TRUST! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: learning classes - need pointer
Dustin Krysak wrote: ... that I should just pass to the class? Or would there be a more efficient way to do it? d http://pear.php.net/package/DB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Cache
Evert | Rooftop wrote: Hi, I'm developing a cache system. Which works in pseude code, like this: class Cache { function Fetchdata($id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); if ($this->DataIsExpired($id)) return false; else return unserialize(file_get_contents($id)); } function storeData($data,$id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); OpenTheFileAndWriteTheDataSerialized($data); } } $id1 $id2 and $id3 are when they are combined unique * Is there a chance of collision when MD5 is used on the id's and the ids are long strings Yes there is a chance, but it's small enough that for practical purposes you can ignore it. * Is file_get_contents the fastest way to open the file? AFAIK yes it is since it takes advantage of memory mapping (where possible). * Is serialize the fastest way to serialize ;) ? Not sure. * Are there any other things I should consider? (I'm aware of file-locking issues, and have taken care of that) regards, Evert H... well, file_get_contents() doesn't lock the file so I'm interested in how you're accomplishing this feat. Perhaps you're creating a temporary directory (atomic IIRC) for the filename and then flocking that? I dunno, I hate race conditions. You might also want to consider the security of the data that goes into your cache'd $_APP data. Because any file that is created by PHP is going to be in pretty much the same boat as the default session files and on a shared server, well... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] contract help wanted
Hello, I'm a contract worker - mostly I do system administration and consulting, but I also do a lot of system development and programming. Sometimes I have too much work to do as it can be more than me and my associates can comfortably handle. On regular occassion I have some PHP (web application, generally) development work come my way that I would like to outsource (subcontract). If you are interested in regular-to-occassional PHP (involving MySQL database backends and Javascript in-browser niceties) development work and are capable of working via e-mail, working with a deadline, can either track time-used or can quote on a per-project basis, and can handle a variety of different projects each requiring anywhere from 5 to 20 hours of work, then please contact me off-list, preferrably with a resume. Thanks. Lee Howard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Problem with an excel file generated with a PHP class
Jay Blanchard wrote: Hi all, I am getting this error when generating an excel file blah.xls cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding. I get this error if I click 'Open' in the dialog box, or if I save it and then try to open it. At this point I am rather tired and may be over-looking something. Can someone shed some light on the problem for me? Thanks! My guess is that the PHP user is not the same as the user that you're logged in with. Try blah.xls -> right click -> Properties -> [TAB] Security and change the permissions manually. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP-GTK, or something else, for desktop app development?
I don't think php-gtk is currently suitable. As of 22 April Andrei was considering a very early alpha release. Taking that into consideration I'd doubt if it's stable enough yet for production. Gtk 1 is afaik obsolete. If you're going to jump to a different language, then I'd seriously consider another P-Language(ie python or Perl). Personally(I'm saying personally to avoid a flame war), I'd lean towards Python. AFAIK it's pygtk, wxPython, and pyQT modules are fairly stable, although I could be wrong on that. Perl AFAIK also has farly stable GUI modules, but writing bad(unreadable) code is far too easy in Perl. On 5/16/05, Murray @ PlanetThoughtful <[EMAIL PROTECTED]> wrote: > Hi All, > > I'd like to do some desktop app development and I'm looking for others' > thoughts on whether PHP-GTK is a suitable environment in which to work? > > Years ago I developed desktop apps in Access / VB6, but it's been long > enough now, and VB in particular has changed so much in the intervening > time, that I'd have to relearn these anyway, so it seems like a good time to > either consolidate my PHP coding or to pick up some other language. Not to > mention that Access is entirely despicable for any purpose, desktop app > development included [1]. > > I'm wondering if PHP-GTK is mature / featured enough to handle a relatively > complex desktop app project, using features like table grids for displaying > / editing data stored in a MySQL backend and so on. > > My other alternative is to bite the bullet and learn something like Java, > though I assume my learning curve would be steeper and more time-consuming. > I pick Java because a) Everyone Seems To Love Java, and b) there appear > to be at least a couple of decent free Java IDEs available in NetBeans and > Eclipse (and maybe others that I don't know about). > > In essence, I'm looking for a desktop app development environment that is > featured, connects well to MySQL, and is relatively painless to learn. Java > may not suit the last of those criteria, but I don't know enough about it at > this point to be scared of it if it is painful to learn. > > Anyone have any thoughts to share about PHP-GTK and / or other desktop app > development environments that might be more suitable? Freeness of > development tools is a big plus to me in this, if that needs to be > explicitly said. > > Much warmth, > > Murray > > [1] Just my opinion. I know I'd get a healthy argument from several > developers that I know. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] WINBINDER! WOOT! Re: PHP-GTK, or something else, for desktop app development?
On 5/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I missed the original post, but if you're looking at doing Windows desktop > development and want a GREAT alternative to GTK, definitely check out > Winbinder! Rubem and crew have done an awesome job (even though he modestly > calls it an "alpha" release.. it's very function). Wheather something is an Alpha, Beta, or Final release isn't related to the functionality of the library, but rather a reference to how well tested it is. Calling software Alpha isn't being modest, unless it's far better tested than the author is taking credit for. > > It's a native Windows API wrapper for PHP.. so you have access to all the > familiar Windows. > > http://www.hypervisual.com/winbinder/index.php > > = = = Original message = = = > > [pardon me for my poor english] > What you want to do? > If you just want to be a desktop applications programmer, i dont think > learning PHP-GTK be a good way to produce them (learning a language like > PHP that is specialized in web environment for desktop programming colud > not be a good idea) but if you want to be a web programmer too, it's > here you could use PHP-GTK with the most TRUST! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ___ > Sent by ePrompter, the premier email notification software. > Free download at http://www.ePrompter.com. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] regex question
> Try (for example if character was "A") ... > > ([^A]|^)A([^A]|$) > > This matches four cases: > A is at beginning of string and there is another letter after it, > A has a letter before it and a letter after it, > A is at end of string and there is a letter before it, > or A is the only character in the string. I think this has the same problem that my first attempt at this regex experienced. I.e., it will correctly 'find' single instances of 'A', but it will 'match' against unwanted characters on either side of each 'found' 'A' because they are not-A. For example, the following: preg_match_all('/([^A]|^)A([^A]|$)/','A sentence with instAnces of AAA chArActers', $thing, PREG_OFFSET_CAPTURE); print_r($thing); produces: Array ( [0] => Array ( [0] => Array ( [0] => A [1] => 0 ) [1] => Array ( [0] => tAn [1] => 19 ) [2] => Array ( [0] => hAr [1] => 34 ) ) [1] => Array ( [0] => Array ( [0] => [1] => 0 ) [1] => Array ( [0] => t [1] => 19 ) [2] => Array ( [0] => h [1] => 34 ) ) [2] => Array ( [0] => Array ( [0] => [1] => 1 ) [1] => Array ( [0] => n [1] => 21 ) [2] => Array ( [0] => r [1] => 36 ) ) ) Note the multiple instances of characters other than 'A' in the array. Also note that the 4th qualifying 'A' (the second 'A' in 'chArActers') is missed, because the 'r' is already part of the capture of the preceding 'A'). On the other hand, the following: preg_match_all(' /(? Array ( [0] => Array ( [0] => A [1] => 0 ) [1] => Array ( [0] => A [1] => 20 ) [2] => Array ( [0] => A [1] => 35 ) [3] => Array ( [0] => A [1] => 37 ) ) ) Here, only the target characters are matched, without the confusion of extra unwanted characters. All 4 target 'A's are caught, because the patterns on either side of the 'A' in the regex pattern are non-capturing. So, basically this is employing a non-capturing negative look-behind and a non-capturing negative look-ahead, rather than capturing negated character classes. I've probably only managed to confuse things more than they were, but I'm hoping some of what I've said above makes sense (to me, if no-one else). Regards, Murray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Cache
Jason Barnett wrote: * Is file_get_contents the fastest way to open the file? AFAIK yes it is since it takes advantage of memory mapping (where possible). * Is serialize the fastest way to serialize ;) ? Not sure. * Are there any other things I should consider? (I'm aware of file-locking issues, and have taken care of that) regards, Evert H... well, file_get_contents() doesn't lock the file so I'm interested in how you're accomplishing this feat. Perhaps you're creating a temporary directory (atomic IIRC) for the filename and then flocking that? I dunno, I hate race conditions. I was to fast with that, I didn't look into it enough.. What _would_ be the fastest way (+locking) to do this? You might also want to consider the security of the data that goes into your cache'd $_APP data. Because any file that is created by PHP is going to be in pretty much the same boat as the default session files and on a shared server, well... That's from a different thread, and is a different issue. I agree with your argument though, I'm aware of this risk, but most of the time I code on dedicated servers anyway =) grt, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Firefox COM object
XPCOM is similar to COM, except that it is Cross Platform, and doesn't support DCOM. On 5/16/05, Dang Nguyen <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to write some PHP scripts to automate web testing. I already > have a framework that uses the COM class to automate the tests in IE. Now, > I'd like to port that code so that I can test the same web pages in FireFox > or Mozilla browsers. I haven't been able to locate any documentation or > otherwise regarding this matter. Does Firefox have any COM interface like > IE does? > > Cheers, > Dang Nguyen > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Components
Jason Wong wrote: On Tuesday 17 May 2005 03:24, Evert | Rooftop wrote: I'm working on a component system and started with a component class. [...] I want to give PHP to have a natural application-programming feel, along with events and all (which is implemented by the PseudeModule class). And after that, start off with a web-based PHP RAD tool. (which I plan to do with either document.designMode or XUL) You might want to take a look at Prado http://www.xisc.com/ it seems to be exactly what you're trying to do and I believe it also has a RAD plugin for Dreamweaver. Thank you I will look into it ;) but right now I'm also looking for the php-developers' opinions. So, what are your ideas about this? grt, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] extension development
Jason Barnett wrote: Evert | Rooftop wrote: Basicly I want very rapid and easy information sharing between multiple processes. I'm not totally sure about the implementation yet. The most simple implementation would be using a $_APP global which is shared accross servers and processes, but to be honest I have to look into it to find the best and most usefull implementation. Funny that you mention $_APP. Depending on your needs you might find the following classes will help you out: Store the result of function calls to disk: http://pear.php.net/package/Cache http://cvs.php.net/co.php/pear/Cache/Application.php?r=1.8 This will not work well in clusters.. I want realtime processes to do the job Shared memory streams wrapper class: http://pear.php.net/package/Stream_SHM Doesn't work on Windows ( I need both windows and linux support) grt, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Cache
... H... well, file_get_contents() doesn't lock the file so I'm interested in how you're accomplishing this feat. Perhaps you're creating a temporary directory (atomic IIRC) for the filename and then flocking that? I dunno, I hate race conditions. I was to fast with that, I didn't look into it enough.. What _would_ be the fastest way (+locking) to do this? I haven't tested either of these options, but two ideas come to the top of my head: 1. if( mkdir($filename. '.lck') ) $text = file_get_contents($filename); /* be sure to rmdir($filename . '.lck') when operation is complete */ 2. regular steps of fopen(), flock() / mkdir(), fgets(), fclose(), flock() / rmdir() In any case you will find the user notes for flock() are useful: http://php.net/manual/en/function.flock.php You might also want to consider the security of the data that goes into your cache'd $_APP data. Because any file that is created by PHP is going to be in pretty much the same boat as the default session files and on a shared server, well... That's from a different thread, and is a different issue. I agree with your argument though, I'm aware of this risk, but most of the time I code on dedicated servers anyway =) grt, Evert Lucky you! Hey what can I say except that I can occasionally remember more than simply what is on screen *right now* and I try to put it all together when I can. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Syntax Coloring
Hi all, I am trying to apply syntax coloring to my source code as I type it in unix shell. I work on a mac machine. How do I achieve this. In the php.ini file I see these following lines commented out. ; Colors for Syntax Highlighting mode. Anything that's acceptable in ; would work. ;highlight.string = #DD ;highlight.comment = #FF9900 ;highlight.keyword = #007700 ;highlight.bg = #FF ;highlight.default = #BB ;highlight.html= #00 Should I uncomment the above lines? Before messing up with .ini file I wanted to know more from the experts. Thanks, H __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Phone Number Validation
OK, I know this has probably gone aruond the list a few times, but how do I validate a phone number that is in the format ddd-ddd- ?? I can't figure out how. Jeremy White IMEX Research Manager, Online Marketing 408-268-0800 1474 Camino Robles San Jose, CA 95120 [EMAIL PROTECTED] http://www.imexresearch.com
[PHP] php file list with forced download
Hi, I just have a simple question that some of you might be able to help me with. Was coding a directory listing for several dirs on a client's server that would list the files and allow users to download them. The question is, is there a way to force download of all files, regardless of their types? i.e., if the list constains a .jpg, the browser will show it instead of asking the user to download. Also for .html, gifs, etc. Thanks. Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] regex question
$text = 'Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@.'; /** Word boundaries before and after @ */ $regex = '/[EMAIL PROTECTED]/'; preg_match_all($regex, $text, $matches); var_dump($matches); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Components
On Tuesday 17 May 2005 07:27, Evert | Rooftop wrote: > Thank you I will look into it ;) but right now I'm also looking for the > php-developers' opinions. > So, what are your ideas about this? I strongly suggest that you look at the existing projects, see which one most closely matches your vision then start contributing to it. I recently had a look at the existing PHP framework projects and whilst there is no shortage of choice the one common attribute most share is the lack of adequate documentation. So rather than starting YAPF[1] go and make an existing one better! [1] Yet Another PHP Framework -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cache
On Mon, May 16, 2005 12:09 pm, Evert | Rooftop said: > $id1 $id2 and $id3 are when they are combined unique > > * Is there a chance of collision when MD5 is used on the id's and the > ids are long strings Yes. I think it's like 1 in 2 billion odds. If you can concatenate $id1$id2$id3 and get a guaranteed unique string, why not just use that as your unique string? There are, of course, several good reasons NOT do, which may or may not apply to your case: Exposing the id's would be a security flaw. Concatenating all three id's isn't really unique, after all. (EG all three are integer IDs from MySQL.) The concatenation of all three is WAY too long. > * Is serialize the fastest way to serialize ;) ? Probably, but not serializing at all, and stuffing the data directly into shared memory would perhaps be faster, at least as I vaguely understood the results of a thread on serialization on this very forum from a month or two ago. (Check archives for "serialize" "shared memory" and "Rasmus Lerdorf" who weighed in with a succinct explanation of how to avoid serialization if that performance hit was really a problem (unlikely as that was)) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cache
Interesting idea. Using three identifiers, as a key. md5() returns a 32 hex-digit value. That means that there are can only be a maximum of 3.4 * 10^38 possible outcomes for the md5(). This means that there there is a 1 in 340 chance of a collision between filenames. You could reduce those odds by a factor of three, by md5()ing each id seperately, and concat'ing the resultant md5files. Alternatively depending on your filesystem and the length of identifiers, you could simply concat, and urlencode the identifier. You could have a heck of a long filename though. I'd suggest taking a look at at the DB abstraction functions. They were designed for what you're doing. On 5/16/05, Evert | Rooftop <[EMAIL PROTECTED]> wrote: > Hi, > > I'm developing a cache system. Which works in pseude code, like this: > > class Cache { > > function Fetchdata($id1,$id2,$id3) { > > $id = md5($id1 . $id2 . $id3); > if ($this->DataIsExpired($id)) return false; >else return unserialize(file_get_contents($id)); > > } > > function storeData($data,$id1,$id2,$id3) { > >$id = md5($id1 . $id2 . $id3); >OpenTheFileAndWriteTheDataSerialized($data); > } > > } > > $id1 $id2 and $id3 are when they are combined unique > > * Is there a chance of collision when MD5 is used on the id's and the > ids are long strings > * Is file_get_contents the fastest way to open the file? > * Is serialize the fastest way to serialize ;) ? > * Are there any other things I should consider? (I'm aware of > file-locking issues, and have taken care of that) > > regards, > Evert > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Including SSI in your PHP scripts
On Mon, May 16, 2005 2:09 pm, Brian said: > Is there any possible way to use my sitewide include files which have SSI > in > them in a PHP script, such as phpBB, with PHP installed as a cgi? I see > there is a virtual() function which is intended to mimick apache's virtual > include, however it does not work as a CGI. Perhaps if you do: http://example.com/yourfile_withssi.shtml';?> It will chew up an extra HTTP connection on each require, but it should work. You'd be better off in the long run to re-code your SSI as PHP. There usually isn't anything that tricky in SSI that you can't do in PHP in minutes of re-coding... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP subscribe by email
Does anyone know of an open source script available in php to accomplish the following: A person sends an email to [EMAIL PROTECTED], the email address is saved to a mailing list. I have sendMail, Apache, PHP. Any ideas would be appreciated. Cheers Leonie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql + addslashes + stripslashes
On Mon, May 16, 2005 5:16 am, Pieter Breed said: > My problem is that I have a large array (without any funnies like > self-referencing) getting serialized. There are some funnies in the string > fields though (like `'`s etc). After making a roundtrip to the mysql > database, things start to get bad on me since I cannot unserialize the > text > anymore. This only happens for some of the arrays that I have. Other > arrays > with similar data can get serialized and unserialized just fine. > > I do suspect though, that the problem lies with how I am using addslashes > and how I am not using it. Any definitive help would be much appreciated. > > On 5/16/05, Petzo <[EMAIL PROTECTED]> wrote: >> My question is about the norlmal behaviour of PHP and MYSQL but I cant >> explain it without a simple example. Thank you for reading: >> >> I have the following code: >> >> > print $t = $_POST['txt']; >> print $t = addslashes($t); For the Record: If you have Magic Quotes "ON" then Magic Quotes has ALREADY called addslashes() on all your $_POST elements, including 'txt' If you then call addslashes() on that data, you are escaping the escape characters, which are then interpreted and stored by MySQL as data. And while extra extra cherries might be Good; extra extra addslashes is very Not Good. Consider this example: Magic Quotes ON | Magic Quotes OFF | Joe\'s Grill | Joe's Grill | (same code) | Joe\\\'s Grill | Joe\'s Grill /* insert into MySQL */ Now, the MySQL engine will INTERPRET the data you hand it: If there was NO addslashes at all (not shown above) with NO Magic Quotes and without you calling addslahes(), your query would look like: INSERT INTO something VALUES ('Joe's Grill') That is a SYNTAX ERROR because the ' inside of Joe's looks like the END MARKER for the string. If you had *ONLY* Magic Quotes or *ONLY* addslashes your query is Good: INSERT INTO something VALUES ('Joe\'s Grill') MySQL "sees" the \' and "knows" that is an embedded apostrophe and saves your data as "Joe's Grill" down in the guts of MySQL files. Note that MySQL does *NOT* *NOT* *NOT* store \' as part of the data. The \ is simply a marker that the MySQL engine "eats" once it understands that it means: "The following character is DATA, nor part of my SQL begin/end marker" Now, finally, if you have *BOTH* Magic Quotes *AND* addslashes() you get: INSERT INTO something VALUES ('Joe\\\'s Grill') Because Magic Quotes called addslashes, then *you* ALSO called addslashes, so *YOUR* addslashes escaped the escape characters that Magic Quotes had already added. MySQL then believes that both the \ and the ' inside of Joes are DATA and not part of your SQL end markers, and MySQL then stores: "Joe\'s Grill" which is *NOT* what you want in your data. You've got to check if Magic Quotes is ON, and if it is ON do *NOT* call addslashes() on your data. If you want the new-fangled Improved Way, you would detect that Magic Quotes is ON, use stripslashes() to un-do Magic Quotes' addslashes(), validate and scrub the data to be *SURE* it's kosher, and then call mysql_real_escape_string on the data to put back in the escape characters that Magic Quotes was putting in for you. ALSO: Note that if you take the data *AFTER* Magic Quotes, or addslashes() or mysql_real_escape_string, and then you put that data into a FORM or a HIDDEN INPUT or even a GET (URL with a ? in it) then you are going to get all messed up. Because you'll end up having Magic Quotes and/or addslashes and/or mysql_escape_real_string being called on it AGAIN which is pretty much the exact same problem outlined above. Data that has been escaped by Magic Quotes, or addslashes, or mysql_escape_real_string was intended to be put into MySQL. It was *NOT* intended to be dumped out to the browser in a FORM, nor in a URL, nor stored in Cookie, nor stored anywhere else *except* into MySQL. Hope that helps. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: why are session only working with cookies?
On Mon, May 16, 2005 6:24 am, Brian V Bonini said: > On Sat, 2005-05-14 at 22:44, Richard Lynch wrote: >> Using Cookies, or using URL, the session DATA will be stored on the >> server >> in /tmp files -- Unless you change php.ini to store them somewhere else, >> in which case, again, the Cookie and URL only holds the ID and all the >> data goes wherever you store it: database, shared memory, or an army of >> elves for all PHP cares. >> >> If trans_sid is "not working" for you, let's narrow this down: >> >> If you do this: >> > session_start(); >> echo "click me\n"; >> ?> >> >> Do you see something like "?PHPSESSID=a847hjfu3734hgfjgurur" tacked on >> to >> the end of the URL? >> >> If not, trans_sid is NOT enabled. > > I don't see the session id string, BUT, I do have session.use_trans_sid > = 1 set in php.ini and I did restart Apache after setting it.. I can see > the session file being created in /tmp but the values are not being > incremented as they should per script below. I'm going to stop reading here. :-) We know that somehow, some way, PHP is not using trans_sid, because your URL isn't showing the session ID. I dunno why, or what's in the php.ini that's not working, but don't try to go beyond this step with XML, or anything else that complicates life. The question now is why your php.ini changes are not taking effect. The usual reason is you edited *A* php.ini file, but not the one Apache is reading. Does show the same /path/to/php.ini as the one you edit? Whatever path it shows, that is where your php.ini has to be. [*] Edit the one that is there, or if there isn't one there, move the one you edited to *BE* there, or copy php.ini.dist from your PHP source (or Google for it) and use that. It's also remotely possible that apachectl incorrectly reported successful stop/start when, in fact, the old httpd is still running. This is rare, but I've had it happen to me. To be 100% certain, use 'stop' to stop Apache and then do: ps aux | grep httpd You should see only the "grep httpd" output, or no output at all. If you see a bunch of httpd process running, you didn't stop Apache. Find a way to stop Apache. Either use some other script to stop it (like whatever is in your /etc/rc.d/* files) or some other version of apachectl that works better with your httpd or... Hell, kill -9 it, I guess... Then start Apache, and triple check shows the php.ini file being read from the same directory you edited php.ini [*] I'm told that in Apache 2, there is a phpIniDir directive you can set in httpd.conf to tell PHP where to find php.ini instead of being forced to re-compile or (easier) move your php.ini where your PHP Module binary expects it. While that may be true, I'm sticking with an answer that fits all situations. Let him fight with phpIniDir some other day. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Components
> Thank you I will look into it ;) but right now I'm also looking for the > php-developers' opinions. > So, what are your ideas about this? AFAIK Prado recently won a fairly well respected PHP Contest. I think the results speak for themselves. On 5/17/05, Evert | Rooftop <[EMAIL PROTECTED]> wrote: > Jason Wong wrote: > > >On Tuesday 17 May 2005 03:24, Evert | Rooftop wrote: > > > > > > > >>I'm working on a component system and started with a component class. > >> > >> > > > >[...] > > > > > > > >>I want to give PHP to have a natural application-programming feel, > >>along with events and all (which is implemented by the PseudeModule > >>class). And after that, start off with a web-based PHP RAD tool. (which > >>I plan to do with either document.designMode or XUL) > >> > >> > > > >You might want to take a look at Prado http://www.xisc.com/ it seems to be > >exactly what you're trying to do and I believe it also has a RAD plugin > >for Dreamweaver. > > > > > > > Thank you I will look into it ;) but right now I'm also looking for the > php-developers' opinions. > So, what are your ideas about this? > > grt, > Evert > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Components
Rory Browne wrote: Thank you I will look into it ;) but right now I'm also looking for the php-developers' opinions. So, what are your ideas about this? AFAIK Prado recently won a fairly well respected PHP Contest. I think the results speak for themselves. Very interesting indeed =) I'll dig into it deeper. grt, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Components
So rather than starting YAPF[1] go and make an existing one better! [1] Yet Another PHP Framework I don't want to go on a rant here, but... I agree 100% with the above statement. So much code is out there that is free (however you want to define that). However, there isn't much code that is both free *and* of superior quality. I'm not just talking good; I'm talking about a program that is so excellent you would be foolish not to make use of it. PHP itself is one such example. Let me put this argument a different way: is it better for the computing world to have 3,000,000,000 different operating systems out there; or is it better for the computing world to have only 5 different operating systems, but they only need to be rebooted once a year? And you don't have to be the person that started a great project in order to be recognized for it. Yes, Rasmus started PHP eons ago and we are all very thankful for it. But who now gets the most recognition for their contributions to the PHP project? The names "Zeev" and "Andi" come to mind. So do "Stig Bakken", "Alan Knowles", "Marcus Boerger", and a whole host of others. So yeah... go make an existing project better. It will benefit us all in the long run, especially if you make your framework so good that *I* actually decide to use it. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Components
Jason Wong wrote: On Tuesday 17 May 2005 07:27, Evert | Rooftop wrote: Thank you I will look into it ;) but right now I'm also looking for the php-developers' opinions. So, what are your ideas about this? I strongly suggest that you look at the existing projects, see which one most closely matches your vision then start contributing to it. I recently had a look at the existing PHP framework projects and whilst there is no shortage of choice the one common attribute most share is the lack of adequate documentation. So rather than starting YAPF[1] go and make an existing one better! [1] Yet Another PHP Framework Yea I guess already have YAPF, but right now it totally runs my business and pays my bills, drinks, vacations and party's =) In a few months there will be an official release, right now I only make money of it by deploying it at clients and because my partners use it. My major partner www.collab.nl deploys it at every site where Flash Communication Server is needed, because flashcom can access it directly through AMF. So I think it has a future. Right now if the framework doesn't have a future, I'm not sure I have one, so I have to believe in it =) It has already increased my efficiency with at least 500% and this rate is still going up. grt, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cache
Rory Browne wrote: Interesting idea. Using three identifiers, as a key. md5() returns a 32 hex-digit value. That means that there are can only be a maximum of 3.4 * 10^38 possible outcomes for the md5(). This means that there there is a 1 in 340 chance of a collision between filenames. Thank you Rory, Richard and Jason you really helped me out. grt, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE
Those attributes is just when you use from some functions like highlight_file() and highlight_string() functions! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem with file download konqueror-internet explorer
hi all, i have the following code in a script whereby i send the filename to be downloaded. there is something that´s not working properly depending on the web browser (and probably the Operating system). now im working on php4,postrgesql,apache2 an mandrake 10 with Konqueror as my web browser. these are the scenarios: 1) when i call the page that is supposed to allow me to download the file i selected, with konqueror on the localhost, it works fine and on other mandrake - konqueror clients too. 2)when i do the same with an internet explorer on winxp the save as dialog comes up and when i choose the directory, the file that is actually downloaded is an html with only a few bytes. 3) when i deactivate the last line, readfile("$filename" ), on internet explorer with winxp, the internet explorer tries to open the file and show the contents in the browser. on mandrake with konqueror what happens is that it tries to download the file but says that connection was lost. any help would be highly appreciated!! thanx. if (isset($_POST['select'])) { $sel=$_POST['select']; $filename = "$sel"; $size = filesize($filename); header("Pragma: no-cache"); header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); header("Expires: 0"); header("Content-Transfer-Encoding: binary"); header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=$filename"); header("Content-Length: $size"); readfile("$filename"); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re-initiating an autostarted session
> But this code *still* does not destroy the cookie on the client side. > Are you doing that somewhere else? /* Look in the user contributed notes in the session-destroy page. There is a function to wipe out the session and has worked nicely for me! http://www.php.net/session_destroy */ -- [EMAIL PROTECTED] PHP rocks! "Knowledge is Power. Power Corrupts. Go to school, become evil" Disclaimer: Any disclaimer attached to this message may be ignored. However, I must say that the ENTIRE contents of this message are subject to other's criticism, corrections, and speculations. This message is Certified Virus Free -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP subscribe by email
Hello, on 05/16/2005 10:59 PM Leonie said the following: > Does anyone know of an open source script available in php to accomplish > the following: > > A person sends an email to [EMAIL PROTECTED], the email address is > saved to a mailing list. I have sendMail, Apache, PHP. Any ideas > would be appreciated. All you need to do is to associate a POP3 mailbox to that account and regularly poll that mailbox for incoming subscribe requests. You can fetch subscribe request messages for instance with a POP3 client like this one: http://www.phpclasses.org/pop3class -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] looking for pgEdit beta testers (PostgreSQL/PHP editor)
Hi, The latest beta release of pgEdit 1.1 includes support for PHP. If you use PHP and PostgreSQL, I would be very interested in your comments and feedback. Changes since pgEdit 1.0 are summarized here: http://pgedit.com/node/view/30 Thanks, John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] JavaScript+Html+PH
Hi, Can I use JavaScript+Html+PHP in a file? Function sort(){ Sort_asc(); } E-mail/MSN: [EMAIL PROTECTED]