Re: [PHP] Please help

2002-03-26 Thread JSheble


I realize that this is a newbie list, but isn't this just a tad bit 
ridiculous?  It's not even a PHP question really, it's a SQL 
question.  Here's a question...  I need a form that accepts a name.  Please 
write the code for me so I don't have to bother looking anything up, 
reading anything, and least of all, learn anything...

At 11:57 PM 3/26/2002 +0800, Denis L. Menezes wrote:
>I am a newbie and need some help.
>
>I have a form with three textboxes named "firstname", "lastname" and
>"description"
>
>My table is called "addressbook"
>
>Please tell me the INSERT statement. Also please tell me whether I should
>include the insert statement with a php tag.
>
>Thanks
>Denis
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Please help

2002-03-26 Thread Miguel Cruz

On Tue, 26 Mar 2002, Denis L. Menezes wrote:
> I am a newbie and need some help.
> 
> I have a form with three textboxes named "firstname", "lastname" and
> "description"
> 
> My table is called "addressbook"
> 
> Please tell me the INSERT statement. Also please tell me whether I should
> include the insert statement with a php tag.

Assuming that you're using MySQL, you have already opened the database
connection, and that you have magic_quotes_gpc set to on (ugh, but check
with print ini_get('magic_quotes_gpc') ), it would look something like
this:

$sql = "insert into addressbook (firstname, lastname, description)
   values ('{$_REQUEST['firstname']}', '{$_REQUEST['lastname']}',
   '{$_REQUEST['description']}')";
$st = mysql_query($sql);

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Please help

2002-03-26 Thread SHEETS,JASON (Non-HP-Boise,ex1)

Hi Denis,

You need to give some more information, what database are you using, how is
your database table layed out?  If you are using MySQL you need to use the
mysql_ functions, you can find out more about these in the PHP manual.

If you need some help getting started with PHP there are some links to
tutorials at http://www.php.net.  You may look on amazon.com or bn.com for
some PHP books, I found PHP and MySQL Web Development helpful myself but
there are a wealth of books available.

Jason

-Original Message-
From: Denis L. Menezes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 8:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Please help


I am a newbie and need some help.

I have a form with three textboxes named "firstname", "lastname" and
"description"

My table is called "addressbook"

Please tell me the INSERT statement. Also please tell me whether I should
include the insert statement with a php tag.

Thanks
Denis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Please Help

2002-04-16 Thread Steve Cayford

Check out the bottom of each message...

-Steve

On Tuesday, April 16, 2002, at 10:43  AM, Omland Christopher m wrote:

> Can anyone tell me how to unsubscribe. There is just a bit too much 
> volume
> for me.
> Thanks.
> -Chris
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] please help!!

2002-05-25 Thread Olexandr Vynnychenko

Hello Jolly,

Saturday, May 25, 2002, 9:13:02 AM, you wrote:

JN> Hi Hi,

JN> php + apache + win2000
JN> or 
JN> php + IIS + win2000
JN> I don't know why my setting do not allow me to POST or GET variable which submit 
in html 
JN> Please help!!!

JN> Jolly

Let us read your html and php code. I've never had such problems.

-- 
Best regards,
 Olexandrmailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] please help!!

2002-05-25 Thread 1LT John W. Holmes

> Saturday, May 25, 2002, 9:13:02 AM, you wrote:
>
> JN> Hi Hi,
>
> JN> php + apache + win2000
> JN> or
> JN> php + IIS + win2000
> JN> I don't know why my setting do not allow me to POST or GET variable
which submit in html 
> JN> Please help!!!
>
> JN> Jolly

Turn on register_globals or use the $_GET[], $_POST[], etc arrays.

If you don't know what I'm talking about, read the release notes on the
program you just installed (php).

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Please Help!

2001-04-02 Thread KPortsmout

In a message dated 03/04/2001 03:52:47 GMT Daylight Time, 
[EMAIL PROTECTED] writes:

<< include "class.FastTemplate.php";
  >>

