Re: [PHP] defending PHP mail function

2001-10-31 Thread ReDucTor

Blankwhat os was it?!?!?
- Original Message -
From: Matthew Luchak
To: Php-General (E-mail)
Sent: Thursday, November 01, 2001 2:04 AM
Subject: [PHP] defending PHP mail function


Recently I have had to defend the use of PHP in light of a number of
screw-ups with the mail function in 4.0+.  It seems that some email
addresses will simply not work with mail.  I have been shopping around for
a smtp direct class ( http://www.zend.com/codex.php?id=347single=1 ) looks
pretty good to me and was wondering if anyone has any experiences, shortcuts
etc. to this kind of problem with mail.

Matthew Luchak
Webmaster
Kaydara Inc.
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] defending PHP mail function

2001-10-31 Thread ReDucTor

thats wierd it added blank infront of it all...wierd

it might have been the smtp server its self that had rules or something...

- Original Message - 
From: Matthew Luchak [EMAIL PROTECTED]
To: Php-General (E-mail) [EMAIL PROTECTED]
Sent: Thursday, November 01, 2001 2:09 AM
Subject: RE: [PHP] defending PHP mail function


 WIN 2000
 
 
 
 
 Blankwhat os was it?!?!?
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread ReDucTor

Most mail servers use qmail, so i will explain how to do it with qmail

For your qmail accounts, you will have .qmail files(e.g. .qmail-default
.qmail-webmaster and so on), open one of these files, now add the bottom of
it |preline /path/to/php /path/to/script.php or you can do it with perl the
same way, but with your path to perl, The email its self will be stored in
stdin, if you want ot read it in php you can just go fopen(php://stdin,
r); if you want to use it in perl, just do @stdinarray=stdin; it's an
array, make sure to chomp() your results, from there you can prase the
email, and check who it is, reply the the email, delete the email from the
mailbox, what ever you want... :D
- Original Message -
From: David Robley [EMAIL PROTECTED]
To: Chris Aitken [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, October 05, 2001 10:27 AM
Subject: Re: [PHP] Getting an Email into a PHP/pl script


 On Fri,  5 Oct 2001 07:24, Chris Aitken wrote:
  Hi all,
 
  I have looked into the archives but im not sure what im searching for
  so I decided to ask here.
 
  What I want to do is, on my FreeBSD box running PHP and MySQL, to have
  a system which will take any email sent to a specific address, and pipe
  the body of the email to PHP (or even to a perl script). Once I have
  the body of the email as a variable, I can do all my parsing and
  extracting etc to do with it as I need, but im baffled on where to
  start looking to get this done.
 
  Any help would be greatly appreciated.

 What are you using for an MTA? If for example you are using sendmail, you
 can set up an alias, via an entry in /etc/aliases which pipes the
 incoming mail to a script, which could be a php script. Of course, you
 would need a php binary. Similarly you can set up an alias file with
 qmail which passes the email to a script.

 This is a common technique for say creating web based mail list archives.

 --
 David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
 CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA

Cats aren't clean, they're just covered with cat spit!

 --
 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] System(), exec(), Passthru(), etc

2001-10-04 Thread ReDucTor

I can't seem to get a return value, while using the functions, it just puts
a 0 on the page, i try putting a br after i do the system call, still all
that is on the page, 0, something is wrong, anyone know why?!?

I got no telnet access, and i want to do some cron jobs :D

 - James  ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] System(), exec(), Passthru(), etc

2001-10-04 Thread ReDucTor

