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
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,
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
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
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
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
Hi,
I was wondering what you would do in this situation...
I have a form, with 196 fields that I need entered into a database.
But the form and it's contents need to be changed every day,
and I need to store the old data in an archive so it can be accessed
at a later date.
That means that
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
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
, 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
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 :
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
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
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.
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,
Hi all,
Just wondering if anyone out there's worked out how
to send emails through an SMTP server using PHP.
Cheers,
Liam
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
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
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,
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.
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
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
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
]
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
Free hosting for PHP Developers!
As many MySQL Databases as you need (Also accessible remotely if needed)
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
2 Megabit Connection based in
$PHP_SELF
- Original Message -
From: Christoph Starkmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 8:00 PM
Subject: [PHP] Name of script
Hi there!
I don't find the function or variable
returning/containing the name of the
script itself;
like:
Err, that's not going to unsubscribe you mate...
Follow the directions at the bottom of the email.
- Original Message -
From: Bjorn Abt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 12:07 AM
Subject: [PHP] hi
unsubscribe
--
PHP General Mailing List
: Hosting_submission
No!
- Original Message -
From: website
To: Liam Mackenzie ([EMAIL PROTECTED])
Sent: Monday, June 10, 2002 11:26 PM
Subject: Hosting_submission
User registered with these details...
Real Name The_RadiX
Username spectrum
Domain
EditPlus
Small, fast and very very effective.
www.editplus.com
- Original Message -
From: Daniele Baroncelli [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 5:18 AM
Subject: [PHP] Editor
Hi guys,
Although any editor should be fine when coding PHP, I find that
Hey all, I'm looking to deny access to all IPs except those that fall into a
specific IP range. 192.168.0.* in this case.
Am I missing something out of this code, it don't work too well ;-)
?
$localip = 192.168.0.13;
if ($REMOTE_ADDR == $localip) {
?
Allowed!
?
}
else {
?
Denied!
?
}
?
, 2002 3:49 PM
Subject: Re: [PHP] Restricting access using IPs
On Saturday 13 July 2002 13:10, Liam MacKenzie wrote:
Hey all, I'm looking to deny access to all IPs except those that fall
into
a specific IP range. 192.168.0.* in this case.
Am I missing something out of this code, it don't work
VirtualHost *
DocumentRoot /home/scripts
ServerName scripts.blahblah.com
ErrorLog /home/nobody/logs/hosting/error.scripts.blahblah.com.log
CustomLog /home/nobody/logs/hosting/access.scripts.blahblah.com.log common
php_admin_flag safe_mode off (or on)
/VirtualHost
- Original Message
What extras are you compiling in with it?
Compile PHP and Apache with the bare minimum only, no fancy stuff. Try it
then.
I sucessfully compiled several machines using the latest source code
yesterday.
- Original Message -
From: Brandon Pearcy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Hi guys,
I have a function:
$substring = substr($REMOTE_ADDR,0,9);
if ($substring != '192.168.0') {
echo Access Denied;
exit;
}
If the user isn't from the local network, he's not allowed in.
This works fine, but is there a way to get apache to do it for me instead?
Like, this for
http://www.hotscripts.com/PHP/Tips_and_Tutorials/Image_Manipulation/
- Original Message -
From: Alawi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 21, 2002 4:40 PM
Subject: [PHP] write some text over image
Hi
how can I write some text on the left corner of the image?
?
$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())),
9, 10);
?
Random Password : b? echo $password; ?/b
In action:
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!
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.
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,
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
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
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
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
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
--
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
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 =
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:
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:
]
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
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
]
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
-
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
?
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
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
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
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
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,
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
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
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
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?
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
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
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:
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
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
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
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
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
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
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
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
And what exactly has this got to do with PHP?
- Original Message -
From: Martin Thoma [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 3:14 PM
Subject: [PHP] Bot?!
Hello! Perhaps you know the programms called Bot, which allows the
user to ask questions just by
Hi all,
I do this:
dbconnect();
$query=SELECT * FROM users where username='$PHP_AUTH_USER';
$result=mysql_query($query);
$list=mysql_fetch_array($result);
if ($PHP_AUTH_PW !== $list[passwd] || == $PHP_AUTH_PW || all !=
$list[domain]){
Header(WWW-authenticate: basic realm=\EMM\);
Mmm.. think you misinterpreted my question...
http://www.mysql.com/doc/M/i/Miscellaneous_functions.html
PASSWORD(str)
how do you unPASSWORD(str) in PHP?
- Original Message -
From: Negrea Mihai [EMAIL PROTECTED]
To: Liam MacKenzie [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent
File permissions.
Each user has their own username, but all are a member of the group
hosting
They can CHMOD their files to whatever they like, so security is really up
to them.
And PHP's Safe mode of course.
- Original Message -
From: Matt Babineau [EMAIL PROTECTED]
To: [EMAIL
Hi guys,
I'm looking to get a specific bit of data out of a slightly complex amount
of data.
Ok, I have this in a variable:
User : [EMAIL PROTECTED]
Dir : /home/eXtremail/mbox/i-redlands.net/3/1/liam
Forward :
Copy :
Account mapping :
User Disk Quota : 0
Disk Space
Ok, I'm having a blonde day...
If $idx == 1, 4 or 9 I don't want it to echo $results.
I have this, what's the syntax to put multiple values in there?
if ($idx != 1) {
echo$results;
}
Thanks,
Liam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
has nothing to do with the thread your posting now becomes part of.
To answer you question though:
I don't know of any short-hand for what you want to do. But this should
work.
if ( ($idx != 1) ($idx == 4) ($idx == 9) ) {
echo$results;
}
You could also look into using a regexp.
Jc
Liam
Hey all, got another dumb question :-)
Output text is as follows:
User : [EMAIL PROTECTED]
I do this:
$results = ereg_replace(User :, '', $results);
I get this:
User : [EMAIL PROTECTED]
But when I do this:
$results = ereg_replace(User, '', $results);
I get this:
: [EMAIL PROTECTED]
How
- it's faster and you don't risk bumping into key-chars like
you just did. While regexps are very useful when needed, people tend to
use the same functions even when they don't need regexps just out of
habit... There, now I said it! :-)
Bogdan
Liam Mackenzie wrote:
Hey all, got another dumb question
Hey, if you don't have access to CRON, you could try and include the page in
your index.php.
Set it so it only runs once though, per day. That means that as soon as
someone visits your site they activate it for that day. It'd only work if
you had the traffic though.
Just an idea.
Then again,
will
not have that many visitors at first, you will probably miss a lot of
appointments. In the other hand, if Hotmail or Yahoo want to do that...
fine... I think they WILL have at least ONE visitor per day for sure.
C.
-Original Message-
From: Liam MacKenzie [mailto:[EMAIL PROTECTED
Hey guys,
yep, another one...
I do this:
echo -.$dir.-;
I get this:
-/home/eXtremail/mbox/i-redlands.net/9/1/liam
-
Note the new line at the end.
Is there a way to get rid of any new lines in a string?
Because this is making my directory listing go whacko.
Cheers,
Liam
--
PHP
Cool...
Yeah, I know, and I always spend at least 3 minutes looking through it
before I post!
seriously!
(Thanks!)
- Original Message -
From: Justin French [EMAIL PROTECTED]
To: Liam MacKenzie [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 3:27 PM
Subject: Re
this:
|/home/eXtremail/mbox/i-redlands.net/9/1/steve
|
Still got that new line there :'(
Any ideas?
- Original Message -
From: Liam MacKenzie [EMAIL PROTECTED]
To: Justin French [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 3:25 PM
Subject: Re: [PHP] Got another
Oh
Whoops
Thanks Tom
- Original Message -
From: Tom Rogers [EMAIL PROTECTED]
To: Liam MacKenzie [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 3:34 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
Hi,
Thursday, August 15, 2002, 3:20:47 PM
because of that damned new line!
Any more ideas?
Cheers,
Liam
- Original Message -
From: Liam MacKenzie [EMAIL PROTECTED]
To: Tom Rogers [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 3:32 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
Oh
Whoops
;
$dir = substr($dir, 0, $strlen);
$dir = $dir./data;
if ($handle = opendir($dir)) {
$i = 0;
while (false !== ($file = readdir($handle))) {
if ($file != . $file != ..) {
$i++;
}
}
echo $i;
closedir($handle);
}
}
- Original Message -
From: Liam MacKenzie [EMAIL
Damnit!
I think I need to go home, or even better, take a holiday for a fortnight.
Thanks dude.
- Original Message -
From: Luke Welling [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 5:30 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
Oi!!!
Don't knock the Irish!
I got it working eventually :-)
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 15 August 2002 7:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Got another ripper for you all ;-)
In article
I just had a massive open house party...
Is it possible to write a PHP script to collect all the bottles and
cans, mop the floor, fumigate the carpet and make me lunch?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
These may help
http://scripts.operationenigma.net/
note:
passgen.php
passgen.phps
Leave the rest alone ;-)
- Original Message -
From: César Aracena [EMAIL PROTECTED]
To: PHP General List [EMAIL PROTECTED]
Sent: Sunday, August 18, 2002 2:51 PM
Subject: [PHP] Random Passwords
Hey guys, got a basic question for you...
?
function getvar()
{
$vari = bollocks;
}
getvar();
echo $vari;
?
How do I make that function return the variable?
Thanks,
Liam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all,
I need to restart apache using PHP. Is this possible?
Or, ar least apply a modified config file...
PHP is running as nobody:nobody as is Apache.
Thanks,
Liam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What's your site about?
I can do all that for free if if it's:
- Non-Profit
- Personal homepage
- PHP Dev.
Apache, PHP, MySQL on Slackware 8.1
98% Uptime, 2 Meg pipe based in Brisbane, Australia.
I allow external MySQL DB Access, FTP, mail(), DNS hosting and unlimited
POP3 accounts.
BUT...
I also work for a webhosting company, if you need corporate hosting, I can
help you there too.
Low rates, payable by check...
Fibre Optic pipe
Slackware 8.1
Apache 1.3.26
PHP 4.2.2
MySQL
Perl 1.27
POP3 Accounts
Admin console
FTP Access
Contact me on [EMAIL PROTECTED] if you're interested.
I'm
I just happen to be re-compiling my hosting servers right now...
I'll compile those things into PHP.
If your sites are:
non-profit
personal
development
I'll host them free for you.
Read up a few messages to one with the subject Hosts and look for one from
me for more details.
Cheers,
Liam
I'm afraid you're going to have to be more specific than that my friend.
- Original Message -
From: Hendråwan Rinäldi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 7:43 PM
Subject: [PHP] PHP_AUTH_USER
anyone can help me what is the script for log out
It seems nearly everyone has a problem with this function, probably because
it relies on third party software.
It doesn't work. That's my problem!
I'm using Sendmail as my MTA, not running as a Daemon as I have POP3/SMTP
server running on the same
machine (eXtremail)
I'm starting Sendmail like
1 - 100 of 114 matches
Mail list logo