Re: [PHP] varible
Chris W. Parker wrote: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ??on Monday, April 12, 2004 8:32 AM said: Is there a solution ( without open global ) , then send the value of the varible of list.php to view.php ? you can put the variables in $_SESSION or pass them via the querystring. hth, chris. Dear Chris, Would you mind to post me a sample about the useful of $_SESSION ? Many thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Form variable can't transfer to web page
Dear all PHP users, I have installed a new web server for PHP scripting. I wrote a PHP form page to submit some variables to another PHP pages. After submission, I found that the variables cannot be echoed out. The scripts are as simple like these, !-- hello2.php-- body ?php print form action=\hello.php\ method=\POST\\n; print Name: input type=\text\ name=\name\br\n; print input type=\submit\\n/form\n; ? !-- hello.php-- body ?php echo(Hello, $name!\n); echo(p\nWhat a bbold/b move this is!\n); ? /body What sort of problem relating to installation is it? Thanks for any inputs and advice. Morris Law IT Coordinator Science Faculty Hong Kong Baptist University /body -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] class design
hi... i was reading something on phppatterns website about class design. the reading said that its best to take say a db extraction class that you might want to write and instead of making one super huge class out of it called db or whatever it would be called but to turn that db class into a bunch of mini classes. so instead of having: class db { //connect functions //error functions //query functions //result functions //so on...} you should make: classes: DbConnect, DbError, DbQuery, DbResult and so on... was just wondering what the best way to do something like this is... i can see writing different classes for different sections of db use but unless my mind is super limmited right now that isnt really 100% possible or reasonable considering that some of those classes might only have 1 or 2 different functions in it... but then again i guess super small exact easy to figure out classes are the best?? for example class DBQuery would have in it: Insert, Delete, Update, Select, CheckTable, BackupTable, RestoreTable, TableList, DbList and so on... and maybe that could even be broken down to 2 classes in itself: DbQuery and DbInfo... ok time to stop babbling i guess... just trying to figure out how i should start going about this class writing deal and how to split the files/class defines... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form variable can't transfer to web page
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 13 Apr 2004 06:11, Morris Law wrote: Dear all PHP users, I have installed a new web server for PHP scripting. I wrote a PHP form page to submit some variables to another PHP pages. After submission, I found that the variables cannot be echoed out. The scripts are as simple like these, !-- hello2.php-- body ?php print form action=\hello.php\ method=\POST\\n; print Name: input type=\text\ name=\name\br\n; print input type=\submit\\n/form\n; ? Unless register_globals is off, you need to use the $_GET/$_POST super-globals to access request data. !-- hello.php-- body ?php echo(Hello, $name!\n); echo(p\nWhat a bbold/b move this is!\n); ? /body ..so this would become: ?php echo(Hello, {$_POST['name']}!\n); ? See the manual (http://www.php.net/manual/en/) if you don't understand any of the above constructs. What sort of problem relating to installation is it? Thanks for any inputs and advice. Elfyn - -- Elfyn McBratney, EMCB mailto:[EMAIL PROTECTED] http://www.emcb.co.uk/ PGP Key ID: 0x456548B4 PGP Key Fingerprint: 29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4 When I say something, I put my name next to it. -- Isaac Jaffee ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAe5XsaIgMKkVlSLQRAj7kAJ9G6NjjofohXAjYSQc7UZ2H6qeCdQCfXlBG eqykNp0EeSGn0oHlc+dXwx0= =ZkLv -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Web-Chat Software
Hi PHP people, I'm looking for PHP-based chat software. This is more of casual thing, otherwise I'd go out and write my own that works exactly the way I want, but I just don't have the time. I've tried several packages, and every single one has very significant browser problems. The problems go on and on and on... which chat programs (don't forget to mention the version you're using) have robust web-based chatting interfaces? I'd rather not try all of the hundreds of packages out there on several different browsers to find out! Also, this has gotta be PHP/MySQL only - no daemons please! The requirements are simple, so I don't need loads of complex stuff, simpler (interface-wise) is better here, but I most need something that plain works! Thanks, Galen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Call to undefined function: dbase_open()
Yes, the ./configure string includes enable-dbase. But that's the only place I see the word dbase on the page. John Nichel wrote: Joukje wrote: Hi, I tried to open a dbf with, but I got an error message: Call to undefined function: dbase_open(). PHP was compiled (on linux) with the option enable-dbase. Does anyone have an idea of what's wrong? Joukje When you look at a phpinfo() on that server, do you see the enable-dbase option in the ./configure string? And is it listed further down that page? -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 * *** -- __ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Leeuwarderstraatweg 109 Tel. +31-(0)513-629981 8441 PK Heerenveen Fax. +31-(0)513-640567 The Netherlands Email [EMAIL PROTECTED] Http://www.aris.nl _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web-Chat Software
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Galen, On Tuesday 13 Apr 2004 07:12, Galen wrote: Hi PHP people, I'm looking for PHP-based chat software. This is more of casual thing, otherwise I'd go out and write my own that works exactly the way I want, but I just don't have the time. I've tried several packages, and every single one has very significant browser problems. The problems go on and on and on... which chat programs (don't forget to mention the version you're using) have robust web-based chatting interfaces? I'd rather not try all of the hundreds of packages out there on several different browsers to find out! Also, this has gotta be PHP/MySQL only - no daemons please! The requirements are simple, so I don't need loads of complex stuff, simpler (interface-wise) is better here, but I most need something that plain works! I don't know of any 'mainstream' chat apps, but I have one I wrote for a client (gpl licensed) that's ~800 lines and uses SQLite as a data-source (would be simple to change to MySQL). If you want it, let me know and I'll put it up somewhere. But this is simple: the client refreshes every variable number of seconds (say 1), uses basic html (font, bold, italics, etc) and a bit of browser detection magic for frames and font depths. Something you could probably write in an hour ;) Elfyn - -- Elfyn McBratney, EMCB mailto:[EMAIL PROTECTED] http://www.emcb.co.uk/ PGP Key ID: 0x456548B4 PGP Key Fingerprint: 29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4 When I say something, I put my name next to it. -- Isaac Jaffee ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAe6S7aIgMKkVlSLQRAnNPAJ9CNK2zc5vgATMIWZrabWHc6rMadACeLq21 /+BIPzpNTu3mIIpuBaAotLU= =a7bf -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web-Chat Software
Elfyn, I've seen stuff like that. The problem comes in with the refreshing: 1) many browsers flicker when a refresh happens 2) refreshes must occur very frequently to make chat window feel responsive 3) frequent refreshes make window flicker annoyingly often on some browsers I'm poking around looking for something with a little more advanced approach if possible. Anyone else got suggestions? -Galen On Apr 13, 2004, at 1:28 AM, Elfyn McBratney wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Galen, On Tuesday 13 Apr 2004 07:12, Galen wrote: Hi PHP people, I'm looking for PHP-based chat software. This is more of casual thing, otherwise I'd go out and write my own that works exactly the way I want, but I just don't have the time. I've tried several packages, and every single one has very significant browser problems. The problems go on and on and on... which chat programs (don't forget to mention the version you're using) have robust web-based chatting interfaces? I'd rather not try all of the hundreds of packages out there on several different browsers to find out! Also, this has gotta be PHP/MySQL only - no daemons please! The requirements are simple, so I don't need loads of complex stuff, simpler (interface-wise) is better here, but I most need something that plain works! I don't know of any 'mainstream' chat apps, but I have one I wrote for a client (gpl licensed) that's ~800 lines and uses SQLite as a data-source (would be simple to change to MySQL). If you want it, let me know and I'll put it up somewhere. But this is simple: the client refreshes every variable number of seconds (say 1), uses basic html (font, bold, italics, etc) and a bit of browser detection magic for frames and font depths. Something you could probably write in an hour ;) Elfyn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web-Chat Software
I got this from the manual (i think): ?php ob_end_flush(); while (10==10) { // cool while loop // get here som lines from a dbase or something flush(); sleep(1); } ? This just continues a while loop until the script times out. We currently use the refresh method but evaluating this as an alternative. We call the database every second to retrieve any new lines of chat in the room. You'll need to play around with a running id to ensure you only get the latest lines. Just a thought. Otherwise consider an applet. Check sourceforge, there are quite a number. Good luck. - Original Message - From: Galen [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Elfyn McBratney [EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 3:38 PM Subject: Re: [PHP] PHP Web-Chat Software Elfyn, I've seen stuff like that. The problem comes in with the refreshing: 1) many browsers flicker when a refresh happens 2) refreshes must occur very frequently to make chat window feel responsive 3) frequent refreshes make window flicker annoyingly often on some browsers I'm poking around looking for something with a little more advanced approach if possible. Anyone else got suggestions? -Galen On Apr 13, 2004, at 1:28 AM, Elfyn McBratney wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Galen, On Tuesday 13 Apr 2004 07:12, Galen wrote: Hi PHP people, I'm looking for PHP-based chat software. This is more of casual thing, otherwise I'd go out and write my own that works exactly the way I want, but I just don't have the time. I've tried several packages, and every single one has very significant browser problems. The problems go on and on and on... which chat programs (don't forget to mention the version you're using) have robust web-based chatting interfaces? I'd rather not try all of the hundreds of packages out there on several different browsers to find out! Also, this has gotta be PHP/MySQL only - no daemons please! The requirements are simple, so I don't need loads of complex stuff, simpler (interface-wise) is better here, but I most need something that plain works! I don't know of any 'mainstream' chat apps, but I have one I wrote for a client (gpl licensed) that's ~800 lines and uses SQLite as a data-source (would be simple to change to MySQL). If you want it, let me know and I'll put it up somewhere. But this is simple: the client refreshes every variable number of seconds (say 1), uses basic html (font, bold, italics, etc) and a bit of browser detection magic for frames and font depths. Something you could probably write in an hour ;) Elfyn -- 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] class design
Apr 13 at 2:24am, Andy B wrote: instead of making one super huge class.. turn that class into a bunch of mini classes. DbConnect, DbError, DbQuery, DbResult and so on... Right; chances are if you had all the functionality in one class, it's going to be pretty identical to writing it without using a class. Above you've listed several logical classes you might use with databases. They make perfect sense because they represent tangible objects as you might think of the process in an abstract sense. I think breaking down the parts of the real-world process is a great start to approach OO design. i can see writing different classes for different sections of db use but unless my mind is super limmited right now that isnt really 100% possible or reasonable considering that some of those classes might only have 1 or 2 different functions in it... but then again i guess super small exact easy to figure out classes are the best?? First, there is nothing unreasonable or impossible about a class with one or two methods. If it's a logical delineation, that seems perfectly fine. In most cases, you might rough it out like that in your mind, but as you are writing the code (or next week), new methods will occur to you. Since you have created an object that makes sense, you've got an inherent place to put that newly conceived code. Better to realize your DBQuery object could use a method to write a SELECT query than to realize your DBConnection object has a bunch of methods that actually should become a DBQuery object that you didn't create because it seemed too lean. To be more specific, breaking these methods into logically grouped classes enables you to structure your code in a way that leverages OO. Rather than manually handling a query result value, you can encapsulate a query result into an object and have your DBQuery object return DBResult objects. Imagine a function that returns an array. To make use of that array result, the coder you must know what the array result means and write code that incorporates that logic, every time it's used. Your code needs to, for example, pull out a certain key to find a value within the result data. If that key changes, then so too must all that code. Compare this with returning an object--now your code does not need to work with the structural nature of the result, it must only operate the object's interface to fetch the value. This 'encapsulation' allows you to freely alter the inner workings of an object without having to alter any of the code that uses the object (provided you don't break the interface). Illustratively, compare these arbitrary (and utterly generic) examples: $x = $result['fields']['display']; // OR $x = $result-getField('display'); The skeptic may not see a difference, however, suppose your results become more complex and now you'd like to change the structure of your result... $x = $result['mydata']['fields']['display']; Handling the array yourself now becomes much more overhead, because you've got to go change all the occurrences. Whereas, encapsulated in an object, the code would not need to change assuming you preserved the interface. In many ways, returning an array is not much different from returning an object, except the object has functionalities (methods) that operate on the data, rather than relying on your knowledge of the data returned. Now the coder needs only use the object's interface. So you see, an object is merely a complex data structure that 'does stuff'. The point being, objects can interact in a way that more closely represents the actual concept rather than arbitrary code required to interpret the data in a way that relies on the coder's knowledge of the structural content. Furthermore, the object's data structure can now be changed centrally, with no ill effects on the rest of your code. As for a strategy to approach the design, just begin thinking of the problem in the abstract. How do you represent the process in more human terms? What would the data do, if it had a brain? Model your objects against that paradigm, and the code will begin to write itself. Okay, maybe not quite, but it's much easier than it seems because the code flows from real-world logic processes rather than being dictated by programmatic issues you may need to address without OO. Try it out, think conceptually. Get crazy: the more creative you get with these ideas, the more neat things you'll find to do with OO. Often this design process may require multiple revisions until you hit the right balance. Like any design effort, it's worth the time--and gets easier. --Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web-Chat Software
Apr 13 at 4:04pm, Terence wrote: ?php ob_end_flush(); while (10==10) { // cool while loop /* ... */ flush(); sleep(1); } ? Not sure I see the efficacy of this approach for the problem at hand, but what gets me is the cool while loop :) 10==10 is always going to evaluate true, and I realize that this is an infinite loop (until script times out) but why not just while(true) { } or, more commonly, while(1) { } ...? That's a rhetorical question, by the way :) --Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SsH
Does anybody know if theirs a function or something for php that when I click a button it automatically sshes into a box runs a script and then exits? Ive seen it been done in java but php would be better. Kind Regards Brent Clark
[PHP] Javascript help
Hi all I know this is not a Javascript mailing list, and I do apologies. I have this problem where in my php and I know very little javascript that I execute a function to create a window. But I need to know if anyone knows of the function to kill that window, once one of my other functions is finished Anyone know of a javascript mailing list, that what I would not have to post the wrong thread to this mailing list. Kind Regards and thank you Brent Clark
Re: [PHP] Javascript help
Hello Brent, Tuesday, April 13, 2004, 11:28:55 AM, you wrote: BC I have this problem where in my php and I know very little BC javascript that I execute a function to create a window. BC But I need to know if anyone knows of the function to kill BC that window, once one of my other functions is finished When your PHP function has finished, just get it to output window.close and the window will shut down. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] SsH
Does anybody know if theirs a function or something for php that when I click a button it automatically sshes into a box runs a script and then exits? Ive seen it been done in java but php would be better. `ssh [EMAIL PROTECTED] scriptname` Something like that will work using backticks, the only problem is the password which can be resolved using keys... Till We Meet Again... Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150 (Switchboard) +27 (0) 11 259-1019 (Fax) +27 (0) 83 761-0240 (Mobile) [EMAIL PROTECTED] (EMail) http://chansen.aspivia.com (Web) Registered Linux user number 343424 on http://counter.li.org/ We have seen strange things today! Luke 5:26 This message contains information intended for the perusal, and/or use (if so stated), of the stated addressee(s) only. The information is confidential and privileged. If you are not an intended recipient, do not peruse, use, disseminate, distribute, copy or in any manner rely upon the information contained in this message (directly or indirectly). The sender and/or the entity represented by the sender shall not be held accountable in the event that this prohibition is disregarded. If you receive this message in error, notify the sender immediately by e-mail, fax or telephone and return and/or destroy the original message. The views or representations contained in this message, whether express or implied, are those of the sender only, unless that sender expressly states them to be the views or representations of an entity or person, who shall be named by the sender and who the sender shall state to represent. No liability shall otherwise attach to any other entity or person. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP time zone
how can get a specific time zone, not the server time. example: if the server time is 13:15:46 I need to output that time +5hours so 18:15:46 because the hosting server time is not my local or other area time.. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP time zone
Best: use gmmktime() and add the required offset by: $time_here = gmmktime() + ( $offset * 60 * 60 ) ; how can get a specific time zone, not the server time. example: if the server time is 13:15:46 I need to output that time +5hours so 18:15:46 because the hosting server time is not my local or other area time.. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQLite /how can I install on an Apache virtual host?
Many thanks. Several good points you made. I should recompile rather than use just any old binary. I found it on the net. I wasn't clear how to tell the php.ini how to interpret the extension. I can't to run command lines on the host, so its a bit of a bother to compile stuff there. I've had some success using phpshell. Curt Zirzow wrote: * Thus wrote Al ([EMAIL PROTECTED]): I've got a website on an Apache virtual host and would like to install the SQLite library. Can someone give me a brief outline of what I need to do or point me to a good writeup? some info on sqlite: http://php.net/sqlite You can compile and install the extension from the source located here: http://pecl.php.net/sqlite My host makes it tough to run command line code to make files, etc. I've found a a Linux binary [sqlite.so]. And, they provide a means to customize the php.ini. You found it on your virtual host machine? or somewhere on the internet? I wouldnt trust any old .so laying around somewhere. If its on your virtual host machine already then you can just add this to your php.ini (assuming its in your extension path) extension=sqlite.so Curt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] intermittent problems using ftp_get ...Help!
Hi all Can anyone tell me what would cause intermittent problems downloading files using ftp_get. I have a php file that regularly connects to a number of servers in turn using php's (ftp functions) and downloads files using ftp_get(...). This usually works but often it just fails to download a file and ends up giving a timeout error. Also it seems it can be any file. I just cannot understand why when I run the script a number of times in sucsession this will sometimes but not others. Any ideas? p.s. The files I am downloading are '.sql' text files. Thanks K -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP time zone
Hi, Tuesday, April 13, 2004, 9:29:19 PM, you wrote: n how can get a specific time zone, not the server time. n example: n if the server time is 13:15:46 I need to output that time +5hours n so 18:15:46 n because the hosting server time is not my local or other area time.. n thanks I have this in an auto_prepend file or you can put it before using any of the date() functions putenv('TZ=Australia/Brisbane'); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] intermittent problems using ftp_get ...Help!
Maybe the max number of connections to the FTP server is reached? My provider allows only up to 3 FTP connections at the same time which causes similar problems to my scripts :-) -- red [...] Can anyone tell me what would cause intermittent problems downloading files using ftp_get. I have a php file that regularly connects to a number of servers in turn using php's (ftp functions) and downloads files using ftp_get(...). This usually works but often it just fails to download a file and ends up giving a timeout error. Also it seems it can be any file. I just cannot understand why when I run the script a number of times in sucsession this will sometimes but not others. Any ideas? [...] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Call to undefined function: dbase_open()
May be you should load the corresponding extension in your php.ini and restart the web server. Something like this: extension=dbase.so Then look back at your phpinfo(), you should see information about that module. -William El mar, 13-04-2004 a las 02:26, Joukje de Haan escribió: Yes, the ./configure string includes enable-dbase. But that's the only place I see the word dbase on the page. John Nichel wrote: Joukje wrote: Hi, I tried to open a dbf with, but I got an error message: Call to undefined function: dbase_open(). PHP was compiled (on linux) with the option enable-dbase. Does anyone have an idea of what's wrong? Joukje When you look at a phpinfo() on that server, do you see the enable-dbase option in the ./configure string? And is it listed further down that page? -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 * *** -- __ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Leeuwarderstraatweg 109 Tel. +31-(0)513-629981 8441 PK Heerenveen Fax. +31-(0)513-640567 The Netherlands Email [EMAIL PROTECTED] Http://www.aris.nl _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Getting the barcode
Hi All I have asked this question before, and the solution was partyly solved, I hope hope someone can help me again. I have a binary file ( readbar ) that I execute with exec(). and it give me an output as so: readbar file Key1 is 4 barcodes found Code 39-10301535 Code 39-10301536 Code 39-10301537 Code 39-10301538 I need to get all the numbers after the - I there is a carriage return after the number. My preg_match is like so if(preg_match(#([0-9]{8})# , $key1, $result)){ which works for only the first top number, but not for the rest. If there away to get this it an array or do a grep on this. There can be many lines that begin with Code 39- If somone can assist that would be most appreciated. Im out of ideas on this one Kind Regards and thank you Brent Clark
RE: [PHP] Getting the barcode
[snip] Key1 is 4 barcodes found Code 39-10301535 Code 39-10301536 Code 39-10301537 Code 39-10301538 [/snip] wouldn't substr work? http://www.php.net/substr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Getting the barcode
[snip] Hi I dont think so. This is basically one file read, that outputs many results. with a carriage return at the end So every line begins with Code39 I did a gettype() and I got a result of string. [/snip] If each line begins with Code39- and looks like Code39-10301535 $theBarCode = substr($line, 0, 8); echo $theBarCode . \n; output is 10301535 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Tables in a pdf files
Hi, I would like to generate a table in a pdf file. Typically my application is : i have a directory of members which is stored as an sql table and i would like to offer the visitor the possibility to download this directory as a pdf file. So the pdf file should just be an organised list of members put into a table. Thank's, i hope my request is clear and the answer will come soon. / Jean-Marie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Tables in a pdf files
I would like to generate a table in a pdf file. These appeared on Google when I typed 'PHP PDF' http://www.php.net/manual/en/ref.pdf.php http://www.easysw.com/htmldoc/pdf-o-matic.php == This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure. == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tables in a pdf files
On Apr 13, 2004, at 9:10 AM, Jean-Marie Ferdègue wrote: Hi, I would like to generate a table in a pdf file. I would recommend the PDF class you can find here: http://www.ros.co.nz/pdf/ It has support for tables and is pretty easy to use, from my experience. Previously, I had used another solution called htmldoc (you can probably find it on Google) that will convert HTML to a PDF file, but it's not as easy to deal with, and the PDFs it creates are, in my opinion, not nearly as nice as the ones created by PDF class above. Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Tables in a pdf files
Also take a look at the fpdf class, it is a pdf generator written in PHP that is free for use. Implenting the PDF library in PHP results in slightly lower performance but greater portability because the client doesn't need third party libraries installed and free commercial use, pdflib requires you to purchase a license for commercial use. There homepage is: http://www.fpdf.org A tutorial that specifically deals with generating tables using this class is available at: http://www.fpdf.org/en/tutorial/tuto5.htm Jason -Original Message- From: Jean-Marie Ferdègue [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 7:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Tables in a pdf files Hi, I would like to generate a table in a pdf file. Typically my application is : i have a directory of members which is stored as an sql table and i would like to offer the visitor the possibility to download this directory as a pdf file. So the pdf file should just be an organised list of members put into a table. Thank's, i hope my request is clear and the answer will come soon. / Jean-Marie -- 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] how do I make a script wait ?
I have now set the sleep to 10 seconds and it is still executing the lower code before finishing doing the search of the database it must be sleeping during the search and so the sleep command has no effect I need to make it wait before executing the array sorting any workaround ? -- www.phpexpert.org/truefaith.htm True Faith is not just when you believe in God and yourself, it is when others begin to believe in you as well - Damian John Paul Brown 2004 Jason Sheets [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Take a look at the set_time_limit function, it will allow you to set the maximum execution time to a greater value, note that when you call the function it sets the max time and resets the timer so if you set it to 100 seconds 20 seconds into the script the script will run for a maximum of 120 seconds. http://us3.php.net/manual/en/function.set-time-limit.php Jason -Original Message- From: David Risner [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 9:42 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] how do I make a script wait ? There is a default maximum run time for scripts of 30 seconds (it is max_execution_time in the php.ini file), so unless you have changed this, you might be running into the maximum run time. -- David Risner On Tue, 13 Apr 2004 04:06:51 +0100, Damian Brown [EMAIL PROTECTED] said: The code is shown below there is now a delay before the page is displayed of 50 secs it must be hitting the sleep command as it searches, and so stops searching the database table is there any workaround ? echo Your Search Results are as followsp; ? table width=100% border=2 cellspacing=0 cellpadding=1 tr bgcolor=#00A5C6 tdTitle/td tdURL/td tdDescription/td tdfor Keyword/td /tr ?php $result=mysql_query(SELECT * FROM `searchdata` WHERE 1 AND `keyword` = . '$thissearchterm' ); $key=1 ; while ($row=mysql_fetch_row($result)){ ? ?php mysql_query(INSERT INTO searchsorting (username,bid) VALUES ( ' $row[5] ' , ' $row[6] ' )); $a = array( $key = $row[6] ); $key=$key + 1 ; ? ?php } ; //end of while loop ? ?php sleep (50) ; function cmp ($a, $b) { if ($a == $b) return 0; return ($a $b) ? -1 : 1; } // $a = array (0.10, 0.30, 5, 6, 1); usort ($a, cmp); echo Bid Prices and Positionsbr ; while (list ($key, $value) = each ($a)) { echo Position $key: £$value ; } echo a href=http://www.phpexpert.org/ppcsearch/Become a Bidder/a ; ? /table -- www.phpexpert.org/truefaith.htm True Faith is not just when you believe in God and yourself, it is when others begin to believe in you as well - Damian John Paul Brown 2004 Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, Use the sleep() function. Cheers, -Ryan On 4/13/2004 4:42:56 AM, Damian Brown ([EMAIL PROTECTED]) wrote: I am writing a script that searches through a database table, and then there is an array function below the searching, but the array function gets executed before the database table searching finishes and I want it to wait until the database has been searched before executing the array code Thanks in Advance -- www.phpexpert.org/truefaith.htm True Faith is not just when you believe in God and yourself, it is when others begin to believe in you as well - Damian John Paul Brown 2004 -- 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 -- 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] how do I make a script wait ?
* Thus wrote Damian Brown ([EMAIL PROTECTED]): I have now set the sleep to 10 seconds and it is still executing the lower code before finishing doing the search of the database it must be sleeping during the search and so the sleep command has no effect I need to make it wait before executing the array sorting any workaround ? php isn't running the sort function before its done with the code. Is your select statment comming back with any data? Is there an error with the select statement? Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how do I make a script wait ?
* Thus wrote Damian Brown ([EMAIL PROTECTED]): The code is shown below ... $key=1 ; while ($row=mysql_fetch_row($result)){ ? ?php mysql_query(INSERT INTO searchsorting (username,bid) VALUES ( ' $row[5] ' , ' $row[6] ' )); $a = array( $key = $row[6] ); $key=$key + 1 ; ? btw, $a will only have one element in it no matter how many results are returned from your sql statement. You want somethng like this: $a[$key++] = $row[6]; //$key=$key + 1; *note the $key increment also. HTH, Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] intermittent problems using ftp_get ...Help!
Keith wrote: Hi all Can anyone tell me what would cause intermittent problems downloading files using ftp_get. I have a php file that regularly connects to a number of servers in turn using php's (ftp functions) and downloads files using ftp_get(...). This usually works but often it just fails to download a file and ends up giving a timeout error. Also it seems it can be any file. an offending firewall is a possibility -- Raditha Dissanayake. - http://www.radinks.com/print/upload.php SFTP, FTP and HTTP File Upload solutions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] intermittent problems using ftp_get ...Help!
Hi Red Thanks, I had wondered about connection limitations, but frankly I'd be surprised if that were the problem. But as we are on this subject, I use proftpd and the MaxClients value is not set yet. As I understand it I can set MaxClients to 'none' which removes any maximum restriction. But what is the default number of connections allowed? My proftpd version 1.2.5 Server = Cobalt Raq4 Thanks again K Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Maybe the max number of connections to the FTP server is reached? My provider allows only up to 3 FTP connections at the same time which causes similar problems to my scripts :-) -- red [...] Can anyone tell me what would cause intermittent problems downloading files using ftp_get. I have a php file that regularly connects to a number of servers in turn using php's (ftp functions) and downloads files using ftp_get(...). This usually works but often it just fails to download a file and ends up giving a timeout error. Also it seems it can be any file. I just cannot understand why when I run the script a number of times in sucsession this will sometimes but not others. Any ideas? [...] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] intermittent problems using ftp_get ...Help!
Well the servers do indeed have firewalls! But why would this be intermittent and how can I get around this WITHOUT removing the firewall :) Thanks K Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Keith wrote: Hi all Can anyone tell me what would cause intermittent problems downloading files using ftp_get. I have a php file that regularly connects to a number of servers in turn using php's (ftp functions) and downloads files using ftp_get(...). This usually works but often it just fails to download a file and ends up giving a timeout error. Also it seems it can be any file. an offending firewall is a possibility -- Raditha Dissanayake. - http://www.radinks.com/print/upload.php SFTP, FTP and HTTP File Upload solutions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Recomedation for 2 scripts
Hi, I'm looking for 2 scripts and was wondering if anybody can recomend them: 1. Ticketing system - I found one that seems pretty good after spending quite some time on hot scritps and google, its called RT and can be downloaded off bestpractical.com/rt/ thing I dont like is it is very dependant on PERL and certain versions of PERL...Know of any free PHP ones? 2. An affiliate system - Hot scripts has a load of them and the free ones arn't really all that good and the paid ones are pretty hard to judge...can you recomend one(or two) based on features and performance? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] intermittent problems using ftp_get ...Help!
Keith wrote: Well the servers do indeed have firewalls! But why would this be intermittent and how can I get around this WITHOUT removing the firewall :) FTP operates on two ports, the first is for the control connection and it's on 21, the second one is for data connections and it's chosen randomly (in most cases), the port chosen may be blocked by the firewall. In fact it's quite common to see firewalls that have port 21 open but the firewall administrator has completely forgotten about the data connection. Hi all Can anyone tell me what would cause intermittent problems downloading files using ftp_get. I have a php file that regularly connects to a number of servers in turn using php's (ftp functions) and downloads files using ftp_get(...). This usually works but often it just fails to download a file and ends up giving a timeout error. Also it seems it can be any file. -- Raditha Dissanayake. - http://www.radinks.com/print/upload.php SFTP, FTP and HTTP File Upload solutions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Recomedation for 2 scripts
Hi Ryan, Try this site: http://Php.resourceindex.com It's normally got most things you might need Nunners -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: 13 April 2004 15:58 To: [EMAIL PROTECTED] Subject: [PHP] Recomedation for 2 scripts Hi, I'm looking for 2 scripts and was wondering if anybody can recomend them: 1. Ticketing system - I found one that seems pretty good after spending quite some time on hot scritps and google, its called RT and can be downloaded off bestpractical.com/rt/ thing I dont like is it is very dependant on PERL and certain versions of PERL...Know of any free PHP ones? 2. An affiliate system - Hot scripts has a load of them and the free ones arn't really all that good and the paid ones are pretty hard to judge...can you recomend one(or two) based on features and performance? Thanks, -Ryan -- 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] intermittent problems using ftp_get ...Help!
* Thus wrote Keith ([EMAIL PROTECTED]): Well the servers do indeed have firewalls! But why would this be intermittent and how can I get around this WITHOUT removing the firewall :) ftp servers behind firwalls tend to require PASV to be on. check out http://php.net/ftp_pasv Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Getting the barcode
it's preg_match_all Am Dienstag, 13. April 2004 15:05 schrieb Brent Clark: Hi All I have asked this question before, and the solution was partyly solved, I hope hope someone can help me again. I have a binary file ( readbar ) that I execute with exec(). and it give me an output as so: readbar file Key1 is 4 barcodes found Code 39-10301535 Code 39-10301536 Code 39-10301537 Code 39-10301538 I need to get all the numbers after the - I there is a carriage return after the number. My preg_match is like so if(preg_match(#([0-9]{8})# , $key1, $result)){ which works for only the first top number, but not for the rest. If there away to get this it an array or do a grep on this. There can be many lines that begin with Code 39- If somone can assist that would be most appreciated. Im out of ideas on this one Kind Regards and thank you Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: commercial autoresponses (was Re: [PHP] Wanted: ...)
At 16:40 12-04-2004, David T-G wrote: Hi again, all -- ...and then David T-G said... % ... % Any recommendations? I was amazed to receive from this - an entirely-in-German post apparently wishing me a happy Easter - a note from Credit Suisse letting me know they'd process my request - a promise from Astral Security and Finance to get back to me and wondered for a moment if I'd really sent it to the right place! Have I really missed so much in a month of being too busy to post on the list? I'd prefer that to this, which I keep getting on basically everything I send to the PHP lists: Your message was not delivered to: [EMAIL PROTECTED] for the following reason: Diagnostic was Unable to transfer, Message timed out Information Message timed out Rene -- Rene Brehmer aka Metalbunny ~ If you don't like what I have to say ... don't read it ~ http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums @ http://forums.metalbunny.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] intermittent problems using ftp_get ...Help!
But that's just it , I am using ftp_pasv($idconn, true) and yes I have placed it after the connection and login statement. Any other ideas? K Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Keith ([EMAIL PROTECTED]): Well the servers do indeed have firewalls! But why would this be intermittent and how can I get around this WITHOUT removing the firewall :) ftp servers behind firwalls tend to require PASV to be on. check out http://php.net/ftp_pasv Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] intermittent problems using ftp_get ...Help!
Keith wrote: But that's just it , I am using ftp_pasv($idconn, true) and yes I have placed it after the connection and login statement. refer my other post about random ports. -- Raditha Dissanayake. - http://www.radinks.com/print/upload.php SFTP, FTP and HTTP File Upload solutions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] converting string to monetary format
Simple problem... I want to manipulate with PHP function to get desired output below. $var=59.9 Desired Output: $var=59.90 I thought number_format would do the trick but no way, unless I just missed something.. ? Any quick way to do this using a built in PHP function? I could do it the long way but not really my intereste ATM. Thanks, Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] converting string to monetary format
[snip] Simple problem... I want to manipulate with PHP function to get desired output below. $var=59.9 Desired Output: $var=59.90 I thought number_format would do the trick but no way, unless I just missed something.. ? [/snip] it is number_format http://www.php.net/number_format $var=59.9; $var = number_format($var, 2, '.', ''); echo $var; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] converting string to monetary format
it is number_format http://www.php.net/number_format pedantry You can also use either of the following: http://us2.php.net/manual/en/function.sprintf.php http://us2.php.net/manual/en/function.printf.php echo sprintf( '%.02f', 59.9 ); /pedantry Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Store e-mail in DB
- Original Message - From: Raditha Dissanayake To: MadHD Cc: [EMAIL PROTECTED] Sent: Saturday, April 10, 2004 3:53 PM Subject: Re: [PHP] Store e-mail in DB MadHD wrote: Hi, i'm searching some script that can read e-mails with attachments from an account pop3 and that store them in a db. Michelle has an informative post on how to do this. I am proposing an alternative. If you are setting up a new system you might want to consider using IMAP since it's pretty much like DB+POP3. (supports searching etc) I will search about this informative... So, i have found another solution. I'm testing the imap class of the PEAR and appear that is ok for that i want. Tkank you. Heber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Recomedation for 2 scripts
Hey, Tried that, hot scripts, google, script search etc...need recomendation/s on what you think is good. Cheers, -Ryan On 4/13/2004 5:02:33 PM, Nunners ([EMAIL PROTECTED]) wrote: Hi Ryan, Try this site: http://Php.resourceindex.com It's normally got most things you might need Nunners -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: 13 April 2004 15:58 To: [EMAIL PROTECTED] Subject: [PHP] Recomedation for 2 scripts Hi, I'm looking for 2 scripts and was wondering if anybody can recomend them: 1. Ticketing system - I found one that seems pretty good after spending quite some time on hot scritps and google, its called RT and can be downloaded off bestpractical.com/rt/ thing I dont like is it is very dependant on PERL and certain versions of PERL...Know of any free PHP ones? 2. An affiliate system - Hot scripts has a load of them and the free ones arn't really all that good and the paid ones are pretty hard to judge...can you recomend one(or two) based on features and performance? Thanks, -Ryan -- 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] SsH
Brent -- ...and then Brent Clark said... % % Does anybody know if theirs a function or something for php that when I % click a button it automatically sshes into a box runs a script and then % exits? Ive seen it been done in java but php would be better. If you want to connect from the *server* running php to some other box, just use a system() call (once, of course, you have set up the keys so that you can pop over with no password). If you want to connect from the PC running the browser, then you'll at least need an ssh program on your box, and that java version may have implemented that connection for you. % % Kind Regards % Brent Clark HTH HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
AW: AW: [PHP] After calling a Function the Script aborts withoutanyerror :-\
to show all the code would be too much but some parts where the error happens are here. now i tried with function_exists.. define('SMARTY_DIR', 'smarty/'); require_once(SMARTY_DIR.'Smarty.class.php'); require_once(ichain/ua_index.php); require_once(framework/framework.php); require_once(framework/dbconn.php); var_dump( function_exists('fw_db_connect') ); //true included from file framework/dbconn.php echo br; var_dump( function_exists('fw_validate_kostenstelle') ); //false included from file framework/framework.php echo br; var_dump( function_exists('ua_getConnect') ); //false included from file ichain/ua_index.php die(here); $ua_lnk = ua_getConnect();// here the script would abort because the function doesn't exist, // but it does well as you can see in the comments the functions exist and are spelled correctly (copy paste). the thing is in all included files are many functions. the problem here is the first 2 work and functions i want to call that are coded after line 100 or sth. like this in the incldued files can't be found. but i don't know why. now i tried get_included_files() that shows me all the files that i wanted to include correctly. but in the list of get_defined_functions(), in the user list are just some, but not all the functions, that are really in some files, for example in the file ua_index.php the function ua_getConnect(); if you need more source code, just tell me, because i still don't have any idea what that strange beahviour could caused by. thanks a lot. Ben -Ursprüngliche Nachricht- Von: William Lovaton [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 13. April 2004 01:06 An: [EMAIL PROTECTED] Betreff: Re: AW: [PHP] After calling a Function the Script aborts withoutanyerror :-\ Mmmm... very strange... can you print_r() the array returned by get_defined_functions(), get_included_files() and get_declared_classes() and see if every thing is going on right?? Use the last one if your included file define classes too. Can we review the code in the mailing list?? is it big? -William El lun, 12-04-2004 a las 17:51, Ben escribió: But what if the function you are callign doesn't need any passed variable like $bar = foo(); ??? the more strange thing is, on a lamp environment (SUSE 9.0, PHP 4.3.5), the scripts worked, on a wamp (win2k, same PHP) and on a LAMP RH9 same PHP it didn't work. -Ursprüngliche Nachricht- Von: William Lovaton [mailto:[EMAIL PROTECTED] Gesendet: Montag, 12. April 2004 22:33 An: [EMAIL PROTECTED] Betreff: Re: [PHP] After calling a Function the Script aborts without anyerror :-\ El lun, 12-04-2004 a las 14:12, Don Read escribió: Sometimes I have this problems too, no matter if that setting is on. If the error occurs within a table element on a web page, Mozilla won't display because it's waiting for the '/tr/table' to begin figuring out the display properties. I know that but this is not the case, I dont mix HTML with PHP, I use Smarty and the error is generated inside business logic functions. Sometimes it occurs when calling a method in a null variable. This usually shows the error message, but sometimes it doesn't and I don't know why. I use allow_call_time_pass_reference = Off and sometimes this triggers the problem: $x = foo(bar); $y = foo($obj-getBar()); With this setting in off he two lines of code sometimes fails and some others doesn't fail. But when it fails it does it completely silent. To workaround the problem I have to do: $tmp = bar; $x = foo($tmp); or $tmp = $obj-getBar(); $y = foo($tmp); Regards, -William -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- __ Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.656 / Virus Database: 421 - Release Date: 09.04.2004 --- __ Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.656 / Virus Database: 421 - Release Date: 09.04.2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I need some help And the people at the Bug section pointed me to you
Hi! ...and then [EMAIL PROTECTED] said... % % Im a collage student Now that's an interesting one... ... % on the make install is where I got the error ... % % Reproduce code: % --- ... % chmod 755 /www/modules/libphp5.so % chmod: failed to get attributes of `/www/modules/libphp5.so': No such % file or directory % apxs:Error: Command failed with rc=65536 % . % make: *** [install-sapi] Error 1 Please forgive the perhaps silly question. Are you root? More properly, do you have permission to write under /www? HTH HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
[PHP] Re: Javascript help
to open window: window.open ('test.html','winname') to close window: window.open ('','winname').close() Brent Clark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I know this is not a Javascript mailing list, and I do apologies. I have this problem where in my php and I know very little javascript that I execute a function to create a window. But I need to know if anyone knows of the function to kill that window, once one of my other functions is finished Anyone know of a javascript mailing list, that what I would not have to post the wrong thread to this mailing list. Kind Regards and thank you Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Web-Chat Software
Hi, You guys are all making some great suggestions. I think that javascript option (hidden frame) would work pretty well. I've done stuff like that on a project, though for a different purpose. However, I'm not really looking to write my own chat software right now. Maybe I will if it's absolutely necessary, but if I have to, it'll be a while before I get around to it. So to restate my question, how about pre-written software? Anyone got experience with it? Maybe any authors of it on this list? The problem I've seen with several of the packages is that the web browser performance is much less than optimal. -Galen On Apr 13, 2004, at 5:56 AM, Will wrote: Hi, I had a thought while reading the postings. You could open a frameset with one frame a hundred% and the other *, thus hiding the frame. The hidden frame could be the on checking the db and then using JavaScript you could update the main window? I'm not to up on JavaScript so I'd have to research it myself if I wanted to do it. But within my knowledge it should be possible? Will I've stopped 2,419 spam messages. You can too! One month FREE spam protection at http://www.cloudmark.com/spamnetsig/ -Original Message- From: Galen [mailto:[EMAIL PROTECTED] Sent: 13 April 2004 08:13 To: [EMAIL PROTECTED] Subject: [PHP] PHP Web-Chat Software Hi PHP people, I'm looking for PHP-based chat software. This is more of casual thing, otherwise I'd go out and write my own that works exactly the way I want, but I just don't have the time. I've tried several packages, and every single one has very significant browser problems. The problems go on and on and on... which chat programs (don't forget to mention the version you're using) have robust web-based chatting interfaces? I'd rather not try all of the hundreds of packages out there on several different browsers to find out! Also, this has gotta be PHP/MySQL only - no daemons please! The requirements are simple, so I don't need loads of complex stuff, simpler (interface-wise) is better here, but I most need something that plain works! Thanks, Galen -- 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
[PHP] Why not use assertions for input validation?
Hi, An article was recently published in Linux Journal entitled Real-World PHP Security. Assertions are mentioned in the article as a way to enforce validity of input. I didn't even realize that php had assertions so I investigated a little further ... PHP docs on the assert function (http://www.php.net/manual/en/function.assert.php) states Assertions should not be used for normal runtime operations like input parameter checks which contradicts the Linux Journal article. An article in the user contributed notes (http://www.sitepoint.com/article/1008/) also states not to use assertions in production. What is it about assertions that makes them unsuitable for production use? Thanks! -- Fraser Campbell [EMAIL PROTECTED] http://www.wehave.net/ Georgetown, Ontario, Canada Debian GNU/Linux -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: AW: AW: [PHP] After calling a Function the Script aborts withoutanyerror :-\
Hi Ben, Pretty weird problem... let's see, El mar, 13-04-2004 a las 11:08, Ben escribió: now i tried get_included_files() that shows me all the files that i wanted to include correctly. but in the list of get_defined_functions(), in the user list are just some, but not all the functions, that are really in some files, for example in the file ua_index.php the function ua_getConnect(); I'm not sure if I got this right... Are you saying that ua_index.php is in the list of included files but ua_getConnect() is NOT included in the list of defined functions?? Bear in mind that an included file doesnt mean a well compiled code. If so, it might be an error in the ua_getConnect() function. Could you post the code of that function. Or may be the whole file?? Because, I think the problem is not in that function but in a function declared before ua_getConnect() and hence ua_getConnect() won't be declared. -William -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] automatic doc generation for classes
does anybody have any good recommendations for anything to do auto doc generation for php classes/functions and stuff.. like phpdoc or something of that sort? what ones are the best to use for windows -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why not use assertions for input validation?
Well, what ever I say might be wrong because I'm not an expert in assertions. First of all, I didn't know that PHP had assertions... so, cool! :-) Second, I know that assertions are used in non-interpreted languages, like C for example, and it gives a way to make some kind of debugging when the code is compiled in debugging mode. When a given condition evaluates to true it will assert an specific message or situation. But all the assertions are deactivated when the program is compiled for a production environtment. So, you can have debbuging code in your program with assertions and that won't affect the performance or behaviour when it is compiled for a production environment. Remember, I might be wrong or inaccurate. But I agree that it is not a good idea to use assertions to validate input data or for normal operations. -William PS. Could you post a link to that article? El mar, 13-04-2004 a las 13:58, Fraser Campbell escribió: Hi, An article was recently published in Linux Journal entitled Real-World PHP Security. Assertions are mentioned in the article as a way to enforce validity of input. I didn't even realize that php had assertions so I investigated a little further ... PHP docs on the assert function (http://www.php.net/manual/en/function.assert.php) states Assertions should not be used for normal runtime operations like input parameter checks which contradicts the Linux Journal article. An article in the user contributed notes (http://www.sitepoint.com/article/1008/) also states not to use assertions in production. What is it about assertions that makes them unsuitable for production use? Thanks! -- Fraser Campbell [EMAIL PROTECTED] http://www.wehave.net/ Georgetown, Ontario, Canada Debian GNU/Linux -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] automatic doc generation for classes
Give phpxref a try, it is nice. it is on sf.net -William El mar, 13-04-2004 a las 14:10, Andy B escribió: does anybody have any good recommendations for anything to do auto doc generation for php classes/functions and stuff.. like phpdoc or something of that sort? what ones are the best to use for windows -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't copy a variable from one session to another?
On Fri, 2004-04-09 at 16:01, Robert Cummings wrote: If they're both on the same server then there's nothing stopping you from loading Suirrel mail's session data in the other application and nothing stopping you from hacking squirrel mail to load the other session's data. Since both are on the same server, BOTH session IDs should be available to your script if they are using cookies. If; however, they are using URL rewriting, then there is more trickery, either way it IS possible. Even if they're on seprate servers it is possible via certain tricks. Well, maybe I'm being truly dense... Both apps are running on the server, I have access to both session IDs, and I'm not using any rewriting. Did you take a look at the code I posted? http://marc.theaimsgroup.com/?l=php-generalm=108150342911095w=2 The problem is that once I start a session I am stuck with its data for the rest of the request. I haven't figured out a way to close that session and then open another one. Or, maybe, the problem is that I can't figure out any way of retrieving the session data that doesn't involve calling session_start. Am I missing something obvious? Thanks, - Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Why not use assertions for input validation?
snip PS. Could you post a link to that article? /snip http://www.linuxjournal.com/article.php?sid=7237 Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why not use assertions for input validation?
* Thus wrote Fraser Campbell ([EMAIL PROTECTED]): Hi, What is it about assertions that makes them unsuitable for production use? - For one, if assert() eveluates code like eval() does, there is very poor performance hit using it and a lot of overhead just to do simple statements that can easily be caught with an if statement. - It isn't desined to replace the if statement. - And with the example used in the article mentioned: assert(ereg($regex, $email, $parts); /* Invalid email address: $email */); If assert.active is off, your validation is never checked. A more appropriate use for assert() would to be to prevent a E_WARNING/E_ERROR to be thrown for the regex: assert('empty($email); /* email was empty */') if (!ereg($regex, $email, $parts) ) { ... So in the development and QA process if that condition ever arises, then it can be fixed. So when the code is in production, we are guaranteed that never will there be a 'E_WARNING: second paramter is empty' issued. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Command line include path?
I'm getting started with PEAR's DB_DataObject and am trying to follow along with the tutorial: http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.p hp It tells me to create the ini file (which I did) and then run createTables.php from the command line to generate my class files. I'm trying to run it and am running into an include issue: zorn$ php -f createTables.php /Library/WebServer/Websites/ASMP/config/DB_DataObject.ini Warning: main(DB/DataObject/Generator.php): failed to open stream: No such file or directory in /usr/local/php/lib/php/DB/DataObject/createTables.php on line 22 Fatal error: main(): Failed opening required 'DB/DataObject/Generator.php' (include_path='.:/usr/lib/php') in /usr/local/php/lib/php/DB/DataObject/createTables.php on line 22 -- Does the command line have it's own include path. Based on my phpinfo() mine is: .:/usr/local/php/lib/php ~ Mike - Mike Zornek Web Designer, Media Developer, Programmer and Geek Personal site: http://MikeZornek.com New Project: http://WebDevWiki.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Socket client application
Hi, I've gone through several good PHP sockets tutorials, but all of them seem to focused on making socket servers. What I actually need to do is write a socket client. There's an app runnning on a distant server that accepts incoming TCP connections at such-and-such an IP address and port, and then responds to various commands and issues standard responses, etc.---I need to build the app that talks to it. Now maybe I'm missing something really obvious, but I can't find any tutorials on what such a socket client app might look like. The client I need to build must maintain the connection once started. Any ideas?? ...Rene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] storing an array in an ini file
Hi, all -- I have an ini file for my application and I use parse_ini_file to load it and some custom code to save modifications. I'd like to figure out how to store array values in there since that is the logical place to keep config data. If I can't, I could probably use a string with @@ or | in it as the token but an array is so much more elegant because that's what it's meant to do :-) Any suggestions? TIA HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] storing an array in an ini file
* Thus wrote David T-G ([EMAIL PROTECTED]): Hi, all -- I have an ini file for my application and I use parse_ini_file to load it and some custom code to save modifications. I'd like to figure out how to store array values in there since that is the logical place to keep config data. If I can't, I could probably use a string with @@ or | in it as the token but an array is so much more elegant because that's what it's meant to do :-) You could always serialize the array to a value. and unserialize it after the call to parse_ini_file(). Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing an array in an ini file
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % % I have an ini file for my application and I use parse_ini_file to load it % and some custom code to save modifications. I'd like to figure out how % to store array values in there since that is the logical place to keep ... % % You could always serialize the array to a value. and unserialize it % after the call to parse_ini_file(). I thought about that, but what I'm really after is not having to do any special processing for a variable -- both because it makes special cases and because then I'd have to reserialize it if I were to write out a change. Of course, I may be stuck at that point, but I'd sure love to see how I can store it natively just like I can declare it natively in a script. % % Curt Thanks HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] storing an array in an ini file
* Thus wrote David T-G ([EMAIL PROTECTED]): Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % % I have an ini file for my application and I use parse_ini_file to load it % and some custom code to save modifications. I'd like to figure out how % to store array values in there since that is the logical place to keep ... % % You could always serialize the array to a value. and unserialize it % after the call to parse_ini_file(). I thought about that, but what I'm really after is not having to do any special processing for a variable -- both because it makes special cases and because then I'd have to reserialize it if I were to write out a change. My other though, which I probably should have mentioned, was to patch php's ini handling to allow for something like [Section] var[1]=element1 var[2]=element2 ... Thus the results would be something like Array ( [Section] = Array ( var = Array ( [1] = element1 [2] = element2 ) ) ) I dont know if [] characters are valid in keys Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't copy a variable from one session to another?
On Tue, 2004-04-13 at 15:39, Scott Bronson wrote: On Fri, 2004-04-09 at 16:01, Robert Cummings wrote: If they're both on the same server then there's nothing stopping you from loading Suirrel mail's session data in the other application and nothing stopping you from hacking squirrel mail to load the other session's data. Since both are on the same server, BOTH session IDs should be available to your script if they are using cookies. If; however, they are using URL rewriting, then there is more trickery, either way it IS possible. Even if they're on seprate servers it is possible via certain tricks. Well, maybe I'm being truly dense... Both apps are running on the server, I have access to both session IDs, and I'm not using any rewriting. Did you take a look at the code I posted? http://marc.theaimsgroup.com/?l=php-generalm=108150342911095w=2 The problem is that once I start a session I am stuck with its data for the rest of the request. I haven't figured out a way to close that session and then open another one. Or, maybe, the problem is that I can't figure out any way of retrieving the session data that doesn't involve calling session_start. Am I missing something obvious? Thanks, AFAIK you can't open two different sessions in the same request. I'm surprised you don't get an error. That said, there's nothing stopping your from directly reading the session data file (wherever you configured it to be in your php.ini) and unserializing it's contents yourself. HTH, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Socket client application
On Tue, 2004-04-13 at 17:17, René Fournier wrote: Hi, I've gone through several good PHP sockets tutorials, but all of them seem to focused on making socket servers. What I actually need to do is write a socket client. There's an app runnning on a distant server that accepts incoming TCP connections at such-and-such an IP address and port, and then responds to various commands and issues standard responses, etc.---I need to build the app that talks to it. Now maybe I'm missing something really obvious, but I can't find any tutorials on what such a socket client app might look like. The client I need to build must maintain the connection once started. Any ideas?? ...Rene Google: php socket client This one in particular starts off with a server discussion then goes on with some client examples: http://www.devshed.com/c/a/PHP/Socket-Programming-With-PHP/ Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing an array in an ini file
David T-G wrote: I have an ini file for my application and I use parse_ini_file to load it and some custom code to save modifications. I'd like to figure out how to store array values in there since that is the logical place to keep config data. If I can't, I could probably use a string with @@ or | in it as the token but an array is so much more elegant because that's what it's meant to do :-) If you really need to define arrays, just put them in a .php file and include() it. You're just going to use some hack to do it with an .ini file and parse_ini_file(), so why bother? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MSSQL stored proc
hi everyone can you give me a sample code of using MSSQL stored procedures? and its explanation.. thanks
[PHP] Help! Reading from stdin
Please respond directly, as I'm only on the digest and need an answer ASAP! I'm trying to read a file (currently sent to me via curl) and am having trouble. It worked once or twice, but not anymore. The curl command could be either: curl --data-binary file-name http://hostname/reader.php OR curl http://hostname/reader.php -T file-name Neither seem effective. I have tried (all from the php online docs): if(!isset($GLOBALS['StdinPointer'])){ $GLOBALS['StdinPointer'] = fopen(php://stdin, r); } else die(Don't have stdin!\n); And it does not die. So stdin is open. BUT: do { $data = fread($GLOBALS['StdinPointer'], 8192); $data = fread($fpf, 8192); if (strlen($data) == 0) { echo got no data!\n; break; } $contents .= $data; echo $data; } while (true); gets NOTHING. So I tried: if($DEBUG) echo _FILES: . print_r($_FILES); echo Userfile: . $_FILES['userfile'] . \n; if($DEBUG) echo HTTP_POST_FILES: . print_r($HTTP_POST_FILES); $uploaddir = '/tmp/'; $uploadfile = $uploaddir . $_FILES['userfile']['name']; move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile); Thinking maybe the file was being sent as a POST ... but this ALSO gets nothing ... I cannot figure out what's wrong, and would appreciate ANY help!!! dg -- David G. Simmons Calvin Says: No, thanks. I'm trying to reach middle age. -'Dad' smime.p7s Description: S/MIME cryptographic signature
Re: [PHP] MSSQL stored proc
* Thus wrote Aris Santillan ([EMAIL PROTECTED]): hi everyone can you give me a sample code of using MSSQL stored procedures? and its explanation.. Here's a good place to start. http://php.net/mssql_execute Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fwd: Help! Reading from stdin
Fort some reason it looks as if this message never got posted with a body ... dg Begin forwarded message: From: David G. Simmons [EMAIL PROTECTED]> Date: April 13, 2004 5:16:40 PM PDT To: [EMAIL PROTECTED] Subject: Help! Reading from stdin Please respond directly, as I'm only on the digest and need an answer ASAP! I'm trying to read a file (currently sent to me via curl) and am having trouble. It worked once or twice, but not anymore. The curl command could be either: curl --data-binary file-name> http://hostname/reader.php OR curl http://hostname/reader.php -T file-name> Neither seem effective. I have tried (all from the php online docs): if(!isset($GLOBALS['StdinPointer'])){ $GLOBALS['StdinPointer'] = fopen(php://stdin, r); } else die(Don't have stdin!\n); And it does not die. So stdin is open. BUT: do { $data = fread($GLOBALS['StdinPointer'], 8192); $data = fread($fpf, 8192); if (strlen($data) == 0) { echo got no data!\n; break; } $contents .= $data; echo $data; } while (true); gets NOTHING. So I tried: if($DEBUG) echo _FILES: . print_r($_FILES); echo Userfile: . $_FILES['userfile'] . \n; if($DEBUG) echo HTTP_POST_FILES: . print_r($HTTP_POST_FILES); $uploaddir = '/tmp/'; $uploadfile = $uploaddir . $_FILES['userfile']['name']; move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile); Thinking maybe the file was being sent as a POST ... but this ALSO gets nothing ... I cannot figure out what's wrong, and would appreciate ANY help!!! dg -- David G. Simmons Calvin Says: No, thanks. I'm trying to reach middle age. -'Dad' -- David G. Simmons Calvin Says: I never get to do anything fun. -Calvin smime.p7s Description: S/MIME cryptographic signature
[PHP] how to validate a domain
I used to use a socket to whois database to validate if a domain name is available or not. Now i can't do that cause whois requires different parameters does anyone knows how i can validate if a domain name is available or not true .php? Vamp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing an array in an ini file
John, et al -- ...and then John Holmes said... % % David T-G wrote: % % to store array values in there since that is the logical place to keep % config data. If I can't, I could probably use a string with @@ or | in ... % % If you really need to define arrays, just put them in a .php file and % include() it. You're just going to use some hack to do it with an .ini % file and parse_ini_file(), so why bother? 1) I had hoped to not have to hack :-) 2) Another file that has to be writable by the web server is a pain 3) If I'm going to code a special case then I might as well do it in the same file as all of the other configs 4) It would save me having to write yet another save-the-changes mechanism (I kinda like what I have for the ini file; it worked out well and has handled everything so far :-) % % ---John Holmes... Enough already. I'll serialize any array and then handle it as a special case. Thanks to all for the help :-) HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
RE: [PHP] how to validate a domain
If you register as a domain name reseller, your registrar provider will usually provide you access to checking which domains that are available, sometimes beyond the usual .com/.net/.org/ etc. top level domain. you should be able to Google a list. I don't know of any that are free anymore. Warren Vail -Original Message- From: Elliot J. Balanza [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 7:21 PM To: [EMAIL PROTECTED] Subject: [PHP] how to validate a domain I used to use a socket to whois database to validate if a domain name is available or not. Now i can't do that cause whois requires different parameters does anyone knows how i can validate if a domain name is available or not true .php? Vamp -- 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
[PHP] PHP tpop3d
If any one can help be with a PHP script that creates flat file format auth files for tpop3d please respond to me off list as this is only semi-PHP related. Actually, I already have the script but the authentication isn't working I think it might be because I don't understand the crypt() requirements for both (and how to make them cooperate). Daryl Meese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] remote files handling
hello sir need help in remote files handling. i.e, i want to know the last modified date of a file on a remote server. for example www.abc.com/abc/Test.zip. i want to know the last modified date of that file. can u pls help me. thankz in advance with regards S.Srivignesh __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] how to validate a domain
According to google there are several soap services that offer whois. It looks like a lot of them are old outdated links, however some still seem to exist. I'm not sure how anyone could ever profit from free soap services unless they gave the service for free for long enough to become the standard and then start to charge. I'm guessing that is why a lot of the older links no longer exist. http://wavendon.dsdata.co.uk/axis/services/WhoisData?wsdl responded to generate the schema. I don't know if they search all of the domain names or not either. Larry -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 9:45 PM To: 'Elliot J. Balanza'; [EMAIL PROTECTED] Subject: RE: [PHP] how to validate a domain If you register as a domain name reseller, your registrar provider will usually provide you access to checking which domains that are available, sometimes beyond the usual .com/.net/.org/ etc. top level domain. you should be able to Google a list. I don't know of any that are free anymore. Warren Vail -Original Message- From: Elliot J. Balanza [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 7:21 PM To: [EMAIL PROTECTED] Subject: [PHP] how to validate a domain I used to use a socket to whois database to validate if a domain name is available or not. Now i can't do that cause whois requires different parameters does anyone knows how i can validate if a domain name is available or not true .php? Vamp -- 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] automatic doc generation for classes
Well, since you already mentionned it: Why not use phpdoc? I use it on a regular basis: it's pretty good. (Yes, it works like a charm on a windows box with enough memory) Richard Tuesday, April 13, 2004, 9:10:23 PM, you wrote: does anybody have any good recommendations for anything to do auto doc generation for php classes/functions and stuff.. like phpdoc or something of that sort? what ones are the best to use for windows -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Command line include path?
If all else fails, try setting the include path in your project: http://at.php.net/manual/en/function.set-include-path.php (check out the comments section) hth Richard Tuesday, April 13, 2004, 10:45:23 PM, you wrote: I'm getting started with PEAR's DB_DataObject and am trying to follow along with the tutorial: http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.p hp It tells me to create the ini file (which I did) and then run createTables.php from the command line to generate my class files. I'm trying to run it and am running into an include issue: zorn$ php -f createTables.php /Library/WebServer/Websites/ASMP/config/DB_DataObject.ini Warning: main(DB/DataObject/Generator.php): failed to open stream: No such file or directory in /usr/local/php/lib/php/DB/DataObject/createTables.php on line 22 Fatal error: main(): Failed opening required 'DB/DataObject/Generator.php' (include_path='.:/usr/lib/php') in /usr/local/php/lib/php/DB/DataObject/createTables.php on line 22 -- Does the command line have it's own include path. Based on my phpinfo() mine is: .:/usr/local/php/lib/php ~ Mike - Mike Zornek Web Designer, Media Developer, Programmer and Geek Personal site: http://MikeZornek.com New Project: http://WebDevWiki.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] automatic doc generation for classes
so far it looks good... i got a test class/package to compile as far as the docs go but now when i try to do more with it it always crashes: c: c:\php\cli\php -t c:\src\test\ -o CHM:default:default -d c:\src\test\ fatal error: undefined member to object in c:\phpdoc\php documenter\includes\converter.php on line 4199 cant quite tell what im doing wrong but going to go through the docs and see if i messed it up somehow... - Original Message - From: Richard Harb [EMAIL PROTECTED] To: Andy B [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 11:37 PM Subject: Re: [PHP] automatic doc generation for classes Well, since you already mentionned it: Why not use phpdoc? I use it on a regular basis: it's pretty good. (Yes, it works like a charm on a windows box with enough memory) Richard Tuesday, April 13, 2004, 9:10:23 PM, you wrote: does anybody have any good recommendations for anything to do auto doc generation for php classes/functions and stuff.. like phpdoc or something of that sort? what ones are the best to use for windows -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php