Just for a start, I didn`t notice anything else in the code...

include ("class.FastTemplate.php");

Ade

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

2001-04-02 Thread Steve Werby

"E K L" <[EMAIL PROTECTED]> wrote:
> $tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl");

According to the error, the path above is incorrect.  Looking at it, my
guess is that the path might really be:

"/usr/local/apache/htdocs/toplevel.tpl"

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.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] Please Help!

2001-04-02 Thread Samantha Savvakis

I'd check where "class.FastTemplate.php" is located in relation to the
current file you are running. Fully qualify the path for the "include"
statement.

Also, what are the permissions on this file? Are they readable by the apache
user?


> -Original Message-
> From: E K L [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 3 April 2001 12:52
> To: [EMAIL PROTECTED]
> Subject: [PHP] Please Help!
>
>
> Hi Experts,
>
> It seems to me that, the topic is not attractive or challenging
> that makes
> nobody come to problem. But I really hope those experts or experiance ppl
> can give me ur hands. Please Help!
>
> I'm planning to build a template but failed to do so
>
> Here is the code:
>
> 
> include "class.FastTemplate.php";
>
> $tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl");
>
> $tpl->define(array("toplevel" => "toplevel.tpl"));
>
> $tpl->assign("title", "R U THEre");
> $tpl->assign("content", "try this out");
>
> $tpl->parse("main", "toplevel");
>
> $tpl->FastPrint();
>
> ?>
>
> error:
> Warning: Failed opening 'class.FastTemplate.php' for inclusion
> (include_path='.:/usr/local/lib/php') in
> /usr/local/apache/htdocs/tem.php on
> line 3
>
> Fatal error: Cannot instantiate non-existent class: fasttemplate in
> /usr/local/apache/htdocs/tem.php on line 5
>
> Please consult, thanks...
>
> E K
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Please help

2001-05-10 Thread Johnson, Kirk

I think this question was answered by Stewart Taylor earlier today. Here is
his response:

"
This error occurrs when you start a session that recreates an object
variable but does not know the class definition for it.
You need to make sure you include the class source before you start the
session.
"

Kirk

> -Original Message-
> From: Rodrigo Reis da Rocha [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 11:44 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Please help
> 
> 
> Hi,
> I have a problem with the session variables.
> 
>  
> 
> class Autorizacao
> {
>  
> //Atributos---
> 
>  var $nome_usuario;
>  var $webmaster_mail;
>  var $acao;
>  var $url_sistema;
> 
>  
> //Métodos-
> 
>  function Autorizacao(){
>   $this->nome_usuario = "vazio";
>   $this->webmaster_mail = "[EMAIL PROTECTED]";
>   $this->acao = "inicio";
>   $this->url_sistema = "http://localhost/web/ ";
>  }
> 
>  function autorizaSistema($param_usuario, $param_passwd){
>   //Verificar no banco se o usuario existe
>   $this->nome_usuario = $param_usuario;
>  }
> }
> 
> 
> session_start();
> 
> if (!session_is_registered("SISTEMA")){
> 
>  //Registra a sessao
>  session_register("SISTEMA");
>  $GLOBALS["SISTEMA"] = new Autorizacao();
>  echo "Seta sistema";
> 
> }
> 
> echo $GLOBALS["SISTEMA"]->url_sistema;
> 
> echo "teste";
> 
> echo "reload";
> ?>
> 
> at the secons time that this code is executed generate this error.
> 
> Fatal error: The script tried to execute a method or access a 
> property of an incomplete object. Please ensure that the 
> class definition autorizacao of the object you are trying to 
> operate on was loaded _before_ the session was started in 
> C:/XITAMI/webpages/WEB/in2.php on line 38
> 
> Please help
> 
> Tkx.
> R3.

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

2001-06-30 Thread Julia A. Case

This could be difficult or not even possible...  first you would need to 
add entries to the DNS zone file (and update the serial number) and then 
reload the DNS database, and this is only if you run your own DNS and not 
have your provider do it for you, like many of us do.

Then you would have to update the /etc/httpd/conf/httpd.conf file with the 
correct info for the sub-domain and then restart apache

And if you intend to have the new user upload content for the new 
sub-domain you would need to add a user and set a password, and as I 
stated in a previous message running passwd from php isn't possible as it 
requires you to enter a password, you can't supply one on the command 
line, and it needs to run as root to change the password of another user.

Julia

Quoting Man He ([EMAIL PROTECTED]):
> Hi all,
> 
>Can anybody give me a guideline or idea on how to write a PHP scriot 
> which is used to create a domain or sub-domain and a default page and a same 
> time. My OS is Red Hat Linux 6.1.
> 
>For example, in my program, when i press "activate' button, the script 
> will create me a sub-domain try.php.com and a default page index.php is 
> created for that sub-domain. Thanks for advice..
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

 PGP signature


Re: [PHP] Please Help......

2001-06-30 Thread Kurth Bemis

I think that maybe when somebody subs to the list they get a 
info-email.  mostly saying "THIS IS PHP ONLY.  Not a clueless linux newbie 
list.  that's why they have LUGS."  Do any of you agree with me?  I think 
that its neededbasically saying - look at the manual first..then ask on 
the list.or your post will be ignored.

what about a php-experts mailing list.  a list for people that have php 
running know php but just need collaboration from their peers?  If the list 
maintainer is unwilling to set such a list up, I can set one up on one of 
USAExpress.net Servers

~kurth


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

2001-07-02 Thread scott [gts]

as a start, you'll probably have to update httpd.conf
(if you're using apache) and named ... or at least know
how both work.

please read the pertinent docs.


> -Original Message-
> From: Man He [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 10:51 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Please Help..
> 
> 
> Hi all,
> 
>Can anybody give me a guideline or idea on how to write a PHP scriot 
> which is used to create a domain or sub-domain and a default page and a same 
> time. My OS is Red Hat Linux 6.1.
> 
>For example, in my program, when i press "activate' button, the script 
> will create me a sub-domain try.php.com and a default page index.php is 
> created for that sub-domain. Thanks for advice..
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] please help.

2001-07-18 Thread Michael Geier, CDM Systems Admin

try using the attached class.

start();

// some code

$time->stop();
$total = $time->gettime();
echo $total;
?>

-Original Message-
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP] please help.


hi

I wanna see how long my scripts load. So, i copied this script from
phpbuilder
---

--

But i am not sure where to put that part. Can i put it anywhere within my
script?  And bcsub() is not install on my server. What other fuctions can i
use? can i just use $endtime-$starttime?



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

2001-07-18 Thread McShen

ok thx
"Michael Geier" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> try using the attached class.
>
>  $time = new timer;
> $time->start();
>
> // some code
>
> $time->stop();
> $total = $time->gettime();
> echo $total;
> ?>
>
> -Original Message-
> From: McShen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 11:08 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] please help.
>
>
> hi
>
> I wanna see how long my scripts load. So, i copied this script from
> phpbuilder
> ---
>$timeparts = explode(" ",microtime());
>   $starttime = $timeparts[1].substr($timeparts[0],1);
>   $timeparts = explode(" ",microtime());
>   $endtime = $timeparts[1].substr($timeparts[0],1);
>   echo bcsub($endtime,$starttime,6)
> ?>
> --
>
> But i am not sure where to put that part. Can i put it anywhere within my
> script?  And bcsub() is not install on my server. What other fuctions can
i
> use? can i just use $endtime-$starttime?
>
>
>
> --
> PHP General Mailing List (http://www.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] Please help with code

2002-04-01 Thread Andrew Brampton

You are not actually posting the form to a page with your PHP on... so its
trying to insert that form into your DB before u actually fill it out.
either check if the form has been posted before running your PHP, or split
this into 2 pages

Andrew
- Original Message -
From: "Denis L. Menezes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 01, 2002 5:08 PM
Subject: [PHP] Please help with code


> Hello friends,
>
> can someone tell me what is wrong with this code :
>
>
> 
>   
> 
>   
>   
> 
>   
>   
> 
>   
>   
> 
>   
>   
> 
>   
>   
> 
>  $link=mysql_connect("localhost","myid","mypassword");
> if ($link){
> print "link id is $link";
> } else {
> print "error connecting to database";
> }
> $posted=time();
> $query="INSERT INTO news (newsid,title, author, body, posted)
>  VALUES($newsid,$title, $author, $body, UNIX_TIMESTAMP())";
> IF (mysql_query($query)){
>   print "Row added to table";
>   } else {
>   print "error adding row";
>   }
> ?>
>
>
> It gives the link ID. But then gives "error adding row"
>
> Thanks in advance
>
> Denis
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Please help with code

2002-04-01 Thread Denis L. Menezes

Should I change the position of the php code?

Thanks
denis
- Original Message -
From: "Andrew Brampton" <[EMAIL PROTECTED]>
To: "Denis L. Menezes" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 12:31 AM
Subject: Re: [PHP] Please help with code


> You are not actually posting the form to a page with your PHP on... so its
> trying to insert that form into your DB before u actually fill it out.
> either check if the form has been posted before running your PHP, or split
> this into 2 pages
>
> Andrew
> - Original Message -
> From: "Denis L. Menezes" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 01, 2002 5:08 PM
> Subject: [PHP] Please help with code
>
>
> > Hello friends,
> >
> > can someone tell me what is wrong with this code :
> >
> >
> > 
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >  > $link=mysql_connect("localhost","myid","mypassword");
> > if ($link){
> > print "link id is $link";
> > } else {
> > print "error connecting to database";
> > }
> > $posted=time();
> > $query="INSERT INTO news (newsid,title, author, body, posted)
> >  VALUES($newsid,$title, $author, $body, UNIX_TIMESTAMP())";
> > IF (mysql_query($query)){
> >   print "Row added to table";
> >   } else {
> >   print "error adding row";
> >   }
> > ?>
> >
> >
> > It gives the link ID. But then gives "error adding row"
> >
> > Thanks in advance
> >
> > Denis
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Please help with code

2002-04-01 Thread Erik Price


On Monday, April 1, 2002, at 11:08  AM, Denis L. Menezes wrote:

> $query="INSERT INTO news (newsid,title, author, body, posted)
>  VALUES($newsid,$title, $author, $body, UNIX_TIMESTAMP())";
> IF (mysql_query($query)){
>   print "Row added to table";
>   } else {
>   print "error adding row";
>   }
> ?>
>
>
> It gives the link ID. But then gives "error adding row"

If you are inserting a value into a string-type column, then it must be 
quoted.  I recommend you change your query to look like this:

$query = "INSERT INTO news (newsid,
 title,
 author,
 body,
 posted)
  VALUES($newsid,
 '$title',
 '$author',
 '$body',
 UNIX_TIMESTAMP()
)";

I've made the (possibly incorrect) assumption that your newsid column is 
not a string-type column, so I didn't quote the variable -- but you 
could, and it should still insert as normal.

And yes, you can structure your query this way for legibility since 
whitespace is ignored (if you want).


Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Please help with code

2002-04-01 Thread Rick Emery

You CANNOT execute the PHP script until the form is submitted.  You are
attempting to do both at the same time.
Second, ALL your text fields muse be surrounded by quotes in your INSERT
statement.
Third, use NULL, not UNIX_TIMESTAMP() to insert a timestamp field.

In the following, assume the name of your script is "thisscript.php".



  

  
   

  
   

  
  

  
   

  
  

-Original Message-
From: Denis L. Menezes [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 10:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Please help with code


Hello friends,

can someone tell me what is wrong with this code :



  

  
   

  
   

  
  

  
   

  
  




It gives the link ID. But then gives "error adding row"

Thanks in advance

Denis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Please help with code

2002-04-01 Thread Harry Yu

You forgot to select the database that you want to
insert.

Ex:

$db = mysql_select_db ( mydatabase );

Hope this helps,
Harry
--- "Denis L. Menezes" <[EMAIL PROTECTED]>
wrote:
> Hello friends,
> 
> can someone tell me what is wrong with this code :
> 
> 
> 
>   
> 
>   
>
> 
>   
>
> 
>   
>   
> 
>   
>
>  value="Submit">
>   
>   
> 
> 
$link=mysql_connect("localhost","myid","mypassword");
> if ($link){
> print "link id is $link";
> } else {
> print "error connecting to database";
> }
> $posted=time();
> $query="INSERT INTO news (newsid,title, author,
> body, posted)
>  VALUES($newsid,$title, $author, $body,
> UNIX_TIMESTAMP())";
> IF (mysql_query($query)){
>   print "Row added to table";
>   } else {
>   print "error adding row";
>   }
> ?>
> 
> 
> It gives the link ID. But then gives "error adding
> row"
> 
> Thanks in advance
> 
> Denis
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Please help!!!! HTTP problem...

2001-05-18 Thread Chris Lee

that should work, if you dont want the username and password seen in the url bar the 
once your at that page, see if the username:password@ are in the url, if so 
header_redrect to the same page minus the username/passwd. once a browser has the 
username/passwd it remembers it and sends it on every page it needs to. one comment is 
opera will give the user a warning with this http://username:[EMAIL PROTECTED]/ 
method, stating they are going to a 'possibly' misjeaveous site.

-- 

 Chris Lee
 [EMAIL PROTECTED]




""Romulo Pereira"" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello!

I am in an server with Apache and PHP. I want PHP to authenticate in other
server (Novell with Netscape). Like this:

SSL (PAGE 1 SERVER 1) ->-->- SSL (PAGE 2 SERVER 2)

SERVER 1: Apache and PHP
SERVER 2: Novell with Netscape

PAGE 1: PHP script page
PAGE 2: PHP script page

Without asking again the username and password (I would be passing them in
the authentication time behind the scenes).

Please help!

Rom

P.S.: In my stupidity I try to do the following:

header ("Location: https://USERNAME:PASSWORD@SERVER_ADDRESS/DIR/PAGE2.PHP";);

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



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




Re: [PHP] Please help with files.

2001-09-21 Thread Michael van Bracht

> Hello everyone-
>
> Here's my problem.. I have a script that uploads an image and then resizes
> that image to a certain size etc.  Then it takes that image and copies it
to
> a spefic location.  My problem occurs when trying to copy the file to the
> specific location because I get a permission denied (I'm running Linux 7.1
> with Apache).  I have the script that does this operation off of the web
> root so no one can access it in a browser etc.  I'm trying to change the
> permissions on the directory and the file.  I'm also trying to change the
> owner of the file.  Finally, I'm trying to copy the file but on all of
these
> I get a permission denied error.  The script runs under the user of Apache
> and the Apache user doesn't have access to chmod, chown, or copy the files
> like I need it to.  Is there anyway around this issue?
>
> Thanks,
> jay
>
>

put the apache user and the owner of the directory where the file sould be
copied to in a new user group for example "piccopy"
and "chown .piccopy " the file
then make the directory writable for all users in the group piccopy.

regards

Michael


-- 
PHP General Mailing List (http://www.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] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Jason Murray

Use include(). Like

http://www.jwebmedia.com/
1 877 525 jWEB

-- 
PHP General Mailing List (http://www.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] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Philip Olson


Hi Martin,

It's important to know that "Stuff" in the Url like this are just
variables.  For example :

  foo.php?fruit=apples&dog=snoopy&others=huh&more=yep

Now with foo.php we can do this (a few exceptions) :

  echo "$dog would like to each some $fruit";

And in your case, you have $page so let's compare your $page variable
and include files accordingly.  We'll be using an if statement which can
be read about here :

  http://www.php.net/manual/en/control-structures.php

This will do the job :

  Visual Stuff is Good!';
include 'visual.txt';

  } elseif ($page == 'audio') {

   echo 'Welcome to Musical Section!';
   include 'audio.inc';

  } else {

   echo 'Welcome to my site!';
   include 'default.php';
  
  }
  ?>

Yes there are other ways but this is the simplest and you should (and
will!) learn to use if/elseif/else which will be useful in the future.

Regards,

Philip Olson
http://www.cornado.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] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Phil Driscoll

There are loads of different ways to spit out a text file.

The easiest is readfile($Filename) which does exactly what you want,
providing that the file already contains sanitised html (eg  instead of
newlines etc.

If not, you could use fread to get the file contents into a variable and
then process them as you wish (eg with nl2br etc).

No doubt, you will be told another hundred ways to do it as well :)

Cheers

PS Interesting postal address - I frequent the Beeswing pub on Hull Rd every
Thursday evening with members of the old car club I'm in!

--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org


-- 
PHP General Mailing List (http://www.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] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Rick St Jean

This will allow you to have more control over what pages get edited...

but you can use something a little easier like...



At 09:02 PM 3/6/01 +, you wrote:

>Hi Martin,
>
>It's important to know that "Stuff" in the Url like this are just
>variables.  For example :
>
>   foo.php?fruit=apples&dog=snoopy&others=huh&more=yep
>
>Now with foo.php we can do this (a few exceptions) :
>
>   echo "$dog would like to each some $fruit";
>
>And in your case, you have $page so let's compare your $page variable
>and include files accordingly.  We'll be using an if statement which can
>be read about here :
>
>   http://www.php.net/manual/en/control-structures.php
>
>This will do the job :
>
>   
>   if ($page == 'visual') {
>
> echo 'Visual Stuff is Good!';
> include 'visual.txt';
>
>   } elseif ($page == 'audio') {
>
>echo 'Welcome to Musical Section!';
>include 'audio.inc';
>
>   } else {
>
>echo 'Welcome to my site!';
>include 'default.php';
>
>   }
>   ?>
>
>Yes there are other ways but this is the simplest and you should (and
>will!) learn to use if/elseif/else which will be useful in the future.
>
>Regards,
>
>Philip Olson
>http://www.cornado.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]

##
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##


-- 
PHP General Mailing List (http://www.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] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Nick Norton

Just put the following instead of a long switch and keep your file naming
conventions consistent

include("side_$page.txt");


-- 
PHP General Mailing List (http://www.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] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Jon Snell

Be very careful with this construct.  It is generally a bad idea to do any
sort of file opening/loading where the file name comes directly from user
input.

If you were naive enough to use this line:

include("$page.txt");

I could call your php script with ?page=http://mysite.com/dumpyourdatabase

PHP would then load and execute something like this:

http://mysite.com/dumpyourdatabase.txt

An entry could be added to the MySQL.User table from the code in this script
allowing remote access or many other things.

If you decide you really want something like this, it would be a great idea
to run a regular expression on $page and erase any non-letter characters.

Also, as a general reminder, make sure your database permissions are set up
properly for the MySQL user your database is running under (generally they
should not have access to the MySQL table, and only be allowed to
insert/select/update to the database the website works with).

Jon Snell

-Original Message-
From: Nick Norton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 3:57 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Please Help - Really BASIC stuff!


Just put the following instead of a long switch and keep your file naming
conventions consistent

include("side_$page.txt");


--
PHP General Mailing List (http://www.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] please help - urgent! - email & attachments

2001-01-11 Thread lists


Sounds like you could use a mime_mail class to build your email. The best
I've
found is at phpWizard and is by Sascha Schumann and Tobias Ratschiller.

I have written a very basic downloader script using this class that emails
tar.gz packages
as attachments to a user upon request. You can try the downloader script
while downloading the same script at
http://mulga.com.au/index.php?page=software .

You should be able to modify the script easily enough. Only the
Content-type should need changing. I use PHP4 but I don't think that's a
problem here.

Mick

On Fri, 12 Jan 2001, Sefton wrote:

> Hello,
> 
> I am after a php3 script that can do this...
> 
> Have a form of about 20 fields where one of the fields can browse the users
> hard drive so they are able to include an image, and then submit the form by
> sending an email. All the other fields are just text.
> 
> Kinda like a formail script but with picture attachments.
> 
> Does anybody have some php code alreday made to do this that even a dumb ass
> like me could configure.
> 
> Basically I have to have this project completed by today.
> 
> Thanks,
> 
> Chris
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.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] please help - urgent! - email & attachments

2001-01-11 Thread Jason Murray

> I am after a php3 script that can do this...
> 
> Have a form of about 20 fields where one of the fields can browse the
users
> hard drive so they are able to include an image, and then submit the form
by
> sending an email. All the other fields are just text.
> 
> Kinda like a formail script but with picture attachments.

http://www.hotscripts.com/Detailed/4682.html

Check that one out, its a MIME mail class. Not sure if its PHP4 only
or not, though. Browse around, search. Open your eyes. :)

Jason

-- 
PHP General Mailing List (http://www.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] please help - urgent! - email & attachments

2001-01-11 Thread Jason Murray

This might help more, too:

http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Email_Utili
ties/

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!

-- 
PHP General Mailing List (http://www.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] Please help me with this.

2001-05-11 Thread Young Chi-Yeung Fan

"Johan Vikerskog (ECS)" wrote:

> ok.
> I have this problem of mine which i dont know how to solve. therefor i use this 
>great mailing list.
>
> Lets say i have a URL that looks something like below. This URL was generated from a 
>program that starts netscape with this adress. This adress is of course wrong.
>
> http://adam:9000//usr/local/test/test.html
>
> I want to change it so it looks like below with simply starting another scripts that 
>modifies the HTTP_REFERER so it adds the full computer name to the adress window.
>
> I asked this one before but nobody answered. If it isnt possible to be done i can 
>understand it but i atleast wants to know if it is possible. To do it.
>
> http://adam.artwork.com:9000//user/local/test/test.html
>
> Anyone got any tips for me on how to do this?
> Please help me with this.
>

I don't quite understand your question. It looks you have a program that generates the 
wrong URL, in which case it won't reach a page you want to go to. If the server in
the URL is wrong, there's nothing you can do to fix it the problem using PHP. If the 
URL that is generated is to a server you have control over, you can just do a
redirect to the correct address (and you don't need PHP to do this).

Also, you can *read*  $HTTP_REFERER to find out which page linked to the PHP script -- 
so setting it is not meaningful.


-- 
PHP General Mailing List (http://www.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] Please help - File Uploads, 2nd try

2001-02-24 Thread Gustavo Vieira Goncalves Coelho Rios

Ed Lazor wrote:
> 
> I upgraded my web server and now file uploads don't work.  A test script is
> listed below.  It puts the file on the server, but the file has
> 
> Content-Type: image/pjpeg^M
> ^M
> 
> pre-pended to it, thus breaking the file.  Do you know why it's doing this
> and how to fix it?
> 

This happens because you are dealing with DOS text in a unix
environment.
You can use dos2unix utility in order to correct this problem. Remenber,
always transfer text files unix->dos->unix using ascii mode.

-- 
PHP General Mailing List (http://www.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] Please help - File Uploads, 2nd try

2001-02-24 Thread Ed Lazor

At 06:44 PM 2/24/2001 +, Gustavo Vieira Goncalves Coelho Rios wrote:
>Ed Lazor wrote:
> >
> > I upgraded my web server and now file uploads don't work.  A test script is
> > listed below.  It puts the file on the server, but the file has
> >
> > Content-Type: image/pjpeg^M
> > ^M
> >
> > pre-pended to it, thus breaking the file.  Do you know why it's doing this
> > and how to fix it?
> >
>
>This happens because you are dealing with DOS text in a unix
>environment.
>You can use dos2unix utility in order to correct this problem. Remenber,
>always transfer text files unix->dos->unix using ascii mode.

I don't understand.  It's appending Content-Type to all of the files.  I 
tested a few other files like tgz files and it put a content type in them 
as well.  Since the files are being uploaded in a browser form, shouldn't 
the unix / dos issue be eliminated?

-Ed


-- 
PHP General Mailing List (http://www.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] Please help - File Uploads, 2nd try

2001-02-24 Thread Koncz Ádám

As Ed Lazor wrote:

> I upgraded my web server and now file uploads don't work.  A test script
is
> listed below.  It puts the file on the server, but the file has
> Content-Type: image/pjpeg^M
> ^M
> pre-pended to it, thus breaking the file.  Do you know why it's doing this
> and how to fix it?

That's a php 4.0.4pl1 BUG.

To find a _possible_ patch visit:

http://bugs.php.net/bugs.php?id=8995

AND use trim() to remove unwanted linebreaks (appear in the front of the
var. values)!



-- 
PHP General Mailing List (http://www.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] Please help - File Uploads, 2nd try

2001-02-24 Thread Koncz Ádám

Sorry, wrong link was added in my prev mail.

> To find a _possible_ patch visit:

http://marc.theaimsgroup.com/?l=php-dev&m=98233943916254&w=2



-- 
PHP General Mailing List (http://www.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] please help (network admin via web)

2001-02-05 Thread Christian Reiniger

On Monday 05 February 2001 08:01, niraj shah wrote:

> I am a 20 year old student doing a research project and I would like to
> have network administration via web. That is I want to change IP
> address os the system via web, want to do dns settings and also would
> like to do proxy setting via web using PHP scripts. I am working on
> RedHat 6.2 using apache as my web server.

Perhapy Webmin could help you?
http://www.webmin.com/webmin/

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 3600 hosts for known problems in 3 weeks

--
PHP General Mailing List (http://www.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] please help with this simple problem

2001-03-22 Thread Stewart Taylor

You need to copy the contents of the current file.
Then recreate the file by writing the new message then writing back the
original contents.

e.g.
$fname = basename($PHP_SELF). ".comment";
$fsize = filesize($fname);
fp = fopen(basename($fname));
$data = fread($fp,fsize);
fwrite($fp,$message);
fwrite($fp,$data);
fclose($fp);

-Stewart

-Original Message-
From: adam [mailto:[EMAIL PROTECTED]]
Sent: 22 March 2001 11:17
To: [EMAIL PROTECTED]
Subject: [PHP] please help with this simple problem


i am coding a simple script to post a text area into a file. it works, but
it posts it at the bottom and i wanted to have it post to the top of the
text already there..

here's a snip of the important part of the script:

$fp = fopen (basename($PHP_SELF) . ".comment", "a");
 fwrite ($fp, $message);
 fclose ($fp);
 }

any help would be much appreciated



-- 
PHP General Mailing List (http://www.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] please help with this simple problem

2001-03-22 Thread adam

i tryed it and it ended up having an error that was caused originally by a
lack of a $ on the 3rd line variable... after i fixed that it said wrong
perameter count for fopen() on the third line, and "Warning: Supplied
argument is not a valid File-Handle resource" for the remaining lines below
that in that block of code.

i'm sorry, i'm kinda new to this : (

"Stewart Taylor" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You need to copy the contents of the current file.
> Then recreate the file by writing the new message then writing back the
> original contents.
>
> e.g.
> $fname = basename($PHP_SELF). ".comment";
> $fsize = filesize($fname);
> fp = fopen(basename($fname));
> $data = fread($fp,fsize);
> fwrite($fp,$message);
> fwrite($fp,$data);
> fclose($fp);
>
> -Stewart
>
> -Original Message-
> From: adam [mailto:[EMAIL PROTECTED]]
> Sent: 22 March 2001 11:17
> To: [EMAIL PROTECTED]
> Subject: [PHP] please help with this simple problem
>
>
> i am coding a simple script to post a text area into a file. it works, but
> it posts it at the bottom and i wanted to have it post to the top of the
> text already there..
>
> here's a snip of the important part of the script:
>
> $fp = fopen (basename($PHP_SELF) . ".comment", "a");
>  fwrite ($fp, $message);
>  fclose ($fp);
>  }
>
> any help would be much appreciated
>
>
>
> --
> PHP General Mailing List (http://www.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] please help with this simple problem

2001-03-22 Thread rui


you haven't specified the open type (a = append, w = write, r = read only , etc
etc)

solution

$fp=fopen(basename($fname), "a");

just to match your example.

On 22-Mar-2001 adam wrote:
> i tryed it and it ended up having an error that was caused originally by a
> lack of a $ on the 3rd line variable... after i fixed that it said wrong
> perameter count for fopen() on the third line, and "Warning: Supplied
> argument is not a valid File-Handle resource" for the remaining lines below
> that in that block of code.
> 
> i'm sorry, i'm kinda new to this : (
> 
> "Stewart Taylor" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> You need to copy the contents of the current file.
>> Then recreate the file by writing the new message then writing back the
>> original contents.
>>
>> e.g.
>> $fname = basename($PHP_SELF). ".comment";
>> $fsize = filesize($fname);
>> fp = fopen(basename($fname));
>> $data = fread($fp,fsize);
>> fwrite($fp,$message);
>> fwrite($fp,$data);
>> fclose($fp);
>>
>> -Stewart
>>
>> -Original Message-
>> From: adam [mailto:[EMAIL PROTECTED]]
>> Sent: 22 March 2001 11:17
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] please help with this simple problem
>>
>>
>> i am coding a simple script to post a text area into a file. it works, but
>> it posts it at the bottom and i wanted to have it post to the top of the
>> text already there..
>>
>> here's a snip of the important part of the script:
>>
>> $fp = fopen (basename($PHP_SELF) . ".comment", "a");
>>  fwrite ($fp, $message);
>>  fclose ($fp);
>>  }
>>
>> any help would be much appreciated
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.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]

   Rui Barreiros
  Software Developer

WEBSOLUT - Soluções Internet
Emailto: [EMAIL PROTECTED] 
Personal Info: http://websolut.net/people/rui.html

As informações contidas neste email são confidenciais
e destinam-se apenas à(s) pessoa(s) a quem foi enviado:
http://websolut.net/confidencialidade-responsabilidade.html


-- 
PHP General Mailing List (http://www.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] please help with this simple problem

2001-03-22 Thread Stewart Taylor


Sorry I missed "w+" from the fopen function

$fname = basename($PHP_SELF). ".comment";
$fsize = filesize($fname);
$fp = fopen(basename($fname),"w+");   <--- added "w+"
$data = fread($fp,$fsize);
fwrite($fp,$message);
fwrite($fp,$data);
fclose($fp)

-Stewart

-Original Message-
From: adam [mailto:[EMAIL PROTECTED]]
Sent: 22 March 2001 12:00
To: [EMAIL PROTECTED]
Subject: Re: [PHP] please help with this simple problem


i tryed it and it ended up having an error that was caused originally by a
lack of a $ on the 3rd line variable... after i fixed that it said wrong
perameter count for fopen() on the third line, and "Warning: Supplied
argument is not a valid File-Handle resource" for the remaining lines below
that in that block of code.

i'm sorry, i'm kinda new to this : (

"Stewart Taylor" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You need to copy the contents of the current file.
> Then recreate the file by writing the new message then writing back the
> original contents.
>
> e.g.
> $fname = basename($PHP_SELF). ".comment";
> $fsize = filesize($fname);
> fp = fopen(basename($fname));
> $data = fread($fp,fsize);
> fwrite($fp,$message);
> fwrite($fp,$data);
> fclose($fp);
>
> -Stewart
>
> -Original Message-
> From: adam [mailto:[EMAIL PROTECTED]]
> Sent: 22 March 2001 11:17
> To: [EMAIL PROTECTED]
> Subject: [PHP] please help with this simple problem
>
>
> i am coding a simple script to post a text area into a file. it works, but
> it posts it at the bottom and i wanted to have it post to the top of the
> text already there..
>
> here's a snip of the important part of the script:
>
> $fp = fopen (basename($PHP_SELF) . ".comment", "a");
>  fwrite ($fp, $message);
>  fclose ($fp);
>  }
>
> any help would be much appreciated
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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

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




Re: [PHP] please help with this simple problem

2001-03-22 Thread adam

it works now, only it's earasing everything and then writing to the file.
i think we have almost got this figured out. here's what the code looks like
for the entire tag...
---

", $message);
 $date = date("l, F j Y, h:i a");
 $message = "mailto:$email>$name
 -- $date\n
 \n
  $message\n
 \n\n";

 $fname = basename($PHP_SELF) . ".comment";
 $fsize = filesize($fname);
 $fp = fopen(basename($fname),"w+");
 $data = fread($fp,$fsize);
 fwrite($fp,$message);
 fwrite($fp,$data);
 fclose($fp);

 }
@readfile(basename(($PHP_SELF . ".comment")));
?>






""adam"" <[EMAIL PROTECTED]> wrote in message
99cmfj$mai$[EMAIL PROTECTED]">news:99cmfj$mai$[EMAIL PROTECTED]...
> i am coding a simple script to post a text area into a file. it works, but
> it posts it at the bottom and i wanted to have it post to the top of the
> text already there..
>
> here's a snip of the important part of the script:
>
> $fp = fopen (basename($PHP_SELF) . ".comment", "a");
>  fwrite ($fp, $message);
>  fclose ($fp);
>  }
>
> any help would be much appreciated
>
>
>
> --
> PHP General Mailing List (http://www.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] please help with this simple problem

2001-03-22 Thread adam

it works now, only it's earasing everything and then writing to the file.
i think we have almost got this figured out. here's what the code looks like
for the entire tag...
---

", $message);
 $date = date("l, F j Y, h:i a");
 $message = "mailto:$email>$name
 -- $date\n
 \n
  $message\n
 \n\n";

 $fname = basename($PHP_SELF) . ".comment";
 $fsize = filesize($fname);
 $fp = fopen(basename($fname),"w+");
 $data = fread($fp,$fsize);
 fwrite($fp,$message);
 fwrite($fp,$data);
 fclose($fp);

 }
@readfile(basename(($PHP_SELF . ".comment")));
?>








-- 
PHP General Mailing List (http://www.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] [PLEASE HELP] Passing variable to new page.

2002-06-06 Thread Chris Knipe

> echo "";
> echo" function pop1() {";
> echo" window.open(\"info.php?prod_id=$result[0]\"); }"; \\ $result[0] is
> variable that stores id of the image in database
> echo "";
>
> I am calling this function in the following manner: echo" onclick=\"pop1();\"";
^

You're not passing a value to the variable.  Try using something like: (i'm
NO java guru, and this definately isn't the list for java)...

function pop1($id) {
  window.open("info.php?prod_id=$id");
}

and



Where 12345 is the product ID that you assigned to variable prod_id, which
will in return be displayed in the second PHP file.  You're problem's
related to the java script, not assigning the value to the variable.  This
isn't a PHP issue.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] [PLEASE HELP] Passing variable to new page.

2002-06-06 Thread Scott Hurring

Javascript, being silly, has silly string rules:

function pop1($id) {
  window.open("info.php?prod_id="+ $id);
}

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -Original Message-
> From: Chris Knipe [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 2:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] [PLEASE HELP] Passing variable to new page.
> 
> 
> > echo "";
> > echo" function pop1() {";
> > echo" window.open(\"info.php?prod_id=$result[0]\"); }"; \\ 
> $result[0] is
> > variable that stores id of the image in database
> > echo "";
> >
> > I am calling this function in the following manner: echo" > onclick=\"pop1();\"";
> ^
> 
> You're not passing a value to the variable.  Try using 
> something like: (i'm
> NO java guru, and this definately isn't the list for java)...
> 
> function pop1($id) {
>   window.open("info.php?prod_id=$id");
> }
> 
> and
> 
> 
> 
> Where 12345 is the product ID that you assigned to variable 
> prod_id, which
> will in return be displayed in the second PHP file.  You're problem's
> related to the java script, not assigning the value to the 
> variable.  This
> isn't a PHP issue.
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] [PLEASE HELP] Passing variable to new page.

2002-06-06 Thread David Freeman


 > echo "";
 > echo" function pop1() {";
 > echo" window.open(\"info.php?prod_id=$result[0]\"); }";
 > echo "";

 > I am calling this function in the following manner: echo" onclick=\"pop1();\"";

OK, I tend not to put javascript inside php echo statements as it
confuses things - which variables belong to which language.  Second, as
it stands, if I understand you correctly, it won't matter which image is
clicked on, you'll always get the same prod_id.  That's a logic problem.

 >  $myid = $_GET['prod_id'];
 > echo" Product ID: $myid";
 > ?>

You don't seem to be doing anything much on this yet - except trying to
display text.

Anyway, if you're serious about solving this why not start simpler and
work up.  Create yourself some html with the javascript in it to call
your new php page.  This way you _know_ what is being passed to your
popup.  If this doesn't work then you need to fix your javascript.  If
it does work you can start putting your php back into the first one and
see where it stops working - this will likely be what you need to fix.

In future please reply to the group rather than to me personally - and
no, I'm not going to write your code for you.

CYA, Dave



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Stuart Dallas

On Saturday, June 15, 2002 at 12:53:47 AM, Zlutarch G. wrote:
> The session ID is the same for a given session, that means the server knows
> its the same session. And since I get the value "1" each time, I can see 
> that the $_SESSION["var"] is a global variable with a value of "1". But it 
> seems that once the script is finished, this variable runs out of scope! A 
> session variable should persist for the duration of the session. It should 
> not run out of scope like this. Could someone with more experience tell me 
> what am I doing wrong? Thanks in advance.

Your code looks ok so I'm guessing that you are just refreshing this page to
see if the session variables persist. If that is the case then of course you're
not seeing them persist. In order for the page to import the current session it
must know what the session id is. Try putting a link on that page that links to
the same page. Click on the link and you should find that the session variable
now persists.

-- 
Stuart


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Zlutarch G.

Hi Stuart,

I tried your idea but it didn't work. When I used session_encode(), I got 
nothing! It seems that it's not being registered as a session variable. Any 
idea why that is the case?

Thanks,

Zlutarch

>From: Stuart Dallas <[EMAIL PROTECTED]>
>Reply-To: Stuart Dallas <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP] PLEASE HELP! session variable fails to persist!!
>Date: Sat, 15 Jun 2002 01:05:47 +0100
>
>On Saturday, June 15, 2002 at 12:53:47 AM, Zlutarch G. wrote:
> > The session ID is the same for a given session, that means the server 
>knows
> > its the same session. And since I get the value "1" each time, I can see
> > that the $_SESSION["var"] is a global variable with a value of "1". But 
>it
> > seems that once the script is finished, this variable runs out of scope! 
>A
> > session variable should persist for the duration of the session. It 
>should
> > not run out of scope like this. Could someone with more experience tell 
>me
> > what am I doing wrong? Thanks in advance.
>
>Your code looks ok so I'm guessing that you are just refreshing this page 
>to
>see if the session variables persist. If that is the case then of course 
>you're
>not seeing them persist. In order for the page to import the current 
>session it
>must know what the session id is. Try putting a link on that page that 
>links to
>the same page. Click on the link and you should find that the session 
>variable
>now persists.
>
>--
>Stuart
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-18 Thread Ford, Mike [LSS]

> -Original Message-
> From: Zlutarch G. [mailto:[EMAIL PROTECTED]]
> Sent: 15 June 2002 00:54
> 
> My session variables won't persist, could someone help me 
> with this problem? 


PHP version?  (If <=4.0.6, $_SESSION doesn't exist.)
Which Web server?  Version?

> I spent all day trying to figure out what is wrong, and I 
> still don't know 
> why I couldn't get it to work. Here is an example script:
>  session_id();
> session_start();
> header("Pragma: no-cache");
> header("Refresh: 2");
> $sID=session_id();
> echo "session id: $sID";
> echo "session var: ".$_SESSION["var"]."";
> 
> fnB();
> function fnA(){
>   $_SESSION["var"]=1;
> }
> function fnB(){
>   if(isset($_SESSION["var"])){
>   echo "session var is set...";
>   }
>   else{
>   echo "session var is not set...";
>   fnA();
>   echo $_SESSION["var"];
>   }
> }
> ?>
> 
> Here is the out put from this script:
> "
> session id: ee030ac6e15ea2c01e1dd4fe40f3ab30
> session var:
> session var is not set...
> 1
> "
> The session ID is the same for a given session, that means 
> the server knows 
> its the same session. And since I get the value "1" each 
> time, I can see 
> that the $_SESSION["var"] is a global variable with a value 
> of "1". But it 
> seems that once the script is finished, this variable runs 
> out of scope! A 
> session variable should persist for the duration of the 
> session. It should 
> not run out of scope like this. Could someone with more 
> experience tell me 
> what am I doing wrong? Thanks in advance.
> 
> Zlutarch

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PLEASE HELP-Unable to get off this list

2002-06-22 Thread Chris Shiflett

Go here and do it yourself:

http://www.php.net/mailing-lists.php

[EMAIL PROTECTED] wrote:

>If any of you have an idea on who the admin is kindly tell him to remove me, he/she 
>can send me a confirmation email if needed to prove that "[EMAIL PROTECTED]" is my address 
>too, but please ask him/her to remove me asap.
>
>Cheers,
>-Ryan.
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PLEASE HELP-Unable to get off this list

2002-06-22 Thread Jason Wong

On Sunday 23 June 2002 03:39, [EMAIL PROTECTED] wrote:

> Now I have a differient kind of problem, My mailbox ([EMAIL PROTECTED]) is
> getting flooded and I would like to stop recieveing mail from the list, I
> have tried unsubscribing a number of times without any success as the
> admin/moderator has blocked my address from sending mail to the list, so am
> using this new email address.

Flooding the list with requests to unsubscribe _annoys_ people.

> If any of you have an idea on who the admin is kindly tell him to remove
> me, he/she can send me a confirmation email if needed to prove that
> "[EMAIL PROTECTED]" is my address too, but please ask him/her to remove me asap.

Go and ask yourself! If you had kept/read the welcome message that you should 
have received when subscribing you would have known what to do. Here's some 
selected excerpts:

"Welcome to [EMAIL PROTECTED]!

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address."

and

"If you need to get in touch with the human owner of this list,
please send a message to:

<[EMAIL PROTECTED]>"


Please, if you can't handle a mailing list, don't subscribe!

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
"There is hopeful symbolism in the fact that flags do not wave in a vacuum."
--Arthur C. Clarke
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PLEASE HELP-Unable to get off this list

2002-06-22 Thread r


Hey there dude,

> Flooding the list with requests to unsubscribe _annoys_ people.
> 

Didnt mean to flood the list, my mail program is giving me a bit of a problem and I 
didnt know if the mail had gone or not.
 
 
> Go and ask yourself! If you had kept/read the welcome message that you should 
> have received when subscribing you would have known what to do. Here's some 
> selected excerpts:

I still do have to welcome email, the problem like I mentioned in my first email is 
that I have been blocked by the admin/s and cannot send the owner a letter or send the 
unsubscribe email, it just bounces back :-(

I was hoping that one of the admins would see this thread and wipe out [EMAIL PROTECTED]

Cheers,
-Ryan.

Brazil = NEW football world champions. HURRAH***

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PLEASE HELP-Unable to get off this list

2002-06-22 Thread Jason Wong

On Sunday 23 June 2002 05:40, [EMAIL PROTECTED] wrote:

> I still do have to welcome email, the problem like I mentioned in my first
> email is that I have been blocked by the admin/s and cannot send the owner
> a letter or send the unsubscribe email, it just bounces back :-(

Have you tried using your new email address?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Look into my eyes and try to forget that you have a Macy's charge card!
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Please help!!! Trying to write some chat script!

2001-09-19 Thread Sheridan Saint-Michel

There actually isn't much technology in a chat room.  It is a fairly simple
program.

Basically you have a webpage which checks  retrieves all
the messages from  and prints them, then provides a place
for the user to enter stuff into .

 can be any number of things such as a flat file, or a MySQL
database table.  Basically anywhere you can stick stuff and anyone can
retrieve it.

The only thing left, then, is to update the page with new entries from time
to
time.  While Netscape makes this easy with server push, you are probably
going to want something like a Meta Refresh so the IE people can use the
chat too.

You probably also want to put the form for entering new messages in its own
frame so that someone isn't halfway through writing a message when the whole
thing refreshes.

That's pretty much it.  If you have any specific questions let me know.

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


- Original Message -
From: "Diadon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 19, 2001 10:54 AM
Subject: [PHP] Please help!!! Trying to write some chat script!


> Hi!
> Where are can read some information (not examples scripts) about chat
> technologies?
>
>
>
> --
> PHP General Mailing List (http://www.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] Please help!!! Trying to write some chat script!

2001-09-19 Thread nico_oreka

I made a chatboard script that i use on two websites (http://nayco.free.fr ,
http://luxregina.free.fr )
One thing important to know is that you MUST NOT use a text file : When two
people write together, messages are scrambled and the script displays wierd
things 
> use SQL, as it's faster, easier to use, and has got no 'lock' problem
...

If you want my script . tell me !!


(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


- Original Message -
From: Sheridan Saint-Michel <[EMAIL PROTECTED]>
To: Diadon <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 19, 2001 6:27 PM
Subject: Re: [PHP] Please help!!! Trying to write some chat script!


> There actually isn't much technology in a chat room.  It is a fairly
simple
> program.
>
> Basically you have a webpage which checks  retrieves all
> the messages from  and prints them, then provides a place
> for the user to enter stuff into .
>
>  can be any number of things such as a flat file, or a MySQL
> database table.  Basically anywhere you can stick stuff and anyone can
> retrieve it.
>
> The only thing left, then, is to update the page with new entries from
time
> to
> time.  While Netscape makes this easy with server push, you are probably
> going to want something like a Meta Refresh so the IE people can use the
> chat too.
>
> You probably also want to put the form for entering new messages in its
own
> frame so that someone isn't halfway through writing a message when the
whole
> thing refreshes.
>
> That's pretty much it.  If you have any specific questions let me know.
>
> Sheridan Saint-Michel
> Website Administrator
> FoxJet, an ITW Company
> www.foxjet.com
>
>
> - Original Message -
> From: "Diadon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 19, 2001 10:54 AM
> Subject: [PHP] Please help!!! Trying to write some chat script!
>
>
> > Hi!
> > Where are can read some information (not examples scripts) about chat
> > technologies?
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.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] Please help!!! Trying to write some chat script!

2001-09-20 Thread Sheridan Saint-Michel

You can use a flat file and work around problems like you described by using
flock, for example.  I do agree a DB is the best way to go 99.9% of the time
though.  I just wanted to give an overview of that covered most of the
possible
ways to write a chat room.

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


- Original Message -
From: "nico_oreka" <[EMAIL PROTECTED]>
To: "Sheridan Saint-Michel" <[EMAIL PROTECTED]>; "Diadon"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 2:01 AM
Subject: Re: [PHP] Please help!!! Trying to write some chat script!


> I made a chatboard script that i use on two websites (http://nayco.free.fr
,
> http://luxregina.free.fr )
> One thing important to know is that you MUST NOT use a text file : When
two
> people write together, messages are scrambled and the script displays
wierd
> things 
> > use SQL, as it's faster, easier to use, and has got no 'lock'
problem
> ...
>
> If you want my script . tell me !!
>
>
> (°-Nayco,
> //\[EMAIL PROTECTED]
> v_/_ http://nayco.free.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] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Maxim Maletsky

correct: 

we are PHP developers, not JavaScript.

However, I am sure that the amount and configurations of your computers
don't matter here.
try to look for a simple problem. Try to rewrite it all again, etc... not a
big deal - don't hit your head to the wall.


Sincerely, 

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: Daniel BI [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 7:12 PM
To: PHP digest
Subject: [PHP] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?


Did anybody have the same error?

I have this simple script:

===




http://www.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] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Yasuo Ohgaki

Do you enable trans-sid? What happen if you disable it?
(There are several trans-sid related bugs are fixed since 4.0.1, I think.)

Regards,
--
Yasuo Ohgaki


""Daniel BI"" <[EMAIL PROTECTED]> wrote in message
002201c0cd70$2f8d6240$02001aac@adsl">news:002201c0cd70$2f8d6240$02001aac@adsl...
> Did anybody have the same error?
>
> I have this simple script:
>
> ===
>  session_start() ;
> ?>
>
>  ENCTYPE="multipart/form-data" ACTION="another_script.php">
>
> 
> the output on the second computer, in the 'select' line, is this:
>
> 
> but... the second computer is Pentium III on linux RH 7.0, same
> configuration, but with php-4.0.1pl2, (purchased!!!...) and it does
> yeld that error.
> I tried with the php-4.0.1pl1 (as with the first computer) but curiously...
> it does act the same wrong way..
> it seems to be something about sessions, but independently of the
> php version...
> I compiled the apache server with the 'public' UID, 'guest' GUID, and
> they are present in my linux user and group list. the session does
> actually write any info correctly. (i tried a session_register('blabla') and
> it works)...
> the error only disappears when I remove the " session_start " statement!
>
> ANY help or idea would be greatly appreciated!
>
> thanx,
> Daniel BI
>
>
>
> --
> PHP General Mailing List (http://www.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] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Pavel Jartsev

Daniel BI wrote:
> 
> Did anybody have the same error?
> 
> I have this simple script:
> 
> ===
>  session_start() ;
> ?>
> 
>  ENCTYPE="multipart/form-data" ACTION="another_script.php">
> 
> 


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