echo System(crontab -l, $var).br;
echo $var;
- Original Message - 
From: David Robley [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, October 05, 2001 2:21 PM
Subject: Re: [PHP] System(), exec(), Passthru(), etc


 On Fri,  5 Oct 2001 13:19, ReDucTor wrote:
  I can't seem to get a return value, while using the functions, it just
  puts a 0 on the page, i try putting a br after i do the system call,
  still all that is on the page, 0, something is wrong, anyone know
  why?!?
 
  I got no telnet access, and i want to do some cron jobs :D
 
   - James  ReDucTor Mitchell
 
 Perhaps if you show how you are doing this, it might be easier to help. 
 Are you for instance using the return_var argument?
 
 And in some cases, 0 is a valid return value; some programs may not 
 return a value at all.
 
 -- 
 David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
 CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  
 
Best way to dispose of the Borg: Give them Windows 3.1.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to simulate any browser

2001-10-03 Thread ReDucTor

with HTTP 1.1, you just need the normal url, for the GET, but if you want to
use POST or something, you do strlen() and get the length, set the
contentlength, then you send it...make sure to do urlencode before sending
stuff via get, or doing stuff with POST...i wrote a perl POST Client,
because my host doesn't feel the need to tell me the path ot php, and
doesn't reply to emails, so i wrote a perl http client that uses the POST
method, grabs everything from the stdin and just sends it there...hehe :D

So i learn't a bit on the http specifications...


btw it might be an idea to try

$output = file("http://site.com/website?arg1=valuearg2=value2");

- Original Message -
From: "Kamil Nowicki" [EMAIL PROTECTED]
To: "PHP-list" [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 1:46 AM
Subject: [PHP] How to simulate any browser



 Hello everyone!

 I have a problem. My webpage (say webpage_1) needs to get some data
 presented on other webpage (wepage_2). I tried to use
 fopen("http://webpage_2?params","r") and got connection and stuff, but
 I suppose that webpage_2 uses some script checking what type of
 browser sent the request, and sends back an error message. I do not
 have cURL library installed (and I can't install it cause I'm not
 an administrator of the server and my administrator doesn't want to
 install it) so I can't use it to pretend my PHP request is from
 IE, Netscape or any other WWW browser.
 I was thinking abous using sockets to communicate directly and
 make a HTTP request manually, but I do not know the HTTP request
 specifications (how to send all needed info including browser id).

 If You know how to send browser info to WWW server using standard
 PHP functions or some common libraries' functions, than PLEASE HELP ME.

 Thanx in advance.

  Kamil 'Hilarion' Nowicki

 PS.: I can send phpinfo() of my server on Your request.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re: [PHP] How to simulate any browser

2001-10-03 Thread ReDucTor

What does the error page have?
- Original Message - 
From: "Kamil Nowicki" [EMAIL PROTECTED]
To: "PHP-list" [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 2:55 AM
Subject: Re: Re: [PHP] How to simulate any browser


 
 Hello again
 
 
 I suppose I was not precise enough.
 
  with HTTP 1.1, you just need the normal url, for the GET,
 And what do I do with it? How to send it as a request?
 
  but if you want to
  use POST or something, you do strlen() and get the length, set the
  contentlength, then you send it...
 How? Open socket to the server and HTTP port and write what to it?
 
  So i learn't a bit on the http specifications...
 Yes... But I do not know those HTTP specifications...
 
  btw it might be an idea to try
  $output = file("http://site.com/website?arg1=valuearg2=value2");
 Works just like:
 $fd = fopen("http://site.com/website?ag1=value1arg2=value2","r");
 $output = fread($fd,10);
 And gives error page in $output.
 
 Kamil 'Hilarion' Nowicki
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to decrease serverload easily?

2001-10-02 Thread ReDucTor

http://conf.php.net/pres/slides/intro/tshirt.php?si=30text=php

That doesn't work, Its in the imlib2 section :D and i wanted to see a pic
with php logo on it :D
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Martin Lindhe [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 1:32 AM
Subject: Re: [PHP] how to decrease serverload easily?


  We're developing a web platform based on PHP, running under Apache. We
have
  realized that we need a way of split up the serverload to multiple
  machines if it gets too high. We've come up with PHP solutions to the
  problem but are looking for better ones, especially in Apache
configuration.
  Is there any easy way of doing this? Anyone have previous experience?
 
  Software versions and OS'es is of no concern, we'll use what's required.

 Have a look at http://conf.php.net/sdphp and have a look at slides 46
 through 48.

 Basically, I would suggest a Squid reverse proxy as a front-end to your
 system.  Have it use a redirector like SquidGuard to distribute requests
 across multiple backend web servers, and if you need to distribute your
 database load as well, set up a single master mysql server which
 replicates to read-only servers on each of the load balanced Apache
 servers.  And if you are getting really crazy traffic, you could round
 robin across multiple frontend squid servers.  But I would be very
 surprised if you are doing anything that is getting that much traffic.

 How many hits per second are you expecting?

 -Rasmus


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to decrease serverload easily?

2001-10-02 Thread ReDucTor

Would be nice and fun to goto one of them, but I live in Australia and I
doubt, thats where you go  :D hehe

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 2:09 AM
Subject: Re: [PHP] how to decrease serverload easily?


 Yes, some of the slides don't work on conf.php.net.  One of these days I
 will get around to fixing that.  Everything works fine on my laptop, so
 come to one of my talks.  ;)

 -Rasmus

 On Wed, 3 Oct 2001, ReDucTor wrote:

  http://conf.php.net/pres/slides/intro/tshirt.php?si=30text=php
 
  That doesn't work, Its in the imlib2 section :D and i wanted to see a
pic
  with php logo on it :D
  - Original Message -
  From: Rasmus Lerdorf [EMAIL PROTECTED]
  To: Martin Lindhe [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Wednesday, October 03, 2001 1:32 AM
  Subject: Re: [PHP] how to decrease serverload easily?
 
 
We're developing a web platform based on PHP, running under Apache.
We
  have
realized that we need a way of split up the serverload to multiple
machines if it gets too high. We've come up with PHP solutions to
the
problem but are looking for better ones, especially in Apache
  configuration.
Is there any easy way of doing this? Anyone have previous
experience?
   
Software versions and OS'es is of no concern, we'll use what's
required.
  
   Have a look at http://conf.php.net/sdphp and have a look at slides 46
   through 48.
  
   Basically, I would suggest a Squid reverse proxy as a front-end to
your
   system.  Have it use a redirector like SquidGuard to distribute
requests
   across multiple backend web servers, and if you need to distribute
your
   database load as well, set up a single master mysql server which
   replicates to read-only servers on each of the load balanced Apache
   servers.  And if you are getting really crazy traffic, you could round
   robin across multiple frontend squid servers.  But I would be very
   surprised if you are doing anything that is getting that much traffic.
  
   How many hits per second are you expecting?
  
   -Rasmus
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: ImageColorAt()

2001-10-02 Thread ReDucTor

The script had been tested on a few *nix system, they all worked, hell see
the threads that have kewl script inside them :D

- Original Message -
From: Richard Lynch [EMAIL PROTECTED]
To: Reductor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 12:40 PM
Subject: Re: ImageColorAt()


 What values are you passing to it?...

 Be sure you have a valid image before you call ImageColorAt and that you
are
 passing integers for the x/y values.

 If it still crashes, follow the directions at http://bugs.php.net to get a
 backtrace...

 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm
 - Original Message -
 From: Reductor [EMAIL PROTECTED]
 Newsgroups: php.general
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 25, 2001 4:42 PM
 Subject: ImageColorAt()


  ImageColorAt() causes my php to crashI want to capture the color of
a
  pixel...
 - James ReDucTor Mitchell
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Free hosts, or Temp account...some thing

2001-10-02 Thread ReDucTor

But that doesn't have an option to search for only free ones...or even in a
specific price range
- Original Message -
From: Richard Lynch [EMAIL PROTECTED]
To: Reductor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 12:47 PM
Subject: Re: Free hosts, or Temp account...some thing


 http://php.net/hosts.php or http://hosts.php.net or somesuch is a database
 of hosts, some free, some cheap...

 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm
 - Original Message -
 From: Reductor [EMAIL PROTECTED]
 Newsgroups: php.general
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 26, 2001 5:36 AM
 Subject: Free hosts, or Temp account...some thing


  Hey,
I just made a kewl little script, that i want to test out it requires
 GD,
  it doesn't appear to work on my Windows machine, but i think it might
work
  better on a Unix/Linux machine, so does anyone know of a free web host,
 that
  supports php, gd, or someone that can open an account for about half an
 hour
  or so, for me to test out my script, to see if it is my OS that is
causing
  these problem
 - James ReDucTor Mitchell
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] ereg

2001-09-30 Thread ReDucTor

use MSIE:[56|5\..|6\..] something like that, i suck at regular expression :D
- Original Message - 
From: Matthew Delmarter [EMAIL PROTECTED]
To: PHP Mailing List [EMAIL PROTECTED]
Sent: Monday, October 01, 2001 1:32 PM
Subject: [PHP] ereg


 How do I use ereg to check for MSIE 5.5 and above.
 
 eg: eregi((MSIE.[56]),$HTTP_USER_AGENT)
 
 This only gets version 5 and 6 ... but I want 5.5 and above. Any
 ideas?
 
 Regards,
 
 Matthew Delmarter
 
 
 -- 
 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 kewl Script, for you someone to test, and show me the results

2001-09-27 Thread ReDucTor

Hey,
   I couldn't be bothered waiting for someone to show me a host that runs
php with GD, so i am just going to post the code here, and hope that someone
sees it, and checks it out, and shows the results

If you can't find a jpg file to test this on, just grab the php jpg one,
well i'll post the code now, so people can play with it, remember if you
test it place show the results :D

btw if you don't understand how to use it, you paste the code into a .php
file, and change imgname to the path of an jpg image, if you want to use an
png image, just change the im to ImageCreateFromPNG, ok, thats all...please
show the results

html
body bgcolor=#00
?php
 $imgname = /path/to/a/jpeg/file;
$im = ImageCreateFromJPEG($imgname);
 $output =  ;
 for($x=0;$ximagesx($im);$x++)
 {
  for($y=0;$yimagesy($im);$y++)
  {
   $color = ImageColorsForIndex(ImageColorAt($im, $x, $y));
   echo font size=\1\ color=\#;
   echo dechex($color['red']);
   echo dechex($color['green']);
   echo dechex($color['blue']);
   echo \\$/font;
  }
  echo br\n;
 }
?
/body/html

 - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A kewl Script, for you someone to test, and show me the results

2001-09-27 Thread ReDucTor

Thanks Ramus..

It appears to work nice...

I find the $ looks nicer, then an #

   - James ReDucTor Mitchell

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 5:29 PM
Subject: Re: [PHP] A kewl Script, for you someone to test, and show me the
results


 The imagecolorat() function doesn't work for truecolor images.  You will
 need a an indexed image for this to work.  And worse, imagecolorat()
 actually segfaults when run on a non-indexed image as far as I can tell.
 Will commit a fix for that shortly.

 -Rasmus

 On Thu, 27 Sep 2001, ReDucTor wrote:

  Hey,
 I couldn't be bothered waiting for someone to show me a host that
runs
  php with GD, so i am just going to post the code here, and hope that
someone
  sees it, and checks it out, and shows the results
 
  If you can't find a jpg file to test this on, just grab the php jpg one,
  well i'll post the code now, so people can play with it, remember if you
  test it place show the results :D
 
  btw if you don't understand how to use it, you paste the code into a
.php
  file, and change imgname to the path of an jpg image, if you want to use
an
  png image, just change the im to ImageCreateFromPNG, ok, thats
all...please
  show the results
 
  html
  body bgcolor=#00
  ?php
   $imgname = /path/to/a/jpeg/file;
  $im = ImageCreateFromJPEG($imgname);
   $output =  ;
   for($x=0;$ximagesx($im);$x++)
   {
for($y=0;$yimagesy($im);$y++)
{
 $color = ImageColorsForIndex(ImageColorAt($im, $x, $y));
 echo font size=\1\ color=\#;
 echo dechex($color['red']);
 echo dechex($color['green']);
 echo dechex($color['blue']);
 echo \\$/font;
}
echo br\n;
   }
  ?
  /body/html
 
   - James ReDucTor Mitchell
 
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP 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] Free hosts, or Temp account...some thing

2001-09-26 Thread ReDucTor

Hey,
  I just made a kewl little script, that i want to test out it requires GD,
it doesn't appear to work on my Windows machine, but i think it might work
better on a Unix/Linux machine, so does anyone know of a free web host, that
supports php, gd, or someone that can open an account for about half an hour
or so, for me to test out my script, to see if it is my OS that is causing
these problem
   - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A simple PHP form not working

2001-09-25 Thread ReDucTor

you have an l just after the @ sign, it might be an idea to change that,
because when it connects, it first does HELO email and checks if that user
is allowed...
- Original Message -
From: Tshering Norbu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 6:38 PM
Subject: Re: [PHP] A simple PHP form not working


 Is this the correct mail function config in php.ini ?

 [mail function]
 SMTP   = smtp01.druk.net.bt   ;for win32 only
 sendmail_from = [EMAIL PROTECTED] ;for win32 only
 ;sendmail_path =  ;for unix only, may supply arguments as well
(default
 is sendmail -t)


 Here, I have smtp01.druk.net.bt  as my SMTP server which exsits and
 [EMAIL PROTECTED] as my own  just to test. I tried those and still no
 luck -:)

 Thank you david.

 NORBU


 - Original Message -
 From: David Robley [EMAIL PROTECTED]
 To: Tshering Norbu [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, September 25, 2001 12:32 PM
 Subject: Re: [PHP] A simple PHP form not working


  On Tue, 25 Sep 2001 12:56, Tshering Norbu wrote:
   Hi list,
   I can not get the form (from thesitewizard) working. When I submit the
   form, I get this error: Warning: Failed to Connect in c:\Program
   Files\Apache Group\Apache\htdocs/druknet/feedback/feedbacksend.php on
   line 2.  My PHP conf with Apache has no problem. What am I doing
   wrong? Sorry, I am a beginner in PHP.
   Here are 2 php files:
  
   feedback.html
  
   HTML/BODY
  
   FORM method=post action=feedbacksend.php
   Email: INPUT name=email type=textbr
   Message:br
   TEXTAREA name=message
   /textareabr
   input type=submit value=Submit
   /FORM
  
   /BODY/HTML
  
  
  
   feedbacksend.php
  
   ?php
   mail([EMAIL PROTECTED], Feedback Form Results,$message, From:
   $email);
   (Location:thankyou.html);
   ?
 
  Line 2 appears to be the mail() function - have you correctly configured
  the mail section of your php.ini?
 
  --
  David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
  CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA
 
 Do the joke. Get the laugh. Move on.


 --
 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] ImageColorAt()

2001-09-25 Thread ReDucTor

ImageColorAt() causes my php to crashI want to capture the color of a
pixel...
   - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Writing newlines in files

2001-09-23 Thread ReDucTor

put \n at the end

- Original Message -
From: Big5ive [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001 11:36 PM
Subject: [PHP] Writing newlines in files


 Hi!

 $FTP_FILE=d:\programme\serv-u\ServUDaemon.ini;
 $fp = fopen($FTP_FILE, a);

$data=\n\n[USER=$username|1]\nPassword=$pw\nHomeDir=d:\\nLoginMesFile=c:\wi
 ndows\profiles\flo\my

documents\msg.txt\nDiskQuota=1|301443514202|24963514202\nAccess1=D:\-=Upload
 s=-|RWLCP\nAccess2=D:\Moviez|RLP\nAccess3=D:\Music|RLP;
 fwrite($fp,$data);
 fclose($fp);

 That's my code and i want to make newlines in the text file..the file is
 text//plain but instead of a newline there are some awesome letters..

 Please help me..

 --
 Big5ive



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Going blind? Plz hlp w/ parse error

2001-09-19 Thread ReDucTor

Which line is line 10?!?
- Original Message - 
From: Anthony Rodriguez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 2:34 PM
Subject: [PHP] Going blind? Plz hlp w/ parse error


 Please help! There is a parse error in like 10:
 
 ?php
 
 // file: root/reg/add_2.php, updated: 08/25/01
 
 $connection=@mysql_connect(localhost,afrodriguez,xxx) or die (No 
 connection!);
 
 $db=@mysql_select_db(sbwresearch,$connection) or die (No database!);
 
 $qry_1=select * from cust_info where username=\$username\;
 
 $result=@mysql_query($qry_1,$connection) or die (No query # 1!);
 
 $row_1=@mysql_affected_rows();
 
 if ($row_1==0)
 
 {
 
$qry_2=insert into cust_info (username,password,mother) values 
 ($username,$password,$mother) or die (No query #2!);
 
$result=@mysql_query($qry_2,$connection);
 
@mysql_free_result($result);
 
@mysql_close($connection);
 
echo 
 
html
 
etc.
 
 Thank you!
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] problems with include()

2001-09-13 Thread ReDucTor

are you using a .cfg extension?!?

you are going to need to add the path to php at the top if you are :D

- Original Message -
From: LRW [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 14, 2001 1:31 AM
Subject: [PHP] problems with include()


 I got a plain test to work...made a test.php that included the following:
 htmlheadtitlePHP Test/title/head
 body
 ?php echo Hello Worldp;?
 br
 ?include(texttest.txt);?
 br
 /body/html

 (texttest.txt just has some randome words in it.)

 But when I try to make a page with tables, and have it place the text in a
 cell, I get the following error:
 CGI Error
 The specified CGI application misbehaved by not returning a complete set
of
 HTTP headers. The headers it did return are:
 Followed by nothing.

 The code is:
 htmlheadtitleNew Page 1/title/head
 body
 h1Test/h1
 div align=left
   table border=2 cellspacing=1 width=100%
 tr
   td width=33%Boo/td
   td width=33%nbsp;/td
   td width=34%nbsp;/td
 /tr
 tr
   td width=33%nbsp;/td
   td width=33%
   ?php
   include(texttest.txt);
   ?/td
   td width=34%nbsp;/td
 /tr
 tr
   td width=33%nbsp;/td
   td width=33%nbsp;/td
   td width=34%
 p align=rightYa/td
 /tr
   /table
 /div
 /body
 /html

 Pretty simple and straightforward I would think. I named it tabtest.php.

 Any ideas why it'll work in the 1st but not the 2nd example?

 Thanks for all your help! =)

 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]



-- 
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] Changing perl to PHP

2001-09-12 Thread ReDucTor

?php
$fp = fsockopen(www.paypal.com, 443, $errono, $errstr, 30);
if (!$fp) {
echo $errstr ($errno)br\n;
} else {
fputs ($fp, GET https://www.paypal.com/cgi-bin/webscr
HTTP/1.1\015\012);
fputs ($fp, HOST www.paypal.com\015\012);
fputs ($fp, Content-type: application/x-www-form-urlencoded\015\012);
fputs ($fp, Content-Length: . strlen($query).\015\012);
fputs ($fp, Connection: Close\015\012);
fputs ($fp, $query); // you might want to do some urlencoding here, if
it hasn't been done already..
fputs ($fp, \015\012\015\012);
while (!feof($fp)) {
$return .= fgets ($fp,128);
}
fclose ($fp);
}
?

- Original Message -
From: Richard Kurth [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Wednesday, September 12, 2001 4:01 PM
Subject: [PHP] Changing perl to PHP


 Could somebody tell me how to convert this little bet of code to PHP.
 The rest of the code for this was easy to do but I dont know what to
 do with this. Can I call LWP from php and if yes how?

 # read the post from PayPal system and add 'cmd'
 read (STDIN, $query, $ENV{'CONTENT_LENGTH'});
 $query .= 'cmd=_notify-validate';

 # post back to PayPal system to validate
 use LWP::UserAgent;
 $ua = new LWP::UserAgent;
 $req = new HTTP::Request 'POST','https://www.paypal.com/cgi-bin/webscr';
 $req-content_type('application/x-www-form-urlencoded');
 $req-content($query);
 $res = $ua-request($req);













 Best regards,
  Richard
 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]




Re: [PHP] Site Layouts/Designs

2001-09-10 Thread ReDucTor

I don't do site design for people, thats probley because i suck at design,
but i am good at the coding...just like apps, i suck with the GUI, which is
why i prefer to get some that are already done, or get them done, and i am a
poor bastard, so free ones(alot of them are just templates), are for me..

- James ReDucTor Mitchell
- Original Message -
From: Justin French [EMAIL PROTECTED]
To: Meir Kriheli [EMAIL PROTECTED]; php
[EMAIL PROTECTED]
Sent: Monday, September 10, 2001 7:32 PM
Subject: Re: [PHP] Site Layouts/Designs


 Hi,


 Just to throw in a curve-ball, IMHO, there is no point looking at
 pre-built layouts and templates.


 Why?

 1. The end product will not look unique or different.  It will look the
 same as the other 5000 sites who found that same template.  Worse still,
 if your charging a client, they're paying for a non-unique design (even
 if the design wasn't charged out).  if it was client based work, I'd
 advise telling them that they're getting a freebie layout design.  Sure,
 they may like that, but not when you tell them it'll be as generic as an
 milk bottle, and probably already exists 100-5000 times elsewhere on the
 net (where people are stuggling to stand out in the crowd already).  My
 clients would rather pay for a few hours of design time and get
 something even half original which meets their needs.

 2. Out-of-the-box templates (especially free ones) tend to look like
 just that.  Generic enough to be adaptable on a large number of sites,
 with varied content, with minimal fuss.

 2. In my 7+ years of interface design, graphic design, and web
 development I have never designed the same site/page twice.  The fact
 is, the client, the content, their identity and the site's needs will
 allways dictate a different layout/design.


 However LOOKING at them for ideas and inspiration may be just what you
 need... in fact, I do it all the time... I'm contantly looking at
 layout/interface design, cataloging it all in my brain.  When it comes
 time for a new design, I can blend all those ideas up and build
 something unique and purpose built for the client.


 Just my two cents worth!!


 Justin French

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTTP POST..

2001-09-10 Thread ReDucTor

i've figured out post works
- Original Message -
From: Tom Carter [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 4:01 AM
Subject: Re: [PHP] HTTP POST..


 PHP is probably compiled as a module.. if you want to be able to compile
php
 to use on command line you need to compile a second version (yes you can
 have two) without all the apache configure options (ie only things like
 mysql as and when needed)

 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, September 10, 2001 5:26 PM
 Subject: [PHP] HTTP POST..


  Ok,
 Let me explain my situation...
 
I am trying to make an autoresponder, I want to make it in PHP, I am
 using
  qmail, so in PHP what i was hoping to do was read STDIN, and put in my
  .qmail the path to php, then the script, but I don't know where php is
  located on the server(not my server, i've tried the common paths, they
 don't
  respond to emails), so now what i have done is made a perl script, that
 go's
  to the url of the php script, but it doesn't appear to work reading
stdin
  from there, so now what i am wanting to do is capture stdin in the perl
  script, then POST it into the PHP script...here is what I have in the
perl
  script so far...
 
  #!/usr/bin/perl
  use IO::Socket;
  $host = www.domain.com;
  $EOL = \015\012;
  $BLANK = $EOL x 2;
  $document = autoresponder.php;
  $remote = IO::Socket::INET-new( Proto = tcp,
   PeerAddr  = $host,
   PeerPort  = http(80),
  );
  $remote-autoflush(1);
  print $remote GET http://$host/$document HTTP/1.1. $EOL;
  print $remote HOST: . $host. $BLANK;
  while ( $remote ) {  }
  close $remote;
 
  BTW I have been looking at RFC 2616 informatino, but Havn't managed to
 find
  anything...
 
   - James ReDucTor Mitchell
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 



-- 
PHP 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] Win 9x and Shell Commands

2001-09-09 Thread ReDucTor

I can't seem to do any system(), exec(), passthru(), etc on my windows
system..

I've tried doing command /c command...

Its showing

Warning: Unable to fork [command /c net] in c:\phpdev3\www\net.php on line 2
  - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Site Layouts/Designs

2001-09-09 Thread ReDucTor

Ok, this isn't exactly PHP, more HTML, but I am not on any other mailing
lists that contain Web Developers, but what I am after is Designs/Layouts
for websites...So if anyone has some, or knows some good sites to get some..

BTW, I am after free ones, i don't want to have to pay for them..


  - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] new to php

2001-09-09 Thread ReDucTor

You could use cron...
- Original Message - 
From: Kostis Mentzelos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 12:50 AM
Subject: [PHP] new to php


 Hi all,
 is it possible to create a table that automatically
 updates its contents every 30 seconds?
 
 Thanks in advance,
 Kostis Mentzelos.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Site Layouts/Designs

2001-09-09 Thread ReDucTor

Ya, but FreeWebTemplates is down 4 coz of a hack, and all other ones it
leads to(except templates.ws), which is why i am after other ones

 - James ReDucTor Mitchell


- Original Message -
From: B. van Ouwerkerk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 1:16 AM
Subject: Re: [PHP] Site Layouts/Designs



 Ok, this isn't exactly PHP, more HTML, but I am not on any other mailing
 lists that contain Web Developers, but what I am after is Designs/Layouts
 for websites...So if anyone has some, or knows some good sites to get
some..

 Ever considered using a search engine?

 Just found www.freewebtemplates.com and a few others..

 I don't want to flame you but you could have found this on your own..
 within 15 seconds and without sending a messages.

 Have fun,



 B.



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Just had a cool idea!

2001-09-09 Thread ReDucTor

You could use something like this

?php
$pageif = ads.php;
$count = 500;
$countfile = file(counter.txt);
$count = $countfile[0];
$fp = fopen(counter.txt, w);
fwrite($fp, $count);
fclose($fp);
$temp = $count / $count;
if(!is_float($temp))
echo scriptwindow.open('.$pageif.');/script\n; // my js knowledge
sucks
?
- Original Message -
From: B. van Ouwerkerk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 1:54 AM
Subject: Re: [PHP] Just had a cool idea!



 like everytime you go on there if the counter is a multiple of 500 you
get
 to have your site as a pop up for a week or so, well is this possible and
 if yes, can anybody give me some pointer?!!?

 Use your own script and add more then one for each visit :-)

 Uhm, your not going to ask money from people.. right??
 /me don't like it when PPL are mislead and have to pay  for something
 with less value.. I don't mind if it's just for fun..

 Don't think it's cool.. you're still giving people wrong information..

 Perhaps you can work for M$ some day :-)
 (ouch, that sounds like flamebait)

 Bye,



 B.


 --
 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] HTTP POST..

