Re: [PHP] session_questions() part IV

2001-08-14 Thread Renze Munnik

On Mon, Aug 13, 2001 at 05:59:42PM +0200, Aniceto Lopez wrote:
> Renze asked:
> "how would you detect whether or not someone has
> closed his browser? (session is over then)"
> 
> Do I realy need to know this to let or not a registered
> user navigate some restricted web pages?
> 
> 
> Aniceto Lopez


That question was just a small part of my message. I was explaining
that you don't need to destroy the session when someone closes the
browser.
You were asking if you needed to take some action if the browser
closes. But you never can tell when it closes. That's why I
mentioned (not really asked) how you thought to detect the browser
closing.

-- 

* R&zE:

-- 
-- 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] Re: The secrecy of PHP code

2001-08-14 Thread Soeren Nielsen


"James Shaker" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Greetings,
> [snip] calculations and I code them in PHP
> for use on a website are they safe from being
> viewed or taken?

If your php-code is on a web-server which gives access to other than you
they can read your code. An example could be other people being hosted
on the same server..

Regards,
Søren




-- 
PHP General Mailing List (http://www.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: The secrecy of PHP code

2001-08-14 Thread Ben-Nes Michael

its a problem because the code is not compiled into binary file, and then
every one who can browse the directory ( using ftp for example ) can view
your code.

To prevent this ( as root ) I chroot every user that log to ftp to another
directory so they cant go out and browse the /etc /php-directories or what
ever.

The problem still stays if you open php to system commands like `echo
/etc/passwd` or using system() 

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--

- Original Message -
From: "Soeren Nielsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 10:56 AM
Subject: [PHP] Re: The secrecy of PHP code


>
> "James Shaker" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > Greetings,
> > [snip] calculations and I code them in PHP
> > for use on a website are they safe from being
> > viewed or taken?
>
> If your php-code is on a web-server which gives access to other than you
> they can read your code. An example could be other people being hosted
> on the same server..
>
> Regards,
> Søren
>
>
>
>
> --
> PHP General Mailing List (http://www.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] qwestion about %E6%E2%E0%F7%EA%E0

2001-08-14 Thread BRACK

Hi

I'm doing the script for searching the mySQL db in Russian 
language. but output of textform 
http://localhost/indexr.php3?search_idea=%E6%E2%E0%F7%EA
%E0 is not the same as 
http://localhost/indexr.php3?search_idea=%C6%C2%C0%D7%CA
%C0 (this is the same word but first is lower case and second is 
upper case) so search becomes case sencitive, I don't want to 
have case sencitive search so, how can I tell to program that both 
of above are the same word?

Thank you for help,

Youri

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




[PHP] Re: NEXT - PREVIOUS coding

2001-08-14 Thread Boaz Amit

>Hi,
>what about other possibilities to do this ?

>Tom

Other possibilities? Why not just utilize the second argument of the LIMIT function 
with a fairly simple SQL query?

Here's a portion of a script I wrote, modified to be an example on this matter:

= 0) {
echo 'Previous' . "\n";
}

 /* determine if a 'Next' button is required */
if ($next < $total_number_of_articles) {
echo 'Next' . "\n";
}

?>

This should do the trick if I haven't modified too much.
There's a good but a bit messy article about it in PHPBuilder: 
http://phpbuilder.com/columns/rod2221.php3
The script is much more experienced and advanced than my own.

---
 regards,
  Boaz Amit


> > Hello Pranot,
> >
> > On 16-Jul-01 06:09:33, you wrote:
> >
>
> > >hi.. friends
> > >
> > >i have a database (mysql) in which their r many records. Through PHP i
want
> > > them to display on the page.
> > >
> > > Main requirement is that there should be a NEXT - PREVIOUS facility. So
if
> > > there r 20 records and suppose only 10 should show up on scren at a time,
> > > then a NEXT link should be visible which could show the remaining 10
> > > records.
> > >
> > > Their can be n no. of records.
> > >
> > Maybe you would like to try this PHP class that does exactly what you are
> > asking.
> >
> > http://phpclasses.UpperDesign.com/browse.html/package/130
> >
> >
> > Regards,
> > Manuel Lemos
> >
> > Web Programming Components using PHP Classes.
> > Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
> > --
> > E-mail: [EMAIL PROTECTED]
> > URL: http://www.mlemos.e-na.net/
> > PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
> > --
> >





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

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");

-- 

* R&zE:

-- 
-- 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] Re: Strange session problems. Please help.

2001-08-14 Thread lallous

I wish someone deletes this post!
It's posted with date 2002! I'm gonna see it on the top of my messages for
about a year now!
I'm using the news server and not mailing list!

"By Proxy" <[EMAIL PROTECTED]> wrote in message
005301c23ee3$27ba1500$[EMAIL PROTECTED]">news:005301c23ee3$27ba1500$[EMAIL PROTECTED]...
> Hi.
>
> Does anybody know of any issues in PHP 4.0B2 regarding to the handling of
> session variables on different networks?
>
> Here is the problem. I have written a user authentication system using
> session variables. When the user logs in their name and pass are stored as
> an associative array (with other details from a database). If the details
> are invalid the user is booted back to the logon screen. The system worked
> fine for everyone except myself and one other person who was on the same
> network (optus@home network).
>
> The problem was that although the username and password were sent and
stored
> into the session variables, upon accessing another page the session
> variables were not carried forward (although the session id was) and so I
> was thrown back to the login. As I said, this was only true for users on
the
> optus@home network. Fpr anyone else it seemed to be fine.
>
> Identical code on a server running PGP 4.0.4pl1 worked universally.
> I have been tearing my remaining hair out for days on this one now. Does
> anyone have any suggestions (except for 'Upgrade PHP on the 4.0B2 server'
or
> 'move to a different server'. That, unfortunately is beyond my control
:(  )
>
> 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] PHP: mysql_query()

2001-08-14 Thread lallous

Actually the mysql_query() seems to accept only one statement at a time.

Any work around so i can do query suchs:

