Re: [PHP] IMPORTANT, wanna know about MY PROJECT SALE !!!
Amen - Original Message - From: r [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 25, 2002 8:36 PM Subject: Re: [PHP] IMPORTANT, wanna know about MY PROJECT SALE !!! I would really like to call you scum but I think the scumy people of this world would object. This aint a auction or any type of selling market, try greatdomains.com or some such service, I'll bet your little ding a ling that what ever you have on your site can be made in a few days by over 80% of the people who recieve this listor got off the open source market, so basically pal...shove it. Have a bad day, -Ryan On Fri, 24 May 2002, Kamran Shakil wrote: I personally have got 10 big and small demanding , complete solution websites, in php , made with access database with odbc connection string..wanna sell them for adequate and handsome price ? wanna know sites regarding sales and exchange of projects -- 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] UPLOADING IMAGE
http://www.zend.com/zend/spotlight/uploading.php Who's server are you trying this on mate? Yours or mine? - Original Message - From: Dani [EMAIL PROTECTED] To: 1LT John W. Holmes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, May 26, 2002 10:38 AM Subject: Re: [PHP] UPLOADING IMAGE Thanks for replying Sorry about not providing the info well... when I hit submit button, it goes to the 'uploadfile.php' page, but it doesn't print anything at all. I check in my folder and the file is not copied either. thanks, Dani 1LT John W. Holmes wrote: HOW IS IT NOT WORKING? Are you getting an error? Is your hard drive being erased? Do you get little electrical shocks from the wires tied into your braces when you hit enter and upload a file over 10k that has blue and yellow within it but not part of the border Info, man...provide it. ---John Holmes... - Original Message - From: Dani [EMAIL PROTECTED] To: 1LT John W. Holmes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, May 25, 2002 8:24 PM Subject: Re: [PHP] UPLOADING IMAGE I have tried to use the filename but it's still not working. here is the whole code I've got: ** First file called 'upload.php' html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 form name=form1 method=post ENCTYPE=multipart/form-data action=uploadfile.php table width=50% border=0 cellspacing=0 cellpadding=1 tr td width=21%File/td td width=79% input type=FILE name=file /td /tr tr td width=21% input type=submit name=Submit value=Submit /td td width=79%nbsp;/td /tr /table /form /body /html **second file called 'uploadfile.php' ?php if($file) { echo file name :,$file_name,P\n; copy($file,D:/graphic_practise/$file_name); print(file uploaded); } ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP!!! QUOTES!
echo My dog has \fleas\; - Original Message - From: Shane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 25, 2002 9:20 AM Subject: [PHP] HELP!!! QUOTES! Question Please. What is the syntax for getting double quotes to appear in an echo statement. EXAMPLE: echo My dog has 'fleas'; puts out... My dog has 'fleas' But I need it to put out... My dog has fleas (NOTE DOUBLE QUOTES) (So I can call a JavaScript function) What am I missing here? As always... Thanks in advance my friends. - Shane -- 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] Selective SafeMode {?!}
Hi guys, I was wondering if it were possibe to have safemode activated for some users but not others. Say I have 3 Virtual Hosts in Apache. I don't trust one, but I want him to have PHP, so I enable safe mode. But the others are my mates and they don't want safe mode. How could I get around this? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Leading zeroes
Does anybody have a clever and efficient way of getting rid of leading zeroes in a string? __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Leading zeroes
From version 4.1.0, $str = ltrim($str, '0') This works excellently. Thanks. One problem that I didn't think of, though: If the number is 0 (only 0), then the string ends up being empty. Is there a way around that? I put an if statement in saying if the string is empty, then the string is 0. Any better way? __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Leading zeroes
I'm a newbie, but maybe this'll do it: if ($str!='0') { $str = ltrim($str, '0') } Duh. Sometimes I amaze myself at how stupid I can be. Thanks. :) __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Bulletin Boards
Phorum is nice and simple. phpBB has more features, generally better. Both are very good systems. I'd recommend phpBB for a more 'fun' type of site and phorum for a more serious atmosphere. But both can be configured accordingly. Cheers, Liam - Original Message - From: Richard Baskett [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Saturday, May 18, 2002 6:51 PM Subject: [PHP] Bulletin Boards Has anybody used phpBB Phorum? And if so, which did you like better and why? And if you've used other systems.. Which did you like best and why? Thanks! :) Rick We should be taught not to wait for inspiration to start a thing. Action always generates inspiration. Inspiration seldom generates action. - Frank Tibolt -- 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] eregi(mail)
Thanks to all who helped out with the eregi(mail) stuff. I got my problem solved, and on top of that, there were some bugs that I found in the code. Thanks again to everyone. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Plz dont hate me for this
nononononon www.vectorstar.net EXCELLENT hosting and it's free! - Original Message - From: Salman Ahmed [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 12:05 PM Subject: [PHP] Plz dont hate me for this Hi, I am also PHP lover plz dont hate me for this but I really need to know any free perl hosting company where I can host my perl script. Only circumstances has made this that I programming in perl. I have no idea where to put my question, as I always did programming in php and asked this list. So I am asking this question here to, plz tell me about free CGI hosting site. Asking for the help and forgiveness Statbat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] GD library problem
This is funny: I have getimagesize(), but not createimage() and things like that. Is this because getimagesize() is not part of the GD library...? Or is there a problem with my GD library? Also, is there any resolution to this GIF copyright thing going on with Unisys? I want to be able to resize images and whatnot, but I don't want to multiply image upload time by about 5 because I have to switch to JPG format. Is PNG format supported by older browsers? Incidentally, getimagesize() works on GIFs. I thought GIF format wasn't supported. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GD library problem
getimagesize() is not part of GD. You likely didn't add the GD extension correctly to PHP. That's what I figured, but I wasn't sure about it. Dagnabbit. I'm gonna have to try harder with GD. :) The copyright issue really has nothing to do with PHP. Talk to the GD folks. It is not our decision. With the bundling of GD in 4.3 that changes a bit, but it only applies to generating gifs, not reading them. There are versions of GD out there that have jpg, png and gif all included. PHP supports these hacked versions. I know it has nothing to do with PHP. I just thought someone might have some news on it. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Use of an array element
Is there any way of using an array element in the same line as it is filled? For instance, here's what I have: Say I want the image width of a pic, I have to: $f = getimagesize(certainpic.jpg); print($f[0]); After this, I never use $f anymore. There's no reason to have it hanging around. Is there any way I can simply just getimagesize() and print the width at the same time, like say: print(getimagesize(certainpic.jpg)[0]); This is only an example. I'm sure there may be a function that will return an image width and be able to print it instantly, and yes I can whip one up, but the point is to be able to use an array element at the same time that the array is filled. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending Html Pages
If you read up about 10 messages you'll get the answer. Also, RTFM. (Don't ask what that means, because if you read up 10 messages you'll find out) http://www.php.net/manual/en/function.mail.php - Original Message - From: Salman Ahmed [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 12, 2002 9:25 PM Subject: [PHP] Sending Html Pages Hi, I am trying to send html pages via email, that is instead of sending plain text format to the client I am trying to send Rich Text using mail function of PHP. At first I was sending -- Hello Bob, Thanks for downloading this from my site -- BUT for Rich Text I am doing -- !DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN' html head meta content=text/html; charset=iso-8859-1 http-equiv=Content-Type /head body div align=left table border=0 cellpadding=10 cellspacing=0 width=500 tr td font face=Verdana size=2 Hi, br Thanks for downloading this from my site /font /td /tr /body /html -- But what happens is instead of sending html page it sends as a text with all code displayed as it is without being parsed. Please tell what can I do to send rich text emails as the this one u are reading to the clients using PHP mail function. Kind Regards Salman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] GD (Image generator) {?!}
Hi guys, Got a little prob that's got me stumped. This simple image generator script: http://scripts.operationenigma.net/image_generator.php Source: http://scripts.operationenigma.net/image_generator.phps works, I know because it was working on my system before I recompiled PHP. Feel free to have a play, but just clicking submit as-is should generate a black box with the text in it. Now, however, it doesn't work... Here's my phpinfo(): http://scripts.operationenigma.net/phpinfo.php It says GD's compiled in there, but it doesn't work! Surely there's a logical explanation for this... Any help is appreciated :-) Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] GD (Image generator) {!?}
Hi guys, Got a little prob that's got me stumped. This simple image generator script: http://scripts.operationenigma.net/image_generator.php Source: http://scripts.operationenigma.net/image_generator.phps works, I know because it was working on my system before I recompiled PHP. Feel free to have a play, but just clicking submit as-is should generate a black box with the text in it. Now, however, it doesn't work... Here's my phpinfo(): http://scripts.operationenigma.net/phpinfo.php It says GD's compiled in there, but it doesn't work! Surely there's a logical explanation for this... Any help is appreciated :-) Cheers, Liam P.S. Resent this cause the first one bounced, I think... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Send html email
RTFM http://www.php.net/manual/en/function.mail.php - Original Message - From: Alex Shi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 12, 2002 10:00 AM Subject: [PHP] Send html email Hi! How can I send a html email with just the build-in function mail()? Is this required to put some infomation in header field? Thanks in advance! Alex -- 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 builds
Hi all, I need some opinions, what are some good modules to build into PHP? I'm starting a hosting service (properly) Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] eregi(mail)
Does anyone have a decent eregi statement for validating e-mail addresses? I've tried the ones on the site, but there seems to be small bugs with each of them. They tell me that [EMAIL PROTECTED] is an invalid e-mail address. __ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MySQL or FlatFile
MySQL - Original Message - From: David Duong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 11, 2002 10:29 AM Subject: [PHP] MySQL or FlatFile To store large values (100k+) and load them as much as 6+ times within the same hour what would be better MySql or Flatfile? -- 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] Re: Apache is not rendering php pages. Config problem?
That's strange.. I always compile in this order... 1. MySQL 2. PHP 3. Apache - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 11, 2002 9:10 AM Subject: [PHP] Re: Apache is not rendering php pages. Config problem? I did find the prob! So for all guys struggeling with the same one.. First install apache, then php! I did reinstall apache after php. After compiling php again it is up and running. Thanx guys, Andy Javier [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of php and apache do you use? Andy wrote: | leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich | dann: | | Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: | Cannot load /usr/local/apache/libexec/libphp4.so into server: | /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No | such file or directory | | die datei libphp4.so befindet sich auch definitiv nicht auf der maschine. | Hab ich da was bei der compillierung falsch gemacht? | | Gruss Andy | | | Sven Herrmann [EMAIL PROTECTED] schrieb im Newsbeitrag | [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | |There is no phpmodule in there, so I cant activate it. I did include | |some | |lines from my old config: | |AddType application/x-httpd-php .php4 .php3 .php |AddType application/x-httpd-php-source .phps | | |if you're using Apache 1.x you need to add: |LoadModule php4_modulelibexec/libphp4.so | |or if you're using Apache 2.x |LoadModule php4_modulemodules/libphp4.so | | |Sven | | | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzcTU4ACgkQNcG5oyVditsjtwCdH5LLJ+mPJz27xiuZXDrESbeR gf4An3f37WvVJMcXuNPQmUIYyoHDbh/1 =MLof -END PGP SIGNATURE- -- 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] Bandwidth monitoring {!?}
Hi all, I was wondering if anyone knows of a system that will keep track of the amount of bandwidth a site has used. For example, someone has webspace, but is limited to 1 gig of data transfer. Someone downloads a 500M file off their site, so they've obviously got 500M left. Is there a script that can monitor this? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Adding up values
Hey all, another real basic question, how would I add up all the numbers in a log file in this format? Start log file 6353 3309 294 762 6443 6353 3309 - - - - - - 294 762 6353 6443 3309 - - - - - - - - 294 867 859 7695 97 49 - - - - --- end log file how can I add all the numbers without having those dashes causing a problem? cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Creating mail account on Linux server
I don't know, can it be done? http://scripts.operationenigma.net/adduser.php - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 08, 2002 12:06 AM Subject: Re: [PHP] Creating mail account on Linux server On Tuesday 07 May 2002 22:02, Rosen wrote: Hi, How can I create a mail account on Linux server with PHP ? Depends on what mail server you have and how it is set up. Can I do it ? In theory yes. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Don't tell me what you dreamed last night for I've been reading Freud. */ -- 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] Who's having a good hosting experience these days? {!?}
Free web hoting for PHP developers MySQL database (more if you need more) Subdomain, or I can host your domain Apache /w all the bits and pieces Slackware Linux OS 512/512 Cable connection in Brisbane, Australia Only catch is, I've got a 3 GIG monthly transfer limit, so no big uploads/downloads please (such as MP3s) Email me if you're interested. - Original Message - From: The_RadiX [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Justin French [EMAIL PROTECTED] Sent: Monday, May 06, 2002 5:31 PM Subject: [PHP] Who's having a good hosting experience these days? Um Justin.. Hi.. or should I say.. Hi fellow Aussie mate .. :) Yeah I am in oz too and asked some hosting questions a while back.. Your host has only 2GB downloads on the UNIX plan and also that's at US$15 p/m.. isnt that a tad pricey? I was looking into powweb.com or aletia.com at much cheaper pricing and larger services (200mb storage, 10/12Gb p/m,etc) What do you think of these.. Thanks... ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494 : QUT Student #: 04475739 ::: - Original Message - From: Justin French [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 06, 2002 10:22 AM Subject: Re: [PHP] Who's having a good hosting experience these days? Cheap? I've been with experthost.com for around 8 months, with very little to complain about... I've got a reseller account with about 12 domains, so i'm paying around US$6each, and I think the standard is US$15each for one, $10ea for two, and then a sliding scale up to 25 domains @ $5ea or something. It *shouldn't* be about the money, but I'm currently making a healthy profit out of hosting some client domains under my account. Reliable? They have intelligent support staff on 24/7, and they've had one service fallout in this time. It was a biggie, and I had to reload some data from my local copy, but I'd like to believe this was a one-off. Fast? The service seems fast (although I'm in Australia, so pings times are affected by sheer distance). Feature Rich? 50meg, 20POPs, redirects, groups, auto-responders, 2GB bandwidth, MySQL, webmail, recent versions of Apache/MySQL/PHP, intelligent support staff, etc etc. I'm pretty happy. Better still, they offer a free 1 month test account, so you can try them for yourself. Justin French Creative Director http://Indent.com.au on 06/05/02 9:19 AM, David Freeman ([EMAIL PROTECTED]) wrote: My hosting service which WAS cool about 2 years ago has grown into a bloated mess of zero logic. Fast, Reliable, Cheap, Feature-Rich Now pick any three. In the end I guess you get what you pay for. If you can only afford a lower price host then you only get lower value. CYA, Dave -- 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] Free Hosting /w PHP/MySQL {!?}
Free hosting for PHP Developers. As many MySQL Databases as you need PHP with all the bits http://scripts.operationenigma.net/phpinfo.php FTP Access Subdomain or Your own Domain Tech Support over MSN if needed 98% Uptime 512/512 Connection based in Brisbane, Australia Only catch is that I can't have downloads on my servers. I have a 3 Gig Monthty transfer limit, so no MP3s or thereabouts please. Contact me if you're interested. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Tailing Files
Hi guys, just a simple question, how would I go about displaying the last 100 lines of a log file? I know that on the command line it's: tail -n 100 access_log Is there a PHP function to do this? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tailing a log file {!?}
OK, I did this and it does nothing but cause a loop and crash my browser... ? exec(tail -n 100 /www/logs/access.log,$result); for ($i=0; $i$result; $i++) { echo $resultBR; } ? What's the problem with that? Cheers, Liam - Original Message - From: Tom Rogers [EMAIL PROTECTED] To: Liam MacKenzie [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 4:35 PM Subject: Re: [PHP] Tailing a log file {!?} Hi You need exec(tail -n 100 access_log,$result); $result will be an array with the output of the command. see http://www.php.net/manual/en/ref.exec.php for more info Tom At 01:51 PM 4/05/2002, Liam MacKenzie wrote: Hi guys, just a simple question, how would I go about displaying the last 100 lines of a log file? I know that on the command line it's: tail -n 100 access_log Is there a PHP function to do this? Cheers, Liam -- 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] Tailing a log file {!?}
It returns nothing It's got me stumped - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 5:58 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 15:32, Liam MacKenzie wrote: OK, I did this and it does nothing but cause a loop and crash my browser... ? exec(tail -n 100 /www/logs/access.log,$result); for ($i=0; $i$result; $i++) { echo $resultBR; } ? What's the problem with that? An infinite loop most likely. Remember, $result is an array. Try: foreach ($result as $val) { echo $valbr; } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* This is National Non-Dairy Creamer Week. */ -- 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] Tailing a log file {!?}
Sorry, I should have included this in the first email... Here's my full code. Page is called like this: log.php?open=access.loglen=150 = PRE FONT SIZE=2 COLOR=#00 FACE=Tahoma ? echo BExcecuting:/B tail -n $len /www/hosting/domains/lanolot/logs/$open BR; echo IDisplaying the last B$len/B lines of B$open/B.../IBRBRHRBR; exec(tail -n $len /www/hosting/domains/lanolot/logs/$open, $result); foreach ($result as $val) { echo $valbr; } ? /FONT /PRE = When I call the page, I get the expected at the top: Excecuting: tail -n 150 /www/hosting/domains/lanolot/logs/error.log Displaying the last 150 lines of error.log... But there's nothing underneath it. Any help would be greatly appreciated. Cheers, Liam - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 5:58 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 15:32, Liam MacKenzie wrote: OK, I did this and it does nothing but cause a loop and crash my browser... ? exec(tail -n 100 /www/logs/access.log,$result); for ($i=0; $i$result; $i++) { echo $resultBR; } ? What's the problem with that? An infinite loop most likely. Remember, $result is an array. Try: foreach ($result as $val) { echo $valbr; } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* This is National Non-Dairy Creamer Week. */ -- 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] Tailing a log file {!?}
$cmd = exec(tail -n $len /www/hosting/domains/lanolot/logs/$open, $result); echo $cmd; Still returns nothing under the top text. All log files are chmodded 644 and are owned by the web server. The paths to the files are correct. I've run out of ideas =( Thanks - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:22 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 16:09, Liam MacKenzie wrote: Sorry, I should have included this in the first email... [snip] When I call the page, I get the expected at the top: Excecuting: tail -n 150 /www/hosting/domains/lanolot/logs/error.log Displaying the last 150 lines of error.log... But there's nothing underneath it. 1) Check that you have permissions to access the file 2) Add a 'return_var' to your exec() call. And check what this contains. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* DeVries' Dilemma: If you hit two keys on the typewriter, the one you don't want hits the paper. */ -- 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] Tailing a log file {!?}
I have PHP's safe mode enabled, can't use backticks. And no I can't disable it, I'm hosting a few hundred sites =) I looked up return_var in the manual and got nothing, had a read of return() but don't quite understand how that would benefit what's happening. Could you please give an example? Thanks! Liam - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:40 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 16:25, Liam MacKenzie wrote: $cmd = exec(tail -n $len /www/hosting/domains/lanolot/logs/$open, $result); echo $cmd; Still returns nothing under the top text. All log files are chmodded 644 and are owned by the web server. The paths to the files are correct. That's not what I meant by 'return_var', check the manual. I've run out of ideas =( I prefer something simpler than exec(), try: $output = `tail -n $len /www/hosting/domains/lanolot/logs/$open`; echo $output; -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* This fortune is inoperative. Please try another. */ -- 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] Tailing a log file {!?}
That doesn't work either! Something's going on here... - Original Message - From: Tom Rogers [EMAIL PROTECTED] To: Liam MacKenzie [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:49 PM Subject: Re: [PHP] Tailing a log file {!?} Hi The following works for me, give it a try with the correct path. ? exec(tail -n 50 /usr/local/apache/logs/access_log,$result); echo count($result). results returned. br; if(count($result) 0){ foreach($result as $line){ echo $line.br; } } ? Tom At 06:25 PM 4/05/2002, Liam MacKenzie wrote: $cmd = exec(tail -n $len /www/hosting/domains/lanolot/logs/$open, $result); echo $cmd; Still returns nothing under the top text. All log files are chmodded 644 and are owned by the web server. The paths to the files are correct. I've run out of ideas =( Thanks - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:22 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 16:09, Liam MacKenzie wrote: Sorry, I should have included this in the first email... [snip] When I call the page, I get the expected at the top: Excecuting: tail -n 150 /www/hosting/domains/lanolot/logs/error.log Displaying the last 150 lines of error.log... But there's nothing underneath it. 1) Check that you have permissions to access the file 2) Add a 'return_var' to your exec() call. And check what this contains. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* DeVries' Dilemma: If you hit two keys on the typewriter, the one you don't want hits the paper. */ -- 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
[PHP] Displaying contents of MySQL Table {!?}
Hi all, got a problem here... This bit of script works, but it displays the results the wrong way. I have to scroll to the end of the page to see the last bit of data entered into the database, I want the last bit of data entered to be displayed first. ? $usr = lanolot; $pwd = ...; $db = lanolot; $host = localhost; $cid = mysql_connect($host,$usr,$pwd); if (!$cid) { echo(ERROR: . mysql_error() . \n);} $SQL = SELECT * FROM admin_shouts; $retid = mysql_db_query($db, $SQL, $cid); if (!$retid) { echo( mysql_error()); } else { while ($row = mysql_fetch_array($retid)) { $comment = $row[comment]; $date = $row[date]; $uid = $row[uid]; echo FONT SIZE='2' COLOR='red'I$date/I/FONTbr $comment BRBRBR ; } } ? Is there a simple way that I can reverse the display order of the results? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Tailing a log file {!?}
Hi guys, just a simple question, how would I go about displaying the last 100 lines of a log file? I know that on the command line it's: tail -n 100 access_log Is there a PHP function to do this? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Stupid question
I have a script that outputs this: 0.023884057998657 What's the command to make it shrink down to this: 0.023 I thought it was eregi() something, but I forgot. sorry Cheers (I've spent the last 10 minutes reading the manual, can't find it!!!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP Editors
Thanks to everyone for your suggestions. I went with EditPlus 2. The project features, easy access to all files, and directory-wide search-and-replace functionality are what hooked me. I'm still looking around, though, so if anyone has any other suggestions, let me know. The Zend product looks nice, but tell me I have a six-hour download time (?!). I have a slow connection, okay...? :) Stupid dialups. I'll download it first thing when I have six hours to spend. The big disappointment was QaDRAM Studio, which was so buggy and unstable, it only took me until I tried to create a project (the first thing I did upon loading the software) before it crashed my entire system and forced me to reboot. Trying to uninstall it is impossible, as well, since when I try to repair, remove, or modify it, it proceeds to tell me that it can't do any of these on software that isn't installed. Go figure, since I installed it about five minutes prior. I stayed away from this after about thirty seconds. I can only promise these results in Win98; any other system, install at your own risk. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Database Duplication
Maybe I should explain myself a little better. Sorry for leaving out what turned out to be crucial details. What is happening is I want to make a test user so that, whenever I log in with that user, I can muck up the database and not worry about what others will see or permanent changes. In the past, whenever I tested the site, I had to quickly reset any changes I'd done to the database, which sometimes involved an hour or more of work for hidden bugs that I ended up overlooking. The test user (whom only I know of) is needed to test the Web site (make sure things are being deleted as needed, etc.). What I envisioned is that, when I log in as 'testuser', the database will be duplicated and I'll use that. While I'm testing my site, mucking things up, screwing up the data, I don't have to worry about other users coming along and seeing these changes, because they'll be seeing the original, , unscrewed data (which is why I need to use a muckable, duplicate database), making changes, etc. This way, that hour of work I mentioned would be eliminated. When I log out, the database is useless because it's only really test data (with enough real-life data already populated in the database), and so it doesn't matter what changes users have done in the meantime. What I may do is just duplicate the database and have a permanent, screwable database to play with, because that seems like less of a load on the system. I just wanted to have up-to-date data in my screwable database. The above method looks like a lot of processor time, etc., so just making a permanent test data database may be the best option, so it doesn't have to keep recopying. I just thought I'd throw out the question and see if it was smaller than I thought it would be. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Database Duplication
I'm going to guess you are using mysql. Dagwood. I always leave details out. Doesn't matter what it is. Yes, it's MySQL, and I'm forwarding this to the list because you're not the only one that caught my oversight. Sorry about that again. Before starting a test, dump your database with the mysqldump command. Edit this file to create/use your test database. Load your test database with this file. Hmm. No I didn't do this. Not too familiar with all the intricacies of MySQL (or SQL). I'll take a look at dumping the database. This is too obvious and too easy...therefore, I assume you already did this and it did not provide what you needed. What additional functionality are you seeking? I'm just seeking a database duplication that I can throw away after I'm done. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Editors
Does anybody know of any PHP project editors, something that will group together all the PHP, INC, HTML, CSS files together into one logical project? Preferrably freeware/shareware, obviously. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Database Duplication
I'm not sure if this is possible in PHP (maybe it's even an SQL problem, I dunno), but is there a command that will duplicate a database? I need to make a 'mirror' of it that I can dispose of after my user logs out that won't change the source database at all. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Redirecting
RTFM? what's this abbrev? - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 27, 2002 4:55 PM Subject: Re: [PHP] Re: Redirecting On Monday 22 January 2001 14:31, The_RadiX wrote: IOW ?? what's this abbrev? in other words -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I hold it, that a little rebellion, now and then, is a good thing... -- Thomas Jefferson */ -- 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] Array function to delete
But PHP builtins will do exactly this, around 3 times faster, too. :) Yup. This one with array_diff was the winner. Thanks to all for your suggestions and Lars for the working one. Liam __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Variables not set
I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() { $h = $this; $i = $that; } function that() { } Now, when I run this(), $this isn't set (even though it's above it in the same file). I can pretty much guess (when running a function, it won't parse through the whole file, just skips to that function), but I was wondering if there is another solution. I'd hate to separate the variable settings and the functions, but will if I have to. __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Redirecting
Hey all, Just curious as to what the best way is to move someone off your site, apart from bringing up a picture of male pornography... Seriously, I've tried using header(Location: http://www.php.net/;); but it returns an error saying that the headers are already set. The situation I'm in is as follows: Need to send a user to http://www.examplesite.com/ from a PHP script in http://forums.examplesite.com/ Thanks for the help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Security Leak
I'm wondering if anyone has any ideas on how to make a login site more secure. Since I'm not really sure if I've explained myself well enough and don't really know how else to say it, I'll just give examples and then you guys can follow suit and mention some oversights: I have a regular logon: username and password. What it does is, when the user types in a name and pword, it forwards to another PHP page (a 'middleman' page that is there just to compare usernames and pwords), validates by checking the SQL database, then header forwards to the login page. A cookie is created, and voila, you're allowed into what we'll call the 'account pages'. Now, here's my 'security' (notice the quotes): 1. You can't log in when the URL includes a username and/or a password (so that no one can make direct links). 2. Same with an account page: you're redirected to the login page if you include a username and pword when linking to an account page. 3. The 'middleman' page also has this protection: you cna't directly link to it with a username and pword in the URL. Basically, users can't get into anything when they include a username and pword in the URL. 4. Obviously, you don't get access if your username and password don't match anything in the database (thought I'd mention it even though it goes without saying). 5. You can't login from a page that isn't on the server. Is there any validation or security holes that I'm overlooking? __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Array function to delete
I've been checking the PHP documentation, but can't find a function that will delete a member of an array, like such: $a = array(1, 2, 3, 4, 5); Use the function, say array_delete($a, 3); and that will delete the third member in the array (which would be 4 above), so that the array would contain 1, 2, 3, 5. Is there such a function? __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Array function to delete
Thanks for all your help, everyone, but both suggestions (unset and array_slice) pretty much didn't improve on my current way. I was jsut trying to find a faster way, but unset doesn't seem to be working properly (but I'll need to fiddle more) and the array_slice way is just too intensive. for($counter = 0; $counter count($listitems); $counter++) { if($listitems[$counter] != $item) $newlist .= ,$listitems[$counter]; } $newlist = substr($newlist, 1, strlen($newlist)); $listitems = explode(, $newlist); __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Removing Irregular characters
Hello I have a form that is to entered into a MySQL database. A couple of the feilds must contain irregular characters, such as (/\+;]{'.,:?}|_~`) What MySQL Field type should I use? varchar doesn't work. Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Lists
This is a PHP help list, if you've got a question, by all means just post it here. BUT!! You will be given a short shift if it's obvious that you haven't read the documentation first. Download this, it's the most useful doovey I've ever downloaded: http://www.php.net/download-docs.php List Archives: http://www.php.net/mailing-lists.php Script sites: http://www.hotscripts.com http://www.phpclasses.org The two best I rekon - Original Message - From: Dan Horth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 8:55 PM Subject: [PHP] PHP Lists Hi - being new to the lists and noticing that the first few posts that came through have been reasonably specific and implementation based I was wondering if there were any other more general php solution type lists - or is it appropriate to post is there a php solution for this type questions to this list too? Also being new to PHP development I was wondering if someone could point me in the direction of: 1) list archives for this list 2) good php script repository sites 3) any other php development related sites or lists that will help get me going! thanks in advance, dan. -- 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] Upload
http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_ Systems/ - Original Message - From: Gabriele Biondo [EMAIL PROTECTED] To: ML PHP [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 11:00 PM Subject: [PHP] Upload Hi, guys! Does anyone know how to write a php script to upload a file from my browser? Moreover; how could i avoid security errors? Thanx in advance Gabriele -- 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] Attachments
http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Email_Utili ties/ - Original Message - From: The_RadiX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 10:22 PM Subject: [PHP] Attachments I have read briefly through past topics.. Just wanted to know: A) How do you use attachments in the: mail() function B) how using attachments would I compose an email to batch off using text/html as a optional item if the client supports it or use the default text/plain ?? Thx a heap ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494 : QUT Student :: 04475739 ::: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Arrays in forms {?!}
Hi all, I have a form, with about 40 checkboxes, I want to write a PHP document that processes the submission and displays the values of the checkboxes that were checked. Pretty basic stuff, I've tried a few different things, some work but display Array at the top of the list of values. Snippet of HTML td input type=checkbox name=games[] value=Counter-Strike /td tdCounter-Strike/td td input type=checkbox name=games[] value=Total Annihilation /td tdTotal Annihilation/td /tr /Snippet of HTML Snippet of PHP while ( $element = each( $games ) ) { echo $element[value]; echo br; } /Snippet of PHP I tried this too, it gave the same results as the above... if (is_array($games)) { for ($z=0;$zcount($games);$z++) { echo $games[$z]BR; } } else { echo $games; } I'm missing something real stupid, please help me out Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mass Mail {?!}
Hey all, I was just wondering if someone's written a script that will let me send lots of emails to an address, but with a small pause inbetween emails. And no I'm not using this for spam, I need to test a SMTP server that I'm developing. Thanks for your help!
Re: [PHP] file locks
Is there a way for a script to tell if the file it's trying to access is locked by other script (via flock()) or not. I need to make script wait untill other script running in a parallel thread releases the lock on the file. Without testing, would this work? Just a suggestion (read: shot in the dark) that may work. while(!$filehandle) { $filehandle = fopen(file_in_question, r/w/whatever); } Tnx in advance. You're welcome in advance. :) __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New Server, Bad Attitude
Thanks to Tyler Longren, Hiroshi Ayukawa, and Matt Schroebel for your help. I've made big changes; the encryption thing is still throwing me for a loop, but the other two are fixed up (mostly). __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Speaking of sockets...
... I gotta problem with them. I'm trying to connect to the server (same one from which the page is at). My code is as follows: if($searchsocket = fsockopen(127.0.0.1, 8080, $errornumber, $errormessage, 30)) { Obviously 127.0.0.1 is not the real IP address. But it's at this point that it's reporting error number 111 (Connection refused). Is that because my line of code is wrong? I'm trying to connect to port 8080. Should I just leave the port blank and put :8080 after the IP address? Is this because there could be something about the server which is breaking the code? What's going on? __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New Server, Bad Attitude
My friends' server is giving me a hard time. What happened is (long story short) he was forced to use a new server for the web sites on his old one. One of them was mine. I'm experiencing some weirdness now: 1. PHP automatically sticks in the backslash in front of apostrophes and quotation marks. This seems weird Don't trust it. What's up here? 2. The encryption method seems to be different. This is weird, because (basic password scenario here), I can log in to my account (the server encrypts my password properly and compares it to the one 'on file' and voila). But, when the password is changed, encrypted, and saved, it seems to encrypt differently than when simply entered in a login screen. Now it seems to have a bunch of $ signs in it, whereas before it didn't. 3. The mail function doesn't send e-mail, or I should say hasn't yet (after a few hours). Is this a PHP setting? Maybe the sendmail functionality is wonky on the server? Or is it possible PHP isn't looking in the proper place for the sendmail stuff? Now, not being totally hardware-savvy, I'm not sure what could cause these. One thing may be that the OS is different (was Redhat, is now Debian). Also, my friend upgraded from PHP3 to 4. Any light on this situation? __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New Server, Bad Attitude
My friends' server is giving me a hard time. What happened is (long story short) he was forced to use a new server for the web sites on his old one. One of them was mine. I'm experiencing some weirdness now: 1. PHP automatically sticks in the backslash in front of apostrophes and quotation marks. This seems weird Don't trust it. What's up here? 2. The encryption method seems to be different. This is weird, because (basic password scenario here), I can log in to my account (the server encrypts my password properly and compares it to the one 'on file' and voila). But, when the password is changed, encrypted, and saved, it seems to encrypt differently than when simply entered in a login screen. Now it seems to have a bunch of $ signs in it, whereas before it didn't. 3. The mail function doesn't send e-mail, or I should say hasn't yet (after a few hours). Is this a PHP setting? Maybe the sendmail functionality is wonky on the server? Or is it possible PHP isn't looking in the proper place for the sendmail stuff? Now, not being totally hardware-savvy, I'm not sure what could cause these. One thing may be that the OS is different (was Redhat, is now Debian). Also, my friend upgraded from PHP3 to 4. Any light on this situation? __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re:[PHP] what should be my wishlist?
2/04/2002 7:47:34 PM Make sure you get all the TTF packages with GD Adrian Murphy [EMAIL PROTECTED] wrote on 2/04/2002 9:36:43 AM: Hi I'm creaating my wishlist for my php build for my isp. I've got the usual stuff gd/ftp/xml etc and was wondering what else should i ask for e.g. i've never used pear but it might be useful? curl etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] register_globals
31/03/2002 9:05:53 AM Hi all, I'm running a webhosting service and I'm looking at security issues. at the moment I have register_globals set to on Is there any reason I should turn it off? What are the security risks of having them on? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ZaireWeb
31/03/2002 9:26:46 AM You tool! Stop spying on my emails! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] creating MySQL Users
29/03/2002 10:26:41 PM Hi, I've been trying to work this out, but I can't. Myabe I need more sleep, I'm sure it's something really stupid. Could someone have a look over this code for me please? It's meant to add MySQL users. FORM METHOD=POST ACTION=?echo $PHP_SELF;? INPUT TYPE=text NAME=usernameUserBR INPUT TYPE=text NAME=passwordPasswordBR INPUT TYPE=submit /FORM BRBR ? if ($REQUEST_METHOD==POST) { $mysql_access = mysql_connect(localhost, root, password); if (!$mysql_access) { echo(ERROR: . mysql_error() . \n); } $query = GRANT SELECT,INSERT,UPDATE,DELETE,ALTER; $query .= ON $username; $query .= TO $username@localhost; $query .= IDENTIFIED BY '$password';; mysql_query($query, $mysql_access); print(Successfully added $username to the MySQL database!); } ? Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re:[PHP] Auto password generation
26/03/2002 9:51:20 PM ? $password = substr(ereg_replace([^A-Za-z0-9], , crypt(time())) . ereg_replace([^A-Za-z0-9], , crypt(time())) . ereg_replace([^A-Za-z0-9], , crypt(time())), 0, 8); ? Random Password : b? echo $password; ?/b Denis L. Menezes [EMAIL PROTECTED] wrote on 26/03/2002 11:38:14 AM: Hello friends, I have a form for registering by the users. This runs on php/mysql. Can someone tell me how I could include auto password generation and emailing of this password to users? Thanks denis -- 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] Re:[PHP] HELP ME PLEASE: php not run on IIS 4.0
25/03/2002 8:27:51 PM hehehe You could start with loosing IIS, it's bad news. The port of Apache for windows is good, if not, Xitami's also quite good. http://www.apache.org/dist/httpd/binaries/win32/ http://www.xitami.com/ But, no, sorry. I can't help you. Berlina [EMAIL PROTECTED] wrote on 25/03/2002 10:19:46 AM: Hi, Im trying to install PHP 4.1.2 under Windows 2000 Server and IIS 4.0 * If I configure PHP as a MODULE, all run but SESSIONS DON'T WORK * If I configure PHP as a CGI, SESSIONS WORK but ORACLE MODULE for PHP not load Any ideas? Anybody can help me? Advanced thanks, Berli -- 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] test...
24/03/2002 8:34:40 PM Umm, is it just me or has there been no traffic on this list for the last 2 hours Weird -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re:[PHP] Why?
25/03/2002 3:01:36 PM FBAR was a term used in the second world war. It turned into FUBAR for better pronounciation. FUBAR turned into FOO BAR FBAR stands for: Fucked Beyond All Recognition I hope you find this completely unrelated snippet of trivial knowledge amusing, as I certainly do :-) Alberto Wagner [EMAIL PROTECTED] wrote on 31/03/2002 2:39:35 AM: Why everyone uses $foo or $foobar as examples? -- 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] Re:[2] [PHP] Text Editor
25/03/2002 3:05:00 PM Editplus is the best www.editplus.com Tyler Longren [EMAIL PROTECTED] wrote on 25/03/2002 3:34:22 AM: If you want a regular text editor, I suggest Textpad or Context. If you want an IDE, I suggest Maguma. Tyler - Original Message - From: Hiroshi Ayukawa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 24, 2002 7:27 PM Subject: [PHP] Text Editor Hello, What text editor do you use to write PHP? I use Maruo editor http://www.ac.wakwak.com/~tetsuyat/maruo/ more than 1 year. Is there any better text editor for PHP? Thanks, Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top -- 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] DNS
23/03/2002 11:26:39 PM Hi, err, I realise this has nothing to do with PHP but... I am in desperate need of a backup DNS host. I've scoured the internet and I can't find anyone who'll be my backup DNS. I'm willing to exchange the favour and be your backup DNS. If there's any place you know I can get this, please pipe up. Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Retreiving website contents
Hi, I've asked this before but I'm still ost. How can I receive the contents of a remote website through PHP and only display one section of it? Someone said something about curl. What is it, where could I get it? Thanks for your help, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] this mailing list
How much data (in Kilobytes) would I receive on average per month from this list? cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FTP and PHP
20/03/2002 10:01:25 AM Hi all. I need a FTPd that I can easily add/remove users from using PHP. What would you suggest is the best one? I've tried pro-ftpd but I can't work it out, the documentation is crap. I've tried pure-ftp but it's documentation is also quite vague. Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CLI through PHP
14/03/2002 10:51:10 PM Hi, I was wondering how I'd go about manipulating some command line software through PHP. For instance, I have an FTP program installed that allows you to add users through the command line, but it's in this format: -- mailto:root@apathy;root@apathy#: pure-pw useradd joedirt -d /home/jpedirt -u ftpuser Enter User's Password: Enter User's Password Again: User Created mailto:root@apathy;root@apathy#: -- How would I go about writing a simple PHP script that will add users for me using the data submitted by a form? Thanks for your help. Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Selective seeing =)
12/03/2002 11:20:18 PM Hey all, I'm looking to write a PHP script that will cut all content out of a page and only display one line. For example, take this URL: http://www.cow.net/cows/ I want a script that will get this page, but only display the line at the bottom of the page that says: I will never speak to Sara Glover again The real use is to get the current usage from my ISP's online tracking system and display it on a page without 1) having to log in and 2) displaying my password. The page is accessible but just sending all paramaters in the URL, so a login as such isn't nesessary. The question is, does anyone know of any classes or PHP programs that I could use to do this? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sendmail, I've had enough of it!
ARGH!!! I'm seriously sick of this! I've spent days on end reading documentation, trying settings, seeking help, and it still won't bloody work! So I've taken the ultimate step, and applied the trusty rm -rf command to everything that has to do with sendmail! In other words, sendmail is no longer on my systems. Screw it, causes more bad than good! Ok, now surprisingly enough I do have a final question regarding PHP/Mail (And I mean final!) How can I get PHP to send mail through a local SMTP server? I'm running Linux RedHat 7.1, latest Apache and PHP. I have eXtremail installed locally. It's a POP3/SMTP server. Works fine - fact. There's 3 configuration options in php.ini that I've been playing with, no matter what the combination is, I don't really see it doing anything different. I've read everything relevant on php.net and still can't find anything. I'm sorry if this is a really stupid question. Thanks s much for all your help! Liam
Re: [PHP] Sendmail, I've had enough of it!
www.extremail.com Best MTA out there! Join the mailing list too, it's pretty funny at times. Yeah, with the SMTP thing, I think that because I'm using Linux, PHP defaults to Sendmail. In my php.in I've got the following... [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may supply arguments as well. ; sendmail_path = /home/eXtremail/bin/smtpd All my mail just disappears into mid air now! Well, all mail coming from my site anyway! Any Ideas? - Original Message - From: Rick Emery [EMAIL PROTECTED] To: 'Liam MacKenzie' [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 2:04 AM Subject: RE: [PHP] Sendmail, I've had enough of it! Liam, I, too, am trying to set-up sendmail on my RH 7.0 Linux. I can't even get the damned daemon to start. So, I'm going to try your eXtrememail application. I may try smail as well, but I have to compile ti first...ugh. As for using SMTP under PHP, you should be able to use the mail() function: mail(receiver,subject,message,headers); where receiver is the receipien'ts email address. -Original Message- From: Liam MacKenzie [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 5:19 AM To: [EMAIL PROTECTED] Subject: [PHP] Sendmail, I've had enough of it! ARGH!!! I'm seriously sick of this! I've spent days on end reading documentation, trying settings, seeking help, and it still won't bloody work! So I've taken the ultimate step, and applied the trusty rm -rf command to everything that has to do with sendmail! In other words, sendmail is no longer on my systems. Screw it, causes more bad than good! Ok, now surprisingly enough I do have a final question regarding PHP/Mail (And I mean final!) How can I get PHP to send mail through a local SMTP server? I'm running Linux RedHat 7.1, latest Apache and PHP. I have eXtremail installed locally. It's a POP3/SMTP server. Works fine - fact. There's 3 configuration options in php.ini that I've been playing with, no matter what the combination is, I don't really see it doing anything different. I've read everything relevant on php.net and still can't find anything. I'm sorry if this is a really stupid question. Thanks s much for all your help! Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sendmail PHP
Sorry about this, yet another question about sendmail... I've spent days on this, read stacks of docs and just can not get it to work! It sends some emails... But others it rejects. Please, if you know of any tutorials on how to set this stuff up, please tell me! If you think you may be able to set it up for me using webmin, I will make you a temporary account. I just need it fixed! By any means! Thankyou so much for your help, this has frustrated me for too long now!!! Liam P.S. Below is the error dump from sendmail. From MAILER-DAEMON Sun Feb 17 22:31:20 2002 Return-Path: MAILER-DAEMON Received: from localhost (localhost) by apathy (8.11.2/8.11.2) id g1HCVJJ11765; Sun, 17 Feb 2002 22:31:20 +1000 Date: Sun, 17 Feb 2002 22:31:20 +1000 From: Mail Delivery Subsystem MAILER-DAEMON Message-Id: 200202171231.g1HCVJJ11765@apathy To: nobody MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary=g1HCVJJ11765.1013949080/apathy Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure) This is a MIME-encapsulated message --g1HCVJJ11765.1013949080/apathy The original message was received at Sat, 16 Feb 2002 09:40:28 +1000 from nobody@localhost - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 550 Host unknown) - Transcript of session follows - 550 5.1.2 [EMAIL PROTECTED] Host unknown (Name server: operationengima.net: host not found) --g1HCVJJ11765.1013949080/apathy Content-Type: message/delivery-status Reporting-MTA: dns; apathy Arrival-Date: Sat, 16 Feb 2002 09:40:28 +1000 Final-Recipient: RFC822; [EMAIL PROTECTED] Action: failed Status: 5.1.2 Remote-MTA: DNS; operationengima.net Diagnostic-Code: SMTP; 550 Host unknown Last-Attempt-Date: Sun, 17 Feb 2002 22:31:20 +1000 --g1HCVJJ11765.1013949080/apathy Content-Type: message/rfc822 Return-Path: nobody Received: (from nobody@localhost) by apathy (8.11.2/8.11.2) id g1FNeSk00547; Sat, 16 Feb 2002 09:40:28 +1000 Date: Sat, 16 Feb 2002 09:40:28 +1000 Message-Id: 200202152340.g1FNeSk00547@apathy To: [EMAIL PROTECTED] Subject: Re: A few changes... From: ert [EMAIL PROTECTED] This email was sent to you by ert at [EMAIL PROTECTED] because they thought you might be interested it this article from http://www.operationenigma.net. This is not SPAM and the email addresses involved in this transaction were not saved to a list or stored for later use. ert wrote: 123124124 A few changes... Thursday, 07 February 2002 @ 08:16 PM EST Contributed by: Sorry about the downtime people, been doing some serious renovations. I can't tell you about them now, I'll post a link to a page with all the appropriate information on it later, maybe in a day or so. Thanks for your patience, it is greatly appreciated! Comment on this story at http://www.operationenigma.net/article.php?story=20020207201614518#comments --g1HCVJJ11765.1013949080/apathy--
Re: [PHP] Sendmail PHP
Very strange indeed... If I send an email to [EMAIL PROTECTED], it leaves the mailqueue but I never actually recieve the email in my vectorstar account! (Vectorstar is a remote mail server) When I send an email to a local address, it sits in the queue for ever, so I force delivery Forcing the attempted delivery of mail with the command /usr/lib/sendmail -v -q .. WARNING: local host name (apathy) is not qualified; fix $j in config file Running /var/spool/mqueue/g1HEBlW12213 (sequence 1 of 1) [EMAIL PROTECTED] Connecting to operationenigma.net. via esmtp... [EMAIL PROTECTED] Deferred: Connection timed out with operationenigma.net. I'll leave this port open for a few hours.Tell me when you're finished so I can close it again.http://www.operationenigma.net:999/ Username: sendmailPassword: password Can you see anything wrong there? Thanks for your help,Liam - Original Message - From: -BD- [EMAIL PROTECTED] To: Liam MacKenzie [EMAIL PROTECTED] Sent: Sunday, February 17, 2002 11:01 PM Subject: Re: [PHP] Sendmail PHP it's operationenigma.net, not operationengima.net, isn't it? check your sendmail aliases - think you have a typo... http://www.rfbdproductions.com Web Hosting Design Event Production Home Of Radio Free BD - Original Message - From: Liam MacKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 17, 2002 7:42 AM Subject: [PHP] Sendmail PHP Sorry about this, yet another question about sendmail... I've spent days on this, read stacks of docs and just can not get it to work! It sends some emails... But others it rejects. Please, if you know of any tutorials on how to set this stuff up, please tell me! If you think you may be able to set it up for me using webmin, I will make you a temporary account. I just need it fixed! By any means! Thankyou so much for your help, this has frustrated me for too long now!!! Liam P.S. Below is the error dump from sendmail. From MAILER-DAEMON Sun Feb 17 22:31:20 2002 Return-Path: MAILER-DAEMON Received: from localhost (localhost) by apathy (8.11.2/8.11.2) id g1HCVJJ11765; Sun, 17 Feb 2002 22:31:20 +1000 Date: Sun, 17 Feb 2002 22:31:20 +1000 From: Mail Delivery Subsystem MAILER-DAEMON Message-Id: 200202171231.g1HCVJJ11765@apathy To: nobody MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary=g1HCVJJ11765.1013949080/apathy Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure) This is a MIME-encapsulated message --g1HCVJJ11765.1013949080/apathy The original message was received at Sat, 16 Feb 2002 09:40:28 +1000 from nobody@localhost - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 550 Host unknown) - Transcript of session follows - 550 5.1.2 [EMAIL PROTECTED] Host unknown (Name server: operationengima.net: host not found) --g1HCVJJ11765.1013949080/apathy Content-Type: message/delivery-status Reporting-MTA: dns; apathy Arrival-Date: Sat, 16 Feb 2002 09:40:28 +1000 Final-Recipient: RFC822; [EMAIL PROTECTED] Action: failed Status: 5.1.2 Remote-MTA: DNS; operationengima.net Diagnostic-Code: SMTP; 550 Host unknown Last-Attempt-Date: Sun, 17 Feb 2002 22:31:20 +1000 --g1HCVJJ11765.1013949080/apathy Content-Type: message/rfc822 Return-Path: nobody Received: (from nobody@localhost) by apathy (8.11.2/8.11.2) id g1FNeSk00547; Sat, 16 Feb 2002 09:40:28 +1000 Date: Sat, 16 Feb 2002 09:40:28 +1000 Message-Id: 200202152340.g1FNeSk00547@apathy To: [EMAIL PROTECTED] Subject: Re: A few changes... From: ert [EMAIL PROTECTED] This email was sent to you by ert at [EMAIL PROTECTED] because they thought you might be interested it this article from http://www.operationenigma.net. This is not SPAM and the email addresses involved in this transaction were not saved to a list or stored for later use. ert wrote: 123124124 A few changes... Thursday, 07 February 2002 @ 08:16 PM EST Contributed by: Sorry about the downtime people, been doing some serious renovations. I can't tell you about them now, I'll post a link to a page with all the appropriate information on it later, maybe in a day or so. Thanks for your patience, it is greatly appreciated! Comment on this story at http://www.operationenigma.net/article.php?story=20020207201614518#comments --g1HCVJJ11765.1013949080/apathy-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MySQL Admin Tool
Ello all! Whazzup? Ok, I'm over it. Now... Does anyone know how to set up MySQL, or phpMyAdmin to restrict users to a single database? For instance, the user JoeBlow... Joe has a database called JB, I want him to have full access to it and nothing else. How would I go about doing this? I'd also like him to have access to it via PHP, so he can write his own PHP script that'll let him manipulate his database. I just need to lock him out of averything else. And also... How do I go about securing PHP functions. For example, at the moment Joe can upload a PHP script that deletes /etc/named.conf. NOT GOOD! Is there some options you can parse to PHP at compile tim that will deactivate these features, or maybe some other way I can give users full access to all of the PHP functions, but they're restricted to their home dir. Thanks for your help! - Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Templates
Hey mate, There's several template engines out there, Take a look around here: http://www.hotscripts.com/PHP/Scripts_and_Programs/Content_Management/ Hope that helps ya! - Lum - Original Message - From: Truniger, Stefan Martin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 14, 2002 7:46 PM Subject: [PHP] Templates Hi every1, I've been playing around with template.inc out of PHPLib. Now there's just one question dwelling in my head.. is it possible somehow to get the server to parse any html-file that is requested. example: user requests file index.html, index.html is parsed thru a standard template to generate the nicely formatted page... index.html only holds the content of the site and is pure html (maybe with a tag or two to mark the content and the title or so, but no or very very little PHP code in it.) I hope this is more or less understandable... ;oP I'd appreciate any help on that even if you say that it will never work.. thanks Stefan -- 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] MySQL Admin Tool
Perhaps a better way of wording my question would have been to say this: At the moment, I can make seperate users, the do not have permission to create tables in other databases, but the can still browse them and view the information. Any the example I used for the named.conf was a bad one. They cannot delete this, but they can view it's contents. How can I restrict all PHP functions to the one directory? So if a user makes a file like this: ? include (../../../../../../../../../etc/eXtremail/eXtremail.conf); ? Instead of printing the conf file the SMTP password in it, it'll return an error. I've read the docs, but to no avail. Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SMTP Mail
Hi all, Just wondering if anyone out there's worked out how to send emails through an SMTP server using PHP. Cheers, Liam
Re: [PHP] SMTP Mail
Whoops, my bad! If there's anyone out there that needs to use SMTP: http://phpclasses.upperdesign.com/browse.html/package/14 Gotta love it when you answer your own question ;-) - Original Message - From: Liam MacKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 13, 2002 7:17 PM Subject: [PHP] SMTP Mail Hi all, Just wondering if anyone out there's worked out how to send emails through an SMTP server using PHP. Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] i need a free php/mysql host with no ads!
Okay, you're looking for somewhere to try out your PHP and MySQL skills, correct? I can host these for you on my server, I'm preparing to be a proper host for these things, but not yet ready, therefore there may be some problems. Send me an email back (make sure it doesn't go to the PHP mailing list aswell) with a desired username and password, and I'll make you the following: - An SQL database - A subdomain (http://username.operationenigma.net/) - PHP 4.1.1 access - An FTP account - Unlimited email addresses (POP as well as webmail) - 93% uptime (99% once I've finished upgrading my servers, in a few weeks) You do not have to advertise on your site, and I do not require you to put anything on there about me or my hosting system. If you feel nice you can always put something in there, but it's not required. If you have a proper Domain name, I will host that on my DNS server as well. www.fearfulright.com and www.stupidcomics.com are currently being hosted by me. All that I ask is that you're kind to my system, because I haven't set up a huge amount of security on my webserver just yet. The old saying, don't bite the hand that feeds you. Please don't abuse the system, because if you do, I won't even consider doing anything like this in the future. Also, anyone else out there that needs a platform to test their stuff on, email me and I'll see what I can do. Cheers, Liam - Original Message - From: Balazs Laszlo [EMAIL PROTECTED] To: Liam MacKenzie [EMAIL PROTECTED] Sent: Monday, February 11, 2002 8:08 PM Subject: Re: [PHP] i need a free php/mysql host with no ads! so plz help me! --- Liam MacKenzie [EMAIL PROTECTED] wrote: I can help you... - Original Message - From: Balazs Laszlo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 11, 2002 7:56 PM Subject: [PHP] i need a free php/mysql host with no ads! Hi! I need a free php/mysql host with no ads! Thanks for your answer! __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Libre !!!!
Ay! Me no speak no French! - Original Message - From: Nicolas Costes [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 11, 2002 9:36 PM Subject: [PHP] Libre Salut, olivier, ca va ??? bon, tiens, une adresse qui m'est arrivé ce matin : http://interactif.lemonde.fr/article/0,5611,2861-7110-261386-0,FF.html Dis, une idée pour les cours de Linux que tu donne aux AMI's : Fais leur donc installer LFS (Linux From Scratch, http://linuxfromscratch.org ) ;-D Cela m'a beaucoup appris ... même si c'est un peu par hasard que mes agetty's se lancent correctement au démarrage (J'y ai passé un week-end rienque pour ca ...) . Résultat, un distro encore plus dépouillée que la slackware, du pur martea-burin ... bon, ok, il faut une semaine pour l'installer sur un P233MMx, mais bon ... Sinon, comment va le boulot à la fac ??? @+++ -- ( ° Nicolas Costes //\\ IUT de La Roche / Yon / \/ ) [EMAIL PROTECTED] `- http://luxregina.free.fr -- 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, SQL and all that stuff...
Ok guys, I've been pondering over setting up a free PHP/SQL hosting service for some time now, but never really actually done it. It looks like just the mention of it got some seriously positive feedback, so I'm keen to actually do it properly. But... I need some help with security. With a bit of luck you'll all understand where i'm coming from. This is my personal system too, and I don't particularly wish for someone test script to go awfully wrong and wipe my entire webserver! That would put me out of business for quite a while! If there's anyone out there who's good with this kind of thing, PLEASE email me because I'd love to get this hosting system going! I'd also like to provide shell access, but at the moment that is way way way out of the question. I'm not the most experianced person in Linux, and handing out Shell access at the moment is not wise. But with your help, I can provide you all with these services, free of charge and advertising! If you're willing to help, please email me! Thank you! - Lum
Re: [PHP] configuring webhost
http://www.e-gineer.com/instructions/index.phtml Follow this man's instructions carefully and you'll have your system set up in no time! It's an extremely good tutorial. Good luck, - Liam - Original Message - From: mm fernandez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:22 PM Subject: RE: [PHP] configuring webhost we're using a Windows 2000 server here... So after we install PHPTriad, what configurations do we need to make? //mm fernandez From: Rick Emery [EMAIL PROTECTED] To: 'mm fernandez' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] configuring webhost Date: Mon, 11 Feb 2002 08:38:28 -0600 If you're using Red hat Linux, it's so easy, even I was able to do it, including PHP and MYSQL. If you're using Windows, then PHPTRIAD is your ticket to glory -Original Message- From: mm fernandez [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 1:34 AM To: [EMAIL PROTECTED] Subject: [PHP] configuring webhost hi. i'm new here and i'm also new to php. thing is though, i'd like to ask something with regard to configuring the web host to make it support php. see, i work for a company which also offers web hosting but due to lack of technical people here, we're not sure how to configure our server to support php. i know how to install and configure php on a local pc but i don't know anything about configuring a web host. hmm...i'm not so technical myselfcan anyone help? _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Massive amounts of data to SQL
Hi everyone, I know this is a relatively simple question, but what would be the most efficient way of entering the contents of a large form (nearly 400 fields) into a MySQL database? Every day the form must be able Please provide an example script that I can use to refer to if you have time. Or show me a page that has a tutorial for a similar task. Thankyou very much for your help! Liam
Re: [PHP] My php goes poof.
I'd be willing to bet that it's a M$ thing! As it says in all the documentation, neither apache, mysql nor php were designed for M$ systems. Other than bag M$, I can't help you, sorry! ;-) - Original Message - From: Floyd Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 2:16 PM Subject: [PHP] My php goes poof. Hi phpeople. Can anyone tell me why my php just stops working periodically? I have a win32/apache/php4.1/mysql set up. I can do things here for about an hour or so and then all of a sudden I get nothing but html remains. I need to take down apache and restart it for the php parsing to kick back in. Floyd -- -- 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] Fooling the client into thinking php script is .jpg
Add this inno the appropriate virtual-host Directory /path/to/the/folder/with/the/jpg/script AddType application/x-httpd-php .jpg /Directory This will parse all .jpg files to the PHP interpreter. Hope that helped! - Original Message - From: Matt Moreton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 11, 2002 11:44 AM Subject: [PHP] Fooling the client into thinking php script is .jpg I have a script that outputs an image. Using the gd library. But the only way this script gets to execute is if you call it like: www.host.com/displayimage.php That then sends the content header, and the image. Obviously I am doing some other stuff in there, which is why I am using a script to generate the image. Is it possible somehow to request the file as a .jpg? www.host.com/displayimage.jpg Fooling the client into thinking it is just a .jpg image. I tried changing the .htaccess file for the dir this script was in, so that when a 404 error is genterated, it redirects to the displayimage.php script. But its not exactly a transparent redirect. If you type an invalid url it simply redirects, displaying the name of the script, displayimage.php while loading the image. Any suggestions please? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Interest in Project
It does indeed! http://www.phinpho.com/ I got the domain a couple of weeks ago, and I have a couple of mates who are keen to set it all up, now all we need is a boot in the arse to get it going! I have some neat servers and a phatt connection. It'll do to get us started, but may need some more grunt later on. http://www.operationenigma.com/setup.txt There's a brief description for ya. Looking forward to it, will be swell once it's going! As for an easier way to talk about it all, IRC sound good? Connect to: irc.holonet.org Join: #fearful_right (A mate's chatroom) Cya there! - Liam (Enigma) - Original Message - From: Viper [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 11, 2002 12:17 PM Subject: Re: [PHP] Interest in Project I may have worded this wrong. The site will focus on PHP and the use of Databases with PHP, (Oracle, Postgres, MySQL, others...). I was typing fast and just threw MySQL out :) I do quite a bit of development in PHP and MySQL so I am most familiar with it. I am also very familiar with Oracle. I have yet to find a PHP help site that focuses on Databases and Code Repositorys Related specificaly to PHP and it's use with them. The main thing I want the site to be is a Community where people can come to get help and read articles about the Use Of PHP in the real world. That sound more interesting? :) -=Adam=- Quoting Peter J. Schoenster [EMAIL PROTECTED]: On 10 Feb 2002, at 17:23, Viper wrote: Hi every one I am going to be working on a site that will contain hopefully a single point where people can get php class files, Sorce code help, and MySQL database help, Plus a kind of comunity for PHP. I know there are other site such as this but I would like to create a 1 place for all type site. It will be done in PHP and use a MySQL backend if any one is interested in getting in on this project please E-mail me at [EMAIL PROTECTED] I think it would be a great project. Well I have no end of such places to find. I'm new to PHP. What interests me much more is how to go about organizing my project. I have such a system using mod_per/Perl. Perl also has Mason/AxKit etc. ... I use my own which revolves around HTML::Template. I was recently told about smarty as a templating system and I'm going to give it a shot. I'm going to recreate my method in PHP which I use in Perl as I just really, really don't like having these php pages with programming in them all over the place. I like things to be consolidated. I would suggest you start a site which is about THE WAYS of DESIGNING solutions with PHP and MySQL (but why, why in the world don't you just do it with PHP/RDBMS). There is more than one way and yet I rarely in fact hardly ever find a site DISCUSSING this. There are a lot of sites that say this is our way but most of them don't even do that .. they just say download XYZ and there is no question or discussion of their way. Now, perhaps I've missed these sites, if so please bombard me with the urls. Othewise, consider a site which does this. I have no end of bookmarks for sites with the tactical questions. Peter -- http://www.coremodules.com/ PETER J. SCHOENSTER (901)-652-2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - http://www.2ghz.net/ Welcome To the Future -- 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] Phatt MySQL entry
; border-width: 1; background-color:#3893CF1/optionoption value=2 style=border-style: solid; border-width: 1; background-color:#3893CF2/optionoption value=re style=border-style: solid; border-width: 1; background-color:#3893CFRe/option/select /td tdinput type=text name=ph63p size=8 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdinput type=checkbox name=c63p value=ON/td /tr !-- ### -- tr tdbfont size=27:00 pm/font/b/td tdinput type=radio name=fs7p value=fwinput type=radio name=fs7p value=sp/td tdinput type=text name=num7p size=4 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdinput type=text name=sur7p size=8 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdinput type=text name=giv7p size=8 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdselect size=1 name=apt7p option selected value=1 style=border-style: solid; border-width: 1; background-color:#3893CF1/optionoption value=2 style=border-style: solid; border-width: 1; background-color:#3893CF2/optionoption value=re style=border-style: solid; border-width: 1; background-color:#3893CFRe/option/select /td tdinput type=text name=ph7p size=8 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdinput type=checkbox name=c7p value=ON/td /tr !-- ### -- tr tdbfont size=27:30 pm/font/b/td tdinput type=radio name=fs73p value=fwinput type=radio name=fs73p value=sp/td tdinput type=text name=num7p size=4 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdinput type=text name=sur7p size=8 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdinput type=text name=giv7p size=8 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdselect size=1 name=apt7p option selected value=1 style=border-style: solid; border-width: 1; background-color:#3893CF1/optionoption value=2 style=border-style: solid; border-width: 1; background-color:#3893CF2/optionoption value=re style=border-style: solid; border-width: 1; background-color:#3893CFRe/option/select /td tdinput type=text name=ph7p size=8 style=border-style: solid; border-width: 1; background-color:#3893CF/td tdinput type=checkbox name=c7p value=ON/td /tr /table pinput type=submit value=Submit name=submit/p /form /body /html Thanks for your help in advance! - Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Nothing to do with PHP, sorry
Hello everyone, I have a problem that has nothing to do with PHP. I know I shouldn't ask it here, but I need a response urgently as it's a major security hole. I'm trying to set up a firewall, I've sucessfully got my portblocking working and all the ones I need open are open, but I can't get my masquerading to work when I turn on my firewall. Here it is... --- #!/bin/sh /etc/rc.d/init.d/ipchains stop /etc/rc.d/init.d/ipchains start depmod -a echo 1 /proc/sys/net/ipv4/ip_forward ipchains -P forward DENY ipchains -A forward -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT ipchains -A forward -s 203.45.222.39/32 -d 0/0 -j ACCEPT ipchains -A forward -s 192.168.0.0/24 -d 0/0 -j MASQ ipchains -A forward -s 192.168.0.0/24 -d 0/0 -j ACCEPT ipchains -P input DENY # If I comment out the above line, masquerading works # but as soon as I uncomment it, my security goes up and # my masquerading does down! ARGH! ipchains -A input -j ACCEPT -s 0/0 -d 0/0 25 -p tcp ipchains -A input -j ACCEPT -s 0/0 -d 0/0 80 -p tcp ipchains -A input -j ACCEPT -s 0/0 -d 0/0 53 -p tcp ipchains -A input -j ACCEPT -s 0/0 -d 0/0 53 -p udp ipchains -A input -j ACCEPT -s 0/0 -d 0/0 68 -p udp ipchains -A input -j ACCEPT -s 0/0 -d 0/0 110 -p tcp ipchains -A input -j ACCEPT -s 192.168.0.0/24 #ipchains -A input -j ACCEPT -p icmp ipchains -A input -i lo -j ACCEPT ipchains -A input -i eth1 -j ACCEPT --- I've spent hours trying to work this out, and I'm sure it's something REALLY basic that I've missed. Major apologies for asking this here, if you have a suggestion where I should ask such a question in the future, please tell me. Thank you very much for your help! Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Ports
Just a quick question... What is the highest port possible? I want to make a PHP port scanner, but need to know the portrange. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying a please wait while doing a file upload?
Ya, that's what I meant - Original Message - From: Jeff Sheltren [EMAIL PROTECTED] To: Andy [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 04, 2002 7:24 AM Subject: Re: [PHP] Displaying a please wait while doing a file upload? Well, although this won't wait until exactly when the image creation is done, you could use a meta refresh tag to refresh to your new page after a certain number of seconds... Create a php page with whatever code you need, and then have something like this: html head meta http-equiv= refresh content=5;URL='targetpage.php' titlePlease Wait/title /head body Please wait... /body /html This example would wait 5 seconds before loading targetpage.php. Jeff At 10:00 PM 2/3/2002 +0100, Andy wrote: Hi guys, I would like to display something like: please wait, uploading while I am doing a image creation which takes a while. After the work is done, it should redirect to another page displaying something like upload ok. As far as I know the HEADER location satement is only valid if there is no output in front. So I can't just echo the sentence. Does anybody know the trick? Thanx for your help. Cheers Andy -- 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] Parsing commands to a program
Hello, I was wondering, how would I pass commands to a program and print the results on my screen? For instance, to add an FTP user the command would be: pure-pw useradd joeblow -u ftpuser -d /home/joeblow How would I make a php script do that and display it's output when it's done? Thanks, Liam -- 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] Parsing commands to a program
Nope, can't get that to work. Any more suggestions? - Original Message - From: val petruchek [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 8:58 PM Subject: Re: [PHP] Parsing commands to a program Hello, I was wondering, how would I pass commands to a program and print the results on my screen? For instance, to add an FTP user the command would be: pure-pw useradd joeblow -u ftpuser -d /home/joeblow How would I make a php script do that and display it's output when it's done? Try ?php echo `pure-pw useradd joeblow -u ftpuser -d /home/joeblow`; //not quotes by ticks! ? but not sure about security allows u to do it Valentin Petruchek (aki Zliy Pes) Cut the beginning http://zliypes.com.ua mailto:[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] A real simple question...
Hey everyone, Got a question... How to I run a program and print it's output into a document? For instance, I have a program called ftpusers and when run from a shell like this: /usr/local/misc/ftpusers It will display a plain text list of people connected to my server. How do I get PHP to call that program and print it's output into a webpage? Thanks for your help! Liam
[PHP] php filling apache error log with copies of the server environment
Hey - My php installation is filling my apache error log with copies of the piece of the environment that PHP knows as HTTP_SERVER_VARS. It seems to be caused by imap functions. ? phpinfo(); ? doesnt do it... but if i do ? $mb = imap_open({imap.blah.edu:143}INBOX, 'user', 'passwd'); ? I get a bunch of: REDIRECT_nokeepalive=1 REDIRECT_STATUS=200 REDIRECT_URL=/test.php REMOTE_ADDR=x.x.x.x REMOTE_HOST=mojojojo.blah.edu etc... in the apache error log. I'm using PHP 4.0.6 (CGI), Apache 1.3.20, Solaris (SPARC) 2.6 Is there anyway to stop this? I've tried turning off error loggin in my php.ini file, to no avail. thanks Liam -- 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] access to the apache environment from the c-client builtinto PHP 4.0.x
On Thu, 30 Aug 2001, Rasmus Lerdorf wrote: Just do a putenv() from PHP? We've tried doing that - that's how c-client normally wants to learn about the krb4 ticket file (with the KRBTKFILE variable). But... something is caching the KRBTKFILE value in appropriately, and it's not getting reset each time php is accessed. We're pretty sure the problem lies with c-client (probably the krb4 kerberos patches - that it expect to be called in a single-user kinda situation, such as from pine, so it doesn't clean up after itself properly). Rather than rely on c-client seeing the KRBTKFILE variable, we're trying hard code the name of the ticketfile into c-client.. which, on our webservers, will *always* be /ticket/kerb.username (ie /ticket/kerb.liamr) My post for 8/29 describe the actualy problem in more detail. We had gotten around this by running PHP as a CGI - to make it get a fresh copy of the environment everytime.. but at this point in the game we really need to run it as a server module. So, we're trying to correct for this in the source code of the krb4 patches to c-client.. but we can't get the user name into it. php_imap.c stores the value we want in imap-user, but we can't find it again once php_imap.c calls c-client itself. We'd expected it to be in mb-user, but that variable is empty.. and that little piece of printenv code we tried shows the c-client knows about the HTTP_ENV_VARS class of variables, but not the HTTP_SERVER_VARS variables. Liam On Fri, 31 Aug 2001, Liam Hoekenga wrote: we're trying to get a krb4 c-client working with php built as an apache server module (either dso or static). we've hit a wall in that, c-client itself seems to have access to the environment in which apache was started, but not the apache environment. ie... we threw this into c-client: { extern char **environ; inti; for ( i = 0; environ[ i ] != NULL; i++ ) { fprintf( stderr, %s\n, environ[ i ] ); } } and the environment that c-client itself can see is: [Fri Aug 31 00:22:19 2001] [info] Server built: Aug 30 2001 12:11:45 APACHE=/usr/local/httpsd/bin/httpsd AWK=/usr/bin/awk GREP=/usr/bin/grep HOME=/ KRBTKFILE=/ticket/p1090525904 PIDFILE=/usr/local/httpsd/log/httpd.pid PS=/usr/bin/ps PWD=/ USER=nobody ie - the same stuff phpinfo() lists under HTTP_ENV_VARS. We really need access to the HTTP_SERVER_VARS (we're revising the krb4 imap patches for c-client, *really* need access to REMOTE_USER from within c-client itself). does anyone have suggestions? Liam -- 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]