2001-09-09 Thread ReDucTor

Ok,
   Let me explain my situation...

  I am trying to make an autoresponder, I want to make it in PHP, I am using
qmail, so in PHP what i was hoping to do was read STDIN, and put in my
.qmail the path to php, then the script, but I don't know where php is
located on the server(not my server, i've tried the common paths, they don't
respond to emails), so now what i have done is made a perl script, that go's
to the url of the php script, but it doesn't appear to work reading stdin
from there, so now what i am wanting to do is capture stdin in the perl
script, then POST it into the PHP script...here is what I have in the perl
script so far...

#!/usr/bin/perl
use IO::Socket;
$host = www.domain.com;
$EOL = \015\012;
$BLANK = $EOL x 2;
$document = autoresponder.php;
$remote = IO::Socket::INET-new( Proto = tcp,
 PeerAddr  = $host,
 PeerPort  = http(80),
);
$remote-autoflush(1);
print $remote GET http://$host/$document HTTP/1.1. $EOL;
print $remote HOST: . $host. $BLANK;
while ( $remote ) {  }
close $remote;

BTW I have been looking at RFC 2616 informatino, but Havn't managed to find
anything...

 - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Hosting in lieu of programming ?

2001-09-09 Thread ReDucTor

i think a great load of people here, want to do there own programming :D
after all this is the place for programming... :D
   - James ReDucTor Mitchell
- Original Message -
From: Natasha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 2:49 PM
Subject: [PHP] Hosting in lieu of programming ?


 Hi,

 Anyone interested in exchanging services, you could
 provide hosting to me and i could program for you ?

 
 Do You Yahoo!?
 Send a newsletter, share photos  files, conduct polls, organize chat
events. Visit http://in/ groups.yahoo.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] FTPs

2001-08-29 Thread ReDucTor

Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript, Java,
ASP, etc, so i can just leech them all :D
  - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] FTPs

2001-08-29 Thread ReDucTor

Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
leech :D
- James ReDucTor Mitchell
- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 2:03 AM
Subject: Re: [PHP] FTPs


 http://www.hotscripts.com
 It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
available there
 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 29, 2001 7:00 PM
 Subject: [PHP] FTPs


  Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript,
Java,
  ASP, etc, so i can just leech them all :D
- James ReDucTor Mitchell
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] FTPs

2001-08-29 Thread ReDucTor

And what would that be in english?!? :D
- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 2:19 AM
Subject: Re: [PHP] FTPs


 Kakto se kazva, sorry majna ne moga da ti pomogna.

 Andrey Hristov
 IcyGEN Corporation
 http://www.icygen.com
 99%

 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: Andrey Hristov [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Wednesday, August 29, 2001 7:10 PM
 Subject: Re: [PHP] FTPs


  Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
  leech :D
  - James ReDucTor Mitchell
  - Original Message -
  From: Andrey Hristov [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, August 30, 2001 2:03 AM
  Subject: Re: [PHP] FTPs
 
 
   http://www.hotscripts.com
   It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
  available there
   - Original Message -
   From: ReDucTor [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, August 29, 2001 7:00 PM
   Subject: [PHP] FTPs
  
  
Does anyone know any FTP sites that have lots of CGI, PHP,
JavaScript,
  Java,
ASP, etc, so i can just leech them all :D
  - James ReDucTor Mitchell
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]
   
   
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP 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] LAN Scripts/Functions

2001-08-28 Thread ReDucTor

Well to start I am lazy(so pls don't tell me to go make everything) :D

Now I am after Scripts and/or Functions that would be handy to use on at a
LAN, or on a Website Related to LANs...here are just a few things I have
thought up...

- Game Related
   - Game Stats
   - Clan Management
- Sharing(List of Demos, Mods, etc People can Post what they have, what they
want, etc)
   - IP/Hostname Logging(To protect Agianst, Spammers and Illigal Stuff)
   - Find All Computers on the Network(with Hostnames, etc)
   - MP3 Management
- FAQ, Help, etc Mangement(For People having trouble setting up networks)

   And anything else...

   - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] LAN Scripts/Functions

2001-08-28 Thread ReDucTor

Arr...Might as well search Sourceforge and Freshmeat :D hehe But hopfully
posting here will get people to step out, and might hand out things that
have been working on similar...I know there was a person on here before,
looking for a thing to browse computers shares thro PHP...

  - James ReDucTor Mitchell
- Original Message -
From: Erik H. Mathy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 12:20 AM
Subject: RE: [PHP] LAN Scripts/Functions


  Now I am after Scripts and/or Functions that would be handy to use on at
a
  LAN, or on a Website Related to LANs...here are just a few things I have
  thought up...

 el snippo!

 Get thy lazy behind to Freshmeat and Sourceforge. ;)

 http://www.freshmeat.net
 http://sourceforge.net/

 Enjoy!
 - Erik

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Thinking about going to ASP

