Re: [PHP] free php web hosting

2001-10-26 Thread hassan el forkani

www.f2s.com

At 17:20 26/10/01, Kamran H. Hassan wrote:
Hi,

can any body know about free php  mysql free web hosting service provder 
?

i will be greatful if u let me know

Kamran H. Hassan



-- 
PHP General Mailing List (http://www.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] instant session expiration problem

2001-10-01 Thread hassan el forkani

hi
don't put an expiry date in the cookie, this way it should expire when the 
browser window is closed, just aguess...

regards


At 22:07 30/09/03, Ryan Mahoney wrote:
When a client date is ahead of my server or incorrect the cookie that php 
uses to maintain the session is expired immediately by the web 
browser.  This is an incredible pain!  I had once come across some 
document by Rasmus describing this problem but can't seem to find it 
now.  Does anyone know how to resolve this problem?

Thanks in advance for any help you can provide!  Please e-mail me directly.

Ryan Mahoney


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.251 / Virus Database: 124 - Release Date: 4/26/01

--
PHP General Mailing List (http://www.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] Any Free Web Hosts that still support the mail( ) function out there?

2001-09-22 Thread hassan el forkani

hi
try this one
http://www.f2s.com , free space , no ads, most php features supported 
(including mail)
regards

At 11:44 22/09/01, Meir Kriheli wrote:
On Friday 21 September 2001 23:51, Salty Marine wrote:
  Greetings to Felix and All:
 
  I must agree that http://coolfreepages.com/ is a really good free hosting
  service that supports PHP.  However, soon as you use mail( ), it generates
  an error message:
  Fatal error: Call to undefined function: mail() in ...
 
  Regards,
  Salty

You can use some SMTP class to send mail without the mail() function if you
have a mail account to use. You can search for it on

http://phpclasses.upperdesign.com

And the SMTP class is found at

http://phpclasses.upperdesign.com/browse.html/package/14
--
Meir Kriheli


  -Original Message-
  From: Felix [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 21, 2001 4:58 PM
  To: Salty Marine; [EMAIL PROTECTED]
  Subject: Re: [PHP] Any Free Web Hosts that still support the mail( )
  function out there?
 
 
  Try coolfreepages.com
 
  Felix
  - Original Message -
  From: Salty Marine [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, September 21, 2001 2:20 PM
  Subject: [PHP] Any Free Web Hosts that still support the mail( ) function
  out there?
 
   Greetings to You:
  
   Any Free Web Hosts that still support the mail( ) function out there?
  
   Regards,
   Salty

--
PHP General Mailing List (http://www.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 bug???

2001-09-11 Thread hassan el forkani

hi,

i'm recently observing a strange behaviour of php when using a combination 
of  ob_start() and ignore_user_abort() in the same page, php hangs (after 
the script is executed) and is unable to create/write to /destroy sessions!!
i'm observing this on my win98 machine with apache 1.20 and php 4.06 as .exe;
if i remove one of the above functions everything returns to normal...

everything works fine on my linux machine; has anybody experienced 
something similar?

regards;

Hassan El Forkani
http://www.warmafrica.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] a bug???

2001-09-07 Thread hassan el forkani

hi,

i'm recently observing a strange behaviour of php when using a combination 
of  ob_start() and ignore_user_abort() in the same page, php hangs (after 
the script is executed) and is unable to create/write to /destroy sessions!!
i'm observing this on my win98 machine with apache 1.20 and php 4.06 as .exe;
if i remove one of the above functions everything returns to normal...

everything works fine on my linux machine; has anybody experienced 
something similar?

regards;

Hassan El Forkani
http://www.warmafrica.com


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




Re: [PHP] Re: Plese help me

2001-09-03 Thread hassan el forkani

hi
just a suggestion as itworked for me,

try to edit the dll in notepad and do a string search for dll without the 
quotes
make sure all the dlls you find exist in your windows/system folder
that kind of error usually happens when there are some dlls referenced in 
the extension;

www.php4win.de provide everything that is needed

regards
At 11:20 03/09/01, _lallous wrote:
are you sure that php_oci.dll is located in c:/php/extentions/ folder?
are you sure you have that file?

Soawarat Weangkawe [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  We have installed PHP4.06 manually to use it with IIS 5 on win2000server
 
  We did everything the installation guide told us to do.
  We uncommented some options in php.ini including
 
  extension=php_oci8.dll
 
  Afer we stopped and started the Web server every dll was loaded except
  php_oci.dll
 
  unable to load dynamic library 'C:/PHP/extentions/php_oci.dll'-The
  specified procedure could not be found.
 
  What should I do?
  Your help will be very appreciated
 
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
 



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



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




Re: [PHP] Re: Problem using session

2001-08-28 Thread hassan el forkani

yes and be carefull to put that before any aoutput is sent to the browser 
(even a blank space is an output)

regards

At 14:20 28/08/01, Rosen wrote:
And one question:
Should I use session_start() in every php file on my site ?

Thanks,
Rosen





--
PHP General Mailing List (http://www.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] Print..

2001-08-27 Thread hassan el forkani

hi
check this out before posting: http://php.net/manual/en/ref.printer.php
windows specific functions
regards

At 13:59 27/08/01, MBK wrote:
the function printer_open() or printer_write() doesn't exist in php.
I don't know where you saw those functions.

- Original Message -
From: Daniel Antonio de Lima [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2019 12:55 PM
Subject: [PHP] Print..


Good Morning

I am working with PHP 4.0.6, and I do not obtain to send given of the page
for the printer. I use function  PRINTER_OPEN() , I make the manual in
accordance with, exactly thus it gives an error to me of indefinite
function. What it can be?
Fatal error: Call you undefined function:printer_open()

$print = printer_open();
$print = printer_open(LPT1 );
printer_write($print,  Test of printer );
printer_write($print,  Test of printer );
printer_write($print,  Test of printer );
$print = printer_close();

e this error it even gives to me with function  PRINTER_WRITE() , could
give tips of that he can be happening.

Yours truly.

Daniel






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



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




RE: [PHP] The future of PHP

2001-08-25 Thread hassan el forkani

hi
rasmus: PHP is not marketed the way Java and .NET is.  There are no 
multi-billion
dollar corporations behind PHP and asking us, and apparently me
personally, to make that happen is unrealistic;


true, but who can afford java and .net? oracle..., certainly not the small 
and medium size companies certainly not african companies certainly not 
south american companies...and i really belive that's where promotional 
efforts should go; technology awareness is still low there but the 
potential is huge and we africans are looking just for this: cheap and 
reliable technology, that we can learn from which is exactly what open 
source is about...

regards




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




RE: [PHP] Re: send mail to mailing list using mail() or smtp?

2001-08-25 Thread hassan el forkani

use php for everything from subscription management to email authoring and 
use a perl script to effectively send the emails


At 10:08 25/08/01, Niklas Lampen wrote:
I'm sending a huge amount of mails with php. How can I send mail directly to
the smtp server? Right now I'm using pipe to send each mail to sendmail.
Works fine with about 35 000 mails, but it takes ages to run.

What would be the smartest way?


Thanks!


-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: 25. elokuuta 2001 3:54
To: [EMAIL PROTECTED]
Subject: [PHP] Re: send mail to mailing list using mail() or smtp?


  My question - is this going to work for a few thousand emails?

Depends on your server.

  What
  about 100,000?

No way.

  Would it be better to send the mail directly to the
  smtp server?

Yes.

  Can you foresee any problems?

Several.  The first one is you didn't read the archives or look for
pre-existing code to talk to SMTP directly. :-)

Manuel's upperdesign.com has one, and there are plenty of others.  You could
roll your own -- I did, so it can't be too tricky. :-)

Also, at that volume, I think you're going to run into trouble just in
talking to the all the SMTP servers.  I *BELIEVE* one major speed-up can be
achieved by sorting the outgoing emails by their recipient's domains...

You may want to research how real mailing list software deals with this if
you actually expect to hit 100K addresses.

If they're all the same email, you'd be *WAY* better off just interfacing to
majordomo, ezmlm, SmartList, or whatever other mailing list software was
designed to handle this.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



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


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



-- 
PHP General Mailing List (http://www.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] IIS

2001-08-21 Thread hassan el forkani

:))

Microsoft's web server (Internet Information Server)





At 16:52 22/08/01, nafiseh saberi wrote:

hi.
what is IIS?

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] Checking FTP server response

2001-08-20 Thread hassan el forkani

if you just want to check for the existence of the server
a ping command is sufficient,
if you want to have extended info on the server you should connect to it 
using standard ftp 
commands(http://www.ualberta.ca/CNS/HELP/filetran/ftp-commands.html) 
opening a socket and...

regards

At 01:19 21/08/01, you wrote:
At 03:03 PM 8/20/01 -0700, CC Zona wrote:
To test for a valid http address, I open a socket, pass a HEAD or GET
request, and look for a status code in the response headers.  What should I
send to an FTP server to do a similar test?

Why not just try and connect to 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] need real expert (geting outer files) *english/german*

2001-08-16 Thread hassan el forkani

hi

that url is 445 characters long; the maximum (i believe) is 255 characters, 
maybe that's why your file is truncated;
just a guess;

regards

At 09:26 16/08/01, you wrote:
http://www29.gmx.net/v4/register?FILE_POS_OLD=0ADDR_CHECK=t=COMPANY=TITL
E=HerrFIRSTNAME=AaaaMIDINITIAL=ALASTNAME=AaaaSTREET=Strandener Str.
1ZIPCODE=51079CITY=koelnCOUNTRYISO=DESTATE=Nordrhein-WestfalenLANGUAGES
=,dePHONE=MOBILEPHONE=FAX=HOMEPAGE=GENDER=MBIRTHDAY=01BIRTHMONTH=1BI
RTHYEAR=1901MARRISTAT=SHOUSEHOLDPERS=1INCOME=0EDUCATIONLEVEL=HSAEMPLOYS
TAT=SCCOMPUTEROWN=0INTERNETUSE=PrivateMPHONE=0



-- 
PHP General Mailing List (http://www.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] OOP message board

2001-08-13 Thread hassan el forkani

hi

does anybody know of a message board written in OOP style?


thanks for helping;
regards


-- 
PHP General Mailing List (http://www.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] Session problem

2001-08-07 Thread hassan el forkani


indeed it's not working properly,
first of all please make sur the pages are not cashed send a header 
(Cache-control: NO cache) i'm not sure about the syntax so check the manual
then try to modify your code like this and tell us what happens:

?php
if (!HTTP_SESSION_VARS['count'])
{
global $count;
$count = 0;
session_register (count);
echo Hello visitor, you have seen this page $count;  times;
}
else {
$count = HTTP_SESSION_VARS['count'];
$count++;
session_register (count);
echo Hello visitor, you have seen this page 
.HTTP_SESSION_VARS['count'].;  times;

?
might seem a little overloaded but it's to make sur there is no confusion 
between count as a session var and the other var;
if this is not working then the problem is else whrere and w'll continue 
lokkin :))

regards



At 15:41 07/08/01, you wrote:
Still loses it .. check this out:

http://www.militarycity.com/classified/realtors/count.php

The entire code for that page, taken from an example on zend:

?php
session_register (count);
$count++;
?

Hello visitor, you have seen this page ?php echo $count; ? times.p


Try loading it about 10 times or so, watch what happens.

Chad

-Original Message-
From: hassan el forkani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 8:34 AM
To: Chad Day
Subject: RE: [PHP] Session problem


hello

At 15:16 07/08/01, you wrote:
 My code:
  
   auth.php:
  
   session_start();
  
   ...
  
   $res = mysql_query(SELECT NAME FROM dbhere where EMAIL = '$EMAIL' AND
   PASSWORD = '$PASSWORD');
  
   if ($row = mysql_fetch_array($res)) {

//try adding this:
  global $NAME;

   $NAME = $row[NAME];
   session_register(NAME);
   }
  
   ...
  
   Header(Location: menu.php);


regards



-- 
PHP General Mailing List (http://www.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] Session problem

2001-08-07 Thread hassan el forkani

oh i forgot!!!
you have to put this at the beginning of your page
?php
session_start();
?

indeed it's not working properly,
first of all please make sur the pages are not cashed send a header 
(Cache-control: NO cache) i'm not sure about the syntax so check the manual
then try to modify your code like this and tell us what happens:

?php
if (!HTTP_SESSION_VARS['count'])
{
global $count;
$count = 0;
session_register (count);
echo Hello visitor, you have seen this page $count;  times;
}
else {
$count = HTTP_SESSION_VARS['count'];
$count++;
session_register (count);
echo Hello visitor, you have seen this page 
.HTTP_SESSION_VARS['count'].;  times;

?
might seem a little overloaded but it's to make sur there is no confusion 
between count as a session var and the other var;
if this is not working then the problem is else whrere and w'll continue 
lokkin :))

regards



At 15:41 07/08/01, you wrote:
Still loses it .. check this out:

http://www.militarycity.com/classified/realtors/count.php

The entire code for that page, taken from an example on zend:

?php
session_register (count);
$count++;
?

Hello visitor, you have seen this page ?php echo $count; ? times.p


Try loading it about 10 times or so, watch what happens.

Chad

-Original Message-
From: hassan el forkani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 8:34 AM
To: Chad Day
Subject: RE: [PHP] Session problem


hello

At 15:16 07/08/01, you wrote:
 My code:
  
   auth.php:
  
   session_start();
  
   ...
  
   $res = mysql_query(SELECT NAME FROM dbhere where EMAIL = '$EMAIL' AND
   PASSWORD = '$PASSWORD');
  
   if ($row = mysql_fetch_array($res)) {

//try adding this:
  global $NAME;

   $NAME = $row[NAME];
   session_register(NAME);
   }
  
   ...
  
   Header(Location: menu.php);


regards



-- 
PHP General Mailing List (http://www.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] Session problem

2001-08-07 Thread hassan el forkani

this code works on my machines:

?php

header (Cache-Control: no-cache, must-revalidate, max_age=0);
session_start();
if ($HTTP_SESSION_VARS['count'])
{
$count = $HTTP_SESSION_VARS['count'];
$count++;
session_register (count);
echo Hello visitor, you have seen this page 
.$HTTP_SESSION_VARS['count']. times;

}
else
{
global $count;
$count = 1;
session_register(count);
echo Hello visitor, you have never seen this page before;
}
?

test it, i think the problem was about starting $count at zero;
if it still ait working for you then check your php.ini settings
regards

At 16:50 07/08/01, Chad Day wrote:
Done, still not working.   I know that usually has to be there, I was just
going to copy the example from the manual directly, since the session should
automatically kickoff when it hits the session_register bit.  This truly has
me baffled.

Chad

-Original Message-
From: hassan el forkani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 9:37 AM
To: Chad Day
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Session problem


oh i forgot!!!
you have to put this at the beginning of your page
?php
session_start();
?

indeed it's not working properly,
first of all please make sur the pages are not cashed send a header
(Cache-control: NO cache) i'm not sure about the syntax so check the manual
then try to modify your code like this and tell us what happens:

?php
if (!HTTP_SESSION_VARS['count'])
{
global $count;
$count = 0;
session_register (count);
echo Hello visitor, you have seen this page $count;  times;
}
else {
$count = HTTP_SESSION_VARS['count'];
$count++;
session_register (count);
echo Hello visitor, you have seen this page
.HTTP_SESSION_VARS['count'].;  times;

?
might seem a little overloaded but it's to make sur there is no confusion
between count as a session var and the other var;
if this is not working then the problem is else whrere and w'll continue
lokkin :))

regards



At 15:41 07/08/01, you wrote:
 Still loses it .. check this out:
 
 http://www.militarycity.com/classified/realtors/count.php
 
 The entire code for that page, taken from an example on zend:
 
 ?php
 session_register (count);
 $count++;
 ?
 
 Hello visitor, you have seen this page ?php echo $count; ? times.p
 
 
 Try loading it about 10 times or so, watch what happens.
 
 Chad
 
 -Original Message-
 From: hassan el forkani [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 07, 2001 8:34 AM
 To: Chad Day
 Subject: RE: [PHP] Session problem
 
 
 hello
 
 At 15:16 07/08/01, you wrote:
  My code:
   
auth.php:
   
session_start();
   
...
   
$res = mysql_query(SELECT NAME FROM dbhere where EMAIL = '$EMAIL' AND
PASSWORD = '$PASSWORD');
   
if ($row = mysql_fetch_array($res)) {
 
 //try adding this:
   global $NAME;
 
$NAME = $row[NAME];
session_register(NAME);
}
   
...
   
Header(Location: menu.php);
 
 
 regards



--
PHP General Mailing List (http://www.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] ICMP Ping

2001-08-07 Thread hassan el forkani

look for icmp at
http://phpclasses.upperdesigns.com i beilive there is a class that does 
just that

regards

At 18:11 07/08/01, you wrote:
Hi,
 I'm trying to write a port scanner similar to
http://scan.sygatetech.com to expose security holes in a PC or server.
However, I can't figure out how to perform an ICMP ping. Does anyone
know how?

Regards,

- James

Editor, VB Web
==
Web   - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ#  - 60612011
Fax   - +44(0)8707052859
==


--
PHP General Mailing List (http://www.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: mysql escape character \'

2001-08-07 Thread hassan el forkani

thanks everybody for your help, i actually had the solution before posting :))


my question was not a 'how to' but why do we need to escape single quotes 
on unix systems and not on windows using the same version of php and mysql?

At 21:44 07/08/01, you wrote:
Dear PHP-General (bit of strange, uh?),

I guess what you are looking for is this:
http://www.php.net/manual/en/function.addslashes.php

Hope it helps.

Regards,

--
   Stefan Hinz
   Geschäftsführer / CEO iConnect e-commerce solutions GmbH
   #  www.js-webShop.com www.iConnect.de
   #  Gustav-Meyer-Allee 25, 13355 Berlin
   #  Tel: +49-30-46307-382  Fax: +49-30-46307-388

- Original Message -
From: hassan el forkani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 4:32 PM
Subject: mysql escape character \'


  greetings;
 
  i'm not sure if this is a mysql or php issue so i'm posting to both
lists,
 
  i'm developping a community web site with news, forums..;
  while working on the admin section i noticed this behaviour:
 
  on my hosting platform (linux)
  i need to replace single quotes by \' to properly insert the data into
the
  database and avoid errors
  on my dev machine (win98) there is no need to do so as single quotes
are
  properly inserted and attempting to escape them actually inserts \'
instead
  of ';
 
  so the same code does not have the same output on windows and linux
 
  can someone explain??
 
 
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
[EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 


-
Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail 
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.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]




RE: [PHP] Matching Question

2001-08-04 Thread hassan el forkani

ok,
if i understand you correctly, you're taking data from a form and want to 
check that it is not already in the database, right?
then why don't you include the submitted vars in the query like this:

$sql = SELECT First_Name, Last_Name, Address FROM $table_name
WHERE (Family_Position = 'H' or Family_Position = 'S') and first_name = 
'$form_First_Name' and last_name='$form_last_name' and 
address='$form_address';
$result = @mysql_query($sql,$connection) or die( Couldn't execute query.);
$number_of_matches = mysql_num_rows($result);
if ($number_of_matches  0)
{print bla bla;
else{
//submitted info is ok and can be inserted 
}
please correct me if i missunderstood your question


regards


At 21:52 04/08/01, you wrote:
Here is the query part:

$sql = SELECT First_Name, Last_Name, Address FROM $table_name
WHERE Family_Position = 'H' or Family_Position = 'S';
//$result = @mysql_query($sql,$connection) or die( Couldn't execute query.);
if(! $result = mysql_query($sql,$connection)) {
 print(ERROR .mysql_errno().: 
 .mysql_error().br\n$sqlbr\n);
 }

 
  whta does your query look like?
 
  At 19:40 04/08/01, you wrote:
  After a sign up page I want to check if someone is already entered
  into a database. The First Name, Last Name and Address all have
  to match exactly in order for it to be considered a duplicate. However
  this isn't doing what I want. I get the Error produced if the Address 
 matches
  but the name doesn't. Not sure what I'm doing wrong. Thanks.
  Jeff Oien
  
  while ($row = mysql_fetch_array($result)) {
   $First_Name = $row['First_Name'];
   $Last_Name = $row['Last_Name'];
   $Address = $row['Address'];
  
   if (($M_First_Name || $F_First_Name == $First_Name) 
   ($M_Last_Name || $F_Last_Name == $Last_Name)
($Address1 == $Address)) {
   echo 
   htmlheadtitleError/title/head
   body bgcolor=\#FF\ text=\#00\ link=\#ff\
   vlink=\#660099\
   h3Error/h3
  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]




Re: [PHP] echo vs printf

2001-07-17 Thread hassan el forkani

whereas to echo it you'd have to concatenate the string. false
you don't have to concat strings with echo you can print vars the same way as print

regards

16/07/01 17:48:43, Steve Brett [EMAIL PROTECTED] wrote:

i seem to remember reading somewhere that print acts like (is) a function,
presumably returning false if  it cannot print to screen, whereas echo just
dumps it.

also you can drop vars in print like

print you have $points points;

whereas to echo it you'd have to concatenate the string.

Steve


Don Read [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 On 16-Jul-01 brother wrote:
  Why should I use printf instead of echo and vice versa?
 

 printf print-formated

 $a=12.3456;

 echo $a, 'BR';
 printf('%1.2fBR', $a);

 12.3456BR
 12.34BR

  As for today I use printf mostly but I don't know why.

 You prolly mean print; There may be some minor differences from echo,
 but i've never seen 'em.
 (i think they threw print in PHP to keep JAPHs happy).

 Regards,
 --
 Don Read   [EMAIL PROTECTED]
 -- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do 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] how to hide dbconnect file if its in published directory?

2001-07-14 Thread hassan el forkani

well...
  i don't think there should be any problem if the included file is a class 
(right???)
come to think about it,
  is it possible to create an object by passing a url like 
this:   file.inc?file=new mysqlfile-conn() i mean would this run the class??


regards

At 05:00 14/07/01, Rasmus Lerdorf wrote:
  there should not be any problem if your web server is configured to parse
  .inc extentions as PHP, in wich case, even if the file is called
  separately, the server will strip php tags and send normal html output.

Once again, don't do this.

If you write your .inc files assuming they are going to be running in the
context of a larger framework where they are included into you are likely
to miss things that could be a security problem if they are run by
themselves via something like: file.inc?file=/etc/passswd

You are better off letting people see the source code to your .inc file as
opposed to letting people execute them out of context.

Obviously the most secure way is to simply put all your include files
outside of your document_root so they can't be accessed directly.

Or, alternatively add a simple rule to your httpd.conf:

   Files ~ \.inc$
   Order allow,deny
   Deny from all
   /Files

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




Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-13 Thread hassan el forkani

there should not be any problem if your web server is configured to parse 
.inc extentions as PHP, in wich case, even if the file is called 
separately, the server will strip php tags and send normal html output.

regards



At 00:11 10/07/01, Noah Spitzer-Williams wrote:
Hey guys,

 I come for advice once again. Say i have a file dbconnect.inc which
connects to my database. Now if this file is located in a directory
accessible for to the web is there anyway that if someone types in that file
i can detect it being accessed, instead of included, and redirect them
elsewhere?

Thanks guys!

- Noah



--
PHP General Mailing List (http://www.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] referencing arrays in arrays

2001-07-02 Thread hassan el forkani

have you tried doing it using while()?

At 01:28 29/06/01, Anette Löfquist wrote:
I have an array, $field, like following:

Array ( [0] =
  Array ( [0] = Array (  [disp] = computer
  [index] = computer )
  [1] = Array (  [disp] = or
  [index] = @or )
  [2] = Array (  [disp] = title
  [index] = @at 1=4 term
  [name] = ti )
   )
 [1] =
  Array ( [0] = Array (  [disp] = human
  [index] = human)
  [1] = Array (  [disp] = or
  [index] = @or )
  [2] =Array (   [disp] = subject
  [index] = @at 1=5 term
  [name] = s )
)
  [2] =
  Array ( [0] = Array (  [disp] =
  [index] = John)
  [1] = Array (  [disp] = or
  [index] = @or )
  [2] = Array (  [disp] = tsd
  [index] = @at 1=5 term @at
7=44 term
  [name] =  tsd)
)
 [3] =
   Array ( [0] = Array (  [disp] =
   [index] = Eric)
   [1] = and
   [2] = Array (  [disp] = subject
   [index] = @at 9=5 term
   [name] = s )
)
 [4] =
Array ( [0] = Array (  [disp] =
[index] = Main)
[1] = and
[2] = Array (  [disp] = subject
[index] = @at 9=5 term
[name] = s )
 )
  [5] =
Array ( [0] = Array (  [disp] =
[index] = Dog)
[1] = and
[2] = Array (  [disp] =
[index] =
[name] =  )
)
)

In each string, $field[$j][2][index] in the array, will I replace 'term'
with  the
word in {$field[$j][0][index]}.
Why doesn't it work like this?:
---
1.for($j=0; $j6; $j++){
2.$temp
=str_replace(term,{$field[$j][0][index]},{$field[$j][2][index]});
3.echo brtemp: $temp;
4.$field[$j][2][index]=$temp;
5.echo brutskrift:  ${$field[$j][2][index]};
6.}
7.echo brfield: br;
8.print_r($field);
-
Line 3 and 6 gives the same, and correct outprint, but in line 8 nothing is
changes from how it looked before the loop. term is still term and not
replaced.
What am I doing wrong!?

Thanks!

anette





Bra att veta:
Hardware is the part of a computer that can be kicked,
if all you can do is swear at it, then it must be software.

Anette Löfquist  e99al
icq#: 69648675













--
PHP General Mailing List (http://www.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] Sorry, what is PWS

2001-05-09 Thread hassan el forkani

i have tried both PWS and Apache on a windows98 machine, and franckly Apache is much 
much better
just grab a binary distribution install it and go through the httpd.conf to configure 
it (that's the trikiest part but the file is very well commented )
voila!
best combination: php, apache, Mysql

regards


06/05/01 17:28:40, Anuradha Ratnaweera [EMAIL PROTECTED] wrote:


On Sat, 5 May 2001, Thomas Edison Jr. wrote:

 Latest version of PWS is 4.0! If u're looking for something esy  fast
 to get running, PWS is it.

It is not something as easy as apache to install. If you install any Linux
or BSD distribution, you get can apache to run out of the box without any
effort! No reason to go to network neighbourhood properties and
whatsoever...

Anuradha


-- 
PHP General Mailing List (http://www.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] remotely include file

2001-05-09 Thread hassan el forkani

there is a way to prevent the remote server from parsing the file before sending it:
use an extension that is not associated to php on that server (ie something like 
.incphp or whatever extension that is not parsed on that server) and add that 
extension in the receiving server's config
for instance if y're using apache, y'd add:

Action application/x-httpd-php4 /php4/php.exe
AddType application/x-httpd-php4 .php .incphp

this way the sending server would send the file as plain text and your server would 
include it and parse it
i never tried this but it should work

the downside with this is that your includes could be easaly downloaded and read by 
anyone on the host server, but you could restrict access to those files to some 
hosts.

regards

hassan el forkani


09/05/01 13:37:55, Ben Cairns [EMAIL PROTECTED] wrote:

When PHP does a require or an include on a remote file via http, it sends a 
GET request to the http server that the file is on,

Therefore, if this server has PHP installed on it, then the web server will 
parse the file before it spits it out. Thus, all of the PHP tags are stripped 
fom the file for output.

Therefore, you cannot remotely include (via http) a php file. If you could, 
this would be a massive security loophole.


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK..


-- 
PHP General Mailing List (http://www.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] passing parameters in the url using forward slashes

2001-05-09 Thread hassan el forkani

hmm..
good question i don' t know exactly how it's done but i actually know a site that uses 
this extensively www.emp3finder.com, they concat strings
i think it involves massive server configuration


regards


09/05/01 14:08:25, Franklin van Velthuizen [EMAIL PROTECTED] wrote:





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