[PHP] IP security
hi. how can I control the ip that with ID and password ,all of user cant enter to site and if one person want to enetr should have special IP that I know it. thanks. nafiseh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] disable_functions....
Thanks.. D'you think you'd be able to give me an example? (Sorry, I am _quite_ new to all of this...) -Andy Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Any php.ini directive can be used in your httpd.conf on a per-dir basis. See the manual.. -Rasmus On Sat, 25 Aug 2001, Andy Ladouceur wrote: Does anyone know if its possible to use disable_functions on only specified directories, and not all? Hopefully its possible.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] convert timestamp to time?
hi. I write: $m=date(H:i:s); 10:34:33 $p=echo time($m); --998805674 date(h:i:s,mktime($p)); -12:34:33 my problem is the difference between first and third time that should be the same.??? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Thinking about going to ASP
Just looking over the achives of the .net show(was msdn show), and with .net its got some really great features.. So i am going to get a hold of .net and try it out... - James ReDucTor Mitchell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP as an Apache module
I have PHP 4.06 and using it as an Apache module, but for some reason I cannot get my changes to take effect after I change something in the PHP.ini file. I've tried to restart Apache, restart Windows98, nothing. But if I run as a CGI, the changes are there in the phpinfo()! Any help with this would be great... Thanks, Chris Irwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Splitting 1 Colomn into 2
Hello Thnx for your last replies, looks like i need more help with php now. I have this code: function displayCategory(){ include ('admin/config.inc.php'); $connection = mysql_connect ($host, $username, $password); if ($connection == false){ echo mysql_errno().: .mysql_error(); exit; } $query = select ID,Category from sections; $result = mysql_db_query ($dbase, $query); if ($result){ echo table border=1; echo trtdbCategory/b/td/tr; $numOfRows = mysql_num_rows ($result); for ($i = 0; $i $numOfRows; $i++){ $ID = mysql_result ($result, $i, ID); $Category = mysql_result ($result, $i, Category); echo trtda href=\knowledgebase.php?display=threadsthread=$ID\$Category/a/td/tr ; } echo /table; } else{ echo mysql_errno().: .mysql_error().BR; } mysql_close (); } - It's pretty simple it grabs content into 1 huge colomn, i wonder how could i split it into 2 colomns Thank You Very much -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] The future of PHP
At 05:36 26-08-01, Manuel Lemos wrote: The first problem is technical. You just keep developing PHP to satisfy the user needs as soon as you perceive them and that's it. I think we're doing that nicely, but it's quite true that meeting the technical needs is not enough. The second problem is marketing. It doesn't matter for people that have to make the decisions how much better PHP in fact is if people don't hear about it. Even if they hear about it, it may not be enough if they hear much more from the rest (Java, ASP.Net, C#, , whatever). Here PHP looses bigtime. You may not want to believe me, but I am afraid that unless PHP is better marketted, soon or later its market acceptance will be weakened. I think you're right here also, but only to a degree. PHP has reached (or is quite close) to the critical mess it needs to penetrate the suite of 'accepted solutions'. As in, solutions which are covered by analysts and that exist within large organizations. It's true that it took it some 5 years or so to make this penetration (and it took .NET about -2 years), but that is the price you pay when you don't have gigantic marketing budgets to compete with. Undoubtfully this is a problem, but the bottom line appears to be that we managed to overcome this, despite the lack of resources. That's not my point. Some marketing is better than no marketing at all which is what you do today. There are plenty of ways to do some marketing on PHP that don't even cost money to you. I don't think it's fair to say that there's no marketing today. Well, forget fair, but I don't think it's accurate either :) There are several good PHP sites, and there are a few companies advocating PHP as well. Analysts are starting to cover PHP, and it's a fairly important landmark in PHP's penetration to the family of industry-adopted solutions. At any rate, suggestions will be welcome. I've seen the Web Developer Ring you suggested, and I think it's worth thinking (the reason I'm not going wild with enthusiasm is that I think it also has drawbacks, not only advantages). oh, man Linux was a different story. Expecting a similar future for PHP I'm afraid it may be wishful thinking. PHP is mostly focused on Web development. Web market is fading out. I agree with the first part of the paragraph, but completely disagree with the 2nd. Web is not fading out, the .COM era is. Web, as a medium, is here to stay, and on the long run, it's going to grow to be much larger than what it is today. As for the similarities and dissimilarities of PHP and Linux, I think it's fair to say that it's pretty difficult to predict the way things will go with PHP in the enterprise, but I doubt it'll happen in a similar way to that of Linux. Linux 'made it' when huge corporations like IBM started using it and advocating it, after smaller companies (like RedHat) managed to create enough hype to 'wake the giants'. It's unlikely that such a giant will make the same choice with PHP, even if we just look at it from a statistical perspective. Even if you can do non Web programming with PHP, most people are not aware of that. You need to do some marketing to put in evidence that PHP is as much capable for non-Web programming. Given the fact that I don't see the Web going anywhere, I strongly disagree. PHP's strength is in its focus to provide a good Web development framework. Losing that focus would be a bad idea. Projects like PHP-GTK are nice and for certain audiences they're also quite useful, but it's very wrong to assume that PHP's future lies in there. There are too many languages in the world, including ones which are much more capable than PHP in the GUI programming area, and if we move the focus to this front, we're going to fight a lost battle. In the Web front, on the other hand, we're doing quite well. There you have another big problem that is there is no affordable way to compile and generate executables from PHP programs. I know that historically you never liked this ability into PHP programs, but that is a vital need for people that will want to distribute their programs like VB or Delphi programs. If you mean native executables, then I have to disagree with you yet again... I don't think native executables are the thing that's holding PHP back. It's a direct deduction from my view that PHP's main course is the Web environment, where native executables simply do not make sense. If you mean something else, I'll be happy to discuss this with you over personal email :) Zeev -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Splitting 1 Colomn into 2
This is how I divided one long column into several more equal sized columns. Hope it helps. print table align=center cellpadding=3 width=90%trtd valign=top width=20%h$fonts; while ($a_row=mysql_fetch_row($results)) { $count=$count+1; foreach($a_row as $field) { print $field br; } if ($count==78) { print /h$fonts/tdtd valign=top width=20%h$fonts; $count=0; } } print /h$fonts/td/tr/table; - Original Message - From: HTTP-404 [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 11:07 AM Subject: [PHP] Splitting 1 Colomn into 2 Hello Thnx for your last replies, looks like i need more help with php now. I have this code: function displayCategory(){ include ('admin/config.inc.php'); $connection = mysql_connect ($host, $username, $password); if ($connection == false){ echo mysql_errno().: .mysql_error(); exit; } $query = select ID,Category from sections; $result = mysql_db_query ($dbase, $query); if ($result){ echo table border=1; echo trtdbCategory/b/td/tr; $numOfRows = mysql_num_rows ($result); for ($i = 0; $i $numOfRows; $i++){ $ID = mysql_result ($result, $i, ID); $Category = mysql_result ($result, $i, Category); echo trtda href=\knowledgebase.php?display=threadsthread=$ID\$Category/a/td/tr ; } echo /table; } else{ echo mysql_errno().: .mysql_error().BR; } mysql_close (); } - It's pretty simple it grabs content into 1 huge colomn, i wonder how could i split it into 2 colomns Thank You Very much -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] #!/usr/bin/perl -T
hi. what is the meaning of #!/usr/bin/perl -T ??? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: #!/usr/bin/perl -T
Nafiseh Saberi wrote: hi. what is the meaning of #!/usr/bin/perl -T ??? thanks. You are in wrong list. Try perl user list. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] I need some help with this code
I'm using copy() and the final owner is nobody, I'm opening a socket connection with fsockopen() so I have a validate user. I want the validated user to be the owner of the new file That`s de code: - open the socket - validate user - change dir chmod so we can write - write the file (with nobody owner and I need the user owner) - change back dir chmod - close connection -- $tftp = fsockopen(ftp.dominio.com, 21, $errno, $errstr, 60) or die(Fallode Conexión); socket_set_blocking($tftp, false); fputs($tftp, user $login\n); fputs($tftp, pass $password\n); $ruta = /www/.$direc; fputs($tftp, SITE chmod 0777 $ruta\n); copy (file1.php, file2.php); fputs($tftp, SITE chmod $perm $ruta\n); sleep(1); fclose($tftp); Thanks for helping Javi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Program to check for cookies
Please dont reply to messages with a new subject as this breaks threading. also check the man for addslashes... where are you getting the error, storage or retrieval? Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 25, 2001 3:44 PM To: Sunil Jagarlamudi; [EMAIL PROTECTED] Subject: Re: [PHP] Program to check for cookies I have a form that submits data to a database, works great until someome puts in an apostrophe in the comments area...how do i escape this charecter upon insert? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] convert timestamp to time?
I write: $m=date(H:i:s); 10:34:33 $p=echo time($m); --998805674 date(h:i:s,mktime($p)); -12:34:33 my problem is the difference between first and third time that should be the same.??? nope if $p is already a unix timestamp (as per your output) I don't know why you are processing it again with mktime. $m=date(H:i:s); 10:34:33 $p=echo time($m); --998805674 date(h:i:s,$p); Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] path to php
they don't give shell access without contacting them, and they don't reply to emails - Original Message - From: ReDucTor [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 12:48 PM Subject: Re: [PHP] path to php Have you tried which php or locate php? what do you mean? no shell acces, that requires contacting them to get, which they don't read the emails :D - James ReDucTor Mitchell - Original Message - From: David Robley [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 12:20 PM Subject: Re: [PHP] path to php On Thu, 23 Aug 2001 11:05, ReDucTor wrote: does anyone know all the possible paths to php...because i can't seem to find it on my current host...i have tried using the following php /path/to/script.php /usr/php /path/to/script.php /usr/local/bin/php /path/to/script.php /usr/bin/php /path/to/script.php but i still can't seem to get it to work with out it saying that it can't find the path to php...any one got any ideas?!? btw. i know php is on it.. I have tried contacting them, but they don't seem to want to reply... Have you tried which php or locate php? If you don't have shell access you'll have to fiddle around with backticks or whichever of system() and friends is appropriate. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Electricity was invented by rubbing cats backwards! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] show number of search results
Good day, I'm trying to figure out how I can show the following on my search results page: SEARCH RESULTS 1 - 10 of 14 total results for books Currently, I have a limit of 10 results printing on a page using offset. I figured out how to program the pages to know what page of the results its viewing (eg: you are on page 4 or 10 pages of results) so programming the above statement shouldn't be difficult because the two statements seem quite similar. Nevertheless, I can't figure it out - I have a feeling I'm making it harder than it really is. Any suggestions or leads would be greatly appreciated! Thank you, Shawna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: IP security
use the $REMOTE_ADDR variable for the remote address see php manual chapter 7 Variables - Variables from outside PHP Nafiseh Saberi schrieb: hi. how can I control the ip that with ID and password ,all of user cant enter to site and if one person want to enetr should have special IP that I know it. thanks. nafiseh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: zlib1.1.3 and ob_gzhandler
Are you shure u sending the right http header? your discription sound like the browser receives the wrong header information, respactively the wrong mime type. if you use the right mouse button and say show image, all browsers don't care about the mime type and try to evaluate the data content and find the appropiate helper application. make shure the header is something like 'octed-stream/JPG' or octed-stream/GIF (i'm not shure if this is the exact syntax for the mime types, refer to HTTP 1.0 spezification for detaisl) Martin Helie schrieb: Hello everyone, I'm a newbie here, so please forgive me if this topic has been discussed previously (I could find no mention of it). I recently compiled PHP4.0.6 with gd1.8.4 and zlib 1.1.3 and experienced no problems --except! If you use ob_gzhandler as your output handler, you'll want to make sure any image functions you use in PHP return valid images for Netscape (I tried Netscape Communicator 4.7 on Linux, Irix and Windows and got broken images). Funny thing is, if you right-clicked on the image and did view image, the browser would show it correctly. After much frustration, I realized that using _no_ output handler (at least not ob_gzhandler) solved the problem. I assume this is due to a different way of gzipping data in either PHP or zlib from previous versions. I hope someone finds this information useful -- or can provide the real explanation, maybe even a better solution. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Wide Image Scroller
I have a very wide panoramic image I want to display on a page. I don't want to side scroll the page, only the image. Is there a way to make a image side scrollable using PHP? Thanks Craig [EMAIL PROTECTED]
[PHP] Re: relative filename /home/www... in stead of /www/.....
use $SCRIPT_FILENAME and extract the parts of the path as u need. or better $PATH_TRANSLATED see also php manual chapter 7 predefined variables. Chris Hayes schrieb: dear group, I use the $DOCUMENT_ROOT to make a complete file name. $fpname=$DOCUMENT_ROOT.'/includes/blocks/dynmenu.php'; It does not work on one site: the document root misses the /home/ start. I could just hardcode this but i'ld rather have a function that would work everywhere. What can i do? Warning: fopen(/www/ecodorp/admin/modules/dynmenu.src,r) - No such file or directory in /home/www/ecodorp/php/post/admin/modules/dynmenu.php on line 378 I cannot open /www/ecodorp/admin/modules/dynmenu.src Chris -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: show number of search results
make a sql just with your where clause like this select count(*) from table where your where clause the relsulting result set will give u the number of records for your where clause [EMAIL PROTECTED] schrieb: Good day, I'm trying to figure out how I can show the following on my search results page: SEARCH RESULTS 1 - 10 of 14 total results for books Currently, I have a limit of 10 results printing on a page using offset. I figured out how to program the pages to know what page of the results its viewing (eg: you are on page 4 or 10 pages of results) so programming the above statement shouldn't be difficult because the two statements seem quite similar. Nevertheless, I can't figure it out - I have a feeling I'm making it harder than it really is. Any suggestions or leads would be greatly appreciated! Thank you, Shawna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Program to check for cookies
see php Manual chapter 18 cookies Sunil Jagarlamudi schrieb: Is there a program which will check for cookies before it allows access into the web site ? I want the user to enter the userid/password on a secure web server and pass the cookie information to the regular server. I don't want them to access regular web server without that cookie being enabled through the secure server. Thank You Sunil __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: limit 1
i would try this: $sql = SELECT DISTINCT users.names FROM users, selection Where users.name = selection.name and selection.setting = 'on' ; because you joining two tables and you get as many results per users.name = selection.name as entries in bouth tables per user. The DISTINCTROW could solve the problem. However i don't know the number of records per user excists in the tables, let assume u have not relaid on relational database rules and users are not unique in one of the tables the following has to be done $sql = SELECT DISTINCT users.names FROM users, selection Where users.name = selection.name and selection.setting = 'on' GROUP BY users.name; Jeremy Morano schrieb: Hi, I wondering if it was possible to use limit on part of a query and not all. this is my query which works the way it should. $sql = SELECT users.names FROM users, selection Where users.name = selection.name and setting = 'on' limit 1 ; What I would like to do is put a limit of 1 to only this part - setting = 'on' limit 1 --- and not on the rest. You see, there are many users.name that have a setting = 'on'I want, ALL those names , ONLY once.. How do I do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] APC and WIN 32
does anybody know a resource where i can get apc for windows? or does anybody have experienced how to compile APC under wimdows and include it i.e. in Merlin Desktop? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Wide Image Scroller
but the frameset could be done with php ! Eric Persson schrieb: Craig Westerman wrote: I have a very wide panoramic image I want to display on a page. I don't want to side scroll the page, only the image. Is there a way to make a image side scrollable using PHP? This can not be done with php, it has to be made on the client side, with java/javascript/dhtml or something. The easy way should be to use a frameset, where one frame contains the image with the scroll. //Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] character encoding
Hi, can I use some php funciton to convert strings to charset iso-8859-2? Do exists some function to detect encoding of string? Thanks from Czech Republic... Fanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] POST without Content-Type?
On Sat, 25 Aug 2001, Rasmus Lerdorf wrote: Well, first of all, you are using an ancient version of PHP. That message was changed from a fatal error to a warning over a year ago. Cool. Thx. I'll upgrade. Had no good reason to until now. And if you really want to have PHP accept non-typed POST data, it's an obvious one-line change in main/SAPI.c Well, I grep'd the source, but did not find the origin of the error. Also, since I'm not familiar with PHP source, it would have taken me hours to find even that one line Thx. Chris. -Rasmus On Sat, 25 Aug 2001, Chris Maresca wrote: All, I've been coding a PHP page that listens for a connection from an embedded device (a piece of hardware) that sends a POST query to Apache (and to my PHP pages...). I've having a problem that I can't seem to solve. The embedded application does not set a Content-Type header on the POST, so PHP fails with the following error: -- HTTP/1.1 200 OK Date: Sun, 26 Aug 2001 05:26:14 GMT Server: Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/4.0.2 Connection: close Content-Type: text/html br bFatal error/b: No content-type in POST request in bUnknown/b on line b0/bbr Connection closed by foreign host. -- The connection that the embedded system makes looks like this: -- POST http://host.mysite.foo/dir/phppage HTTP/1.0 User-Agent: ImEmbedded Host: host.mysite.foo Content-Length: 123 Pragma: no-cache Cookie: embeddedsession=myverylongsessionvariablegeneratedbythehardware ?xml version=1.0? -- And below is some XML stuff... I've tried setting 'Content-Type' in $HTTP_POST_VARS, using mod_rewrite in Apache to change the content-type (with the -T flag) and looked at all the options in php.ini. I'm using PHP 4.0.2 w/Apache 1.3.12 (if you couldn't tell from the sig above...) Nothing works correctly. The mod_rewrite trick would work, but it makes everthing to that URL text/xml, including the PHP script, which no longer executes. I look on the mailing lists here and on usenet, but I don't see a good solution... Anyone have any ideas? At this point, I'm thinking of re-writing my code in Perl or Python since there seems to be no solution to this problem. Note that it's PHP that rejects the request, not Apache. I don't see why a missing content-type should do this. It should just default to text/plain or something. Anyway, thanks for any help. Chris. -- chris maresca internet systems architect -- www.chrismaresca.com linux, only up 138 days, because california has flaky power... -- chris maresca internet systems architect -- www.chrismaresca.com linux, only up 138 days, because california has flaky power... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to create thumbnails?
For thumbnail creation I would need to know how I scale a loaded image or better: How do I copy a scaled version of an image created with imagecreatefromjpeg onto a background I have previously created? Jan
[PHP] How to show specific records of a Dbase file
Greetings. I've made the following script, wich shows every record of a dbf file: ?php $dbf = dbase_open('TEST.DBF',0); $quant = dbase_numrecords ($dbf); for ($x = 1; $x $quant; $x++) { $drec = dbase_get_record_with_names($dbf,$x); foreach ($drec as $nome) { echo $nomebr; } } echo Done. $quant records. ? But I'm trying (unsucessfully) to show only one or two fields of each records.. Anyone can help me with this? Thanks in advance, Er Galvão Abbott [EMAIL PROTECTED] - Feel free to reply me by e-mail. Just remove the CAPITAL TEXT from the address above. - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Thinking about going to ASP
ReDucTor wrote: Just looking over the achives of the .net show(was msdn show), and with .net its got some really great features.. So i am going to get a hold of .net and try it out... - James ReDucTor Mitchell Quite an open ended post - not sure exactly what type of reaction you're looking for from the group here. :) Could you be more explicit about some of the really great features it has? include() is a really great feature of PHP which somehow seems to get lost in the ASP/IIS world. Give some examples please. Thanks. Michael Kimsal http://www.tapinternet.com/php/ 734-480-9961 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to create thumbnails?
?php Header(Content-type: image/jpeg); $src_img = imagecreatefromjpeg($fileURL); $aspect=imagesy($src_img)/imagesx($src_img); $new_w = $thumbSize; $new_h = $new_w * $aspect; $dst_img = imagecreate($new_w,$new_h); imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img),i magesy($src_img)); imagejpeg($dst_img,'',$quality); ? All you need to go is set up $fileURL and $thumbSize and this *should* work flawlessly. When you get it working try using Resampled instead of Resized - but you need gd 2.0.1 for that to work, and even then it has issues it would seem. - seb -Original Message- From: Jan [mailto:[EMAIL PROTECTED]] Sent: 26 August 2001 18:22 To: [EMAIL PROTECTED] Subject: [PHP] How to create thumbnails? For thumbnail creation I would need to know how I scale a loaded image or better: How do I copy a scaled version of an image created with imagecreatefromjpeg onto a background I have previously created? Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Eregi for Image
I want to check if an uploaded file is an image. This isn't working. Could anyone help me out? if (!eregi(\\.gif$, $img1_name) || !eregi(\\.jpg$, $img1_name) || !eregi(\\.jpeg$, $img1_name)) { error message } Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Eregi for Image
Jeff Oien [EMAIL PROTECTED] wrote: I want to check if an uploaded file is an image. This isn't working. Could anyone help me out? if (!eregi(\\.gif$, $img1_name) || !eregi(\\.jpg$, $img1_name) || !eregi(\\.jpeg$, $img1_name)) { error message } unless you expect the file to have three extensions at once, you probably mean for each of the places you wrote ||. or you could do this: if (!ereg(\\.(gif|jpe?g)$, $img1_name)) { error message } jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP auth logout
Thanks for all the answers to this question but hitting the back button will work, no authorization required to see the pages all over. Repost problem: I'm having a PHP based auth. It seems that unset($PHP_AUTH_USER) or unset($PHP_AUTH_PW) doesn't work. Also, 401 Unauthorized header does not work also. Is there a way to logout and no back button or the user just have to close his browser in order to accomplish this? Thanks all, Alex [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] MySQL Database backup
I tried find a solution to backup a mysql database using php but i didn't find anything but the binary file transfer solution (just open and binary copy all the files in my database directory). But this is not a desired solution because it involves some security holes that I cannot afford. Can anyone tell me where can i learn more about this? Or some simple :) and security holes free solution? Thanks all. Alex Sofronie [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Need help to create HTML table with 2 columns.
Try this: printf(TABLE); while($row=...fetch()) { printf(TRTD%s/TDTD%s/TD/TR,$string_variable1, $string_variable2); } - Original Message - From: John Bass [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 6:29 PM Subject: Re: [PHP] Need help to create HTML table with 2 columns. second column should print next record that was returned from the query. Thanks. John From: Jeff Lewis [EMAIL PROTECTED] Reply-To: Jeff Lewis [EMAIL PROTECTED] To: John Bass [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Need help to create HTML table with 2 columns. Date: Thu, 23 Aug 2001 11:29:36 -0400 What did you want in the second column? I was just going by what you had listed below: $row-image_link, $row-web_url,$row-image_link, $row-web_url); Jeff - Original Message - From: John Bass [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 11:16 AM Subject: Re: [PHP] Need help to create HTML table with 2 columns. Hi, Thank you for the email. I tried your code, but first column is printing image_link web_url fields correctly and second column is repeating values of the first column. Other records or rows are printing same way. Regards, John Bass From: Jeff Lewis [EMAIL PROTECTED] Reply-To: Jeff Lewis [EMAIL PROTECTED] To: John Bass [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Need help to create HTML table with 2 columns. Date: Thu, 23 Aug 2001 10:41:08 -0400 John, Try this: TABLE ?php $query = SELECT image_link, web_url FROM testdata; $result = mysql_query ($query) or die (Query Failed); while ($row = mysql_fetch_object ($result)) { printf (trTD.$row-image_links.br.$row-web_url./TD TD.$row-image_link.br.$row-web_url./tr\n); } ? /TABLE - Original Message - From: John Bass [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 10:30 AM Subject: [PHP] Need help to create HTML table with 2 columns. Hi All, I am trying to generate a table with two columns. Each column should print 2 fields named image_link and web_url. Have spent over week looking documentations and trying different coding but nothing is working. Any help will be greatly appreciated. TABLE ?php $query = SELECT image_link, web_url FROM testdata; $result = mysql_query ($query) or die (Query Failed); while ($row = mysql_fetch_object ($result)) { printf (trTD%sbr%s/TD TD%sbr%s/tr\n, $row-image_link, $row-web_url,$row-image_link, $row-web_url); } ? /TABLE Regards, John Bass _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] The future of PHP
Hello, Zeev Suraski wrote: At 05:36 26-08-01, Manuel Lemos wrote: The first problem is technical. You just keep developing PHP to satisfy the user needs as soon as you perceive them and that's it. I think we're doing that nicely, but it's quite true that meeting the technical needs is not enough. Right. The second problem is marketing. It doesn't matter for people that have to make the decisions how much better PHP in fact is if people don't hear about it. Even if they hear about it, it may not be enough if they hear much more from the rest (Java, ASP.Net, C#, , whatever). Here PHP looses bigtime. You may not want to believe me, but I am afraid that unless PHP is better marketted, soon or later its market acceptance will be weakened. I think you're right here also, but only to a degree. PHP has reached (or is quite close) to the critical mess it needs to penetrate the suite of 'accepted solutions'. As in, solutions which are covered by analysts and that exist within large organizations. It's true that it took it some 5 years or so to make this penetration (and it took .NET about -2 years), but that is the price you pay when you don't have gigantic marketing budgets to compete with. Undoubtfully this is a problem, but the bottom line appears to be that we managed to overcome this, despite the lack of resources. The merit of what was achieved without financial resources is not in question. What is in question is what could and can be done even without financial resources to make PHP be more accepted than it is today. That's not my point. Some marketing is better than no marketing at all which is what you do today. There are plenty of ways to do some marketing on PHP that don't even cost money to you. I don't think it's fair to say that there's no marketing today. Well, forget fair, but I don't think it's accurate either :) There are several good PHP sites, and there are a few companies advocating PHP as well. Analysts are starting to cover PHP, and it's a fairly important landmark in PHP's penetration to the family of industry-adopted solutions. I don't think we have the same understanding of what is marketing. For me, marketing is being proactive in terms of promoting something before the potential market. Seeing people advocating PHP or analysts covering PHP here and there is not proactive at all. It is a result of the evolution of PHP capabilities, but it was not something that was especifically planned. What I mean is there is a large potential market for PHP for which there is no specific plan to address, not just in technical terms, but rather in the message that that market is (not) getting about PHP suitability for their needs. You need to first watch the market and spot areas where people could be using PHP but their are not, realize why they are not using PHP to finally do something about it. As I said, it is not a technical problem, but rather a people problem. At any rate, suggestions will be welcome. I've seen the Web Developer Ring you suggested, and I think it's worth thinking (the reason I'm not going wild with enthusiasm is that I think it also has drawbacks, not only advantages). I don't know what drawbacks do you see, but let's discuss it openly. oh, man Linux was a different story. Expecting a similar future for PHP I'm afraid it may be wishful thinking. PHP is mostly focused on Web development. Web market is fading out. I agree with the first part of the paragraph, but completely disagree with the 2nd. Web is not fading out, the .COM era is. Web, as a medium, is here to stay, and on the long run, it's going to grow to be much larger than what it is today. Ok, it is not fading out, but it is fading, meaning it is no longer the exciting thing that it seemed to be and was attracting some many people from everywhere. As for the similarities and dissimilarities of PHP and Linux, I think it's fair to say that it's pretty difficult to predict the way things will go with PHP in the enterprise, but I doubt it'll happen in a similar way to that of Linux. Linux 'made it' when huge corporations like IBM started using it and advocating it, after smaller companies (like RedHat) managed to create enough hype to 'wake the giants'. It's unlikely that such a giant will make the same choice with PHP, even if we just look at it from a statistical perspective. Right, so be it, PHP will have to grow in the market without any giant force behind it, at least for now. Let's consider that one extra challenge for PHP future. Even if you can do non Web programming with PHP, most people are not aware of that. You need to do some marketing to put in evidence that PHP is as much capable for non-Web programming. Given the fact that I don't see the Web going anywhere, I strongly disagree. PHP's strength is in its focus to provide a good Web development framework. Losing that focus would be a bad idea. It is
RE: [PHP] Dedicated Hosting
Check out : http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm This is your one stop shop for hosting. WeberDev.com is hosted there and I can tell you that their service is amazing. They are fast, reliable and more than anything, very professional (specially in PHP / MySQL). Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Heidi Belal [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 26, 2001 7:26 PM To: CF-Talk; Egypt Programmers; js-jive mailing list; Php Subject: [PHP] Dedicated Hosting Hi All, Can you please tell of a good, reliable place where i can rent a dedicated server in the US? Thanks! Heidi = Heidi Belal ICQ# 32127109 A bus stops at a bus station. A train stops at a train station. On my desk I have a work station... __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] mkdir Question
When using this command: mkdir (/usr/www/users//blah/blah/$username, 0777); it sets it to nobody instead of my username. I'm then unable to delete or modify files in that directory. Is there a way around this? Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mkdir Question
Jeff JO mkdir (/usr/www/users//blah/blah/$username, 0777); JO it sets it to nobody instead of my username. Nobody is the user runng the Apache process that's why it is the owner of the directory. You can chown the direcotry from your PHP script after you create it or chmod the files you copy there. Cheers, Gianluca JO I'm then unable JO to delete or modify files in that directory. Is there a way around JO this? Thanks. JO Jeff Oien -- ALBASOFTWARE C/ Mallorca 186 - 3º 1ª 08036 Barcelona (Spain) Tel. +34 93454009 - +34 934549324 Fax. +34 934541979 @@ ICQ 47323154 @@ [EMAIL PROTECTED] http://www.albasoftware.com http://www.phpauction.org http://www.gianlucabaldo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] mkdir Question
However even the permission of 0777 doesn't let me do anything to the directory or files in it. I can't even chown or chmod anything in it using Telnet once it's created. Jeff Oien Jeff JO mkdir (/usr/www/users//blah/blah/$username, 0777); JO it sets it to nobody instead of my username. Nobody is the user runng the Apache process that's why it is the owner of the directory. You can chown the direcotry from your PHP script after you create it or chmod the files you copy there. Cheers, Gianluca JO I'm then unable JO to delete or modify files in that directory. Is there a way around JO this? Thanks. JO Jeff Oien -- ALBASOFTWARE C/ Mallorca 186 - 3º 1ª 08036 Barcelona (Spain) Tel. +34 93454009 - +34 934549324 Fax. +34 934541979 @@ ICQ 47323154 @@ [EMAIL PROTECTED] http://www.albasoftware.com http://www.phpauction.org http://www.gianlucabaldo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: How to show specific records of a Dbase file
When I try with for ($x = 1; $x $quant; $x++) { $drec = dbase_get_record_with_names($dbf,$x); echo $drec[0].,.$drec[1]br; - and so on } It only shows the dots. It doesn't show any of the fields. I know that dbf is a very prehistorical solution, but the client still uses Fox Pro, so... On Sun, 26 Aug 2001 16:05:36 -0400, [EMAIL PROTECTED] (Hugh Bothwell) wrote: Er GalvãO Abbott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... foreach ($drec as $nome) { echo $nomebr; } But I'm trying (unsucessfully) to show only one or two fields of each records.. Instead of foreach(), try something like echo $drec[0]., .$drec[1]; (or whichever records it is you want). Note: in the PHP documentation, they specifically suggest abandoning DBase for any of the free SQL databases (MySQL, PostgreSQL, etc). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Certification
I know this is a recurrent question around here... but it's always nice to ask: Is there (or is it in process of...) any kind of certification for PHP. I live in Brazil and have been developing with PHP+Mysql for over a year, but there are no courses around here... none. And in part, it's because there is no certification, or proof of any kind from a respected or well-known organization. . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: How to show specific records of a Dbase file
I've solved it! You have to put the field name of the DBF, not the array position. I don't know exactly why, but it worked for me. So the code is: for ($x = 1; $x $quant; $x++) { $drec = dbase_get_record_with_names($dbf,$x); echo $drec[NAME]br; } Thanks a lot for your help! Best regards On Sun, 26 Aug 2001 16:05:36 -0400, [EMAIL PROTECTED] (Hugh Bothwell) wrote: Er GalvãO Abbott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... foreach ($drec as $nome) { echo $nomebr; } But I'm trying (unsucessfully) to show only one or two fields of each records.. Instead of foreach(), try something like echo $drec[0]., .$drec[1]; (or whichever records it is you want). Note: in the PHP documentation, they specifically suggest abandoning DBase for any of the free SQL databases (MySQL, PostgreSQL, etc). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] windows media player
Has anyone done audio and/or video streaming? I'm trying to stream this music file online through windows media player. All i've been able to do is to create a href that will pop up the windows media player and stream the music. I would really like to have the windows media player embedded in the html file. Has anyone done that before? Thanks, Heidi = Heidi Belal ICQ# 32127109 A bus stops at a bus station. A train stops at a train station. On my desk I have a work station... __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ftp_get
It looks like you might not have permissions set for the web server to create files in /web/... If you know the names of the files which will be transferred ahead of time, you can manually create them from FTP or your shell, then chmod them to 777. Otherwise you might be better off creating a folder (/web/ftp/) and chmoding the folder itself to 777. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: MBK [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 2:51 PM Subject: [PHP] ftp_get How exactly does ftp_get work? I tried it several times, but it always said something like Warning: error opening /web/destinationfile.html in .scriptlocation.. on line 38 line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY); Can someone please help me with this. -Maarten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Database backup
The easiest way would be to call mysqldump from PHP (system, exec, backticks, whatever) and pipe it to a file, all from the command line. This would backup the core data in the form of valid MySQL statements. If you have several indexes, this method will actually produce smaller files as well. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Alex Sofronie [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 3:28 PM Subject: [PHP] MySQL Database backup | I tried find a solution to backup a mysql database using php but i didn't | find anything but the binary file transfer solution (just open and binary | copy all the files in my database directory). But this is not a desired | solution because it involves some security holes that I cannot afford. | Can anyone tell me where can i learn more about this? Or some simple :) and | security holes free solution? | | Thanks all. | Alex Sofronie | [EMAIL PROTECTED] | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shell or http?
It depends on how the webserver is setup. If its being run as a CGI then it depends if suEXEC is enabled. If its not, it should be run as nobody, whereas if it is (and the user/group paramater in httpd.conf is set) it'll be run as whatever the directive is set to. If its run as a module, then the userid should be nobody. Where are you trying to identify it from? /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: George E. Papadakis [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 1:36 PM Subject: [PHP] Shell or http? | Hi, | | Is there any way to identify if a php script is running through a shell or | web? | Thanks in advance. | | | -- GeorgeP | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shell or http?
Thanks for your answer Chris, What I want to do is find a way to check if a script is running as a cgi or not. Suppose I am running it from a unix shell (sgi) then I want the script to behave differently than when executed by a Web Server. I was wondering if there is an enviroment/php variable that can help me identify whether the script was sgi or web running. Thanks again. --georgep - Original Message - From: Chris Lambert [EMAIL PROTECTED] To: George E. Papadakis [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 27, 2001 1:14 AM Subject: Re: [PHP] Shell or http? It depends on how the webserver is setup. If its being run as a CGI then it depends if suEXEC is enabled. If its not, it should be run as nobody, whereas if it is (and the user/group paramater in httpd.conf is set) it'll be run as whatever the directive is set to. If its run as a module, then the userid should be nobody. Where are you trying to identify it from? /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: George E. Papadakis [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 1:36 PM Subject: [PHP] Shell or http? | Hi, | | Is there any way to identify if a php script is running through a shell or | web? | Thanks in advance. | | | -- GeorgeP | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: send mail to mailing list using mail() or smtp?
Look at some sample (or just *use*) scripts like the mail class at UpperDesign.com You just fsockopen to your SMTP server port 25, and fread/fwrite the interchange that is required by RFCs to talk nicely to SMTP. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Niklas Lampen [EMAIL PROTECTED] To: 'Richard Lynch' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, August 25, 2001 3:08 AM Subject: RE: [PHP] Re: send mail to mailing list using mail() or smtp? I'm sending a huge amount of mails with php. How can I send mail directly to the smtp server? Right now I'm using pipe to send each mail to sendmail. Works fine with about 35 000 mails, but it takes ages to run. What would be the smartest way? Thanks! -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 25. elokuuta 2001 3:54 To: [EMAIL PROTECTED] Subject: [PHP] Re: send mail to mailing list using mail() or smtp? My question - is this going to work for a few thousand emails? Depends on your server. What about 100,000? No way. Would it be better to send the mail directly to the smtp server? Yes. Can you foresee any problems? Several. The first one is you didn't read the archives or look for pre-existing code to talk to SMTP directly. :-) Manuel's upperdesign.com has one, and there are plenty of others. You could roll your own -- I did, so it can't be too tricky. :-) Also, at that volume, I think you're going to run into trouble just in talking to the all the SMTP servers. I *BELIEVE* one major speed-up can be achieved by sorting the outgoing emails by their recipient's domains... You may want to research how real mailing list software deals with this if you actually expect to hit 100K addresses. If they're all the same email, you'd be *WAY* better off just interfacing to majordomo, ezmlm, SmartList, or whatever other mailing list software was designed to handle this. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: HELP!!!
You must have changed something else as well... You still should add some error-checking. If $ins_u is FALSE, then the INSERT failed, and you ought to do something about it... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: BRACK [EMAIL PROTECTED] To: Richard Lynch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 25, 2001 3:22 AM Subject: Re: HELP!!! I'm not sure if it's right solution but I did this - $ins_u = mysql_query(INSERT INTO users (name,email) VALUES ('$u_name','$u_email')); $userid = mysql_insert_id(); instead for this - $ins_u = @mysql_query(INSERT INTO users (name,email) VALUES ('$u_name','$u_email')); $userid = @mysql_insert_id($ins_u); And it works perfectly Youri On 24 Aug 2001, at 20:51, Richard Lynch wrote: Your mysql_connect is wrong. Stop using just @ to suppress errors, and start doing something useful with http://php.net/mysql_error like sending it to http://php.net/error_log or something. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Brack [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 24, 2001 3:25 PM Subject: HELP!!! I have a script with combination: $ins_u = @mysql_query(INSERT INTO users (name,email) VALUES ('$u_name','$u_email')); $userid = @mysql_insert_id($ins_u); It's working fine on local server but now I put it on the web and it sais: Warning: Supplied argument is not a valid MySQL-Link resource in /home/sites/site21/web/incr/submition.inc on line 30 (which is line above) Youri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] The future of PHP
At 23:02 26-08-01, Manuel Lemos wrote: I don't think we have the same understanding of what is marketing. For me, marketing is being proactive in terms of promoting something before the potential market. Seeing people advocating PHP or analysts covering PHP here and there is not proactive at all. It is a result of the evolution of PHP capabilities, but it was not something that was especifically planned. Well, that's not quite true. The analysts that are beginning to show interest are a result of efforts being made in certain companies. As for advocating, I specifically mentioned companies and not people, which is what makes it pro-active. I think our definitions for marketing are quite similar :) At any rate, suggestions will be welcome. I've seen the Web Developer Ring you suggested, and I think it's worth thinking (the reason I'm not going wild with enthusiasm is that I think it also has drawbacks, not only advantages). I don't know what drawbacks do you see, but let's discuss it openly. Well, not all of the sites are of the same quality and enjoy the same maintenance level. Such sites may have a good audience and may be a good service, but they won't necessarily do a good job at presenting PHP. They may (will) also overlap in content, which would also not look very professional either. Things like that are usually not that simple, or in other words, they're easier said than done. If done sloppily, they can have a negative effect. And doing them correctly requires substantial efforts. Ok, it is not fading out, but it is fading, meaning it is no longer the exciting thing that it seemed to be and was attracting some many people from everywhere. I disagree even with the toned-down version :) I think that the Web as a medium is one of the most promising infrastructures around. True, the hype is gone, but that's a good thing. I don't think the hype moved anywhere else, it's just gone (for now :) It is not a matter of loosing that focus, but rather enlarge the focus of PHP that is adverstised for things that some people are already using it seriously. By definition of the word focus (well, almost), there's no real way to 'enlarge' it without losing it. We can play with words forever, though :) Anyway, lets just concentrate on the Web development focus. Web development is not just Web scripts that are served by the Web server. Web development is also, installing and maitaining applications and also run processes that run separately from the Web server. You know you can run PHP from the command line to do things like run database installation scripts or run cron scripts that execute periodic tasks. The truth is that most people are not aware of this. They think PHP can only be run from the Web server to serve Web pages. I was suprised by the number of people that was telling me that Perl is better for running scripts from the command line. Duh?! Why? Because nobody told them otherwise! This very wrong perception of the current PHP user base needs urgent fixing! The fix needs not to be applied in PHP, but rather in PHP users minds. PHP needs to be advertised as tool than can run scripts from anywhere, like any other language. For starters, drop the designation of PHP CGI version. Could be. The truth is that PHP *is* lacking in command line features if you compare it to Perl, because it was indeed never brought up to be a command line tool... If people are already using PHP that way for serious purposes, why neglect that it can be used that way? That only lets other languages take over a space that PHP has already conquered. I'm not saying it won't happen, but I've yet to see projects like PHP-GTK being used 'seriously'. To make it clearer, I've yet to see an application which is actually written in PHP-GTK, and is being distributed or sold. The day may come, but unlike the Web ring where we hold a huge chunk, I find it very hard to imagine seeing PHP taking a considerable chunk of the GUI market, ever. The way I see, most people tend to only use one language at once. If they see an alternative to PHP not only serves well for Web programming, but also for non-Web programming, PHP will loose its user base there. It is a matter of time until a lot of PHP people will start seeing it that way. It's really an issue of different opinions. I think our focus should remain on the Web ring, because we can't enlarge it without losing it. We can foster additional projects, such as PHP-GTK, improved command line features, etc., but the way I see it, if you want to define PHP in one sentence, the best qualifying one would still be 'A Server Side, HTML Embedded Scripting Language' (sorry Andrei ;). It's true that it can be used in other ways, but that's the focus, and the rest are useful 'exceptions'. No, I mean executables that may be just like VB executables that basically contain PHP code compiled into Zend bytecodes or whatever is enough for most people
[PHP] can you prompt for variables in command-line CGI?
for a SHELL SCRIPT using php binary: in bash I would do this: #!/bin/bash echo -n username: read username echo -n password: read password echo $username echo $password Run on the command-line, it would stop and ask me for the username and password, then continue the bash shell script. But in PHP, how would I prompt someone at the command-line for input? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Certification
I am the employer... :) I don't think Brainbench is exactly what I was looking for... but thanks anyway. BTW... has anyone taken the Brainbench test? Is it difficult? If I were to use it... like, I give a PHP course, and add to the cost the US$ 20. How many hours of PHP do u think it would take the users to get certified? At 18:00 26/8/2001 -0400, Chris Lambert wrote: Brainbench offers a PHP certification: http://www.brainbench.com/xml/bb/common/testcenter/subcatresults.xml?cat1=9; cat2=31cat3=22 However, I'd contact employers in Brazil and see what their recommendations are in terms of degrees or certifications. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Christian Dechery [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 4:53 PM Subject: [PHP] Certification | I know this is a recurrent question around here... but it's always nice to ask: | | Is there (or is it in process of...) any kind of certification for PHP. | | I live in Brazil and have been developing with PHP+Mysql for over a year, | but there are no courses around here... none. And in part, it's because | there is no certification, or proof of any kind from a respected or | well-known organization. | | . Christian Dechery (lemming) | . http://www.tanamesa.com.br | . Gaita-L Owner / Web Developer | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: What is it with _vti?
Seb Frost [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have these _vti_pvt _vti_cnf directories on my website. Why? I never put them there... can I delete them? I tried searching for this but it's impossible to search for since it seems a lot of website have these directories and it just comes up with them :-) Those directories are for Frontpage extensions. If you don't use Frontpage, it should be safe to take an axe to them. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: What is it with _vti?
Same with _private and _derive? I admit it, I use frontpage when I can't remember how to code html in textpad :-) - seb -Original Message- From: Hugh Bothwell [mailto:[EMAIL PROTECTED]] Sent: 27 August 2001 01:07 To: [EMAIL PROTECTED] Subject: [PHP] Re: What is it with _vti? Seb Frost [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have these _vti_pvt _vti_cnf directories on my website. Why? I never put them there... can I delete them? I tried searching for this but it's impossible to search for since it seems a lot of website have these directories and it just comes up with them :-) Those directories are for Frontpage extensions. If you don't use Frontpage, it should be safe to take an axe to them. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] mkdir Question
I 've the same problem and I haven´t the solucion so far. I need to create a file with the correct owner, nobody is not usefull at all. Chown and chmod are not the solution, the solution is create the dir or the file directly with the real owner, I saw a script to do that but I can´t find it again and I´m working in it but I can´t solve it. If somebody knows the solution I'd apreciate so much to know it Javi Chris Lambert [EMAIL PROTECTED] escribió en el mensaje de noticias 006901c12e7a$3f566940$[EMAIL PROTECTED] Setting the file to have 0777 permissions will allow you to read and write it from any user on the system. However, it doesn't allow you to change the ownership (or the permissions) unless you're its creator. Giancula suggested chowning the file from within your PHP script, as you're still directing from user nobody. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Jeff Oien [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 4:41 PM Subject: RE: [PHP] mkdir Question | However even the permission of 0777 doesn't let me do anything to | the directory or files in it. I can't even chown or chmod anything in | it using Telnet once it's created. | Jeff Oien | | Jeff | JO mkdir (/usr/www/users//blah/blah/$username, 0777); | JO it sets it to nobody instead of my username. | Nobody is the user runng the Apache process that's why it is the owner | of the directory. | You can chown the direcotry from your PHP script after you create | it or chmod the files you copy there. | | Cheers, | Gianluca | | | JO I'm then unable | JO to delete or modify files in that directory. Is there a way around | JO this? Thanks. | JO Jeff Oien | | | | | -- | ALBASOFTWARE | C/ Mallorca 186 - 3º 1ª | 08036 Barcelona (Spain) | Tel. +34 93454009 - +34 934549324 | Fax. +34 934541979 | @@ ICQ 47323154 @@ | [EMAIL PROTECTED] | http://www.albasoftware.com | http://www.phpauction.org | http://www.gianlucabaldo.com | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ftp_get
The user i use to login has full permissions When i login with an ordinary ftp client using that user, then i can do anything. I think when there is a permission problem the error would say that. - Original Message - From: Chris Lambert [EMAIL PROTECTED] To: MBK [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 11:50 PM Subject: Re: [PHP] ftp_get It looks like you might not have permissions set for the web server to create files in /web/... If you know the names of the files which will be transferred ahead of time, you can manually create them from FTP or your shell, then chmod them to 777. Otherwise you might be better off creating a folder (/web/ftp/) and chmoding the folder itself to 777. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: MBK [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 2:51 PM Subject: [PHP] ftp_get How exactly does ftp_get work? I tried it several times, but it always said something like Warning: error opening /web/destinationfile.html in .scriptlocation.. on line 38 line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY); Can someone please help me with this. -Maarten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] getting values inside PHP from outside script
Hi Guys, I want to write a script that retrieves quote prices off the ASX (Australian Stock Exchange) and then adds it to the database. I think the only way I can do this is by using the yahoo finance query. I need to know how I can call a string within my PHP script and then get the results. The results are returned in a comma delimited format. Any ideas? use http://au.finance.yahoo.com/d/quotes.csv?s=NABm=af=sl1d1t1c1ohgve=.csv to see the results. thanks Scott. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Session not timing outafter 180 minutes
Everything is pretty much set to default vaules. I can leave the browser open and come back 12+ hours later and the session is still active. Why?? session.cache_expire 180 PHP Version 4.0.3pl1 './configure' '--without-gd' '--with-apxs' '--with-mysql=/usr' '--with-pgsql' '--with-imap' Thanks for any help, Jeff __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] getting values inside PHP from outside script
The easy ugly one line solution: $csvalues = explode(,, implode(, file(http://au.finance.yahoo.com/d/quotes.csv?s=NABm=af=sl1d1t1c1ohgve=. csv))) /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Scott Mebberson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 9:04 PM Subject: [PHP] getting values inside PHP from outside script | Hi Guys, | | I want to write a script that retrieves quote prices off the ASX (Australian | Stock Exchange) and then adds it to the database. | | I think the only way I can do this is by using the yahoo finance query. | I need to know how I can call a string within my PHP script and then get the | results. The results are returned in a comma delimited format. Any ideas? | | use | http://au.finance.yahoo.com/d/quotes.csv?s=NABm=af=sl1d1t1c1ohgve=.csv to | see the results. | | thanks | | Scott. | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Dedicated Hosting
www.communitech.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Dedicated Hosting
Its uncommon for people to have used more than one dedicated server provider, simply because they're a bit on the expensive side and likewise comparitive reviews are hard to come by. However, I have used Communitech years back and have had only bad experiences with them. http://www.webhostingtalk.com/search.php?action=showresultssearchid=95278 - good site to search around on /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Raphael Pirker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 9:28 PM Subject: [PHP] Re: Dedicated Hosting | www.communitech.net | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] incorrect Timezone using mail() -- HELP!
Hi, Im writing this for second time.. has somebody experience this and please help me.. pleaseee When i use this function mail(), mail was sent successfully but when recipient receive the mail the date timezone is incorrect. It displayed -0800 instead of +0800. Im from +0800. The timezone does not display correctly. I have tried different servers but still the same. And all clients get the wrong date. Im Using php 4.06 and win2k and winnt4. Can anybody help me. Thanks Jeffrey Iskandar Ahmad System Engineer Technology Division TIME dotNet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Certification
I don't think Brainbench is exactly what I was looking for... but thanks anyway. BTW... has anyone taken the Brainbench test? Is it difficult? I did, it is not that difficult. It can tell you if a future employee really knows PHP. But as an employer myself, I would never rely on such a test to check if a programmer is qualified. I would check general programming knowledge and problem solving, something that these test can't do. (at least not the one I took) py At 18:00 26/8/2001 -0400, Chris Lambert wrote: Brainbench offers a PHP certification: http://www.brainbench.com/xml/bb/common/testcenter/subcatresults.xml?cat1=9 cat2=31cat3=22 However, I'd contact employers in Brazil and see what their recommendations are in terms of degrees or certifications. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Christian Dechery [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 4:53 PM Subject: [PHP] Certification | I know this is a recurrent question around here... but it's always nice to ask: | | Is there (or is it in process of...) any kind of certification for PHP. | | I live in Brazil and have been developing with PHP+Mysql for over a year, | but there are no courses around here... none. And in part, it's because | there is no certification, or proof of any kind from a respected or | well-known organization. | | . Christian Dechery (lemming) | . http://www.tanamesa.com.br | . Gaita-L Owner / Web Developer | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Error while passing parameters as path
I like your idea about using dl(). Could someone please point me where I could read on how to write dynamic loading PHP extensions. Thank you very much. P.S. I found one at http://www.webtechniques.com/archives/2001/01/junk/ Please let me know of any other good resources. Thanks. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 26, 2001 9:07 AM To: Anas Mughal Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Error while passing parameters as path Actually, I need to run as CGI because I have customized extensiont to PHP that my hosting company will not imbed in their PHP-Apache module. I am totally fine with that. Why don't you just dl() your extension into the module version? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] The future of PHP
This is very true. I have a few ideas that I want to sell, but the only way that I can do it with PHP is to give out the source, and the user is expected to know how to install PHP and set up the script. If I can compile the PHP script, then I can sell the executables. The users would only have to copy the package into a directory and use it like a cgi, and I won't have to worry about people looking into my codes. Having executable takes care of 2 concerns I have if I want to sell a solution. First, with an executable, users don't have to install PHP on their system to use my solutions. Second, users cannot see my code. Robin Manuel Lemos wrote: No, I mean executables that may be just like VB executables that basically contain PHP code compiled into Zend bytecodes or whatever is enough for most people be stopped from copy source code directly. A lot of people give up PHP because it does not provide affordable conditions to let them sell whole applications that others can't still their code, when they can just spend only US$100 or less in VB, Delphi, Java, Kylix, etc... suite and compile programs that they can distribute or sell to others without risking their business. There are a lot more other things to say on these subjects, but these should give you enough to think for a while. :-) Regards, Manuel Lemos -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] path to php
On Sun, 26 Aug 2001 22:05, ReDucTor wrote: they don't give shell access without contacting them, and they don't reply to emails - Original Message - From: ReDucTor [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 12:48 PM Subject: Re: [PHP] path to php Have you tried which php or locate php? what do you mean? no shell acces, that requires contacting them to get, which they don't read the emails :D - James ReDucTor Mitchell - Original Message - From: David Robley [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 12:20 PM Subject: Re: [PHP] path to php On Thu, 23 Aug 2001 11:05, ReDucTor wrote: does anyone know all the possible paths to php...because i can't seem to find it on my current host...i have tried using the following php /path/to/script.php /usr/php /path/to/script.php /usr/local/bin/php /path/to/script.php /usr/bin/php /path/to/script.php but i still can't seem to get it to work with out it saying that it can't find the path to php...any one got any ideas?!? btw. i know php is on it.. I have tried contacting them, but they don't seem to want to reply... Have you tried which php or locate php? If you don't have shell access you'll have to fiddle around with backticks or whichever of system() and friends is appropriate. Yeah, well like I said, if you don't have shell access, use system() or backticks or something from a php script. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA DOS Tip #63: add BUGS=OFF to CONFIG.SYS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Cookieless =(
I love cookies. I hate it when they dont work. I was previously accessing cookies by just using their name (I had global_vars turned on), I recently decided to turn it off(for security reasons) and I can no longer even set cookies? Yes,cookies are enabled and everything..in fact,I never even touched any of the cookie functions.. thats what I dont get... anyone have any ideas on what could be wrong? (And yes, im using $HTTP_Cookie_VARS[cookiename]; to access (try and access, that is) them now.. Anyone know what might be wrong? Any helps appreciated, thanks. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Error while passing parameters as path
If you use the ext/ext_skel mechanism for creating your extension framework your extension will be able to build shared automatically. Just do ./configure --with-blah=shared and look in modules/ -Rasmus On Mon, 27 Aug 2001, Anas Mughal wrote: I like your idea about using dl(). Could someone please point me where I could read on how to write dynamic loading PHP extensions. Thank you very much. P.S. I found one at http://www.webtechniques.com/archives/2001/01/junk/ Please let me know of any other good resources. Thanks. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 26, 2001 9:07 AM To: Anas Mughal Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Error while passing parameters as path Actually, I need to run as CGI because I have customized extensiont to PHP that my hosting company will not imbed in their PHP-Apache module. I am totally fine with that. Why don't you just dl() your extension into the module version? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] undefined variable view ...
On Mon, 27 Aug 2001 02:59, Wolfgang Schneider wrote: Hi everybody, can someone have a look at this bit of code please and help me out? I am getting an error message when calling a php page containing the code below, and the message reads: Warning: Undefined index: view in c:/bibelcenter.de/www/links/links.php3 on line 76 Now the line 76 in question is the last one of the code section below ... can someone tell me what's missing there? how could this index view be defined? # Get the content before showing the webpage if ($HTTP_GET_VARS['category'] == 'top_links') { $your_current_location = Most Popular Links; $category_links=Top_Hits($sp_max_top_links); } else if ($HTTP_GET_VARS['category'] == 'new_links') { $your_current_location = Newly Added Links; $category_links=Newly_Added($sp_max_new_links); } else { $categories = viewPage($HTTP_GET_VARS['category']); $your_current_location = display_category($HTTP_GET_VARS['category']); $category_links = display_category_links($HTTP_GET_VARS['category'], $HTTP_GET_VARS['view']); } _ Any helpful ideas? I only get this warning message in my Win2k machine which I have set up for testing webpages purposes, it does not show up on my ISP's server ... so I suspect that somehow the server's php tolerates something in the code which my php version here somehow puts up the warning ... Any helpful hints and ideas are much appreciated. Thank you! There will probably be different levels of error reporting in the two php.ini files. view is an index of the array $HTTP_GET_VARS, and is apparently not defined at that part of the script. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA A cat sleeps fat, yet walks thin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]