2001-08-27 Thread ReDucTor

Mind giving some more infro on this :D ?!?
- Original Message -
From: Julio Nobrega Trabalhando [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 27, 2001 10:36 PM
Subject: [PHP] Re: Thinking about going to ASP


   How about Mono from Ximian?

 --

 Julio Nobrega

 A hora está chegando:
 http://toca.sourceforge.net
 Reductor [EMAIL PROTECTED] wrote in message
 008001c12df9$e96806e0$eb00a8c0@mum">news:008001c12df9$e96806e0$eb00a8c0@mum...
  Just looking over the achives of the .net show(was msdn show), and with
 .net
  its got some really great features..
 
  So i am going to get a hold of .net and try it out...
 
   - James ReDucTor Mitchell
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Thinking about going to ASP

2001-08-26 Thread ReDucTor

Just looking over the achives of the .net show(was msdn show), and with .net
its got some really great features..

So i am going to get a hold of .net and try it out...

 - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] path to php

2001-08-26 Thread ReDucTor

they don't give shell access without contacting them, and they don't reply
to emails
- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 12:48 PM
Subject: Re: [PHP] path to php


 Have you tried which php or locate php?
 what do you mean?

 no shell acces, that requires contacting them to get, which they don't
read
 the emails :D

   - James ReDucTor Mitchell
 - Original Message -
 From: David Robley [EMAIL PROTECTED]
 To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Thursday, August 23, 2001 12:20 PM
 Subject: Re: [PHP] path to php


  On Thu, 23 Aug 2001 11:05, ReDucTor wrote:
   does anyone know all the possible paths to php...because i can't seem
   to find it on my current host...i have tried using the following
  
   php /path/to/script.php
   /usr/php /path/to/script.php
   /usr/local/bin/php /path/to/script.php
   /usr/bin/php /path/to/script.php
  
   but i still can't seem to get it to work with out it saying that it
   can't find the path to php...any one got any ideas?!?
  
   btw. i know php is on it..
  
   I have tried contacting them, but they don't seem to want to reply...
 
  Have you tried which php or locate php? If you don't have shell access
  you'll have to fiddle around with backticks or whichever of system() and
  friends is appropriate.
 
  --
  David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
  CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA
 
 Electricity was invented by rubbing cats backwards!
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] \n

2001-08-24 Thread ReDucTor

you do know you need to put br to make it go to a new line :D one of the
stupidest mistakes, but done alot :D
- Original Message -
From: Jeremy Morano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 25, 2001 1:18 AM
Subject: [PHP] \n



 Sorry to bother you with what probably seems like a useless question but
why
 is this not skipping a line?


 echo  $team \n ;



 Its in a while loop and the output is:

   Bears Giants Jets etc


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP 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] Scripts..flatfile

2001-08-23 Thread ReDucTor

Hello everyone,
  What scripts do you know of or have made that store all there information
in a file(flatfile d/b), that use php, and will allow someone to setup a
system for hosting these scripts(if its your script and you want your ads
there, tell me), this is just so i can have a few examples, for stuff, they
don't need to be top of the line...Please

btw. People to send a message to the address it came from and the mailing
list address, use Reply to All, not reply to sender :D

- James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] insert hyperlink to mysql query result

2001-08-22 Thread ReDucTor