mysql_query("
SELECT 1+1;
SHOW DATABASES;
USE database1;
SELECT * FROM table1;
");

Just multiple commands seperated with ';' ? (as if using the Mysql command
prompt)



-- 
PHP General Mailing List (http://www.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] qwestion about %E6%E2%E0%F7%EA%E0

2001-08-14 Thread Ben-Nes Michael

As I recall MySQL is not case sensitive

did you use --with-charset=koi8_ru ( or what ever) when you did ./configure
?

snip form INSTALL-SOURCE file of mysql-3.23.40

   * By default, *MySQL* uses the ISO-8859-1 (Latin1) character set. To
 change the default set, use the `--with-charset' option:
  shell> ./configure --with-charset=CHARSET
 `CHARSET' may be one of `big5', `cp1251', `cp1257', `czech',
 `danish', `dec8', `dos', `euc_kr', `gb2312', `gbk', `german1',
 `hebrew', `hp8', `hungarian', `koi8_ru', `koi8_ukr', `latin1',
 `latin2', `sjis', `swe7', `tis620', `ujis', `usa7', or
 `win1251ukr'.  *Note Character sets::.

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--

- Original Message - 
From: "BRACK" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 11:28 AM
Subject: [PHP] qwestion about %E6%E2%E0%F7%EA%E0


> Hi
> 
> I'm doing the script for searching the mySQL db in Russian 
> language. but output of textform 
> http://localhost/indexr.php3?search_idea=%E6%E2%E0%F7%EA
> %E0 is not the same as 
> http://localhost/indexr.php3?search_idea=%C6%C2%C0%D7%CA
> %C0 (this is the same word but first is lower case and second is 
> upper case) so search becomes case sencitive, I don't want to 
> have case sencitive search so, how can I tell to program that both 
> of above are the same word?
> 
> Thank you for help,
> 
> Youri
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.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: "location bar"

2001-08-14 Thread lallous

I don't believe such locations can't be displayed.
Usually location contains: http://server/directory/file.ext
The ':' used in the location denotes the port number that is used to connect
to the web server.

Maybe javascript can do that. Don't know exactly how.

Good luck.

"Wolfgang Schneider" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi everyone,
>
> I am somewhat new at the use of php and would appreciate if someone
> could help me with a question re "location bar"
>
> How can a location bar such as the sample below be generated in php to
> be displayed in web pages ...
>
> Location : home:/category:sub_1:/page title
>
> Is there a specific setup needed in terms of the directory structure on
> the server? Or will this only function with database type website?
>
> Thanks in advance for any input and helpful ideas  ...
> God bless you with His grace and peace
> Wolfgang
>
> Looking for Biblical information? COME AND SEE!
> -- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
> -- BibelCenter: http://www.bibelcenter.de
> -- Bookstore: http://www.worthy.net/BibelCenter/
>
>
>



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

2001-08-14 Thread Ben-Nes Michael

You cant do this.

Its even recommended to drop the `;' from the end of the sql command.

You can go around using array to store the sql statements and use foreach to
run mysql_query with thee sql statement.

But I don't think its right way to do thing !

If you intention was to do update one after other then you should use locks
or use Postgres :)

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--

- Original Message -
From: "lallous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 12:59 PM
Subject: [PHP] PHP: mysql_query()


> Actually the mysql_query() seems to accept only one statement at a time.
>
> Any work around so i can do query suchs:
>
> mysql_query("
> SELECT 1+1;
> SHOW DATABASES;
> USE database1;
> SELECT * FROM table1;
> ");
>
> Just multiple commands seperated with ';' ? (as if using the Mysql command
> prompt)
>
>
>
> --
> PHP General Mailing List (http://www.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] PUT method support

2001-08-14 Thread Rukhiya

Hi!

How do I use  a PUT method  support  to upload files from the client to the WEB server?
Can anyone pls. help me out to find a solution to these problems. It's very urgent


regards
Rukhiya



[PHP] to include php file into html page

2001-08-14 Thread Jack

Hi people
I have tried to include php file into html page using the syntax below and it said 
syntax error at this part when the page is loaded. What is wrong with calling php file 
this way? Or is there any other way to call php file from html page?

***



Re: [PHP] PHP: mysql_query()

2001-08-14 Thread lallous

No actually I have a .SQL file that is a complete dump of my database.
All i want to do is the execute with mysql_query() the whole .SQL which will
create databases and tables and fillin fields!

"Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
004701c124a0$e690c860$[EMAIL PROTECTED]">news:004701c124a0$e690c860$[EMAIL PROTECTED]...
> You cant do this.
>
> Its even recommended to drop the `;' from the end of the sql command.
>
> You can go around using array to store the sql statements and use foreach
to
> run mysql_query with thee sql statement.
>
> But I don't think its right way to do thing !
>
> If you intention was to do update one after other then you should use
locks
> or use Postgres :)
>
> --
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --
>
> - Original Message -
> From: "lallous" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 14, 2001 12:59 PM
> Subject: [PHP] PHP: mysql_query()
>
>
> > Actually the mysql_query() seems to accept only one statement at a time.
> >
> > Any work around so i can do query suchs:
> >
> > mysql_query("
> > SELECT 1+1;
> > SHOW DATABASES;
> > USE database1;
> > SELECT * FROM table1;
> > ");
> >
> > Just multiple commands seperated with ';' ? (as if using the Mysql
command
> > prompt)
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.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] SQL script ---------any help

2001-08-14 Thread legal


In MS SQL server,  table data can be uploaded on webserver by using the
Enterprise Manager by using the export option.

Is there any feature in Mysql to upload the data on webserver?
I understand that it can be done with the help of SQL script file. This is
the only way or some another way also is there?
Also, Pl. let me know:
1.   How to create SQL script file, with what extension it is to be saved?
The format?
2.   How to call/execute/run that file using php?

Can anyone send me sample SQL script file?

Thanks in advance??..

 Ajay K. Ratra
Ludhiana (INDIA)
[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: The secrecy of PHP code

2001-08-14 Thread Soeren Nielsen


"Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
022201c12498$79178ce0$[EMAIL PROTECTED]">news:022201c12498$79178ce0$[EMAIL PROTECTED]...
> The problem still stays if you open php to system commands like `echo
> /etc/passwd` or using system() 

A problem is also that other web-programers can read your source code
through PHP.
An example from my page is this:
My homepage is here: /hotel//WWW

I can make a php-script that opens /hotels//WWW ,
list the files, view them, steal code from others etc etc.

Hope what I wrote gave some sort of meaning :-)

/Søren



-- 
PHP General Mailing List (http://www.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] to include php file into html page

2001-08-14 Thread Evan Nemerson

The language is php, not javascript. Plus I'm not sure if you can use an src 
attribute, but you can use the include or require functions...

http://php.net/manual/en/language.basic-syntax.php





On Tuesday 14 August 2001 14:32, you wrote:
> Hi people
> I have tried to include php file into html page using the syntax below and
> it said syntax error at this part when the page is loaded. What is wrong
> with calling php file this way? Or is there any other way to call php file
> from html page?
>
> ***
> 
> 
> 

Fw: [PHP] Re: prob with session start

2001-08-14 Thread Balaji Ankem



 
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 thereloading used three pages to login: the login-page, the 
  validationpage 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 
  theinclude('super.php') you should use header("Location: 
  super.php")and instead of include('ordinary.php') you should 
  useheader("Location: ordinary.php"). If you 
  includesuper.php/ordinary.php you still don't leave 
  authentication.php.That means that one can still reload 
  authentication.php. Then thebrowser asks for resubmitting the form. If you 
  use header() insteadof include() you actually leave authentication.php and 
  go to adifferent page. The user can ofcourse reload that page, but 
  thatpage wasn't actually the result of a form-submital so the page 
  willthen just be reloaded and no information will be resubmitted. 
  Evenif one pushes Back from that page, he/she will not go back 
  toauthentication.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");-- * R&zE:-- 
  -- 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]

---
Information transmitted by this E-MAIL is proprietary to Wipro Limited and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.




-- 
PHP General Mailing List (http://www.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");

-- 

* R&zE:

-- 
-- 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] Need people's advice on a web registration system.

2001-08-14 Thread sunny AT wde

Hi all!

I'm trying to build a registration system for a community site that
I'm building, and was wondering if people could give me advice or
tell me about problems they've been having??

I'm planning to let people register with a username and password
(encrypted), and then make them login with that, and thus putting a
cookie on their machine.

If the cookie is detected the next time, they don't have to login,
but if it is, then they do. 

Sounds pretty simple?? 

Any advice?

TIA!

sunny


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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

2001-08-14 Thread Ben-Nes Michael

For that MySQL team designed the Mysql client to get input from file and
execute it.

do
system ( "mysql < sql.fie");
or
`mysql < sql.fie`;

dont forget to use -D and -p if User is required.

- Original Message -
From: "lallous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 1:29 PM
Subject: Re: [PHP] PHP: mysql_query()


> No actually I have a .SQL file that is a complete dump of my database.
> All i want to do is the execute with mysql_query() the whole .SQL which
will
> create databases and tables and fillin fields!
>
> "Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
> 004701c124a0$e690c860$[EMAIL PROTECTED]">news:004701c124a0$e690c860$[EMAIL PROTECTED]...
> > You cant do this.
> >
> > Its even recommended to drop the `;' from the end of the sql command.
> >
> > You can go around using array to store the sql statements and use
foreach
> to
> > run mysql_query with thee sql statement.
> >
> > But I don't think its right way to do thing !
> >
> > If you intention was to do update one after other then you should use
> locks
> > or use Postgres :)
> >
> > --
> > Canaan Surfing Ltd.
> > Internet Service Providers
> > Ben-Nes Michael - Manager
> > Tel: 972-4-6991122
> > http://sites.canaan.co.il
> > --
> >
> > - Original Message -
> > From: "lallous" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 14, 2001 12:59 PM
> > Subject: [PHP] PHP: mysql_query()
> >
> >
> > > Actually the mysql_query() seems to accept only one statement at a
time.
> > >
> > > Any work around so i can do query suchs:
> > >
> > > mysql_query("
> > > SELECT 1+1;
> > > SHOW DATABASES;
> > > USE database1;
> > > SELECT * FROM table1;
> > > ");
> > >
> > > Just multiple commands seperated with ';' ? (as if using the Mysql
> command
> > > prompt)
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.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: Apache/PHP File Upload problems

2001-08-14 Thread Martin Laws

Thanks for the message Richard,

I've been advised to upgrade to a new version (now running 4.0.6) and it works
fine.

Martin

Richard Lynch wrote:

> > If I try to submit a file for upload using the form using Netscape I get
> >
> > "Document contains no data". If I do the same in IE5.0 it just waits
> > forever.
> >
> > Looking at the apache server error_log file I appear to be getting a
> > "Segmentation Fault (11)" each time I try and Post the contents of the
> > form to the server.
>
> It should just work.
>
> Your page *IS* trying to return some HTML as well as dealing with the
> uploaded file, right?...
>
> With the segfault, read the instructions on http://bugs.php.net about
> generating a back-trace to submit.
>
> You may want to back off of the -dev version (development == untested) and
> go with an actual release.
>
> --
> 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]




Re: [PHP] PHP: mysql_query()

2001-08-14 Thread lallous

I can't execute MySql via system() I have no rights!

"Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
005a01c124ae$ab50e740$[EMAIL PROTECTED]">news:005a01c124ae$ab50e740$[EMAIL PROTECTED]...
> For that MySQL team designed the Mysql client to get input from file and
> execute it.
>
> do
> system ( "mysql < sql.fie");
> or
> `mysql < sql.fie`;
>
> dont forget to use -D and -p if User is required.
>
> - Original Message -
> From: "lallous" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 14, 2001 1:29 PM
> Subject: Re: [PHP] PHP: mysql_query()
>
>
> > No actually I have a .SQL file that is a complete dump of my database.
> > All i want to do is the execute with mysql_query() the whole .SQL which
> will
> > create databases and tables and fillin fields!
> >
> > "Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
> > 004701c124a0$e690c860$[EMAIL PROTECTED]">news:004701c124a0$e690c860$[EMAIL PROTECTED]...
> > > You cant do this.
> > >
> > > Its even recommended to drop the `;' from the end of the sql command.
> > >
> > > You can go around using array to store the sql statements and use
> foreach
> > to
> > > run mysql_query with thee sql statement.
> > >
> > > But I don't think its right way to do thing !
> > >
> > > If you intention was to do update one after other then you should use
> > locks
> > > or use Postgres :)
> > >
> > > --
> > > Canaan Surfing Ltd.
> > > Internet Service Providers
> > > Ben-Nes Michael - Manager
> > > Tel: 972-4-6991122
> > > http://sites.canaan.co.il
> > > --
> > >
> > > - Original Message -
> > > From: "lallous" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, August 14, 2001 12:59 PM
> > > Subject: [PHP] PHP: mysql_query()
> > >
> > >
> > > > Actually the mysql_query() seems to accept only one statement at a
> time.
> > > >
> > > > Any work around so i can do query suchs:
> > > >
> > > > mysql_query("
> > > > SELECT 1+1;
> > > > SHOW DATABASES;
> > > > USE database1;
> > > > SELECT * FROM table1;
> > > > ");
> > > >
> > > > Just multiple commands seperated with ';' ? (as if using the Mysql
> > command
> > > > prompt)
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.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: How give a 'timed' online quiz?

2001-08-14 Thread pierre-yves

Hello,
I did an timed online quiz using session variables for my timer. It work
fine.

When the user start the quiz, you check the time and calculate the duration
of your quiz.
exemple: 20:00 + 60 min = 21:00 So you register 2100 in a session variable

Each subsequent request you make shure the current time is still below 2100
or
you stop the quiz and tell user.

py


- Original Message -
From: "Evan Nemerson" <[EMAIL PROTECTED]>
To: "Bryan "Cyngon" Helmkamp" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 1:16 AM
Subject: Re: [PHP] Re: How give a 'timed' online quiz?


> You can't do this and keep it tamper-proof with JavaScript/PHP. No matter
> what, anyone with an IQ above that of a tree stump could play with the
POST
> variables.
>
> I think the only way to do this and keep it tamper proof would be a Java
> applet. If memory serves, you can have record the time on the server, and
> have each answer sent as it is answered.
>
> If you had a web site that posted forms to the server after every answer,
the
> transmission time would have a big effect. No, Java is the way to go.
>
>
> On Monday 13 August 2001 19:18, you wrote:
> > You could have PHP insert a hidden form value holding the start time in
the
> > form. Then compare the start time with the current time when they submit
> > and handle as needed. You could somehow encrypt the start time to
prevent
> > tampering.
> >
> > -Bryan
>
> --
> PHP General Mailing List (http://www.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] session security issue

2001-08-14 Thread Christian Dechery

I have pages that uses session for security that looks something like this:



so $uid tells me if the user is logged on or not...

but what if somebody calls the script directly from the address bar like 
this: http://server/script.php?uid=10

wouldn't this be a security problem?

. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer


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




Re: [PHP] session security issue

2001-08-14 Thread Renze Munnik

On Tue, Aug 14, 2001 at 08:42:22AM -0300, Christian Dechery wrote:
> I have pages that uses session for security that looks something like this:
> 
>session_start();
> 
>   if( !isset($uid) )
>   {
>   include("include/auth.inc.php");
>   auth_user();
>   }
> 
>   more code...
> ?>
> 
> so $uid tells me if the user is logged on or not...
> 
> but what if somebody calls the script directly from the address bar like 
> this: http://server/script.php?uid=10
> 
> wouldn't this be a security problem?


Christian,

This can indeed be a security issue. Try using
$HTTP_SESSION_VARS{"uid"} instead. It's a saver solution. Then one
cannot just use ?uid=10 in order to fool you. At least, not in that
way.

-- 

* R&zE:

-- 
-- 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] Re: inserting a remote html file

2001-08-14 Thread Boaz Amit

Re: inserting a remote html file


"Minardi boy" <[EMAIL PROTECTED]> wrote:

>Hello
>I wanted the user to choose certain html files (one or more) via a checkbox
>and then insert them into the new php site.
>The checkbox thing is okay but I keep recieveing errors on the php site
>Could you help me?
>***
>
>
>Here is your required information
>if ($choice=="arlberg")
>{
>include ("C:\\inetpub\\wwwroot\\page1.html");
>}
>if ($choice=="paznauntal")
>{
>include ("C:\\inetpub\\wwwroot\\page2.html");
>}
>if ($choice=="otztal")
>{
>include ("C:\\inetpub\\wwwroot\\page3.html");
>}
>else
>{
>echo ("Please select a Skiing resort");
>}
>?>
>
>
>***
>Thanks RJ

You wrote the path with backslashes (\). An inclusion path should be written with 
regular slashes:

include('C:/inetpub/wwwroot/page1.html');


---
 Regards,
  Boaz Amit



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

2001-08-14 Thread Tim

If you test $HTTP_SESSION_VARS["uid"] instead, you'll know that it came
from a session and not from a GET variable.

- Tim

On 14 Aug 2001 08:42:22 -0300, Christian Dechery wrote:
> I have pages that uses session for security that looks something like this:
> 
>session_start();
> 
>   if( !isset($uid) )
>   {
>   include("include/auth.inc.php");
>   auth_user();
>   }
> 
>   more code...
> ?>
> 
> so $uid tells me if the user is logged on or not...
> 
> but what if somebody calls the script directly from the address bar like 
> this: http://server/script.php?uid=10



-- 
PHP General Mailing List (http://www.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] ucwords Except 'The' 'And' etc?

2001-08-14 Thread Steve Edberg

I know, I know, I have a lot of work to do...I shouldn't be doing 
this. I did get to play with PCRE regexps here, though...lotsa cool 
features over eregs!. Anyway, here's a *** NEW!!! IMPROVED!!! *** 
version of smart_ucwords(), that's probably way too much overkill. I 
did some quick tests, seems to work. Beware of email-induced 
line-wrapping, particularly in the comment black & quoted strings:


#  Original
#


$EXCEPTION_LIST = array(
   'a', 'an', 'and', 'at', 'but', 'for', 'nor', 'or', 'some', 
'the', 'to', 'with'
);
   
$INVARIANT_LIST = array(
   'NASA', 'MySQL', 'PostGreSQL', 'eBusiness'
);
   
#  First, strip & save leading & trailing whitespace

preg_match(
   '/^(\s*?)(.*)(\s*)$/U',
   ($ForceCase ? strtolower($String) : $String),
   $StringParts
);

#  Replace exception words

$String = ucwords($StringParts[2].($CapitalizeTrailing ? '' : ' '));

foreach ($EXCEPTION_LIST as $Word) {
   $String = preg_replace("/(\s+)$Word(\s+)/i", "\\1$Word\\2", $String);
}

#  Replace invariants

$String = " $String ";
   
foreach ($INVARIANT_LIST as $Word) {
   $String = preg_replace("/(\s+)$Word(\s+)/i", "\\1$Word\\2", $String);
}

#  Replace whitespace and return

return $StringParts[1].trim($String).$StringParts[3];

}

?>


At 4:09 PM -0500 8/13/01, Jeff Oien wrote:
>Fabulous. Thanks to Steve and Mark. Exactly what I needed.
>Jeff Oien
>
>>  >Something like this, perhaps (untested):
>>
>>  I needed this too so I just tested it.
>>
>>  >function smart_ucwords($String)
>>  >{
>>  >
>>  >   $ExceptionList = array('the', 'an', 'a'); # should all be in
>>  >lowercase
>>  >
>>  >   $String = ucwords(strtolower(ltrim($String))); # LINE A
>>  >
>>  >   foreach ($ExceptionList as $Word)
>>  >   {
>>  >   $String = eregi_replace("[[:space:]]+$Word[[:space:]]+",
>>  >$Word, $String);
>>  >   }
>>
>>
>>  this line should be more like:
>>  $String = eregi_replace("([[:space:]]+)".$Word."([[:space:]]+)",
>>  "\\1".$Word."\\2", $String);
>>
>>  >   return $String; # LINE B
>>  >
>>  >}
>>
>>  thanks!
>>  - Mark
>  >
>

-- 
+-- Factoid: Of the 100 largest economies in the world, 51 are --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+--- corporations -- http://www.ips-dc.org/reports/top200text.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]




Re: [PHP] to include php file into html page

2001-08-14 Thread Alnisa Allgood

At 4:32 PM -0500 8/14/01, Jack wrote:
>Hi people
>I have tried to include php file into html page using the syntax 
>below and it said syntax error at this part when the page is loaded. 
>What is wrong with calling php file this way? Or is there any other 
>way to call php file from html page?
>
>***
>
>
>

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread Alnisa Allgood

At 2:21 PM +0200 8/14/01, lallous wrote:
>I can't execute MySql via system() I have no rights!
>

Generally ISPs either give you shell rights or access to PHPMyAdmin, 
if they give access to a MySQL database. Otherwise, you'd never be 
able to add tables, or modify data.  If PHPMyAdmin is installed, you 
can general locate it in the following manner: your_url/phpmyadmin

So http://www.my_crazy_domain.com/phpmyadmin

You'll need to enter your database username and password, but this 
will allow you to upload INSERT statements, perform routine MySQL 
tasks, as well as run SQL queries.

Otherwise you need to request shell access from your ISP. Some ISPs 
only provide it when asked.

Alnisa
-- 
   .
Alnisa  Allgood
Executive Director
Nonprofit Tech
(ph) 415.337.7412  (fx) 415.337.7927
(url)  http://www.nonprofit-techworld.org
(url)  http://www.nonprofit-tech.org
(url)  http://www.tech-library.org
   .
Nonprofit Tech E-Update
mailto:[EMAIL PROTECTED]
   .
applying technology to transform
   .

-- 
PHP General Mailing List (http://www.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: Storing Credit Card Numbers, etc.

2001-08-14 Thread Sean C. McCarthy

Hi,

I agree completly with him. You should go through another entity for
payment. You should go through some company that ensures you reliability
and security. Here in Europe there are a lot of histories about company
databases being hacked and loosing up to 15.000 cc numbers. By no way
you could get the security these companies can offer you.

Try these ones (I do not endorse to any of these companies or have no
information about them) ccbill.com or americanbank.com. I recomend you
browsing through the net for more.

Also for the private information you should use SSL in the trasactions.
Hope this helps

Sean C. McCarthy
SCI, S.L. (www.sci-spain.com)

Richard Lynch wrote:
> 
> > I'm new to PHP and to e-commerce. Needless to say, I've done a lot of
> > studying over the last few weeks and I'm ready to dive in head first!
> 
> Actually, you're not...  Sorry.  The fact that you want to store data in
> flat files, and that you want to store CREDIT CARD INFO the way you describe
> tells me that you haven't read enough.
> 
> > I'll be building an e-commerce site and I'll be using PHP. I'd like
> > customers to have the option of saving their information so that they
> don't
> > have to enter it each time they purchase -- much like Buy.com does or like
> > Amazon.com's One-Click feature.
> 
> Those are nice features, *IF* the information is stored and accessed
> properly.
> 
> > This means that the customer will be storing information like one or more
> > credit cards, shipping addresses, billing addresses, etc.
> >
> > I'm planing on storing all information in flat files so that I don't have
> > the additional expense of using MySQL (My ISP is charging 24.95/month
> extra
> > for MySQL service).
> 
> Consider moving to a different server.  $24.95/month should get you
> everything you need including MySQL *UNLESS* you're a high-volume site with
> 10,000+ hits/day or heavy bandwidth like audio/video.
> 
> > So the question is: How can I store each customer's information safely?
> Can
> > I use .htaccess and .htpasswd to help me out? Or don't they even apply?
> 
> .htaccess and htpasswd would be okay for AUTHENTICATION of a few people, but
> if your server is running PHP as a Module, you're better off using PHP to do
> the HTTP Authentication.  See the PHP manual online for sample code.
> http://php.net/
> 
> Authenticating a user as a specific customer is COMPLETELY SEPARATE from
> safely storing their credit card information.
> 
> > My intention is to store the user's password encoded with md5 or something
> > and also to develop my own cipher for disguising the credit card numbers
> as
> > well.
> >
> > Any suggestions?
> 
> Don't.
> 
> md5 is useless for this, and developing your own cipher is out-and-out silly
> unless you are a cryptography expert.
> 
> When Amazon et al store a credit card number, they have a very specific
> custom setup for that, involving:
> 
> A separate dedicated computer *NOT* directly connected to the Internet to
> store the cc info.  These machines are:
>   accessible via a SECOND Ethernet card in the web-servers
>   invisible to the outside world
>   only accept connections to the Database server -- no other software
> installed
>   only accept data from that one Ethernet cable
>   physically accessible only to trusted few
> 
> Further, even their web-servers are DEDICATED machines, not shared-access at
> an ISP.  These machines will have an extremely limited number of users able
> to directly access them.  Yours has several hundred untrusted users.
> 
> In short, if you are balking at $24.95 a month for MySQL, your budget is
> *NOWHERE* *NEAR* within reach of the hardware/software/facilities required
> to safely STORE credit card numbers.
> 
> By all means, feel free to hook up with a third-party firm to process your
> credit cards in real-time.
> 
> But you'll have to forego the STORAGE of credit card info feature for now.
> 
> --
> 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] SQL script ------ .any help

2001-08-14 Thread legal


Hi,


In MS SQL server,  table data can be uploaded on webserver by using the
Enterprise Manager by using the export option.

Is there any feature in Mysql to upload the data on webserver?
I understand that it can be done with the help of SQL script file. This is
the only way or some another way also is there?
Also, Pl. let me know:
1.   How to create SQL script file, with what extension it is to be saved?
The format?
2.   How to call/execute/run that file using php?

Can anyone send me sample SQL script file?

Thanks in advance??..

 Ajay K. Ratra
Ludhiana (INDIA)
[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: call to unsupported or undefined function mysql_connect()

2001-08-14 Thread Luis Brito (AYUDANTE)



On Tue, 14 Aug 2001, Luis Brito  wrote:

Hi at all.
> 
>  I get this problem, I use a sparcstation 20 and my system is debian
> potato, I installed php3,php-mysql and mysql I did with the command
> apt-get install.
>  Then I do not understand why that happen?, because I think
> that I did well, and I apreciated if somebody can help me to fix this.
> 
>  Thanks 
>Luis Brito
> 
> 


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

2001-08-14 Thread _lallous

I have made this a small script called SQL2PHP,

---

SQL2PHP






---
file3.sql can contain:
---
DROP DATABASE t;
CREATE DATABASE t;
USE t;


#
# Table structure for table 'brands'
#

DROP TABLE /*!32200 IF EXISTS*/ brands;
CREATE TABLE /*!32300 IF NOT EXISTS*/ brands (
  id int(10) unsigned NOT NULL auto_increment,
  language tinyint(2) DEFAULT '1' ,
  company varchar(50) ,
  countryid int(10) unsigned ,
  name varchar(50) NOT NULL DEFAULT '' ,
  logo varchar(200) NOT NULL DEFAULT '' ,
  description mediumtext NOT NULL DEFAULT '' ,
  PRIMARY KEY (id)
);



#
# Dumping data for table 'brands'
#
INSERT INTO brands VALUES("122","1",NULL,"12","Hummer","","");
INSERT INTO brands VALUES("2","1",NULL,"12","Buick","","");
INSERT INTO brands VALUES("3","1",NULL,"12","GMC","","");
INSERT INTO brands VALUES("4","1",NULL,"12","Jeep","","");
INSERT INTO brands VALUES("5","1",NULL,"12","Ford Motor Company","","");
INSERT INTO brands VALUES("6","1",NULL,"12","Opel","","");
INSERT INTO brands VALUES("7","1",NULL,"12","Audi","","");
INSERT INTO brands VALUES("8","1",NULL,"12","BMW","","");
INSERT INTO brands VALUES("9","1",NULL,"12","Porche","","");
INSERT INTO brands VALUES("10","1",NULL,"12","Mercedes","","");
INSERT INTO brands VALUES("11","1",NULL,"12"," Infinity*","","");
INSERT INTO brands VALUES("12","1",NULL,"12","Isuzu","","");
INSERT INTO brands VALUES("13","1",NULL,"12","Subaru","","");
INSERT INTO brands VALUES("14","1",NULL,"12","Suzuki","","");
INSERT INTO brands VALUES("15","1",NULL,"12","Mazda","","");
INSERT INTO brands VALUES("16","1",NULL,"12","Mitsubishi Motors","","");
INSERT INTO brands VALUES("17","1",NULL,"12","Honda","","");
INSERT INTO brands VALUES("18","1",NULL,"12","Alfa Romeo","","");
# as much as you want!!!
#
---

Hope someone make use of it!
I tried it with a SQL file with 32554 lines long!

//elias

"Lallous" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Actually the mysql_query() seems to accept only one statement at a time.
>
> Any work around so i can do query suchs:
>
> mysql_query("
> SELECT 1+1;
> SHOW DATABASES;
> USE database1;
> SELECT * FROM table1;
> ");
>
> Just multiple commands seperated with ';' ? (as if using the Mysql command
> prompt)
>
>



-- 
PHP General Mailing List (http://www.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] qwestion about %E6%E2%E0%F7%EA%E0

2001-08-14 Thread BRACK

I can do this on my local server but I can't do it on provider's server, 
can I do anything else?

Youri
On 14 Aug 2001, at 12:03, Ben-Nes Michael wrote:

> As I recall MySQL is not case sensitive
> 
> did you use --with-charset=koi8_ru ( or what ever) when you did ./configure
> ?
> 
> snip form INSTALL-SOURCE file of mysql-3.23.40
> 
>* By default, *MySQL* uses the ISO-8859-1 (Latin1) character set. To
>  change the default set, use the `--with-charset' option:
>   shell> ./configure --with-charset=CHARSET
>  `CHARSET' may be one of `big5', `cp1251', `cp1257', `czech',
>  `danish', `dec8', `dos', `euc_kr', `gb2312', `gbk', `german1',
>  `hebrew', `hp8', `hungarian', `koi8_ru', `koi8_ukr', `latin1',
>  `latin2', `sjis', `swe7', `tis620', `ujis', `usa7', or
>  `win1251ukr'.  *Note Character sets::.
> 
> --
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --
> 
> - Original Message -
> From: "BRACK" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 14, 2001 11:28 AM
> Subject: [PHP] qwestion about %E6%E2%E0%F7%EA%E0
> 
> 
> > Hi
> >
> > I'm doing the script for searching the mySQL db in Russian
> > language. but output of textform
> > http://localhost/indexr.php3?search_idea=%E6%E2%E0%F7%EA
> > %E0 is not the same as
> > http://localhost/indexr.php3?search_idea=%C6%C2%C0%D7%CA
> > %C0 (this is the same word but first is lower case and second is
> > upper case) so search becomes case sencitive, I don't want to
> > have case sencitive search so, how can I tell to program that both
> > of above are the same word?
> >
> > Thank you for help,
> >
> > Youri
> >
> 
> 



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




Re: [PHP] PHP: mysql_query()

2001-08-14 Thread _lallous

Basically I have PHPMyAdmin...
If I am to paste the 33,000+ lines SQL query the PHPMyAdmin would take more
than 30secs to execute it which will make everything fail!
Anyway, I solved it. Check the recent post in the same thread about SQL2PHP
script.

"Alnisa Allgood" <[EMAIL PROTECTED]> wrote in message
news:p05100305b79ec2415b87@[63.202.15.82]...
> At 2:21 PM +0200 8/14/01, lallous wrote:
> >I can't execute MySql via system() I have no rights!
> >
>
> Generally ISPs either give you shell rights or access to PHPMyAdmin,
> if they give access to a MySQL database. Otherwise, you'd never be
> able to add tables, or modify data.  If PHPMyAdmin is installed, you
> can general locate it in the following manner: your_url/phpmyadmin
>
> So http://www.my_crazy_domain.com/phpmyadmin
>
> You'll need to enter your database username and password, but this
> will allow you to upload INSERT statements, perform routine MySQL
> tasks, as well as run SQL queries.
>
> Otherwise you need to request shell access from your ISP. Some ISPs
> only provide it when asked.
>
> Alnisa
> --
>.
> Alnisa  Allgood
> Executive Director
> Nonprofit Tech
> (ph) 415.337.7412  (fx) 415.337.7927
> (url)  http://www.nonprofit-techworld.org
> (url)  http://www.nonprofit-tech.org
> (url)  http://www.tech-library.org
>.
> Nonprofit Tech E-Update
> mailto:[EMAIL PROTECTED]
>.
> applying technology to transform
>.



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

2001-08-14 Thread Sean C. McCarthy

Hi,

For security use SSL and get the SSLSession ID instead. This cannot be
fooled since it is based in PK handshake and with simetric encryption.

Sean C. McCarthy
SCI, S.L. (www.sci-spain.com)

Christian Dechery wrote:
> 
> I have pages that uses session for security that looks something like this:
> 
>  session_start();
> 
> if( !isset($uid) )
> {
> include("include/auth.inc.php");
> auth_user();
> }
> 
> more code...
> ?>
> 
> so $uid tells me if the user is logged on or not...
> 
> but what if somebody calls the script directly from the address bar like
> this: http://server/script.php?uid=10
> 
> wouldn't this be a security problem?
> 
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

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




[PHP] session_questions("end")

2001-08-14 Thread Aniceto Lopez

thanks everybody helping to clear my mind with "sessions" affair.

many people asking about this so two possible problems:
coders don't read manuals carefully or the info there is not
so clear.

[ trying to help a little bit newbies like me, as soon as I finish this
  "navigation access for logged users" work I'll post the php files ]

aniceto lopez
http://www.lamundial.net
visit us, download and spread our music


-- 
PHP General Mailing List (http://www.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] bizarre problems with php_gd.dll and IIS

2001-08-14 Thread Michael Hall

I am running sites that use both PHP4 and ASP.

Both types of sites are running on IIS4.

I've just recently started using the php_gd.dll to resize images in PHP.  It
appears to run fine, until the gd library generates any sort of error.

As soon as that happens, all ASP pages on the entire server become
inaccessible.  HTML and PHP pages are still fine, as is everything else, but
ASP just hangs.  The only fix I've found is a complete reboot of the system.

Needless to say, I am finding this incredibly frustrating.  Has anyone seen
similar behavior to this before, and does anyone have a solution.

Thanks.

Michael Hall
Lead Web Developer / Database Engineer
Prairie Fire Internet Technologies
[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: SQL script ------ .any help

2001-08-14 Thread MindHunter

Try and find MYSQLFront - (Sorry I forgot where i downloaded it).  I find it
the best way to load sql files and data.

BK

<[EMAIL PROTECTED]> wrote in message
OF0DBB50F2.83686F02-ON65256AA8.0043300A@domain">news:OF0DBB50F2.83686F02-ON65256AA8.0043300A@domain...

Hi,


In MS SQL server,  table data can be uploaded on webserver by using the
Enterprise Manager by using the export option.

Is there any feature in Mysql to upload the data on webserver?
I understand that it can be done with the help of SQL script file. This is
the only way or some another way also is there?
Also, Pl. let me know:
1.   How to create SQL script file, with what extension it is to be saved?
The format?
2.   How to call/execute/run that file using php?

Can anyone send me sample SQL script file?

Thanks in advance??..

 Ajay K. Ratra
Ludhiana (INDIA)
[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] Instalation

2001-08-14 Thread Roman

Help me. I have RED HAT Linux 7.0 and I want install Apache web server with
php and mysql support. How ?

I have : apache_1.3.20.tar.gz
   php-4.0.6.tar.gz
   mysql-3.23.38.tar.gz

thanx


roman




-- 
PHP General Mailing List (http://www.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: The secrecy of PHP code

2001-08-14 Thread ~~~i LeoNid ~~

On Tue, 14 Aug 2001 12:06:01 +0200 impersonator of [EMAIL PROTECTED] (Soeren
Nielsen) planted &I saw in php.general:
>
>"Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
>022201c12498$79178ce0$[EMAIL PROTECTED]">news:022201c12498$79178ce0$[EMAIL PROTECTED]...
>> The problem still stays if you open php to system commands like `echo
>> /etc/passwd` or using system() 
>
>A problem is also that other web-programers can read your source code
>through PHP.
>An example from my page is this:
>My homepage is here: /hotel//WWW
>
>I can make a php-script that opens /hotels//WWW ,
>list the files, view them, steal code from others etc etc.
>
>Hope what I wrote gave some sort of meaning :-)
>
Well. Skliar's example do confirm once again, that programmers _can_ do
illegal things, like breaking copyrihgt, stealing the code etc. But is is
responsibilities of the servers administrators to configure the system in
such a way - even if it has multiply users (which is the case for most) -
so to not allow such (and alike) sample opening occur outside of
web-server structure. And only owner/user of the site has a passworded FTP
and other access to his data outside of web-server. 

Of course passwords could be compromised, but this is an another matter.
All in all - I strongly believe - that server stuff is carriing full
responsibility for the above matter. And only the should have root access.

PS: There are servers, to my surprise, (i rent one:() that set write group
attribute for files on download by default, and then refuse executing them
on this basis, so you have to re-set attribute manually. But this alone
still doesn't allow others to read .php as source (these files can only be
overwritten) 

>/Søren
>
>
Just my legal 2c i leonid.

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




[PHP] Session preserve

2001-08-14 Thread Alex Sofronie

Hello!

I am VERY new to php and i have a question (maybe it's pretty simple, but i
couldn't get it work):

I have a form page where i start a session. I cannot use php auth because
the server does not run php as a module. Supposing the client has cookies
disabled, please tell me how to propagate my session variables from the form
page to another (i found that &SID can be used in url to preserve session
id) but when i get to the other page (with header("Location:
http://theserver/result.php?SID=$SID";), nothing is there but the SID
variable.
As you could probably figured out, i cannot allow to see the information
entered in the form listed in url.

So, please help me!

thanks, Maxx
[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] Regular Expression Problem and PHP 4 (urgent)

2001-08-14 Thread Ross Nielsen

Here is the problem:

I'm retrieving a page of data from another process using PHP4 on Solaris
2.51
This data is placed in an array by line and simply returned to the browser
after formatting.

A sample line may look something like this:
blah blah blah blah blah  blah blah blah blah 

I think I need to use eregi_replace to make the line look like this:
blah blah blah blah blah  blah blah blah blah 

when it is returned to the browser.

Thanks in advance
Ross



-- 
PHP General Mailing List (http://www.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] bizarre problems with php_gd.dll and IIS

2001-08-14 Thread Phil Driscoll

Usually when PHP brings other IIS services down it is because you are running 
the ISAPI module version of PHP rather than the CGI. If this is the case, you 
need to switch to using php.exe.

Cheers

-- 
Phil Driscoll

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

2001-08-14 Thread Jean-Arthur Silve

check de readme or install files provided in each one !

At 15:39 14/08/01 +0200, Roman wrote:
>Help me. I have RED HAT Linux 7.0 and I want install Apache web server with
>php and mysql support. How ?
>
>I have : apache_1.3.20.tar.gz
>php-4.0.6.tar.gz
>mysql-3.23.38.tar.gz
>
>thanx
>
>
> roman
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.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 people's advice on a web registration system.

2001-08-14 Thread Jean-Arthur Silve

I think, when they register or log in the first time, ask to the user if 
they want you to remember them by placing a cookie..

Don't do it automaticaly ! Most people doesn't like that, and if they are 
not on their computer (web bar, or at the office...), they could not like 
this...


At 11:43 14/08/01 +0100, sunny AT wde wrote:
>Hi all!
>
>I'm trying to build a registration system for a community site that
>I'm building, and was wondering if people could give me advice or
>tell me about problems they've been having??
>
>I'm planning to let people register with a username and password
>(encrypted), and then make them login with that, and thus putting a
>cookie on their machine.
>
>If the cookie is detected the next time, they don't have to login,
>but if it is, then they do.
>
>Sounds pretty simple??
>
>Any advice?
>
>TIA!
>
>sunny
>
>
>Do You Yahoo!?
>Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
>or your free @yahoo.ie address at http://mail.yahoo.ie
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



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

2001-08-14 Thread Alnisa Allgood

At 4:05 PM +0200 8/14/01, _lallous wrote:
>Basically I have PHPMyAdmin...
>If I am to paste the 33,000+ lines SQL query the PHPMyAdmin would take more
>than 30secs to execute it which will make everything fail!
>Anyway, I solved it. Check the recent post in the same thread about SQL2PHP
>script.
>

You don't have to past, you just upload the file, as a SQL query, and 
select go. If the file still fails, just break it in two. 
fileinsert1.sql, fileinsert2.sql,  I've seen people insert over 
60,000 records this way no errors. I've personally never worked with 
more than 10,000 records at a time, but if time outs are the issue, 
then just break the file into smaller files.

Alnisa
-- 
   .
Alnisa  Allgood
Executive Director
Nonprofit Tech
(ph) 415.337.7412  (fx) 415.337.7927
(url)  http://www.nonprofit-techworld.org
(url)  http://www.nonprofit-tech.org
(url)  http://www.tech-library.org
   .
Nonprofit Tech E-Update
mailto:[EMAIL PROTECTED]
   .
applying technology to transform
   .

-- 
PHP General Mailing List (http://www.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: problems sorting an associative array...

2001-08-14 Thread Tim Ward

Use arsort(), and while you're in the manual (
http://www.php.net/manual/en/ref.array.php
  ) familiarise yourself with
all the other sort functions (and array functions in general). There's some
useful stuff there that you might not expect, and therefore not look for.

Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


--
From:  Ben Rigby [SMTP:[EMAIL PROTECTED]]
Sent:  13 August 2001 20:21
To:  [EMAIL PROTECTED]
Subject:  problems sorting an associative array...

hi.
any help would be mych appreciated!
i'm trying to sort an associative array, but when i do, the key is
converted into a number (it should be a string). ie:

$email_array["[EMAIL PROTECTED]"]=1;
$email_array["[EMAIL PROTECTED]"]=4;
$email_array["[EMAIL PROTECTED]"]=10;
rsort ($email_array);

i'm trying to sort by the value and then echo out the key and value
together, but when i do, the key is always a number, rather than the
email address that i wanted. any ideas??

thanks,
ben


-- 
PHP General Mailing List (http://www.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] Anyone using Interbase/Linux?

2001-08-14 Thread Todd Cary

I am having a problem starting Interbase 6.0 on RH 7.1.  Anyone using
Interbase on Red hat 7.1?

Todd

--
Todd Cary
Ariste Software
[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: mysql_query()

2001-08-14 Thread _lallous

I have PHPMyAdmin 2.21
I only see "GO" button, where can I upload my SQL file?

"Alnisa Allgood" <[EMAIL PROTECTED]> wrote in message
news:p05100309b79edae8263f@[63.202.15.82]...
> At 4:05 PM +0200 8/14/01, _lallous wrote:
> >Basically I have PHPMyAdmin...
> >If I am to paste the 33,000+ lines SQL query the PHPMyAdmin would take
more
> >than 30secs to execute it which will make everything fail!
> >Anyway, I solved it. Check the recent post in the same thread about
SQL2PHP
> >script.
> >
>
> You don't have to past, you just upload the file, as a SQL query, and
> select go. If the file still fails, just break it in two.
> fileinsert1.sql, fileinsert2.sql,  I've seen people insert over
> 60,000 records this way no errors. I've personally never worked with
> more than 10,000 records at a time, but if time outs are the issue,
> then just break the file into smaller files.
>
> Alnisa
> --
>.
> Alnisa  Allgood
> Executive Director
> Nonprofit Tech
> (ph) 415.337.7412  (fx) 415.337.7927
> (url)  http://www.nonprofit-techworld.org
> (url)  http://www.nonprofit-tech.org
> (url)  http://www.tech-library.org
>.
> Nonprofit Tech E-Update
> mailto:[EMAIL PROTECTED]
>.
> applying technology to transform
>.



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

2001-08-14 Thread Luis Brito (AYUDANTE)


 Hi  Roman, I think that the follow page can help you: http://
jips.kipelhouse.com/linux/apache/ssl/

   Try .
 







On Tue, 14 Aug 2001, Roman wrote:

> Help me. I have RED HAT Linux 7.0 and I want install Apache web server with
> php and mysql support. How ?
> 
> I have : apache_1.3.20.tar.gz
>  php-4.0.6.tar.gz
>  mysql-3.23.38.tar.gz
> 
> thanx
> 
> 
>   roman
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.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] unlink() and safe mode....

2001-08-14 Thread Jan De Luyck

Hello

I'm trying to do the following: allow a user to upload a file to a
directory, and also allow them to delete that very file again. The
uploading part works using http post, the file is saved with as UID
the UID of www/www (on this particular ISP). Now, when I try to delete
the filem I get a warning like this:

Warning:  SAFE MODE Restriction in effect.  The script whose uid is
97613 is not allowed to access ../images/2/file.jpg owned by uid 1001
in 

[PHP] Select

2001-08-14 Thread Jeremy Morano

Hi,

I'm having a problem with my Select statement. This is what i'm doing:



$connection = @mysql_connect("l", "c", "c") or die("Couldn't connect.");

$db = @mysql_select_db($db_name, $connection) or die("Couldn't select
database.");

$sql =" SELECT *
FROM table_1
";

$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");

$data=mysql_fetch_row($result);
$count=$data[0];

echo   $count;



Yet the only result I get is the first value of the first
column.


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

2001-08-14 Thread Jon Farmer

thats because mysql_fetch_row only returns one row.

to get all the rows do

while ($row = mysql_fetch_array($result) {

//processing code here

}


This will run through all the rows putting the colums into the array $row[]

Regards

Jon

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07968 524175 
PGP Key available, send blank email to [EMAIL PROTECTED]

-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 15:53
To: [EMAIL PROTECTED]
Subject: [PHP] Select


Hi,

I'm having a problem with my Select statement. This is what i'm doing:



$connection = @mysql_connect("l", "c", "c") or die("Couldn't connect.");

$db = @mysql_select_db($db_name, $connection) or die("Couldn't select
database.");

$sql =" SELECT *
FROM table_1
";

$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");

$data=mysql_fetch_row($result);
$count=$data[0];

echo   $count;



Yet the only result I get is the first value of the first
column.


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

2001-08-14 Thread Pavel Jartsev

Jeremy Morano wrote:
>  
> ...
> 
> $data=mysql_fetch_row($result);
> $count=$data[0];
> 
> echo   $count;
> 
> Yet the only result I get is the first value of the first
> column.
> 

Of course, and $data[1] is the first value of second column, etc.
If you want to get all result, use while-loop like this:



-- 
Pavel a.k.a. Papi

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

2001-08-14 Thread Jon Farmer

oops slight mistake i noticed there..

should be

thats because mysql_fetch_row only returns one row.

to get all the rows do

while ($row = mysql_fetch_array($result)) {

$firstcloumn = $row[0];

}


This will run through all the rows putting the colunms into the array $row[]

Regards

Jon

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]

-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 15:53
To: [EMAIL PROTECTED]
Subject: [PHP] Select


Hi,

I'm having a problem with my Select statement. This is what i'm doing:



$connection = @mysql_connect("l", "c", "c") or die("Couldn't connect.");

$db = @mysql_select_db($db_name, $connection) or die("Couldn't select
database.");

$sql =" SELECT *
FROM table_1
";

$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");

$data=mysql_fetch_row($result);
$count=$data[0];

echo   $count;



Yet the only result I get is the first value of the first
column.


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

2001-08-14 Thread Alfredeen, Johan

Jeremy,
  The reason you are only getting the first value is because you are only
retrieving the first value and assigning it to $data. You need to step
through the result and do something with it. For example,

if ($row = mysql_fetch_array($result)) {
do  {
$data1 = $row["mycolumn1"];
$data2 = $row["mycolumn2"];
} while ($row = mysql_fetch_array($result));
// more code
}

Alternatively, you could insert the values into a multidimensional array
inside the loop, so you don't have to hardcode the columns. It's up to you.

Johan Alfredeen
pongworld.com


-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 8:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Select


Hi,

I'm having a problem with my Select statement. This is what i'm doing:



$connection = @mysql_connect("l", "c", "c") or die("Couldn't connect.");

$db = @mysql_select_db($db_name, $connection) or die("Couldn't select
database.");

$sql =" SELECT *
FROM table_1
";

$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");

$data=mysql_fetch_row($result);
$count=$data[0];

echo   $count;



Yet the only result I get is the first value of the first
column.


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

2001-08-14 Thread Kevin L

The navigation system you are refering to is called breadcrumb navigation.
You can find implementations of this all over the place.  Try hotscripts.com
or google.com.

Kevin

-Original Message-
From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 12:35 AM
To: php-general
Subject: [PHP] "location bar"


Hi everyone,

I am somewhat new at the use of php and would appreciate if someone
could help me with a question re "location bar"

How can a location bar such as the sample below be generated in php to
be displayed in web pages ...

Location : home:/category:sub_1:/page title

Is there a specific setup needed in terms of the directory structure on
the server? Or will this only function with database type website?

Thanks in advance for any input and helpful ideas  ...
God bless you with His grace and peace
Wolfgang

Looking for Biblical information? COME AND SEE!
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de
-- Bookstore: http://www.worthy.net/BibelCenter/




-- 
PHP General Mailing List (http://www.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: to include php file into html page

2001-08-14 Thread Hugh Bothwell


"Jack" <[EMAIL PROTECTED]> wrote in message
021501c12508$abb1b200$[EMAIL PROTECTED]">news:021501c12508$abb1b200$[EMAIL PROTECTED]...
> Hi people
> I have tried to include php file into html page
> using the syntax below and it said syntax error
> at this part when the page is loaded. What is
> wrong with calling php file this way? Or is there
> any other way to call php file from html page?
>
> ***
> 
> 
> 

[PHP] could i get a clue?

2001-08-14 Thread marilyn manson

ok a basic question. perhaps I dont know enough about javascript but
anyway..

I want to call a php script from javascript. Anybody have any hints for me?
A link to a useful website would work as well. thanks mates

-student of computer science



-- 
PHP General Mailing List (http://www.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] Looking for link system

2001-08-14 Thread Thomas Deliduka

I'm looking for a yahoo-style link system done in PHP.

Anyone know if a good one exists out there and where I can find it?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.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] PHP or SSI -- What's faster?

2001-08-14 Thread Christopher Raymond




PHPers:

So if I was just going to need includes on a few pages, what's faster PHP or
SSI on Linux/Apache?


Christopher Raymond


-- 
PHP General Mailing List (http://www.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] Looking for link system

2001-08-14 Thread Alfredeen, Johan

Search 
http://sourceforge.net/ and

http://freshmeat.net/

Good luck,

Johan Alfredeen
PongWorld.com


-Original Message-
From: Thomas Deliduka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 9:20 AM
To: PHP List
Subject: [PHP] Looking for link system


I'm looking for a yahoo-style link system done in PHP.

Anyone know if a good one exists out there and where I can find it?

-- 

Thomas Deliduka
IT Manager
 -
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.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] could i get a clue?

2001-08-14 Thread Renze Munnik

On Tue, Aug 14, 2001 at 10:18:18AM -0500, marilyn manson wrote:
> ok a basic question. perhaps I dont know enough about javascript but
> anyway..
> 
> I want to call a php script from javascript. Anybody have any hints for me?
> A link to a useful website would work as well. thanks mates
> 
> -student of computer science

FAIK the only possibility is to redirect to the PHP script. Then
you'll get something like:

window.location.href="myscript.php";

-- 

* R&zE:

-- 
-- 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] Re: could i get a clue?

2001-08-14 Thread Hugh Bothwell


"Marilyn Manson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ok a basic question. perhaps I dont know enough about javascript but
> anyway..
>
> I want to call a php script from javascript.
> Anybody have any hints for me?

Well, to call a php script, you basically have to
request a new file.

If you just need to submit information, you can
preload a new 'image' with parameters.

If you need to get information back, you
pretty much have to devote a frame to it
somewhere - either a visible frame, where
the script actually returns an updated page,
or an invisible frame (ie one pixel high with
a 10-pixel top margin) in the same window,
or a new minimized window.





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

2001-08-14 Thread Kurth Bemis

At 11:02 AM 8/14/2001, Kevin L wrote:

I had a similar problem.jason murray gave me some ideas ;-)

just stick this in a function as I did and you'll be sailing.its easy 
to update, and Extremely flexible.

look at my code..

Location : http://www.usaexpress.net";>Home /  'Company',
 'services' => 'Services',
 'support' => 'Support',
 'mac' => 'Mac',
 'winnt' => 'Windows NT',
 'win9x' => 'Windows 9X',
 'unix' => 'Linux And Unix',
 'customers' => 'Customers',
 'noc' => 'NOC',
 'help' => 'USAexpress.net Help'
 );

 $linkdes = $dirs[$patharray[$dirsi]];

 $link = $link . "/$patharray[$dirsi]";

 if ($patharray[$dirsi] == $scriptname){
 $linkdes = $title;
 $slash = "";
 $linkhtml = "$linkdes$slash";
 if ($patharray[$dirsi] == "index.php"){
 $link = "";
 $linkdes = "";
 $slash = "";
 $linkhtml = "";
 }
 }else{
 $slash = " / ";
 $linkhtml = "$linkdes$slash";
 }
echo $linkhtml;
 }

?>


you can see it in action at www.usaexpress.net.  look at the "location" 
below our logo.

~kurth

>The navigation system you are refering to is called breadcrumb navigation.
>You can find implementations of this all over the place.  Try hotscripts.com
>or google.com.
>
>Kevin
>
>-Original Message-
>From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 14, 2001 12:35 AM
>To: php-general
>Subject: [PHP] "location bar"
>
>
>Hi everyone,
>
>I am somewhat new at the use of php and would appreciate if someone
>could help me with a question re "location bar"
>
>How can a location bar such as the sample below be generated in php to
>be displayed in web pages ...
>
> Location : home:/category:sub_1:/page title
>
>Is there a specific setup needed in terms of the directory structure on
>the server? Or will this only function with database type website?
>
>Thanks in advance for any input and helpful ideas  ...
>God bless you with His grace and peace
>Wolfgang
>
>Looking for Biblical information? COME AND SEE!
>-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
>-- BibelCenter: http://www.bibelcenter.de
>-- Bookstore: http://www.worthy.net/BibelCenter/
>
>
>
>
>--
>PHP General Mailing List (http://www.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: mysql_query()

2001-08-14 Thread Alnisa Allgood

At 5:25 PM +0200 8/14/01, _lallous wrote:
>I have PHPMyAdmin 2.21
>I only see "GO" button, where can I upload my SQL file?
>

Well my ISP uses PHPMyAdmin 2.10, which I can't imagine would be that 
different from 2.21. Basically, if I load, and click on the database 
name in the left top corner:

Home
+ databasename

To the right, the window display will list all my databases, action 
options and number of records. Under that area is a text box where I 
can enter SELECT statements, or upload queries as text files. The 
screen generally looks like:

PHPMyAdmin Window (Right Pane Only)

table   Action  Records
.
tb1 Browse  Select  Insert  Properties   Drop   Empty150
tb2 Browse  Select  Insert  Properties   Drop   Empty2456

.
Run SQL query/queries on database"databasename" [Documentation]:

.
:   :
:   :
:   text box:
:   :
.
or Location of the textfile:
.
:   file upload :  Browse
.
Go
...

The Go button will perform either information from the text box, or 
an indicated file.

I believe it's a typical install of PHPMyAdmin, but I could be wrong.

Alnisa
-- 
   .
Alnisa  Allgood
Executive Director
Nonprofit Tech
(ph) 415.337.7412  (fx) 415.337.7927
(url)  http://www.nonprofit-techworld.org
(url)  http://www.nonprofit-tech.org
(url)  http://www.tech-library.org
   .
Nonprofit Tech E-Update
mailto:[EMAIL PROTECTED]
   .
applying technology to transform
   .

-- 
PHP General Mailing List (http://www.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: Put value directly into form?

2001-08-14 Thread Phil Latio

> http://www.yorkshire-search.co.uk/links/add.php3

Right, I seem to have not made myself too clear so I'll try again.

Originally, the page "add.php3" was using a plain HTML template called
"add_form.html" which consisted of a simple form. If you click on the link
above and have a look at the page, everything below Add Link was how it
started off.  In the code below, it's everything after the  tag. Users
would just complete the form and press submit.

However, I decided instead of typing in certain fields, I wanted to autofill
the boxes so I found a PHP4 script which would grab meta-tags and embedded
it into the template.  All PHP scripts have to be within  tags as
defined in a different part of the search engine script.

My problem is that whatever method I have tried, I have not managed autofil
the forms text boxes with values from the script in a one step process.

I first tried putting the HTML form in the script but this brought parsing
errors. Next I tried keeping the form in the HTML but trying to use
value= statement. This again brought parsing errors or the code
simply appeared in the box.

Hope that makes a bit more sense.





// Include the function so you can use it later in the page
require('metaengine.php');

// Call the MetaEngine function and assign the return value to an array
$metaInfo = MetaEngine($url);

// Array index is not numbers but names, such as:
// $metaInfo[title] is the title of the page
// $metaInfo[description] is the description of the page
// $metaInfo[keywords] is the keywords of the page

echo "



Sample



Enter URL:   1. Press the submit button and it will grab meta tags of
website.









  
  2.
If complete URL displays in box below, press the above
button.

  










";




  Add Link

  

  
<%error_msg%>
  
  
  

   

  Url
  



  Title
  


  Description
  <%description%>


  Category
  <%category%>


  Contact Name
  


  Email
  


  Bid
  
  (optional)
  



   
  Once you are happy with your entries, press this
button.

  
  


  




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

2001-08-14 Thread Heiko Maiwald

Hi,

I need some help in compiling SNMP functions with PHP 4.06 on Solaris 2.6.
What I did so far I downloaded UCD SNMP package and installed it.
I compiled php with '--with-snmp=shared' + '--enable-ucd-snmp-hack'
and installed everything without any errors.
When I do a phpconfig on that installation I can see this configure option.
Everything textbook.
BUT when I try to use any of the snmp function calls I get an error message
saying this is an undefined function.

Any ideas, please!!

Thanks
Heiko


-- 
PHP General Mailing List (http://www.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] nav buttons not working correctly

2001-08-14 Thread chip . wiegand

I have some existing code that I want to modify to limit the display
results to 5 rows and
add nav buttons to display the next set of 5, etc. You all know what I am
looking for.
I have a book- MySQL/PHP Database Applications by Greenspan & Bulger -
which has
an example that should work, but isn't. I have inserted the function from
the book and can
get 5 rows on the first page, and the next button, but the second page
doesn't display any
rows. Pasted below is the code for my page, the function in question is
down aways. I am
just learning this stuff, so don't be too hard on me about the existin
code, it works fine with-
out the nav function. I am sure there are probably more efficient ways to
write this, but for
now I just want to get the nav function to work properly.
(some lines will undoubtedly wrap and make it all look real ugly)
-


  

Dealer Bulletins, Simrad, Inc

 body {
  background-color: #b5e4f9;
 }

  

  
Simrad Dealer Bulletins


You can sort the bulletins in the following order:
  (This will display all bulletins in one long page.)
  OR click on the bulletin subject line below (much quicker)



  
Bulletin Date (oldest to newest)
  

  
Bulletin Date (newest to 
oldest)
  

  
Select bulletins from Brian Vlad - Plotter and
Radar Products
  

  
Select bulletins from Tom Burke - Autopilots and
Instrumentation
  

  
Select bulletins from Mike Hillers -
Fisheries
  


OR

  
  Enter a word to search for: 
  
  (You must press the search button to complete the 
search)
  
  
  
  



  \n\n\n\n");
 print("\n\n\n");
 printf("%s\n\n\n\n", 
$row["bulletin_number"]);
 print("\n\n\nDealer 
Bulletin");
 printf("Date: %s\n", $row["bulletin_date"]);
 printf("\nNumber: %s\n", $row["bulletin_number"]);
 printf("\nSubject: %s\n", 
$row["bulletin_subject"]);
 printf("\nFrom: %s%s\n", 
$row["bulletin_from1"], $row["bulletin_from2"]);
 print("\n\n");
   print("SIMRAD\n");
 print("\n   A 
KONGSBERG Company\n\n");
 print("Simrad Inc.\n");
 print("19210-33rd Avenue West, Suite A\n");
 print("Lynnwood, WA 98036\n");
 print("U.S.A.\n");
 print("Telephone: 1-425-778-8821\n");
 print("Telefax: 1-425-771-7211\n");
 print("\n\n\n");
 printf("\n%s\n", $row["body"]);
 print("\n\n");
 }
else:
printf("* %s   %s   %s", $row
["bulletin_subject"], $row["bulletin_date"], $row["bulletin_from1"]);
endif;
   }
function nav($offset=0,$this_script="bulletin_sorter.php")
  {
  global $php_self;
  $page_limit = 5;
  if (empty($this_script)) { $this_script = $php_self; }
  if (empty($offset)) { $offset = 0; }
  $result3 = mysql_query("select count(*) from dbulletins");
  list($total_rows) = mysql_fetch_array($result3);
  print "\n";
 if ($offset > 0 )
 {
 print "<> 
  ";
 }
  print "\n";
  }

  ?>

  
  

--
Thanks for any help you all can provide,

Chip Wiegand
Computer Services
www.simradusa.com
[EMAIL PROTECTED]
Simrad, Inc
Lynnwood, WA
425-712-1138

"There is no reason anyone would want a computer in their home."
 --Ken Olson, president, chairman and founder of Digital Equipment Corp.,
1977
  (-- Then why do I have nine? Somebody help me!)


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

2001-08-14 Thread Steve Brett

i think pgp has a quick install text file that is superb.
sorta step-by-step simple and complicated.

Steve
"Jean-Arthur Silve" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
check de readme or install files provided in each one !

At 15:39 14/08/01 +0200, Roman wrote:
>Help me. I have RED HAT Linux 7.0 and I want install Apache web server with
>php and mysql support. How ?
>
>I have : apache_1.3.20.tar.gz
>php-4.0.6.tar.gz
>mysql-3.23.38.tar.gz
>
>thanx
>
>
> roman
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr





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

2001-08-14 Thread Robert Covell

I had the same problem and never got it working on Linux.  Posted a very
similar question and got one response from someone that got it working on
FreeBSD but that was it.

Sincerely,

Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 10:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SNMP and PHP


Hi,

I need some help in compiling SNMP functions with PHP 4.06 on Solaris 2.6.
What I did so far I downloaded UCD SNMP package and installed it.
I compiled php with '--with-snmp=shared' + '--enable-ucd-snmp-hack'
and installed everything without any errors.
When I do a phpconfig on that installation I can see this configure option.
Everything textbook.
BUT when I try to use any of the snmp function calls I get an error message
saying this is an undefined function.

Any ideas, please!!

Thanks
Heiko


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




[PHP] How dynamically create objects

2001-08-14 Thread Bret R. Zaun

Hello,
I would like to create an object from a db result like MySQL does in
mysql_fetch_object
How can I create an object with members which names are set at runtime ?

Regards
Bret



-- 
PHP General Mailing List (http://www.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: session security issue

2001-08-14 Thread Steve Brett

what about registering a var called loggedin with the session and then
testing on each script to see if it's set to 1 or something ?

then base the access on that ? that's what i use and then register uid with
the session as well so you can use it througout your site ...

ok you've got me worried now, are there any problems with security doing it
that way 

Steve

"Christian Dechery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have pages that uses session for security that looks something like
this:
>
>  session_start();
>
> if( !isset($uid) )
> {
> include("include/auth.inc.php");
> auth_user();
> }
>
> more code...
> ?>
>
> so $uid tells me if the user is logged on or not...
>
> but what if somebody calls the script directly from the address bar like
> this: http://server/script.php?uid=10
>
> wouldn't this be a security problem?
> 
>  Christian Dechery (lemming)
>  http://www.tanamesa.com.br
>  Gaita-L Owner / Web Developer
>



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




[PHP] smart table construction from array

2001-08-14 Thread Peter Torraca

Hello All --

I have a csv file that I need to parse into a table.  Getting the
file open and into stuffed into an array is not really a problem, but
I want PHP to adapt the table structure to the data on the fly.  For
example, some data (from the hgitner.com stamp buying list):

26,used,3¢ Washington Dull Red type II,$1.00 ,-,-
"Fine + OG Hinged 232-40, 285-90, 294-99, 323-7 wanted. Call or ship!",
534A,single,"2¢ Washington, type VI (imperf, offset)",$20.00 ,$12.00 ,$6.00
534B,single,"2¢ Washington, type Va (imperf, offset)",Needed Urgently!,,


I can easily get line 1 and 3 can easily into:

263¢ Washington Dull Red type
II$1.00--

but line 2 and 4 are my problem.  I want PHP to take line 2 and see
that there is only one cell of data in the  and four blanks in the
array and thus create:

Fine + OG Hinged 232-40, 285-90, 294-99, 323-7 wanted.
Call or ship!

PHP should see that line 4 ends in two blanks and thus should output:

34Bsingle 2¢ Washington, type Va (imperf,
offset) Needed Urgently!"

but I'm having some real trouble figuring out the logic/control
structures to do this.  If there is a class out there that does this,
I'd be happy to hear of it.  But I suspect my inexperience is the
real problem: I'm really hoping that someone can explain the logic of
how this might be done.

thanks in advance.

peter

--
Peter Torraca
[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: variable $PATH_INFO

2001-08-14 Thread Hidulf

$PATH_INFO is server variable, that appear on IIS but not apache. maybe you
can try $REQUEST_URI, that return URL with query string there. or you can
check all the server variable with phpinfo(). you can put this into the web
server and run it on your browser.



--
Hidulf
http://www.hidulf.com
"Lolodev News Php" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> why can i read PATH_INFO server variable with apache under windows server
?
>
> with IIS 5 it's OK
>
> how can i ?
>
>  -> Warning: Undefined variable: PATH_INFO in
> e:\sitephp\php_edit\htdocs\var.php on line 3
>
>
>
>



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

2001-08-14 Thread Jerry Evans

I have the current 4.0.6 tarball. Has anyone built this out of the box using
VC++ 6 ?

Jerry.



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

2001-08-14 Thread Jerry Evans

Has anyone got this to work correctly with 4.0.6 ? If so I'd really
appreciate knowing the configuration etc.

Thanks

Jerry.



-- 
PHP General Mailing List (http://www.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] Using Sockets to connect to an SSL site?

2001-08-14 Thread Brandon Orther

Hello,
 
Does anyone know how I would go about connecting to an SSL site using
sockets?  Or could I need to go in another direction?
Thank you,

Brandon
 
 



Re[2]: [PHP] printing

2001-08-14 Thread Fernando Avila

Hello Matthew,

Friday, August 10, 2001, 8:55:24 PM, you wrote:


ML> If you run windows, then see:

ML> http://www.php.net/manual/en/ref.printer.php


ML> -Original Message-
ML> From: Fernando Avila [mailto:[EMAIL PROTECTED]] 
ML> Sent: Friday, August 10, 2001 10:18 AM
ML> To: [EMAIL PROTECTED]
ML> Subject: [PHP] printing


ML> Hello php-general,

ML>   I was thinking about my problem about printing reports
ML>   CAn i do something like connecting a printer to the server where php
ML>   and mysql runs.. And when someone send the comand to print the quote
ML>   get printed in the server's printer?
ML>   if it's posible maybe i will be albe to print a good quote


And if i run linux?
because I have a redhat 6.2 server


Thanks

-- 
Best regards,
 Fernandomailto:[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] insertion question

2001-08-14 Thread Pétur Björn Thorsteinsson

I have to store a whole lot of text files into a database, each one
containing 3 columns containing numbers and about 2500 lines. I was
wondering if anyone knew which would be the best way to store these files,
having one big table with each row containing the contents of the files, or
making one table for each file and inserting each line of the file into its
respective row in the database. The database will probably become pretty
big and I'm looking for the option that won't slow it down too much.

-petur


-- 
PHP General Mailing List (http://www.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] Code works fine on Apache, but not on PWS.

2001-08-14 Thread John Meyer

Instead of posting the code, I'll give you the link:

http://www.phpbuilder.com/columns/bealers2904.php3?page=1


Short and long of it is the subject line.


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

2001-08-14 Thread Joe Rice

hi,

i have two arrays that i would like
to find the intersection and at
this intersection alter the value.

$invalid = array("1","3","9");
$questions = array("1","2","3","4","5","6","7","8","9");

and i would like the result to be an new array that looks
like this:

$new_questions = array("1",
   "2",
   "3",
   "4","5","6","7","8",
   "4");

thank you in advance,
joe

-- 
PHP General Mailing List (http://www.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] popen returns true whether script exists or not?

2001-08-14 Thread Tom Hodder



Hi,

I'm trying to popen a cgi script that was designed to be open via a SSI
include, but cannot because of passing variable restrictions.

I'm popening a cgi script and it is returning a process pointer regardless
of whether the string passed to it points to anything.
Is this the expected response?



this returns a process pointer even though bannerz.cgi doesn't exist

I then need to read the results of the cgi script and dump them to the
screen like so;



but this is not functioning, does anyone have any ideas?

Regards

Tom Hodder


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




[PHP] PHP to embed font

2001-08-14 Thread admin

Is there anyway to use PHP to embed font types into web pages to the person 
visiting the page sees what you want them to even if they dont have the 
same fonts on their computer. 
Pat



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

2001-08-14 Thread admin

I am new to PHP and am confused on HTTP authentications. I have read that 
section in the manual and still have questions. Where does PHP look to see 
if the user is valid or if the passward matches the user. How do you use 
PHP to set up user registration so users can input their information for 
authentication. Can anyone point me in the right direction to read more on 
this and help clear my confusion. 
Pat



-- 
PHP General Mailing List (http://www.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 to embed font

2001-08-14 Thread Tyler Longren

I don't believe so.  I think you'd just have to let them dl the font.

Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com



On Tue, 14 Aug 2001 14:22:06 -0400
admin <[EMAIL PROTECTED]> wrote:

> Is there anyway to use PHP to embed font types into web pages to the
> person 
> visiting the page sees what you want them to even if they dont have the 
> same fonts on their computer. 
> Pat
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.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] smart table construction from array

2001-08-14 Thread Sheridan Saint-Michel

This is the way I would do it: split your CSV into an array.
Then traverse the array, saving any data and incrementing
a counter for any empty element.  Finally set up some
conditional statements with the counter to output the table
the way you want.  Still with me?  Here is some sample
code I threw together.  You may have to play with it to
get it working the way you want... but it should at least give
you a starting point.


\n";
$colspan=0;
for($j=0; $j < count($linearr); $j++) {
  if ($linearr[$j] == "") {
$colspan++;
  } else {
$outarr[] = chop($linearr[$j]);
  }
}

if ($colspan == 0) {
  echo "$outarr[0]\n";
} else {
  if(count($outarr) == 0)
echo "\n";
  else
echo "$outarr[0]\n";
}
for($j=1; $j < count($outarr); $j++) {
  echo "$outarr[$j]\n";
}
echo "\n";
  }
?>



Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: Peter Torraca <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 11:02 AM
Subject: [PHP] smart table construction from array


> Hello All --
>
> I have a csv file that I need to parse into a table.  Getting the
> file open and into stuffed into an array is not really a problem, but
> I want PHP to adapt the table structure to the data on the fly.  For
> example, some data (from the hgitner.com stamp buying list):
>
> 26,used,3¢ Washington Dull Red type II,$1.00 ,-,-
> "Fine + OG Hinged 232-40, 285-90, 294-99, 323-7 wanted. Call or
ship!",
> 534A,single,"2¢ Washington, type VI (imperf, offset)",$20.00 ,$12.00
,$6.00
> 534B,single,"2¢ Washington, type Va (imperf, offset)",Needed Urgently!,,
>
>
> I can easily get line 1 and 3 can easily into:
>
> 263¢ Washington Dull Red type
> II$1.00--
>
> but line 2 and 4 are my problem.  I want PHP to take line 2 and see
> that there is only one cell of data in the  and four blanks in the
> array and thus create:
>
> Fine + OG Hinged 232-40, 285-90, 294-99, 323-7 wanted.
> Call or ship!
>
> PHP should see that line 4 ends in two blanks and thus should output:
>
> 34Bsingle 2¢ Washington, type Va (imperf,
> offset) Needed Urgently!"
>
> but I'm having some real trouble figuring out the logic/control
> structures to do this.  If there is a class out there that does this,
> I'd be happy to hear of it.  But I suspect my inexperience is the
> real problem: I'm really hoping that someone can explain the logic of
> how this might be done.
>
> thanks in advance.
>
> peter
>
> --
> Peter Torraca
> [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: inserting a remote html file

2001-08-14 Thread Boaz Amit


<[EMAIL PROTECTED]> wrote:
>hi all,

>I cant seem to get my mail function to work. OK so i am a noob, that might
>have something to do with it.  I am using a script I found called the HTML
>Mime Mail Class, which does everything i need except actually send the mail.
>I am guessing that there is some config problems, but i am not sure.  Even
>when i try and use the mail() function i get a server error.  So i guess
>that my problem is that my return address is messed up.  Does it have to  be
>my own domain, or the domain that the server is running on?  Can i set the
>return address as a hotmail account, or do i need my own server mail
>program?  And is there anything that i need to config in the php.ini file?
>
>Thanks for helping,
>
>T P K Cannell

This article by the most helpful Julie Meloni answers your question: 
http://www.zdnet.com/devhead/stories/articles/0,4413,2802264,00.html


---
 Regards,
  Boaz Amit

-- 
PHP General Mailing List (http://www.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: PHP to embed font

2001-08-14 Thread Inércia Sensorial

  Here's how, but it does not use PHP:

http://cnet.com/webbuilding/pages/Authoring/Typography/ss01.html

--


  Julio Nobrega.

2B||!BB - That's the question.

"Admin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there anyway to use PHP to embed font types into web pages to the
person
> visiting the page sees what you want them to even if they dont have the
> same fonts on their computer.
> Pat
>
>



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

2001-08-14 Thread Boaz Amit


<[EMAIL PROTECTED]> wrote:
>hi all,

>I cant seem to get my mail function to work. OK so i am a noob, that might
>have something to do with it.  I am using a script I found called the HTML
>Mime Mail Class, which does everything i need except actually send the mail.
>I am guessing that there is some config problems, but i am not sure.  Even
>when i try and use the mail() function i get a server error.  So i guess
>that my problem is that my return address is messed up.  Does it have to  be
>my own domain, or the domain that the server is running on?  Can i set the
>return address as a hotmail account, or do i need my own server mail
>program?  And is there anything that i need to config in the php.ini file?
>
>Thanks for helping,
>
>T P K Cannell

This article by the most helpful Julie Meloni answers your question: 
http://www.zdnet.com/devhead/stories/articles/0,4413,2802264,00.html


---
 Regards,
  Boaz Amit

-- 
PHP General Mailing List (http://www.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] saving the client's file upload location

2001-08-14 Thread Bob

i have people upload a file from their computer but if my form comes
back with an error then they have to go select their file location
again.  is there any way of saving that location so they don't have to
pick it again??? >   upload file [ c:/temp/picture.jpg ]




_
Do You Yahoo!?
Get your free @yahoo.com address at http://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]




Re: [PHP] Help me please.(Running stand-alone php)

2001-08-14 Thread miguel valero

Tina,
Thank you for the help Tina  :-)) 
I getting a good experience working with PHP  and HTML
(forms). Because of my full time job and personal
commitments, I haven't been able to spend  as much of
my free time as I could in my project (Free Gallery
Management System). After October I hope to dedicate
more of my free time on this project.

The project will be open source and public domain. It
will be developed with the help of PHP, a and
PostgreSQL. More information  about the project can be
seen at the following web site:
   
http://www.columbia.edu/~mv169/private/gallery_f.html 
 Login Name:  guest
 Password:guest
 
If you have any comments, suggestions or if you want
to participate, e-mail me at [EMAIL PROTECTED] Your
input is very valuable to me.
 
Adios, miguel
--- Tina <[EMAIL PROTECTED]> wrote:
> The solution:
> 
> You have to configure php with --enable-discard-path
> as in:
> ./configure --without-apache --enable-discard-path
> before you compile it.
> 
> This is documented here:
> http://www.php.net/manual/en/security.php
> in the section:
> Case 4: PHP parser outside of web tree
> 
> Now when you do 
> the #!/path/to/php will not show at the top of the
> page.
> 
> (The problem was indeed not local to windows).
> 
> Tina.
> 


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

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




[PHP] Re: saving the client's file upload location

2001-08-14 Thread Inércia Sensorial

  On the form processing page, register the variable on a session. And put
session_start(); on the form's page, so the value is remembered and echo()ed
on the field.

--


  Julio Nobrega.

2B||!BB - That's the question.

"Bob" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i have people upload a file from their computer but if my form comes
> back with an error then they have to go select their file location
> again.  is there any way of saving that location so they don't have to
> pick it again??? >   upload file [ c:/temp/picture.jpg ]
>
> 
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://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] PHP Shopping Carts ??

2001-08-14 Thread Christopher Raymond




Could anyone point me in the direction of some PHP shopping cart scripts?


Thanks,

Christopher Raymond


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

2001-08-14 Thread Chris Worth

Michael,

I've got a program set up like you describe.

the problem is I've noticed that my variables are NOT stable

this is it in a nutshell

1) show 3 options with radio buttons for each

2) based on above  query a database and show a list of the records
(now it just dawned on my that I've been doing this with URL's and that might be the 
problem)

3) show all of the fields in the record to edit as necessary.

4) update the table

1,2,3 work fine.  I save the id number of the record.  however, it isn't persistent.  
IOW, 
suddenly the variable is set to null.

am I just not understanding how php scripts work?

or is my usage of URL's in appropriate.  I'm new to the world of php.

thanks 

chris




On Mon, 30 Jul 2001 17:14:53 -0700, Michael J. Seely wrote:

>I do this sort of thing all the time.  The format I use typically 
>follows this logic.
>
>The PHP file has four IF-ELSEIF-ELSE sections.
>pg=1 or blank  is the initial form
>pg=2 is the error check looking at input values.
>   If it passes, pg is set to 3.
>   If not, set to 1. The advantage of this is the original input 
>values can be saved and displayed with Value= sequences so 
>the use doesn't have to input everything if they make a mistake.  The 
>error can be highlighted with a color or text!!!.
>pg=3 shows a visual verification page. The user can scan the input 
>and use the back button to make changes or click OK to proceed.
>pg=4 is the action step - send an e-mail including the input, post 
>input to a database or ???
>
>The sections are written in this order - 2, 4, 3, 1.
>
>IF($pg="2")
>   { do the error checking
>   e.g., if fields A, B, and C are not blank = OK
>   e.g., if a value is > 100 = not OK
>  IF OK, $pg=3;  IF not OK, $pg=1;
>   }
>ELSEIF($pg="4")
>   { do the action stuff.
>   }
>ELSEIF($pg="3")
>   { show an html page in a nice format showing the input values
>  IF they like it, the form submit button sets pg=4, and 
>uses hidden fields to copy all of the input values to pg 4.
>   }
>ELSE
>   { Show the initial input form.
>   use 
>   }
>
>
>The form can include error check and input tags like this:
>
> { ECHO"Required."; } ?>
>?>
>
>"CHECKED"; } ?> >6
>"CHECKED"; } ?> >7
>
>and so on.  Hope this is useful...
>
>
>
>>Im trying to introduce some logic into a form.I am unsing $PHP_SELF 
>>as the target.
>>
>>
>>I have a text area that the user inputs their age.  What I want is 
>>that if the field is blank, to stop the script and send the user 
>>back to fill in their age.  My problem now is that if I go to the 
>>blank application form, The script interprets the form as being 
>>blank and spits out the error.  Ideal scenario, a blank form is 
>>presented to the user, and when the form is submitted, do the logic 
>>check and act accordingly.  Is it possible using $PHP_SELF as the 
>>target, or do I have to use 2 files: a form 'front end' with the php 
>>logic in the 'backend'??
>>
>>
>>if ($Age = " ") {
>> echo "Please go back and enter your age."; } exit();
>>
>>Thanks
>>Gerard
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>-- 
>
>_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>Michael Seely  408-777-9949
>
>
>
>
> 
>
>-- 
>PHP General Mailing List (http://www.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] Classes and performance bottlenecks

2001-08-14 Thread Christian Reiniger

On Tuesday 14 August 2001 08:37, Maxim Maletsky wrote:
> See, there's also a time needed for the server to read the included
> file - an extra effort for your hard disk.
> If you'd put everything in one file it would work for you faster, but,
> of course, less portable.

I disagree. Aftre the first access the data will be in the filesystem 
cache, so the reading is only a series of memcpy() (or perhaps even less).

Parsing time should be the problem. Look into Zend Cache and APC cache 
(apc.communityconnect.com|org)

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

REALITY.SYS corrupted ... reboot Universe [Y,n]?

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

2001-08-14 Thread DrWebPat

In a message dated 8/14/01 3:23:54 PM Eastern Daylight Time, 
[EMAIL PROTECTED] writes:


> Could anyone point me in the direction of some PHP shopping cart scripts?
> 
> 
> Thanks,
> 
> Christopher Raymond
> 

I'm sure they have one:
http://hotscripts.com/PHP/Scripts_and_Programs/

Pat



  1   2   >