echo /tdtdfont face=verdana size=1pa
href=http://www.expedia.com/pub/agent.dll?qscr=mcststrt1=.$amyrow[address
].
city1=.$amyrow[city].stnm1=CAzipc1=cnty1=4Map/p;
echo /td;
- Original Message -
From: Andras Kende [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 11:26 AM
Subject: [PHP] insert hyperlink to mysql query result


 Hello,

 I have a mysql query with addresses , trying to insert a link to a map

 line 51
 echo /tdtdfont face=verdana size=1pa

href=http://www.expedia.com/pub/agent.dll?qscr=mcststrt1=$amyrow[address;]
 city1=$amyrow[city]stnm1=CAzipc1=cnty1=4Map/p;
 echo /td;

 Error Message:

 Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
 `T_NUM_STRING' in /home/sites/site15/web/salescomps.php on line 51


 I think its the   character is the problem like :$amyrow[address]

 Any help apprecciated,
 Thanks

 Andras


 --
 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] path to php

2001-08-22 Thread ReDucTor

does anyone know all the possible paths to php...because i can't seem to
find it on my current host...i have tried using the following

php /path/to/script.php
/usr/php /path/to/script.php
/usr/local/bin/php /path/to/script.php
/usr/bin/php /path/to/script.php

but i still can't seem to get it to work with out it saying that it can't
find the path to php...any one got any ideas?!?

btw. i know php is on it..

I have tried contacting them, but they don't seem to want to reply...


-- 
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] $var , '$var'

2001-08-19 Thread ReDucTor

nothing, execpt, think there would be about 0.1 time difference... :D I
use $var = $blah.bleh'.$foo because syntax highlighting looks better :D
  - James ReDucTor Mitchelll
- Original Message -
From: nafiseh saberi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 19, 2001 4:33 PM
Subject: [PHP] $var , '$var'



 hi.
 what is the difference between $var and '$var' ?/
 thanks.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP 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] Meaningful URL Validator

2001-08-17 Thread ReDucTor

?php
$url = http://url;;
if($file = @file($url))
die(Invalid);
for($i=0;$isizeof($file);$i++)
{
if(eregi(b404/b, $file[$i]))
  die(Invalid);
if(eregi(404 , $file[$i]))
  die(Invalid);
if(eregi(404 Error, $file[$i]))
   die(Invalid);
if(eregi(not exist, $file[$i]))
   die(Invalid);
}
echo $url. is Valid;
?
- Original Message -
From: Stig-Ørjan Smelror [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 6:59 PM
Subject: [PHP] Meaningful URL Validator


 Hi all,

 I'm trying to make an URL validator, but I'm kind of stuck now.

 What I awnt it to do is as follows:

 It first checks to see if the server is up or down by doing a general
 fopen() on the URL.

 It then opens the URL in some way, checks the HTTP response code and
 spews out a meaningful message to the user.
 E.g. if it's a 404, the user will get a message saying the the page was
 not found.

 Has anybody done this before and have the kind heart to share it with me?
;)


 TIA

 --
 Stig-Ørjan Smelror
 Systemutvikler

 Linux Communications AS
 Sandakerveien 48b
 Box 1801 - Vika
 N-0123 Oslo, Norway

 tel. +47 22 09 28 80
 fax. +47 22 09 28 81
 http://www.lincom.no/


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread ReDucTor

do you mean perl?!?
- Original Message -
From: Augusto Cesar Castoldi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:04 AM
Subject: [PHP] Execute a PHP script from unix (crontab)


 Hi.

 How can I execute a php script from the unix?

 like pearl it's (pearl file), but in unix we don't have a executable
of
 php, it's a module ,right?

 I should compile the script first?

 I want this to add to crontab to make backup of my mysql automaticly.

 thanks.

 Augusto


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Date function

2001-08-15 Thread ReDucTor

?php
$date = 2001-10-18;
$montharray = array(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug,
Sep, Oct, Nov, Dec);
$datedata = explode(-, $date);
echo $montharray[$datedata[1]+1]. .$datedata[2].  .$datedata[0];
?

- Original Message -
From: Mike Mike [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:08 AM
Subject: [PHP] Date function


 Hello,
 I'm pulling a date out of MySQL as 2001-10-18.
 How do I make it print October 18 in php?
 Thanks much
   --Mike

 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] need real expert (geting outer files) *english/german*

2001-08-15 Thread ReDucTor

server.com?var=xyz

would put in the get var and set it to xyz

and it would give you $var = xyz you don't need the slash..

  - James ReDucTor Mitchell
- Original Message - 
From: Tribun [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:11 AM
Subject: [PHP] need real expert (geting outer files) *english/german*


 Hi all.
 
 I habe a strange problem!
 
 I try to get a URL like: www.server.com?var=xyz
 
 the problem is, that this is very good restricted by serverside.
 
 But now I already get the file, and no more the error-message,
 but the problem is, that the file will not completly load.
 
 this means, I receive the file, but only the first 4188 bytes from
 11988 bytes.
 
 If I call the site with a BROWSER, I'll get the full file, but it
 is nessessary to have this page into a string, to read out a specific
 position.
 
 what could that be..?
 where is the problem?
 
 does anybody know such a problem???
 
 please help me.
 
 If someone believes to have an answer, feel free to
 mail me any detailer questions.
 
 thanks for all help.
 
 Tribun (Patrick Lehnen)
 ---
 mp3o.net
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] security with email data entries

2001-08-15 Thread ReDucTor

well you add to your .forward file or .qmail-default file if you use qmail
to exec it(sends the email)

then you do something like this..

?php
$fp = fopen(php://stdin, r);
while(!feof($fp))
{
$buffer = fgets($fp);
if(eregi(From:, $buffer))
$from = chop($buffer);
if(eregi(To:, $buffer))
$to = chop($buffer);
if(eregi(Subject:, $buffer))
$subject = chop($buffer);
if(eregi(Reply-to, $buffer))
$replyto = chop($buffer);
if(empty(chop($buffer)))
$getmessage = 1;
if($getmessage == 1)
$message .= $buffer;
}
fclose($fp);

//write $from to d/b
//write $message to d/b if needed
?
- Original Message -
From: Chris Hayes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:20 AM
Subject: [PHP] security with email data entries


 Hi group!
 i have this script to read data in POP emails and put them in a database.

 I would like to know if anybody knows how people would try to get around
the
 tests I've build in.

 - normal registration by web form (password scrambled), with confirmation
 through email response
 - the first header starting with 'From:' in the mail is scanned for a the
 email addtess and then i check whether the email address is in the
database
 - the mail contains the non-scrambled username and password, which are
also
 checked
 - there must be a magic word in the email subject (to prevent SPAM mail
 confusing my script)

 Oh and I intend only to disclose the email address to people i know.

 thanks,
 Chris







 
 --  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: prob with session start

2001-08-14 Thread ReDucTor

header() must be before anything is writen on the page
  - Original Message - 
  From: Balaji Ankem 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, August 14, 2001 8:10 PM
  Subject: Fw: [PHP] Re: prob with session start



  Hi,Renze i tried u'r last solution first.But it is acting as same .no change.

  After that i tried u'r first solution i.e removing include and adding 
header(Location);

  It is giving the following error message.
  Warning: Cannot add header information - headers already sent in 
c:\www\authentication.php on line 40

  Thanks and regards
  -Balaji
- Original Message - 
From: Renze Munnik 
To: Balaji Ankem 
Cc: [EMAIL PROTECTED] 
Sent: Tuesday, August 14, 2001 2:26 PM
Subject: Re: [PHP] Re: prob with session start


I think I know what it is. The construction I mentioned to avoid the
reloading used three pages to login: the login-page, the validation
page and then some page that produces output to the user.
What you do, is include that output page in the validation page
(authentication.php). You shouldn't do that. Instead of the
include('super.php') you should use header(Location: super.php)
and instead of include('ordinary.php') you should use
header(Location: ordinary.php). If you include
super.php/ordinary.php you still don't leave authentication.php.
That means that one can still reload authentication.php. Then the
browser asks for resubmitting the form. If you use header() instead
of include() you actually leave authentication.php and go to a
different page. The user can ofcourse reload that page, but that
page wasn't actually the result of a form-submital so the page will
then just be reloaded and no information will be resubmitted. Even
if one pushes Back from that page, he/she will not go back to
authentication.php but to login.html. And gone is your problem.

I think this should be your solution...


Oh... btw:

in authentication.php:
  session_register('$emp_id');
should be:
  session_register(emp_id);

and in logout.php:
  session_unregister($emp_id);
should be
  session_unregister(emp_id);

-- 

* RzE:

-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
--
-- http://www.datalink.nl
-- 

-- 
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] Site Stats/Server Logs

2001-08-13 Thread ReDucTor

what are some good things for analyising server logs?!?
I currently have Wusage, is there any better?!? :D
 - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Mail()

2001-08-12 Thread ReDucTor

From : Your Name [EMAIL PROTECTED]

make sure you have the arrow things around it...

thats in your headers...
- Original Message - 
From: Mahmoud Kassem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 4:20 PM
Subject: [PHP] Mail()


 How can force my From: instead of the nobody@servername ?
 


-- 
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] Bug?

2001-08-08 Thread ReDucTor

you must use float not int :D
- Original Message -
From: Maxim Maletsky [EMAIL PROTECTED]
To: '[Intent A/S] Tais M. Hansen' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 7:01 PM
Subject: RE: [PHP] Bug?


 good point.

 ...and try this out:


 echo (int)((8.85-8)*100).'br';
 echo ((8.85-8)*100).'br';


 Kinda weird,
 can anyone explain?


 Thanks,
 Maxim Maletsky



 -Original Message-
 From: [Intent A/S] Tais M. Hansen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 4:49 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Bug?


 Hi!

 I just came across this weird thing. Bug? You tell me!

 print (int)((8.85-8)*100);

 I would think the line above would print 85. But for some reason, it
 prints 84?? Can anyone tell me why that is?

 --
 Intent A/S
 Tais M. Hansen
 Web Developer




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
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] Bug?

2001-08-08 Thread ReDucTor

if you use
echo (float)((8.85-8)*100);
it works because 8.85 go's to 0.85 and times that by 100, and you get 85
which is what you get...
- Original Message -
From: Renze Munnik [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 7:14 PM
Subject: Re: [PHP] Bug?


 On Wed, Aug 08, 2001 at 07:06:13PM +1000, ReDucTor wrote:
  you must use float not int :D

 Using float doesn't solve the problem, does it? Point is that when
 using int, the damn thing doesn't get it straight. And that's WEIRD.
 I mean the result of (8.85-8)*100 is already an integer and not
 converting it to an integer the result is perfectly okay.

 Btw: (int)((8.85*100)-(8*100)), _does_ return a correct result.

 --

 * RzE:

 -- 
 -- Renze Munnik
 -- DataLink BV
 --
 -- E: [EMAIL PROTECTED]
 -- W: +31 23 5326162
 -- F: +31 23 5322144
 -- M: +31 6 21811143
 -- H: +31 23 5516190
 --
 -- Stationsplein 82
 -- 2011 LM  HAARLEM
 --
 -- http://www.datalink.nl
 -- 




--
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] Bug?

2001-08-08 Thread ReDucTor

i found this
http://www.php.net/manual/en/language.types.double.php#warn.float-precision

it explains the problem

?php
 $q = ((8.85-8)*100);
 echo $q.br;
 echo (float)($q).br;
 echo (int)($q).br;
 echo var_dump($q).br;
?
gives out
85
85
84
float(85)
- Original Message -
From: Darius Ivanauskas [EMAIL PROTECTED]
To: Maxim Maletsky [EMAIL PROTECTED]
Cc: '[Intent A/S] Tais M. Hansen' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 7:18 PM
Subject: RE: [PHP] Bug?


 Hello,

 You shodld read http://www.php.net/manual/en/language.types.double.php and

http://www.php.net/manual/en/language.types.integer.php#language.types.integ
er.casting


 Regards,
 --
 Darius Ivanauskas

 On Wed, 8 Aug 2001, Maxim Maletsky wrote:

  good point.
 
  ...and try this out:
 
 
  echo (int)((8.85-8)*100).'br';
  echo ((8.85-8)*100).'br';
 
 
  Kinda weird,
  can anyone explain?
 
 
  Thanks,
  Maxim Maletsky
 
 
 
  -Original Message-
  From: [Intent A/S] Tais M. Hansen [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 08, 2001 4:49 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Bug?
 
 
  Hi!
 
  I just came across this weird thing. Bug? You tell me!
 
  print (int)((8.85-8)*100);
 
  I would think the line above would print 85. But for some reason, it
  prints 84?? Can anyone tell me why that is?
 
  --
  Intent A/S
  Tais M. Hansen
  Web Developer
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP 4 released date

2001-08-08 Thread ReDucTor

4.0.6 is out, and has been from the 23rd of June 2001..
- Original Message - 
From: Deependra B. Tandukar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 7:31 PM
Subject: [PHP] PHP 4 released date


 Greetings!
 
 Can anybody give me, PHP4 released date?
 
 Looking forward to hearing from you.
 
 Warm Regards,
 DT
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Regular expressions

2001-08-08 Thread ReDucTor

$line = htmlentities(stripslashes($line));
$line = nl2br($line);
$line = eregi_replace(\[(link|url)=(.*)\](.*)\[/(link|url)\],a
href=\\\2\ target=\_blank\\\3/a,$line);
$line = eregi_replace(\[color=(.*)](.*)\[/color\], font
color=\\\1\\\2/font, $line);
$line =
eregi_replace(\[(blockquote|indent)\](.*)\[/(blockquote|indent)\],
blockquote\\2/blockquote, $line);
$line = eregi_replace(\[(img|image)\](.*)\[/(img|image)\],img
src=\\\2\,$line);
$line =
eregi_replace(\[(/?(b|hr|center|p|h1|h2|h3|h4|h5|h6|pre|u|i))\],\\1,$l
ine);
// Auto-linking code. Converts http, ftp, and www URL's, and email
address, into a hyperlink
$line =
eregi_replace(([[:space:]])((f|ht)tp:\/\/[a-z0-9~#%@\:=?\/\._-]+[a-z0-9~#%
@\=?\/_-]+), \\1a href=\\\2\ target=\_blank\\\2/a, $line);
//http
$line =
eregi_replace(([[:space:]])(www\.[a-z0-9~#%@\:=?\/\._-]+[a-z0-9~#%@\=?\/_
-]+), \\1a href=\http://\\2\; target=\_blank\\\2/a, $line); //
www.
$line =
eregi_replace(([[:space:]])([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}
),\\1a href=\mailto:\\2\;\\2/a, $line); // mail
  $line =
eregi_replace(^((f|ht)tp:\/\/[a-z0-9~#%@\:=?\/\._-]+[a-z0-9~#%@\=?\/_-]+)
, a href=\\\1\ target=\_blank\\\1/a, $line); //http
$line =
eregi_replace(^(www\.[a-z0-9~#%@\:=?\/\._-]+[a-z0-9~#%@\=?\/_-]+), a
href=\http://\\1\; target=\_blank\\\1/a, $line); // www.
$line =
eregi_replace(^([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}),a
href=\mailto:\\1\;\\1/a, $line); // mail
  $line = eregi_replace(@,#64;,$line);
   $line = str_replace(  , nbsp;nbsp;, $line);
   $line = str_replace([indent], blockquote, $line);
   $line = str_replace([/indent], /blockquote, $line);
   $line = str_replace((TM), FONT SIZE=1SUPTM/SUP/FONT,
$line);
   $line = str_replace(\t,
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;, $line);
   echo $line;
- Original Message -
From: Marc Davenport [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 11:38 PM
Subject: [PHP] Regular expressions


 Hello all,
I've been trying to find a good regular expression pattern to find
 URLs.  I have found some that work fine when the protocol is included ie
 http://www.php.net . But I can not find one that will find www.php.net .
 Does anyone know where a good database of Regular expressions can be
 found? or have a regular expression that can do this?

 cheers,
 Marc Davenport



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] large commercial websites that use php?

2001-08-07 Thread ReDucTor

sourceforge.net
planetsourceocde.com
f2s.com
easydns.com
hell, just use a search engine, and do a search for say .php .gov .edu and
you will find a great load of sites that have pages done it php...
  - James ReDucTor Mitchell
- Original Message -
From: jose d lopez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 1:53 PM
Subject: [PHP] large commercial websites that use php?


 I'm trying to convince some suits that PHP is widely
 used on large commercial websites- not just intranets
 and small sites.

 I've seen some posts on this, but since this mailing
 list keeps getting bigger- I wanted to put the
 question out again:

 What large commercial websites use php?



 Some that I have found:
 nbci.com
 sprint.ca
 livebid.amazon.com
 xoom.com
 mp3.lycos.com
 admworld.com
 communityconnect.com
 indy500.com
 viant.com
 dialpad.com
 ElectronicArts.com
 Viacom/MTV

 Thanks all for any input!

 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] (//// === huh??)

2001-08-03 Thread ReDucTor

$var = stripslashes($var);
- Original Message -
From: Gerard Samuel [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, August 03, 2001 2:37 PM
Subject: [PHP] ( === huh??)


 In my script that puts out a form I have a drop down list which include
==
 echo option$Education/option\n;
 echo optionBachelor's Degree/option\n;

 It uses a $PHP_SELF target.  After the form is submitted, on the new
 page, in the textbox I have Bachelor\\\'s Degree getting outputed by
 $Education and the more I submit the form the more \ I get.

 Any ideas as to how to clean this up?
 Thanks



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP 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] Copy Array.

2001-07-24 Thread ReDucTor

hows about $array2 = $array1; :D
- Original Message - 
From: Nick Davies [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 6:39 PM
Subject: [PHP] Copy Array.


 
 Anyone know how to copy an array to another name?
 
 I'm assumming that $array1 = $array2; doesn't work (at least it
 doesn't seem too :( ).
 
 Thanks.
 
 Nick.
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: need help w/ variables

2001-07-23 Thread ReDucTor

that error is because the php error checking had been changed from the
default...but still some do have problems... :D
- Original Message -
From: Van Tate Jr. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 5:01 PM
Subject: Re: [PHP] Re: need help w/ variables


 Ah! But never forget...the code in some books have bugs too.

 Van

 At 12:47 AM 7/23/01, you wrote:
 it was my error reporting along   i copied that script dtraight from the
 text book so i knew it wasnt the variables themselves


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] question about forum

2001-07-23 Thread ReDucTor

This is my suggestion

Start with making your user management...setup design and layout management,
then do the browsing, then your viewing, then different catagories, then do
other little bits...
- Original Message -
From: Jason Wang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 5:05 PM
Subject: [PHP] question about forum


 Dear all,

 I want to set up an online forum by using PHP.
 But I don't have a clue.
 Could somebody kind enough tell me where to start?

 thanks in advance.


 --
 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] When did this become the advertising Mailing List

2001-07-23 Thread ReDucTor

When?!?


-- 
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] date HELP !!!!!

2001-07-23 Thread ReDucTor

$todaydate = date(m);
$tomorrowdate = date(m,time() + 86400); 
if($todaydate != $tomorrowdate){
   echo Tomorrow is a new month;
}
- Original Message - 
From: Yamin Prabudy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 5:27 PM
Subject: [PHP] date HELP !


 hi, 
 how do i check that the current date is the end of month
 
 Thanks in Advance
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] limit items per page

2001-07-23 Thread ReDucTor

What sort of database do you have, and what is your current source?!?
- Original Message -
From: Steph [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 6:52 PM
Subject: [PHP] limit items per page


Ive got an image gallery, and rather than having one really long page of
thumbnails, I'd like to have around 25 thumbnails (5 rows of 5 thumbs) per
page. Can you guys point me in the right direction??

Steph



-- 
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] Networking

2001-07-23 Thread ReDucTor

Hey does any one know if it is possible to do something like

read stuff thro file and printer sharing on a remote pc, i tried

\\computer\dir for the dirs but that didn't work any suggestions(btw i did
addslashes :D )

so ne ideas...please


-- 
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] Networking

2001-07-23 Thread ReDucTor

That didn't work, i am on a windows machine...and this is my personal
machine, so i don't wish to change to unix... :D but windows should have
more support for this then unix..
   - James ReDucTor Mitchell
- Original Message -
From: Matthew Loff [EMAIL PROTECTED]
To: 'ReDucTor' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 4:06 AM
Subject: RE: [PHP] Networking



 I don't see why you wouldn't be able to access that share... Did you try
 escaping the path?

 e.g. chdir(computer\\dir);


 -Original Message-
 From: ReDucTor [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 23, 2001 6:20 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Networking


 Hey does any one know if it is possible to do something like

 read stuff thro file and printer sharing on a remote pc, i tried

 \\computer\dir for the dirs but that didn't work any suggestions(btw i
 did addslashes :D )

 so ne ideas...please


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED] To
 contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Networking

2001-07-23 Thread ReDucTor

Windows Machine
- Original Message - 
From: Mark Roedel [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 6:56 AM
Subject: RE: [PHP] Networking


  -Original Message-
  From: ReDucTor [mailto:[EMAIL PROTECTED]]
  Sent: Monday, July 23, 2001 5:20 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Networking
  
  
  Hey does any one know if it is possible to do something like
  read stuff thro file and printer sharing on a remote pc, i tried
  \\computer\dir for the dirs but that didn't work any suggestions
  (btw i did addslashes :D )
 
 Are you trying to access these resources from a Windows machine (in
 which case I'd be surprised if something close to what you tried didn't
 work), or from something Unix-y?
 
 If it's the latter, probably your best bet is going to be to get a copy
 of Sharity or Samba installed and mount the remote-machine resources so
 that you can treat them as local resources.
 
 
 ---
 Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a crisis next week.
 Systems Programmer / WebMaster  ||   My schedule is already full.
  LeTourneau University  ||-- Henry Kissinger
 


-- 
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] Networking

2001-07-23 Thread ReDucTor

I just maped a network drive, and it worked that way, so i guess i should
use system commands to map them, read them, then unmap :D
 - James ReDucTor Mitchell
- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: Mark Roedel [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 9:19 AM
Subject: Re: [PHP] Networking


 Windows Machine
 - Original Message -
 From: Mark Roedel [EMAIL PROTECTED]
 To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, July 24, 2001 6:56 AM
 Subject: RE: [PHP] Networking


   -Original Message-
   From: ReDucTor [mailto:[EMAIL PROTECTED]]
   Sent: Monday, July 23, 2001 5:20 AM
   To: [EMAIL PROTECTED]
   Subject: [PHP] Networking
  
  
   Hey does any one know if it is possible to do something like
   read stuff thro file and printer sharing on a remote pc, i tried
   \\computer\dir for the dirs but that didn't work any suggestions
   (btw i did addslashes :D )
 
  Are you trying to access these resources from a Windows machine (in
  which case I'd be surprised if something close to what you tried didn't
  work), or from something Unix-y?
 
  If it's the latter, probably your best bet is going to be to get a copy
  of Sharity or Samba installed and mount the remote-machine resources so
  that you can treat them as local resources.
 
 
  ---
  Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a crisis next week.
  Systems Programmer / WebMaster  ||   My schedule is already full.
   LeTourneau University  ||-- Henry Kissinger
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] The Program!

2001-07-23 Thread ReDucTor

Go find some safe lists, not a list like this...


- Original Message - 
From: Marty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 11:00 AM
Subject: [PHP] The Program!


 Several months ago, I made a conscious decision not to 
 delete what I figured was just another junk e-mail. 
 That decision has changed my life.  Here you have the 
 very same opportunity in front of you.  If you take 
 just five minutes to read through the following 
 program you won't regret it.  See for yourself! 
 
 Dear Friends  Future Millionaires: 
 AS SEEN ON NATIONAL TV: 
 Making over half a million dollars every 4 to 5 months 
 from your home for an investment of only $25 U.S. 
 Dollars expense one time 
 THANKS TO THE COMPUTER AGE AND THE INTERNET ! 
 == 
 BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! 
 Before you say ''Bull'', please read the following. 
 This is the letter you have been hearing about on the 
 news lately. Due to the popularity of this letter on 
 the Internet, a national weekly news program recently 
 devoted an entire show to the investigation of this 
 program described below, to see if it really can make 
 people money. The show also investigated whether or 
 not the program was legal. Their findings proved once 
 and for all that there are ''absolutely NO Laws 
 prohibiting the participation in the program and if 
 people can -follow the simple instructions, they are 
 bound to make some mega bucks with only $25 out of 
 pocket cost''. DUE TO THE RECENT INCREASE OF 
 POPULARITY  RESPECT THIS PROGRAM HAS ATTAINED, IT IS 
 CURRENTLY WORKING BETTER THAN EVER. This is what one 
 had to say: ''Thanks to this profitable opportunity. I 
 was approached many times before but each time I 
 passed on it. I am so glad finally joined just to see 
 what one could expect in return for the minimal effort 
 and money required. To my astonishment, I received 
 total $610,470.00 in 21 weeks, with money still coming 
 in. 
 Pam Hedland, Fort Lee, New Jersey. 
 === 
 Here is another testimonial: This program has been 
 around for a long time but I never believed in it. But 
 one day when I received this again in the mail I 
 decided to gamble my $25 on it. I followed the simple 
 instructions and voila . 3 weeks later the money 
 started to come in.  First month I only made $240.00 
 but the next 2 months after that I made a total of 
 $290,000.00. So far, in the past 8 months by 
 re-entering the program, I have made over $710,000.00 
 and I am playing it again. The key to success in this 
 program is to follow the simple steps and NOT change 
 anything.''  More testimonials later but first, 
 = PRINT THIS NOW FOR YOUR FUTURE REFERENCE == 
 $ 
 If you would like to make at least $500,000 every 4 to 
 5 months easily and comfortably, please read the 
 following...THEN READ IT AGAIN and AGAIN!!! 
 $ 
 FOLLOW THE SIMPLE INSTRUCTIONS BELOW AND YOUR 
 FINANCIAL DREAMS WILL COME TRUE, GUARANTEED! 
 INSTRUCTIONS: 
 =Order all 5 reports shown on the list below = 
 For each report, send $5 CASH, THE NAME  NUMBER OF 
 THE REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to 
 the person whose name appears ON THAT LIST next to the 
 report. MAKE SURE YOUR RETURN ADDRESS IS ON YOUR 
 ENVELOPE TOP LEFT CORNER in case of any mail problems. 
 === When you place your order, make sure you order 
 each of the 5 reports. 
 You will need all 5 reports so that you can save them 
 on your computer and resell them. YOUR TOTAL COST $5 X 
 5=$25.00. Within a few days you will receive, via 
 e-mail, each of the 5 reports from these 5 different 
 individuals. Save them on your computer so they will 
 be accessible for you to send to the 1,000's of people 
 who will order them from you. Also make a floppy of 
 these reports and keep it on your desk in case 
 something happens to your computer. IMPORTANT - DO NOT 
 alter the names of the people who are listed next to 
 each report, or their sequence on the list, in any way 
 other than what is instructed below in steps '' 1 
 through 6 '' or you will loose out on a majority of 
 your profits. Once you understand the way this works, 
 you will also see how it does not work if you change 
 it. Remember, this method has been tested, and if you 
 alter it, it will NOT work!!! People have tried to put 
 their friends/relatives names on all five thinking 
 they could get all the money. But it does not work 
 this way. Believe us, we all have tried to be greedy 
 and then nothing happened. So Do Not try to change 
 anything other than what is instructed. Because if you 
 do, it will not work for you. Remember, honesty reaps 
 the reward!!! 
 1 After you have ordered all 5 reports, take this 
 advertisement and REMOVE the name  address 

Re: [PHP] PDFlib beginners request

2001-07-23 Thread ReDucTor

In the comments on the php.net pages, i found a few, but i gave up on using
pdf within php, because you had to pay about a thousand odd dollars just to
use the thing, so be prepared to put some cash in to it :D
 - James ReDucTor Mitchell
- Original Message -
From: By Proxy [EMAIL PROTECTED]
To: php general list [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 12:11 PM
Subject: [PHP] PDFlib beginners request


 Hi. I  have just started to play with PDFlib, but the manual and php.net
 notes are not, to my simple self, particularly digestible. Does anyone
have
 any links to any tutorial pages or any handy hints they could point me to?

 Cheers

 Lee


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Replace ANYTHING between TAG /TAG

2001-07-22 Thread ReDucTor

?php
   $tagname = tag;
   $somevar = text;
   echo
.$tagname..nl2br(htmlspecialchars(stripslashes($somevar)))./.$tagna
me.;
?
- Original Message -
From: Dan Krumlauf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 2:36 PM
Subject: [PHP] Replace ANYTHING between TAG /TAG


 I've been trying this one for a bit and Im in a twist.

 I need to replace ANYTHING or even nothing between two tags
 with the contents of a variable and just havent been
 able to get the expression right for all cases.


 As an example concept follows:

 TAG/TAG

 Nothing between the tags variable is $varname=some junk

 so after the function
 TAGsome junk/TAG

 run it again after making variable $varname=some completly different
junk

 so now the tags would be

 TAGsome completly different junk/TAG

 and so on and so on.

 One other breaker Ive had, it needs to always replace no matter whats
 between the tags, whats not between the tags or even if its 1000s of
 characters. My code kept breaking when it was alot of characters.

 Any funtions or even just the right regex would be appreciated

 Thanks

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP 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] need help w/ variables

2001-07-22 Thread ReDucTor

add to the top of the script

error_reporting(E_ALL  ~E_NOTICE);
- Original Message -
From: Virgil Claritt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 2:57 PM
Subject: [PHP] need help w/ variables


 when i use this script:

 ?php
 session_start();
 if ($op == ds) {
  if (($username != admin) ||($password != admin)) {
$msg = pfont color=\#FF\strongBad Login - Try
 Again/strong/font/p;
$show_form = yes;
} else {
 session_register('valid');
 $valid = yes;
 $show_menu = yes;
 }
} else  {
 if ($valid == yes)  {
$show_menu = yes;
} else  {
 $show_form = yes;
 }
 }

 $form_block = 
  h1Login/h1
   form method=post action=\$PHP_SELF\$msg
p
 strongLogin Name:/strong
 br
 input type=\text\ name=\username\ size =15 maxlength=25
/p
p
 strongPassword:/strong
 br
 input type=\password\ name=\password\ size=15 maxlength=25
/p
input type=\hidden\ name=\op\ value=\ds\
br
p
 input type=\submit\ name=\submit\ value=\Login\
/p
   /form
 ;

 $menu_block = 
  h1Contact Administration System/h1
   p
strongAdministration/strong
ul
 lia href=\add_contact.php\Add Contact/a
 lia href=\mod_contact.php\Modify Contact/a
 lia href=\del_contact.php\Delete Contact/a
/ul
   p
strongView Records/strong
ul
 lia href=\show_contacts.php\Show Contacts/a
/ul
 ;
 if ($show_form == yes) {
 $display_block = $form_block;
 } else if ($show_menu == yes) {
 $display_block = $menu_block;
 }
 ?

 html
  head
   title.My contact Management System/title
  /head
  body
   p
? echo $display_block; ?
   /p
  /body
 /html


 i would get this error:

 Warning: Undefined variable: op in c:\inetpub\wwwroot\.php on line 3

 Warning: Undefined variable: valid in c:\inetpub\wwwroot\.php on line
13

 Warning: Undefined variable: msg in c:\inetpub\wwwroot\.php on line 23

 my variables are clearly defined in the script
 please help this is happening in all my scripts

 win2000 iis 5
 most recent php4 and mysql installed
 phpinfo.php = http://24.165.118.187/phpinfo.php





 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] need help w/ variables

2001-07-22 Thread ReDucTor

did u try what i said???
- Original Message -
From: Virgil Claritt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 3:13 PM
Subject: Re: [PHP] need help w/ variables


 i dont quite get it what your saying
 it is clearly defined at the top
 $op is equal to ds
 $valid is equal to yes
 $msg is equal to Bad Login


 Reductor [EMAIL PROTECTED] wrote in message
 002701c11335$ac5dafe0$0200a8c0@ReDucTor">news:002701c11335$ac5dafe0$0200a8c0@ReDucTor...
  add to the top of the script
 
  error_reporting(E_ALL  ~E_NOTICE);
  - Original Message -
  From: Virgil Claritt [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, July 23, 2001 2:57 PM
  Subject: [PHP] need help w/ variables
 
 
   when i use this script:
  
   ?php
   session_start();
   if ($op == ds) {
if (($username != admin) ||($password != admin)) {
  $msg = pfont color=\#FF\strongBad Login - Try
   Again/strong/font/p;
  $show_form = yes;
  } else {
   session_register('valid');
   $valid = yes;
   $show_menu = yes;
   }
  } else  {
   if ($valid == yes)  {
  $show_menu = yes;
  } else  {
   $show_form = yes;
   }
   }
  
   $form_block = 
h1Login/h1
 form method=post action=\$PHP_SELF\$msg
  p
   strongLogin Name:/strong
   br
   input type=\text\ name=\username\ size =15 maxlength=25
  /p
  p
   strongPassword:/strong
   br
   input type=\password\ name=\password\ size=15 maxlength=25
  /p
  input type=\hidden\ name=\op\ value=\ds\
  br
  p
   input type=\submit\ name=\submit\ value=\Login\
  /p
 /form
   ;
  
   $menu_block = 
h1Contact Administration System/h1
 p
  strongAdministration/strong
  ul
   lia href=\add_contact.php\Add Contact/a
   lia href=\mod_contact.php\Modify Contact/a
   lia href=\del_contact.php\Delete Contact/a
  /ul
 p
  strongView Records/strong
  ul
   lia href=\show_contacts.php\Show Contacts/a
  /ul
   ;
   if ($show_form == yes) {
   $display_block = $form_block;
   } else if ($show_menu == yes) {
   $display_block = $menu_block;
   }
   ?
  
   html
head
 title.My contact Management System/title
/head
body
 p
  ? echo $display_block; ?
 /p
/body
   /html
  
  
   i would get this error:
  
   Warning: Undefined variable: op in c:\inetpub\wwwroot\.php on line
3
  
   Warning: Undefined variable: valid in c:\inetpub\wwwroot\.php on
 line
  13
  
   Warning: Undefined variable: msg in c:\inetpub\wwwroot\.php on
line
 23
  
   my variables are clearly defined in the script
   please help this is happening in all my scripts
  
   win2000 iis 5
   most recent php4 and mysql installed
   phpinfo.php = http://24.165.118.187/phpinfo.php
  
  
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: need help w/ variables

2001-07-22 Thread ReDucTor

yep, thought so :D
- Original Message - 
From: Virgil Claritt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 3:47 PM
Subject: [PHP] Re: need help w/ variables


 it was my error reporting along   i copied that script dtraight from the
 text book so i knew it wasnt the variables themselves
 
 
 
 
 -- 
 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] netBIOS, Windows, Sockets, fsockopen help

2001-07-21 Thread ReDucTor

Hey,
  I am wondering if any one has any details on netBIOS, and stuff, so then i
can browse shared files and folders on another computer, with in php i have
tried looking up the commands sent, but haven't managed to find any...
  - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] netBIOS, Windows, Sockets, fsockopen help

2001-07-21 Thread ReDucTor

ya, i've just been looking at that, doesn't apear to have much detail...
the msdn doesn't have jack shit, other then it's functions...
- Original Message -
From: Chris Schneck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 22, 2001 10:01 AM
Subject: Re: [PHP] netBIOS, Windows, Sockets, fsockopen help


 Try messing around with the popular linux package samba, in particual
 smbmount. You may also need to read up on ports 137, 138, 139.

 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, July 21, 2001 4:47 PM
 Subject: [PHP] netBIOS, Windows, Sockets, fsockopen help


  Hey,
I am wondering if any one has any details on netBIOS, and stuff, so
then
 i
  can browse shared files and folders on another computer, with in php i
 have
  tried looking up the commands sent, but haven't managed to find any...
- James ReDucTor Mitchell
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions + Variables + includes

2001-07-19 Thread ReDucTor

?php
   $loginpass = test;
   $loginuser = test;
   $locationof403 = error.php?403;
   session_start();
   session_register(user,pass);
   if(isset($user))
  $username = $user;
   if(isset($pass))
  $password = $pass;
   if(isset($username))
  $user = $username;
   if(isset($password))
  $pass = $password;
   if((isset($password))  (isset($username)))
  {
  if(($loginpass != $password)  ($loginuser != $username))
  header(location: .$locationof403);
  else
  $loggedin = 1;
  }
  else
   $loggedin = 0;
?htmlbody
 ?php if(loggedin != 1){ ?
 form
   Username : input type=text name=usernamebr
   Password : input type=password name=passwordbr
  input type=submit value=Logininput type=reset value=Reset
/form
?php }
   else
   { ?
   a href=profile.phpProfile/abr
a href=moo.phpMoo/a?php
 }
   ?/body/html
   
- Original Message - 
From: dosenbrei [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 10:01 PM
Subject: [PHP] Sessions + Variables + includes


 
 
 Hi
 
 Sorry for my bad english ;-)
 
 I'm writing an application using php and sessions.
 In the first include file i'm writing something like this
 
 session_start();
 session_register(loggedin);
 
 The i have another include file with the functions.
 When i'm submitting the username and passwort to the function
 which checks them i'd like to set loggedin to 1 how does this work?
 
 function CheckLogin($username,$password)
 {
 if($username=='test'  $password=='user')
 {
 $loggedin=1;
 header(location:secretpage.php);
 }
 else
 {
 $loggedin =0;
 header(location:login.php)
 }
 
 Can i user include with sessions or doe i have to use requiere?
 I also tried to set the $loggedin to 1 this way:
 
 $HTTP_SESSION_VARS[loggedin]=1;
 
 This doesn't work too.
 
 Please help me
 
 
 THX
 
 -- 
 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] Paypal and PHP

2001-07-19 Thread ReDucTor

Hey,
does any one know a way to use paypal with php?
  - James ReDucTor Mitchell



Re: [PHP] set decimal

2001-07-19 Thread ReDucTor

$var = round(2.3100, $var);
- Original Message -
From: Franky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 4:38 AM
Subject: [PHP] set decimal


 Can i set the precision like 2 decimal or 4 decimal?

 2.31 to 2.3100

 Thanks

 --
 --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
  François Boucher
[EMAIL PROTECTED]
___
   _  (  hello... )
   Q   _/\ __/
  I
   ¸L
 --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--



 --
 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] Can't think of a topic(but help)

2001-07-19 Thread ReDucTor

hey,
  i am wonder if there is a way to turn my php files into an executable or into a 
bunch of html files, so if i where to send them to some one that isn't running php 
they would be able to use them?!?
  - James ReDucTor Mitchell



[PHP] Stoping Frame Breakers

2001-07-19 Thread ReDucTor

hey,
   Does any one know how to stop people breaking frames?!?
 - James ReDucTor Mitchell



Re: [PHP] Getting the current URL (with arguments) as a variable, then removing another variable from that ?

2001-07-17 Thread ReDucTor

myfile.php?sub=webpage=web1 shouldn't it be?!!?!?
- Original Message -
From: Justin Colson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 1:51 AM
Subject: [PHP] Getting the current URL (with arguments) as a variable, then
removing another variable from that ?


 Is there a way that I can get the current URL, like

 myfile.php?sub=web?page=web1

 And then remove the ?sub=web from it, even if the value of ?sub is
different
 ? Someone said something about $PHP_SELF but I dont know where to go from
 there.



 --
 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] Message from hunter Problems

2001-07-15 Thread ReDucTor

hey,
 That message sent here, by hunter the Re: [PHP] Anybody using Miva or hosted at 
..., i open it in outlook, and my outlook frezzes...any one know why? :)
 - James ReDucTor Mitchell



Re: [PHP] Problem with is_file function on WinNT and apache HELP!

2001-07-13 Thread ReDucTor

http://www.evilwalrus.com/download_agree.php?codeEx=304 is a good example of
using directory handles, works in windows...
- Original Message -
From: Antony Cleave [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 14, 2001 1:17 AM
Subject: [PHP] Problem with is_file function on WinNT and apache HELP!


 I am trying to dynamically generate an image gallery from a directory iof
 images.
 To do this I am using the following code

  while (false!==($file = readdir($handle)))
{
  if ((is_file($file)))
  {
   echo .. Link info here
   }
}
 Only problem is that none of the files in the folder apper to be files
 according to PHP
 I tried using

 if (!(is_dir($file))
 This returns every entry in the folder bar . and ..
 BUT it includes the all of the other directories in the directory.
 As I need to check the file extension before I link to it this is a
serious
 problem as PHP crashes apache when trying to find the file extension of a
 directory.

 Any Ideas?

 Thanks in advance
 Antony Cleave



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PDF Problems

2001-07-10 Thread ReDucTor

Fatal error: PDFlib error: Beta expired - retrieve new version from
www.pdflib.com in c:\phpdev3\www\pdf\test.php on line 2
hahahahha
- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 4:22 PM
Subject: Re: [PHP] PDF Problems


 Shit i only have 4.0 ):
 - Original Message -
 From: David Robley [EMAIL PROTECTED]
 To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, July 10, 2001 4:18 PM
 Subject: Re: [PHP] PDF Problems


  On Tue, 10 Jul 2001 15:40, ReDucTor wrote:
   I get undefined func on pdf_new but on all the other pdf functions
they
   work, but i first need the pdf_new then i tried cpdf, all works, but i
   can't seem to get text onto a page...HELP ME - James ReDucTor
   Mitchell
 
  That function wasn't introduced until 4.0.5, according to the manual. Is
  your version sufficiently up to date?
 
  --
  David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
  CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA
 
 Will the information superhighway have any rest stops?
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Domain question

2001-07-09 Thread ReDucTor

Hey,
   What are some domain places that allow mass whois??? for like a few hundred domains 
at once...?
   - Jame ReDucTor Mitchell



[PHP] PDF Problems

2001-07-09 Thread ReDucTor

I get undefined func on pdf_new but on all the other pdf functions they work, but i 
first need the pdf_new then i tried cpdf, all works, but i can't seem to get text onto 
a page...HELP ME
- James ReDucTor Mitchell



Re: [PHP] PDF Problems

2001-07-09 Thread ReDucTor

Shit i only have 4.0 ):
- Original Message - 
From: David Robley [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 4:18 PM
Subject: Re: [PHP] PDF Problems


 On Tue, 10 Jul 2001 15:40, ReDucTor wrote:
  I get undefined func on pdf_new but on all the other pdf functions they
  work, but i first need the pdf_new then i tried cpdf, all works, but i
  can't seem to get text onto a page...HELP ME - James ReDucTor
  Mitchell
 
 That function wasn't introduced until 4.0.5, according to the manual. Is 
 your version sufficiently up to date?
 
 -- 
 David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
 CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  
 
Will the information superhighway have any rest stops?
 
 -- 
 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] simple question

2001-07-08 Thread ReDucTor

is there a function to turn all chars that are not alphanumric to show \xhh but hh 
being the hex version of it :)?



Re: [PHP] simple question

2001-07-08 Thread ReDucTor

this is wierd, i have the following...

$buffer = eregi_replace([^A-Z0-9], (\\x.dechex(ord(\\1)).) ,
$buffer);

and this is what buffer is

m192.168.0.2:27015Counter-Strike 1.1
Serverde_dust2cstrikeCounterStrike+dwwww.nuclearbox.com/podbot

but this is what comes out

(\x5c)(\x5c)(\x5c)(\x5c)m192(\x5c)168(\x5c)0(\x5c)2(\x5c)27015

and \x5c is \

ne1 know why?
- Original Message -
From: Chris Lambert [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 2:47 AM
Subject: Re: [PHP] simple question


 Lowercase letters are included (eregI_replace) but you could add number
 support with:
 [^A-Z0-9]
  __
 / Chris Lambert - [EMAIL PROTECTED]
 |- ICQ #: 16435685 - AIM: ClipperChris
 `- Cell: (401) 743-2786 - http://sms.clambert.org/
 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED]
 Sent: Sunday, July 08, 2001 11:45 AM
 Subject: Re: [PHP] simple question


 | nice, but i might change it to have lower case and numbers...hehehe
 |
 | btw thx
 | - Original Message -
 | From: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED]
 | To: [EMAIL PROTECTED]
 | Sent: Monday, July 09, 2001 12:50 AM
 | Subject: Re: [PHP] simple question
 |
 |
 |  eval(\$string=\.eregi_replace(([^A-Z]),
 |  \\x\.dechex(ord(\\\1\)).\, $string).\;);
 | 
 |  ;-)
 | 
 |  /* Chris Lambert, CTO - [EMAIL PROTECTED]
 |  WhiteCrown Networks - More Than White Hats
 |  Web Application Security - www.whitecrown.net
 |  */
 | 
 |  - Original Message -
 |  From: ReDucTor [EMAIL PROTECTED]
 |  To: [EMAIL PROTECTED]
 |  Sent: Sunday, July 08, 2001 10:18 AM
 |  Subject: [PHP] simple question
 | 
 | 
 |  is there a function to turn all chars that are not alphanumric to show
 | \xhh
 |  but hh being the hex version of it :)?
 | 
 | 
 | 
 |  --
 |  PHP General Mailing List (http://www.php.net/)
 |  To unsubscribe, e-mail: [EMAIL PROTECTED]
 |  For additional commands, e-mail: [EMAIL PROTECTED]
 |  To contact the list administrators, e-mail:
[EMAIL PROTECTED]
 | 
 |
 |


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] file function. please help..

2001-07-07 Thread ReDucTor

huh, explain a little more???
- Original Message - 
From: Doron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 6:09 PM
Subject: [PHP] file function. please help..


 hello.
 how can i make the file function to put the first 9 lines, in values
 01, 02, 03, 04, 05, 06, 07, 08, 09
 instead of
 1, 2, 3, 4, 5, 6, 7, 8, 9?
 
 
 10x...
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] testing

2001-07-06 Thread ReDucTor

Hey, how is micket pro going?
- Original Message -
From: Chris TunkeyMicket Watford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 4:41 PM
Subject: Re: [PHP] testing


 Hi2u ReDucTor

 Chris TunkeyMicket Watford
 
 TunkeyMicket Productions
 www.tunkeymicket.com

 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: McShen [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, July 05, 2001 11:13 PM
 Subject: Re: [PHP] testing


  I'm on my way to Mars atm...
  - Original Message -
  From: McShen [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, July 06, 2001 1:09 PM
  Subject: [PHP] testing
 
 
   where are u guys?
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP 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] testing

2001-07-06 Thread ReDucTor

Mind sending me a copy?
- Original Message -
From: Chris TunkeyMicket Watford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 5:10 PM
Subject: Re: [PHP] testing


 Was 100% done, now 70% done as a hard-drive crash set me back a bit...

 Chris TunkeyMicket Watford
 
 TunkeyMicket Productions
 www.tunkeymicket.com

 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: Chris TunkeyMicket Watford [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, July 06, 2001 3:10 AM
 Subject: Re: [PHP] testing


  Hey, how is micket pro going?
  - Original Message -
  From: Chris TunkeyMicket Watford [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, July 06, 2001 4:41 PM
  Subject: Re: [PHP] testing
 
 
   Hi2u ReDucTor
  
   Chris TunkeyMicket Watford
   
   TunkeyMicket Productions
   www.tunkeymicket.com
  
   - Original Message -
   From: ReDucTor [EMAIL PROTECTED]
   To: McShen [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Thursday, July 05, 2001 11:13 PM
   Subject: Re: [PHP] testing
  
  
I'm on my way to Mars atm...
- Original Message -
From: McShen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 1:09 PM
Subject: [PHP] testing
   
   
 where are u guys?



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
  [EMAIL PROTECTED]

   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Number of the line ?

2001-07-06 Thread ReDucTor

get editplus at editplus.com great program, has syntax highlighting,
numbers, auto complete, everything
   - James ReDucTor Mitchell
- Original Message -
From: Emmanuel FAIVRE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 6:19 PM
Subject: [PHP] Number of the line ?


 Hi All,

 i'm currently writing a debugging lib in PHP and i would like to find
 the number of the line in my script

 when i made an

 myfile.php

 1 ?php
 2 echo i'm on line $NUMBER_LINE\n;
 3 echo i'm on line $NUMBER_LINE\n;
 4 ?

 would give :

 i'm on line 2
 i'm on line 3

 it perhaps exists because when we have warning we see the line number

 Thanks


 Manu


 --
 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] hey, got a question....

2001-07-06 Thread ReDucTor

i can't seem to access certain ports, through a nat program i have setup on the 
computer here with the net, but i was thinking i could use something like socks, 
because i want to setup some fsockopen() stuff...but i can't use it on the ports i 
want, just frezzez...works over the lan fine, and over the net on ports i can access...



Re: [PHP] hey, got a question....

2001-07-06 Thread ReDucTor

It's just a port that isn't open on the NAT, i have attempted to open it,
just isn't opening, but i want to know if it is possible to use Socks in PHP
- Original Message -
From: Kurt Lieber [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 2:48 AM
Subject: Re: [PHP] hey, got a question


 sounds like a firewall issue to me -- do you have a firewall in between
your
 computer and your 'net connection?  Might run a port scan on your default
 gateway (which is likely your firewall if you have one) to see what ports
 it's allowing inbound.

 Alternatively, you could have a router that has some ports closed down.
 Again, a port scan will show this.  (and might also tick off your net
admin)

 Either way, most likely not a php issue.

 --kurt
 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, July 06, 2001 9:34 AM
 Subject: [PHP] hey, got a question


 i can't seem to access certain ports, through a nat program i have setup
on
 the computer here with the net, but i was thinking i could use something
 like socks, because i want to setup some fsockopen() stuff...but i can't
use
 it on the ports i want, just frezzez...works over the lan fine, and over
the
 net on ports i can access...



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] hey, got a question....

2001-07-06 Thread ReDucTor

Windows
- Original Message -
From: Christopher Allen [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 2:45 AM
Subject: Re: [PHP] hey, got a question


 what's the OS?


 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, July 06, 2001 11:34 AM
 Subject: [PHP] hey, got a question


 i can't seem to access certain ports, through a nat program i have setup
on
 the computer here with the net, but i was thinking i could use something
 like socks, because i want to setup some fsockopen() stuff...but i can't
use
 it on the ports i want, just frezzez...works over the lan fine, and over
the
 net on ports i can access...



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] hey, got a question....

2001-07-06 Thread ReDucTor

nothing wrong with windows
- Original Message -
From: Christopher Allen [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 3:21 AM
Subject: Re: [PHP] hey, got a question


 well theres your problem...winblows.lol
 - Original Message -
 From: ReDucTor [EMAIL PROTECTED]
 To: Christopher Allen [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, July 06, 2001 11:58 AM
 Subject: Re: [PHP] hey, got a question


  Windows
  - Original Message -
  From: Christopher Allen [EMAIL PROTECTED]
  To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Friday, July 06, 2001 2:45 AM
  Subject: Re: [PHP] hey, got a question
 
 
   what's the OS?
  
  
   - Original Message -
   From: ReDucTor [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, July 06, 2001 11:34 AM
   Subject: [PHP] hey, got a question
  
  
   i can't seem to access certain ports, through a nat program i have
setup
  on
   the computer here with the net, but i was thinking i could use
something
   like socks, because i want to setup some fsockopen() stuff...but i
can't
  use
   it on the ports i want, just frezzez...works over the lan fine, and
over
  the
   net on ports i can access...
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP 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] Parse URL parameters

2001-07-05 Thread ReDucTor

$vars = array();
$url2 = explode(?, $url);
$url3 = explode(, $url2[1]);
for($i=0;$isizeof($url3);$i++)
{
   $url4 = explode(=, $url3[$i]);
   array_push($vars, array($url4[0], $url4[1]));
 }
 for($i=0;$isizeof($vars);$i++)
{
echo $vars[$i][0].=.$vars[$i][1];
}
?
- James ReDucTor Mitchell
- Original Message - 
From: Andy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 5:19 PM
Subject: [PHP] Parse URL parameters


 How can I parse parameters sent with the URL of an pgp site?
 
 Example: I call the site with
 http://www.server.xyz/sub/site.php?a1=123a2=312
 How can I get the values of a1 and a2?
 
 Thanks, folks!
 Andy.
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
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] Submiting Data with an '

2001-07-05 Thread ReDucTor

addslashes()
php.net/addslashes
- Original Message -
From: Chris Anderson [EMAIL PROTECTED]
To: Matthew Loff [EMAIL PROTECTED]; 'Mike Mike' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, July 06, 2001 12:45 PM
Subject: Re: [PHP] Submiting Data with an '


 On the same subject, can I make it automatically addslahes to my
variables?
 Or should I just make my own mysql class?
 - Original Message -
 From: Matthew Loff [EMAIL PROTECTED]
 To: 'Mike Mike' [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Thursday, July 05, 2001 3:29 PM
 Subject: RE: [PHP] Submiting Data with an '


 
  Use the addslashes() call to automatically escape characters like that.
 
  MySQL will not add the slashes into the table cell, so no need to
  stripslashes() after you SELECT it back out.
 
 
  -Original Message-
  From: Mike Mike [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, July 05, 2001 3:19 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Submiting Data with an '
 
 
  Hello everyone,
  I'm having a problem of submiting an ' into a mysql
  database.  When I have a ' it doesn't update or submit
  the data.  but if I use \' it works fine.  Does anyone
  know of a way around this.
  Thanks
--Mike
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail
  http://personal.mail.yahoo.com/
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED] To
  contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP 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]





  1   2   >