OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general-digest-help_at_lists.php.net
Date: Wed Sep 04 2002 - 05:21:21 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 4 Sep 2002 10:21:21 -0000 Issue 1565

    Topics (messages 115102 through 115151):

    Re: Refering to an object from within an array variable in another class
            115102 by: Andy Warwick

    XML vs Everything Else
            115103 by: Taylor York
            115104 by: nicos.php.net
            115113 by: Geoff Hankerson
            115134 by: Rodrigo Dominguez

    Re: Uploading file
            115105 by: Clemson Chan
            115111 by: Rodrigo Dominguez
            115114 by: Clemson Chan
            115115 by: Clemson Chan
            115150 by: skitum

    Re: posting form values doesn't work
            115106 by: timo stamm

    Re: Safe_Mode problem....
            115107 by: timo stamm

    Re: RE : include interpreted php file
            115108 by: timo stamm

    Re: mysql string comparison not working
            115109 by: timo stamm

    creating mail on submitting a form.
            115110 by: Anil Garg
            115139 by: Paul Nicholson

    PHP 4.2.2 install problem
            115112 by: Mark McCulligh
            115140 by: Paul Nicholson

    Re: php back?
            115116 by: Manuel Lemos

    mod_php / apache config
            115117 by: Lee Doolan

    mod_php4 / apache config question
            115118 by: Lee Doolan

    Please help with fresh fish.
            115119 by: Anh
            115121 by: Philip Hallstrom
            115125 by: Dan Ostrowski
            115127 by: Anh
            115143 by: René Moonen

    bugs/master are back
            115120 by: nicos.php.net
            115122 by: eriol
            115123 by: nicos.php.net
            115124 by: eriol
            115126 by: nicos.php.net

    I need a useful sample code for opening from ftp servers using fopen() or file() commands
            115128 by: Javier Campo Martinez
            115129 by: nicos.php.net
            115130 by: nicos.php.net

    Re: PHP / Bulk E-Mail
            115131 by: Justin French
            115136 by: Tomasz Orzechowski

    Re: exit() function question
            115132 by: Tom Rogers

    Pass array in HTTP_POST_VARS question
            115133 by: Paul Maine
            115135 by: David Robley
            115145 by: lallous
            115146 by: Rodrigo Dominguez

    Re: Please, help with Sourceforge's PHP command-line not working at all
            115137 by: Tomasz Orzechowski

    php/mysql slow with zone alarm
            115138 by: ed

    Re: This is weird, this script does/doesn't work
            115141 by: René Moonen

    Re: PHP OOP
            115142 by: René Moonen

    SMS
            115144 by: Lejanson C. Go

    how get a image?
            115147 by: skitum
            115148 by: Scott Houseman

    script mysql date picker
            115149 by: adi
            115151 by: lallous

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

    ----------------------------------------------------------------------

    attached mail follows:


    On Tue, 3 Sep 2002 18:59:01 +0100, Bas Jobsen wrote
    (in message <02090319590102.02043bjobsen>):

    >> Any insight appreciated. In a best case if someone can add in the required
    >> '&'s to the following code that would be great.

    <snip solution>

    Thanks for that Bas, works a treat.

    And thanks Javier for the heads up on the material at
    http://safari.oreilly.com; looks like some good stuff there.

    -- 
    Andy Warwick
    Creed New Media Design
    http://www.creed.co.uk/src/unet/index.htm
    

    attached mail follows:


    Ok, Help me out on this one.

    As far as i can tell, xml documents store data..pretty much just a dababase. Now please, correct me on anything I say incorrectly...But i just cannot seem to grasp the point of using XML over MySQL.

    Can anyone direct me to a page with xml in use? Something that can help me grasp what its all about.

    Thank you,

    Taylor York DreamStar Group

    attached mail follows:


    Hi,

    XML, eXtensible Markup Language. Meta-language. XML allows you to create your own variables and meta names. You should read some doc about it. Btw your question has nothing to do with PHP but really with XML you should take a look to the XML's mailing list they will help you better than we can.

    --
    

    Nicos - CHAILLAN Nicolas nicosphp.net www.WorldAKT.com - Hébergement de sites Internet

    "Taylor York" <taylordreamstargroup.com> a écrit dans le message de news: 20020903222324.68104.qmailpb1.pair.com... > Ok, Help me out on this one. > > As far as i can tell, xml documents store data..pretty much just a dababase. > Now please, correct me on anything I say incorrectly...But i just cannot > seem to grasp the point of using XML over MySQL. > > Can anyone direct me to a page with xml in use? Something that can help me > grasp what its all about. > > Thank you, > > Taylor York > DreamStar Group > >

    attached mail follows:


    > > >Can anyone direct me to a page with xml in use? Something that can help me >grasp what its all about. > > >

    I didn't understand xml at all until I started using it . I asked pretty much the same question as you (what is it good for?). Now I will almost always use xml in any app I work on.

    One application that is simply wonderful is xsl transformations. This allows you to take xml and transform it into html, wml, pdf, rtf , etc...

    What this ultimately means to me is seperation of presentation from logic and data which makes for a very flexible and easy to maintain application.

    I have made a php class to make a database query into xml in the form of: <record><fieldname> value </fieldname></record>

    Now stuff I used to do that took a whole page to code nows uses about 5 lines. This is a real world benefit for me.

    Spend some time learning about xml and you won't regret it

    attached mail follows:


    I'm writting an application, a control panel for a web site, and it will be great if I can separe data from presentation, I know that I have to work with XML and XSL but I didn't understand how it works.

    Can you give me a simple example?

    Let guess that a client request index.php, and I have index.xml for the data, index.xsl for the data transformation and index.php, how it works?

    "Geoff Hankerson" <ghankmillerdavis.com> escribió en el mensaje news:3D754049.8010608millerdavis.com... > > > > > >Can anyone direct me to a page with xml in use? Something that can help me > >grasp what its all about. > > > > > > > > I didn't understand xml at all until I started using it . I asked > pretty much the same question as you (what is it good for?). Now I will > almost always use xml in any app I work on. > > One application that is simply wonderful is xsl transformations. This > allows you to take xml and transform it into html, wml, pdf, rtf , etc... > > What this ultimately means to me is seperation of presentation from > logic and data which makes for a very flexible and easy to maintain > application. > > I have made a php class to make a database query into xml in the form of: > <record><fieldname> value </fieldname></record> > > Now stuff I used to do that took a whole page to code nows uses about 5 > lines. This is a real world benefit for me. > > Spend some time learning about xml and you won't regret it >

    attached mail follows:


    Thanks Juan, and other listers,

    I have this example,

    <HTML> <HEAD> <TITLE>Figure 7-3</TITLE> </HEAD> <BODY> <? //check for file upload if(isset($UploadedFile)) { unlink($UploadedFile); print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n"); } ?> <FORM ENCTYPE="multipart/form-data" ACTION="7-3.php" METHOD="post"> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="4096000"> <INPUT NAME="UploadedFile" TYPE="file"> <INPUT TYPE="submit" VALUE="Upload"> </FORM>

    </BODY> </HTML>

    and the result is this after I uploaded a file

    Local File: /tmp/phpnYLV2J Name: 323lake.jpg Size: 48254 Type: image/pjpeg

    But I couldn't find the uploaded file, nor the /tmp/phpnYLV2J path. Do I normally do a copy after the upload? Can I just change the tmp path and filename when I upload? Thanks.

    --Clemson

    -----Original Message----- From: Juan Pablo Aqueveque [mailto:juqueuct.cl] Sent: Tuesday, September 03, 2002 7:58 AM To: Clemson Chan; php-generallists.php.net Subject: Re: [PHP] Uploading file

    Hi friend,

    http://www.php.net/manual/en/features.file-upload.php And take a look to the User Contributed Notes

    --jp

    At 13:03 03-09-2002 -0700, Clemson Chan wrote: >Hi, I am new to this group. >I am trying to figure out how to let people to upload image files to my >website. >My ISP is using PHP 3 (I believe). >If someone can give me simple example, that will be great. >Thanks. > >--Clemson > >How can I tell what version of PHP is running on the system (linux)? > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

    ________________________________________________________ Juan Pablo Aqueveque <juqueuct.cl> Ingeniero de Sistemas Departamento de Redes y Comunicaciones http://www.drc.uct.cl Universidad Católica de Temuco. Tel:(5645) 205 630 Fax:(5645) 205 628

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

    attached mail follows:


    You are doing wrong... you are checking for the temp file and after that you are deleting the temp file, you should copy the files first

    This is your code

    if(isset($UploadedFile)) { unlink($UploadedFile); // Here you are deleting the temp file print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n"); }

    You should write something like this

    if(isset($UploadedFile)) { copy($UploadedFile, "/uploaded_files/" . $UploadedFile_name); // Here we first copy the temp file to a secure path, you should change the /uploaded_files/

    // path print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n");

    unlink($UploadedFile); // Now we can delete the temp file }

    "Clemson Chan" <clemsonchanearthlink.net> escribió en el mensaje news:EIEMKHIHGBNGLICLLCLAEEEECEAA.clemsonchanearthlink.net... > Thanks Juan, and other listers, > > I have this example, > > <HTML> > <HEAD> > <TITLE>Figure 7-3</TITLE> > </HEAD> > <BODY> > <? > //check for file upload > if(isset($UploadedFile)) > { > unlink($UploadedFile); > print("Local File: $UploadedFile <BR>\n"); > print("Name: $UploadedFile_name <BR>\n"); > print("Size: $UploadedFile_size <BR>\n"); > print("Type: $UploadedFile_type <BR>\n"); > print("<HR>\n"); > } > ?> > <FORM ENCTYPE="multipart/form-data" > ACTION="7-3.php" METHOD="post"> > <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="4096000"> > <INPUT NAME="UploadedFile" TYPE="file"> > <INPUT TYPE="submit" VALUE="Upload"> > </FORM> > > </BODY> > </HTML> > > and the result is this after I uploaded a file > > Local File: /tmp/phpnYLV2J > Name: 323lake.jpg > Size: 48254 > Type: image/pjpeg > > But I couldn't find the uploaded file, nor the /tmp/phpnYLV2J path. > Do I normally do a copy after the upload? > Can I just change the tmp path and filename when I upload? > Thanks. > > --Clemson > > > > -----Original Message----- > From: Juan Pablo Aqueveque [mailto:juqueuct.cl] > Sent: Tuesday, September 03, 2002 7:58 AM > To: Clemson Chan; php-generallists.php.net > Subject: Re: [PHP] Uploading file > > > Hi friend, > > http://www.php.net/manual/en/features.file-upload.php > And take a look to the User Contributed Notes > > --jp > > At 13:03 03-09-2002 -0700, Clemson Chan wrote: > >Hi, I am new to this group. > >I am trying to figure out how to let people to upload image files to my > >website. > >My ISP is using PHP 3 (I believe). > >If someone can give me simple example, that will be great. > >Thanks. > > > >--Clemson > > > >How can I tell what version of PHP is running on the system (linux)? > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > ________________________________________________________ > Juan Pablo Aqueveque <juqueuct.cl> > Ingeniero de Sistemas > Departamento de Redes y Comunicaciones http://www.drc.uct.cl > Universidad Católica de Temuco. > Tel:(5645) 205 630 Fax:(5645) 205 628 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Thank you so much. I got the uploaded files now with full path ("/home/user/www/uploaded_files/") as the new path. can I use relative path such as "../uploaded_files/" ? Thanks

    --Clemson

    -----Original Message----- From: Rodrigo Dominguez [mailto:mailsrorra.com.ar] Sent: Tuesday, September 03, 2002 3:55 PM To: php-generallists.php.net Subject: Re: [PHP] Uploading file

    You are doing wrong... you are checking for the temp file and after that you are deleting the temp file, you should copy the files first

    This is your code

    if(isset($UploadedFile)) { unlink($UploadedFile); // Here you are deleting the temp file print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n"); }

    You should write something like this

    if(isset($UploadedFile)) { copy($UploadedFile, "/uploaded_files/" . $UploadedFile_name); // Here we first copy the temp file to a secure path, you should change the /uploaded_files/

    // path print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n");

    unlink($UploadedFile); // Now we can delete the temp file }

    "Clemson Chan" <clemsonchanearthlink.net> escribió en el mensaje news:EIEMKHIHGBNGLICLLCLAEEEECEAA.clemsonchanearthlink.net... > Thanks Juan, and other listers, > > I have this example, > > <HTML> > <HEAD> > <TITLE>Figure 7-3</TITLE> > </HEAD> > <BODY> > <? > //check for file upload > if(isset($UploadedFile)) > { > unlink($UploadedFile); > print("Local File: $UploadedFile <BR>\n"); > print("Name: $UploadedFile_name <BR>\n"); > print("Size: $UploadedFile_size <BR>\n"); > print("Type: $UploadedFile_type <BR>\n"); > print("<HR>\n"); > } > ?> > <FORM ENCTYPE="multipart/form-data" > ACTION="7-3.php" METHOD="post"> > <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="4096000"> > <INPUT NAME="UploadedFile" TYPE="file"> > <INPUT TYPE="submit" VALUE="Upload"> > </FORM> > > </BODY> > </HTML> > > and the result is this after I uploaded a file > > Local File: /tmp/phpnYLV2J > Name: 323lake.jpg > Size: 48254 > Type: image/pjpeg > > But I couldn't find the uploaded file, nor the /tmp/phpnYLV2J path. > Do I normally do a copy after the upload? > Can I just change the tmp path and filename when I upload? > Thanks. > > --Clemson > > > > -----Original Message----- > From: Juan Pablo Aqueveque [mailto:juqueuct.cl] > Sent: Tuesday, September 03, 2002 7:58 AM > To: Clemson Chan; php-generallists.php.net > Subject: Re: [PHP] Uploading file > > > Hi friend, > > http://www.php.net/manual/en/features.file-upload.php > And take a look to the User Contributed Notes > > --jp > > At 13:03 03-09-2002 -0700, Clemson Chan wrote: > >Hi, I am new to this group. > >I am trying to figure out how to let people to upload image files to my > >website. > >My ISP is using PHP 3 (I believe). > >If someone can give me simple example, that will be great. > >Thanks. > > > >--Clemson > > > >How can I tell what version of PHP is running on the system (linux)? > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > ________________________________________________________ > Juan Pablo Aqueveque <juqueuct.cl> > Ingeniero de Sistemas > Departamento de Redes y Comunicaciones http://www.drc.uct.cl > Universidad Católica de Temuco. > Tel:(5645) 205 630 Fax:(5645) 205 628 > > > -- > 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
    

    attached mail follows:


    relative paths work too. Thank you so much.

    --Clemson

    -----Original Message----- From: Rodrigo Dominguez [mailto:mailsrorra.com.ar] Sent: Tuesday, September 03, 2002 3:55 PM To: php-generallists.php.net Subject: Re: [PHP] Uploading file

    You are doing wrong... you are checking for the temp file and after that you are deleting the temp file, you should copy the files first

    This is your code

    if(isset($UploadedFile)) { unlink($UploadedFile); // Here you are deleting the temp file print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n"); }

    You should write something like this

    if(isset($UploadedFile)) { copy($UploadedFile, "/uploaded_files/" . $UploadedFile_name); // Here we first copy the temp file to a secure path, you should change the /uploaded_files/

    // path print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n");

    unlink($UploadedFile); // Now we can delete the temp file }

    "Clemson Chan" <clemsonchanearthlink.net> escribió en el mensaje news:EIEMKHIHGBNGLICLLCLAEEEECEAA.clemsonchanearthlink.net... > Thanks Juan, and other listers, > > I have this example, > > <HTML> > <HEAD> > <TITLE>Figure 7-3</TITLE> > </HEAD> > <BODY> > <? > //check for file upload > if(isset($UploadedFile)) > { > unlink($UploadedFile); > print("Local File: $UploadedFile <BR>\n"); > print("Name: $UploadedFile_name <BR>\n"); > print("Size: $UploadedFile_size <BR>\n"); > print("Type: $UploadedFile_type <BR>\n"); > print("<HR>\n"); > } > ?> > <FORM ENCTYPE="multipart/form-data" > ACTION="7-3.php" METHOD="post"> > <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="4096000"> > <INPUT NAME="UploadedFile" TYPE="file"> > <INPUT TYPE="submit" VALUE="Upload"> > </FORM> > > </BODY> > </HTML> > > and the result is this after I uploaded a file > > Local File: /tmp/phpnYLV2J > Name: 323lake.jpg > Size: 48254 > Type: image/pjpeg > > But I couldn't find the uploaded file, nor the /tmp/phpnYLV2J path. > Do I normally do a copy after the upload? > Can I just change the tmp path and filename when I upload? > Thanks. > > --Clemson > > > > -----Original Message----- > From: Juan Pablo Aqueveque [mailto:juqueuct.cl] > Sent: Tuesday, September 03, 2002 7:58 AM > To: Clemson Chan; php-generallists.php.net > Subject: Re: [PHP] Uploading file > > > Hi friend, > > http://www.php.net/manual/en/features.file-upload.php > And take a look to the User Contributed Notes > > --jp > > At 13:03 03-09-2002 -0700, Clemson Chan wrote: > >Hi, I am new to this group. > >I am trying to figure out how to let people to upload image files to my > >website. > >My ISP is using PHP 3 (I believe). > >If someone can give me simple example, that will be great. > >Thanks. > > > >--Clemson > > > >How can I tell what version of PHP is running on the system (linux)? > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > ________________________________________________________ > Juan Pablo Aqueveque <juqueuct.cl> > Ingeniero de Sistemas > Departamento de Redes y Comunicaciones http://www.drc.uct.cl > Universidad Católica de Temuco. > Tel:(5645) 205 630 Fax:(5645) 205 628 > > > -- > 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
    

    attached mail follows:


    i have the same problem. Where is the kind soul who can help us?

    Peace & Love skitum

    ----- Original Message ----- From: "Clemson Chan" <clemsonchanearthlink.net> To: "Juan Pablo Aqueveque" <juqueuct.cl>; <php-generallists.php.net> Sent: Wednesday, September 04, 2002 12:25 AM Subject: RE: [PHP] Uploading file

    > Thanks Juan, and other listers, > > I have this example, > > <HTML> > <HEAD> > <TITLE>Figure 7-3</TITLE> > </HEAD> > <BODY> > <? > //check for file upload > if(isset($UploadedFile)) > { > unlink($UploadedFile); > print("Local File: $UploadedFile <BR>\n"); > print("Name: $UploadedFile_name <BR>\n"); > print("Size: $UploadedFile_size <BR>\n"); > print("Type: $UploadedFile_type <BR>\n"); > print("<HR>\n"); > } > ?> > <FORM ENCTYPE="multipart/form-data" > ACTION="7-3.php" METHOD="post"> > <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="4096000"> > <INPUT NAME="UploadedFile" TYPE="file"> > <INPUT TYPE="submit" VALUE="Upload"> > </FORM> > > </BODY> > </HTML> > > and the result is this after I uploaded a file > > Local File: /tmp/phpnYLV2J > Name: 323lake.jpg > Size: 48254 > Type: image/pjpeg > > But I couldn't find the uploaded file, nor the /tmp/phpnYLV2J path. > Do I normally do a copy after the upload? > Can I just change the tmp path and filename when I upload? > Thanks. > > --Clemson > > > > -----Original Message----- > From: Juan Pablo Aqueveque [mailto:juqueuct.cl] > Sent: Tuesday, September 03, 2002 7:58 AM > To: Clemson Chan; php-generallists.php.net > Subject: Re: [PHP] Uploading file > > > Hi friend, > > http://www.php.net/manual/en/features.file-upload.php > And take a look to the User Contributed Notes > > --jp > > At 13:03 03-09-2002 -0700, Clemson Chan wrote: > >Hi, I am new to this group. > >I am trying to figure out how to let people to upload image files to my > >website. > >My ISP is using PHP 3 (I believe). > >If someone can give me simple example, that will be great. > >Thanks. > > > >--Clemson > > > >How can I tell what version of PHP is running on the system (linux)? > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > ________________________________________________________ > Juan Pablo Aqueveque <juqueuct.cl> > Ingeniero de Sistemas > Departamento de Redes y Comunicaciones http://www.drc.uct.cl > Universidad Católica de Temuco. > Tel:(5645) 205 630 Fax:(5645) 205 628 > > > -- > 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

    attached mail follows:


    Hi Øystein,

    PHP is interpreted on the server side, JS on the client side. I guess thats what you need to realize. Try starting with less complex stuff and just concentrate on one language at a time, in the beginning.

    Timo

    Am Montag den, 2. September 2002, um 17:49, schrieb Øystein Håland: > So, why does it work some time mixing javascript and php, and not every > time?

    attached mail follows:


    Hi Jim,

    I had the very same strange issue with a cfg var not changing. It worked after using ini_restore(). (I played around with ini_set() before. Did you as well?)

    I am not sure if it has anything to do with it. It sounds pretty illogical. But PHP ignoring a setting in php.ini sounds illogical as well, so it might be worth a try.

    Timo

    > Jim Hatridge wrote: > >> Can someone give me an idea what next to do? Either how to >> turn off safe_mode or a work around on the code. BTW I'm using >> SuSE 8.0, PHP, and Mysql on a self-made PI/233.

    attached mail follows:


    all:

    I just noticed that I was not replying to the list, but to the posting email adresses. I just switched to another email client and was not aware of this. My apologies :-(

    ---
    

    You,

    could it be that you want to do the following?:

    <?php // primary php

    $foo = $_REQUEST["foo"] // I guess you want to do something with $foo here. $outputfromsecondaryphp = file("secondary.php?foo=".$foo) echo implode('', $outputfromsecondaryphp); ?>

    Am Dienstag den, 3. September 2002, um 00:15, schrieb you: > Thanks for ur help and i'm sorry to have a so bad english

    I guess my french is worse than your english :-)

    Timo

    attached mail follows:


    Hi David,

    in PHP, you can not access associative arrays with index numbers (and your mysql row arrays will be of the associative kind).

    But Chris posted a kludge recently:

    //snip Just for kicks ... here's something pretty ugly (I'd never use it), but neat if you're interested (or somehow really have your heart set on using integers). There are probably a handful of other ways to do this:

    $test = array ( 'a' => 'A', 'b' => 'B', 'c' => 'C'); $test_keys = array_keys( $test ); print $test[$test_keys[2]]; // Prints "C" - Same as print $test['c'];

    ~Chris //snip

    Timo

    Am Dienstag den, 3. September 2002, um 08:33, schrieb David Banning:

    > if I set test = "Y"; > then > > if ($test == "Y") {echo ("it matches");} > > seems to work while > > if ($row[24] == "Y") {echo ("it matches");} > > does not. > The row[24] mysql variable is char type and 1 char long. > > any idea why it is not doing the comparison? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    hi,

    In a form i have several text area.....when i submit the form, I need to send a email at a particular id which contains the text entered in the text area..... Can someone gimme a script which gives me and idea about how to do that...or some link where i can find that.

    Thanx and regards anil

    attached mail follows:


    -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

    Hey, Take a look at http://php.net/mail If you want a script written I'll need to see the page that has the form and the email id you want the message sent to. ~Pauly

    On Tuesday 03 September 2002 06:46 pm, Anil Garg wrote: > hi, > > In a form i have several text area.....when i submit the form, I need to > send a email at a particular id which contains the text entered in the text > area..... > Can someone gimme a script which gives me and idea about how to do > that...or some link where i can find that. > > Thanx and regards > anil

    - -- ~Paul Nicholson Design Specialist WebPower Design "The web....the way you want it!" paulwebpowerdesign.net

    "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

    iD8DBQE9dYPVDyXNIUN3+UQRAuDuAJ0S5EPYee1dGzZrI1HaZQuSrfYLYQCfdMGP Sb0wN2ajQVkYa+x5eEK/i4c= =uEnU -----END PGP SIGNATURE-----

    attached mail follows:


    I am new to Linux and is trying to install PHP/MySQL/SSL.

    I used the instruction found on this link: http://www.brtnet.org/linux/lampssl.htm

    Everything seemed to install OK; on the last step, open httpd.conf and uncomment the lines:

    AddType application/x-httdp-php .php AddType application/x-httdp-php-source .phps

    I couldn't find the lines in the file. If these lines are not there did I do something wrong, or can I just add them. If I can just add them, where to I add them.

    Thanks, Mark.

    attached mail follows:


    -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

    Hey, Yes, you can add those two lines....add them at the bottom. ~Pauly

    On Tuesday 03 September 2002 06:57 pm, Mark McCulligh wrote: > I am new to Linux and is trying to install PHP/MySQL/SSL. > > I used the instruction found on this link: > http://www.brtnet.org/linux/lampssl.htm > > Everything seemed to install OK; on the last step, open httpd.conf and > uncomment the lines: > > AddType application/x-httdp-php .php > AddType application/x-httdp-php-source .phps > > I couldn't find the lines in the file. If these lines are not there did I > do something wrong, or can I just add them. If I can just add them, where > to I add them. > > Thanks, Mark.

    - -- ~Paul Nicholson Design Specialist WebPower Design "The web....the way you want it!" paulwebpowerdesign.net

    "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

    iD8DBQE9dYYGDyXNIUN3+UQRAo9DAKCZhf7ORj/dzPY70uZVwvj+uW8P9ACfcJls ia5gtB6XUHhWZ6PVqh8XM3Q= =NyJ2 -----END PGP SIGNATURE-----

    attached mail follows:


    Hello,

    On 09/03/2002 12:44 PM, Erich Kolb wrote: > What is the PHP equivalent to javascript: back?

    echo "<a href=".GetEnv("HTTP_REFERER").">Back</a>";

    It may not work though.

    -- 
    

    Regards, Manuel Lemos

    attached mail follows:


    I apologize beforehand in case this message is posted twice.

    If there is some way to do this, then it has eluded me for several hours. I would like to set a variable in the apache config file which I can then access in a php script. I'm running mod_php4 and apache 1

    I have tried things like this: php_value WSERVER red2.office.com

    and this: SetEnv WSERVER red2.office.com

    with and without quotes. mod_env is loaded. I can't find the variable WSERVER in $GLOBALS or $_ENV of $_GET.

    can someone help out?

    -- 
    Flowers of morning glory.      +-----------------------------------------+
    The sky above this street      |donate to causes I care about:           |
    Begins to overcast.            |  http://svcs.affero.net/rm.php?r=leed_25|
                       --Sugita    +-----------------------------------------+
    

    attached mail follows:


    If there is some way to do this, then it has eluded me for several hours. I would like to set a variable in the apache config file which I can then access in a php script. I'm running mod_php4 and apache 1

    I have tried things like this: php_value WSERVER red2.office.com

    and this: SetEnv WSERVER red2.office.com

    with and without quotes. mod_env is loaded. I can't find the variable WSERVER n $GLOBALS or $_ENV of $_GET.

    can someone help out?

    -- 
    Flowers of morning glory.      +-----------------------------------------+
    The sky above this street      |donate to causes I care about:           |
    Begins to overcast.            |  http://svcs.affero.net/rm.php?r=leed_25|
                       --Sugita    +-----------------------------------------+
    

    attached mail follows:


    Hello everyone,

    I would like to study PHP but do not have any experience about PHP or programming. Could you please give me some advice to begin such as books, news, forum...

    Many thanks in advance, Anh

    attached mail follows:


    Read everything at the following sites :-)

    www.php.net www.zend.com www.phpbuilder.com

    In particular read the manuals, tips, tricks, examples, and links to other sites sections.

    Lots of good info there and will point to more sites.

    On Tue, 3 Sep 2002, Anh wrote:

    > Hello everyone, > > I would like to study PHP but do not have any experience about PHP or > programming. Could you please give me some advice to begin such as books, > news, forum... > > Many thanks in advance, > Anh > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    I truely recommend "Beginning PHP4" by Wrox Press (www.wrox.com or p2p.wrox.com) if you have no experience in programming or PHP. It is, by far, the best $40 you will ever ever spend. I promise.

    regards, dan

    On Tue, 3 Sep 2002 16:46:03 -0700 (PDT) Philip Hallstrom <philipadhesivemedia.com> wrote:

    > Read everything at the following sites :-) > > www.php.net > www.zend.com > www.phpbuilder.com > > In particular read the manuals, tips, tricks, examples, and links to other > sites sections. > > Lots of good info there and will point to more sites. > > On Tue, 3 Sep 2002, Anh wrote: > > > Hello everyone, > > > > I would like to study PHP but do not have any experience about PHP or > > programming. Could you please give me some advice to begin such as books, > > news, forum... > > > > Many thanks in advance, > > Anh > > > > > > > > -- > > 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

    attached mail follows:


    Hi Dan,

    Thank you so much for your advice.

    Anh

    "Dan Ostrowski" <dantriad-dev.com> wrote in message news:20020903192920.162c5786.dantriad-dev.com... > I truely recommend "Beginning PHP4" by Wrox Press (www.wrox.com or p2p.wrox.com) if you have no experience in programming or PHP. It is, by far, the best $40 you will ever ever spend. I promise. > > regards, > dan > > On Tue, 3 Sep 2002 16:46:03 -0700 (PDT) > Philip Hallstrom <philipadhesivemedia.com> wrote: > > > Read everything at the following sites :-) > > > > www.php.net > > www.zend.com > > www.phpbuilder.com > > > > In particular read the manuals, tips, tricks, examples, and links to other > > sites sections. > > > > Lots of good info there and will point to more sites. > > > > On Tue, 3 Sep 2002, Anh wrote: > > > > > Hello everyone, > > > > > > I would like to study PHP but do not have any experience about PHP or > > > programming. Could you please give me some advice to begin such as books, > > > news, forum... > > > > > > Many thanks in advance, > > > Anh > > > > > > > > > > > > -- > > > 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

    attached mail follows:


    Anh wrote:

    >Hello everyone, > >I would like to study PHP but do not have any experience about PHP or >programming. Could you please give me some advice to begin such as books, >news, forum... > >Many thanks in advance, >Anh > > > > > You already found the best PHP forum there is ;-)

    René

    attached mail follows:


    For those who are interested, master.php.net and bugs.php.net are back.

    --
    

    Nicos - CHAILLAN Nicolas nicosphp.net www.WorldAKT.com - Hébergement de sites Internet

    attached mail follows:


    http://master.php.net redirects me to http://www.php.net, but the "bugs" url works fine.. I'm not sure what "master" would be which is why I tried accessing it.. Is this normal to redirect to the main site? TIA..

    Take care.. peace.. eriol

    ====

    <nicosphp.net> disgorged:

    : For those who are interested, master.php.net and bugs.php.net are back.

    attached mail follows:


    Yes thats normal. master.php.net is used by the members of PHP (cvs accounts etc..) to manage their account. They've got the correct url to do that from master.php.net.

    --
    

    Nicos - CHAILLAN Nicolas nicosphp.net www.WorldAKT.com - Hébergement de sites Internet

    "Eriol" <erioleriol.com> a écrit dans le message de news: 20020904000646.59266.qmailpb1.pair.com... > http://master.php.net redirects me to http://www.php.net, but the "bugs" url > works fine.. I'm not sure what "master" would be which is why I tried > accessing it.. Is this normal to redirect to the main site? TIA.. > > Take care.. peace.. > eriol > > ==== > > <nicosphp.net> disgorged: > > : For those who are interested, master.php.net and bugs.php.net are back. >

    attached mail follows:


    Ahh.. Okay.. Thanks..

    I don't know if this is a normal issue (first time I've seen it), but in my initial reply to your thread, I received the following back via email.. I typically post through replies the newsgroup way at news.php.net and not the mailing list route.. Didn't know if I should point it out or not, but decided it couldn't hurt to do so..

    ----
    Your message was not delivered for the following reason:
    

    E-mail Account: lists-php is over the limit of 31457280 bytes.

    Automated Postmaster

    [snipped original email reply and headers] ----

    Take care.. peace.. eriol

    ====

    <nicosphp.net> disgorged:

    : Yes thats normal. master.php.net is used by the members of PHP (cvs accounts : etc..) to manage their account. They've got the correct url to do that from : master.php.net.

    attached mail follows:


    Yes, it looks its a new stuff because I get the reply to all my post too.

    --
    

    Nicos - CHAILLAN Nicolas nicosphp.net www.WorldAKT.com - Hébergement de sites Internet

    "Eriol" <erioleriol.com> a écrit dans le message de news: 20020904002240.69315.qmailpb1.pair.com... > Ahh.. Okay.. Thanks.. > > I don't know if this is a normal issue (first time I've seen it), but in my > initial reply to your thread, I received the following back via email.. I > typically post through replies the newsgroup way at news.php.net and not the > mailing list route.. Didn't know if I should point it out or not, but decided > it couldn't hurt to do so.. > > ---- > Your message was not delivered for the following reason: > > E-mail Account: lists-php is over the limit of 31457280 bytes. > > Automated Postmaster > > [snipped original email reply and headers] > ---- > > Take care.. peace.. > eriol > > ==== > > <nicosphp.net> disgorged: > > : Yes thats normal. master.php.net is used by the members of PHP (cvs accounts > : etc..) to manage their account. They've got the correct url to do that from > : master.php.net. >

    attached mail follows:


    Hi,

    I will appreciate if you have some sample code about opening a file from a UNIX server.

    This is the code I wrote for this issue:

    <?php // test program

    $conn_id=0; $fich = fopen("servidor/afiedt.buf">ftp://usuario:claveservidor/afiedt.buf","r"); while ($fich[$i]) { echo $fich[$i]; echo "<br>"; $i++; } ?>

    This is the message error/warning:

    Warning: File not found in d:\apache\htdocs\lee_fichero2.php3 on line 3 Warning: file("servidor/afiedt.buf">ftp://...servidor/afiedt.buf") - No such file or directory in d:\apache\htdocs\lee_fichero2.php3 on line 3

    In the other hand, my php version is 4.0

    In the help of the command fopen(), it says:

    If filename begins with "ftp://" (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned. If the server does not support passive mode ftp, this will fail. You can open files for either reading or writing via ftp (but not both simultaneously).

    phpinfo() returns me the following ftp topic:

    FTP support enabled

    I just don't know what more can I do ...

    Thanx in advance

    Javier

    attached mail follows:


    Hi,

    You should read www.php.net/fopen : If filename begins with "ftp://" (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned. If the server does not support passive mode ftp, this will fail. You can open files for either reading or writing via ftp (but not both simultaneously). If the remote file already exists on the ftp server and you attempt to open it for writing, this will fail. If you need to update existing files over ftp, use ftp_connect().

    You should also read www.php.net/feof, www.php.net/fread You can't echo the var of fopen, you must use fread and verify you're not at the end of the file with

    while(!feof($fich))...

    --
    

    Nicos - CHAILLAN Nicolas nicosphp.net www.WorldAKT.com - Hébergement de sites Internet

    "Javier Campo Martinez" <jcampomelectricaribe.com> a écrit dans le message de news: 012e01c253ab$1669a310$5989f00acostacaribe.com... Hi,

    I will appreciate if you have some sample code about opening a file from a UNIX server.

    This is the code I wrote for this issue:

    <?php // test program

    $conn_id$fich = fopen("servidor/afiedt.buf">ftp://usuario:claveservidor/afiedt.buf","r"); while ($fich[$i]) { echo $fich[$i]; echo "<br>"; $i++; } ?>

    This is the message error/warning:

    Warning: File not found in d:\apache\htdocs\lee_fichero2.php3 on line 3 Warning: file("servidor/afiedt.buf">ftp://...servidor/afiedt.buf") - No such file or directory in d:\apache\htdocs\lee_fichero2.php3 on line 3

    In the other hand, my php version is 4.0

    In the help of the command fopen(), it says:

    If filename begins with "ftp://" (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned. If the server does not support passive mode ftp, this will fail. You can open files for either reading or writing via ftp (but not both simultaneously).

    phpinfo() returns me the following ftp topic:

    FTP support enabled

    I just don't know what more can I do ...

    Thanx in advance

    Javier

    attached mail follows:


    Note that you can use also: $content = implode("",file($filename)"); but I dont know if file() works with ftp. You should use my first tip anyway.

    --
    

    Nicos - CHAILLAN Nicolas nicosphp.net www.WorldAKT.com - Hébergement de sites Internet

    "Javier Campo Martinez" <jcampomelectricaribe.com> a écrit dans le message de news: 012e01c253ab$1669a310$5989f00acostacaribe.com... Hi,

    I will appreciate if you have some sample code about opening a file from a UNIX server.

    This is the code I wrote for this issue:

    <?php // test program

    $conn_id=0; $fich = fopen("servidor/afiedt.buf">ftp://usuario:claveservidor/afiedt.buf","r"); while ($fich[$i]) { echo $fich[$i]; echo "<br>"; $i++; } ?>

    This is the message error/warning:

    Warning: File not found in d:\apache\htdocs\lee_fichero2.php3 on line 3 Warning: file("servidor/afiedt.buf">ftp://...servidor/afiedt.buf") - No such file or directory in d:\apache\htdocs\lee_fichero2.php3 on line 3

    In the other hand, my php version is 4.0

    In the help of the command fopen(), it says:

    If filename begins with "ftp://" (not case sensitive), an ftp connection to the specified server is opened and a pointer to the requested file is returned. If the server does not support passive mode ftp, this will fail. You can open files for either reading or writing via ftp (but not both simultaneously).

    phpinfo() returns me the following ftp topic:

    FTP support enabled

    I just don't know what more can I do ...

    Thanx in advance

    Javier

    attached mail follows:


    Eric,

    Please don't email me off-list, unless you're looking to pay me for my services.

    1. I generally dedicate a certain amount of my time per day to the list 2. If we discuss things off-list, then no one else benefits from the discussion.

    on 04/09/02 5:26 AM, Eric J Schwinder (ericbergencomputing.com) wrote:

    > I noticed that you had started a thread regarding bulk e-mail using > PHP. I am currently trying to setup a system to extract e-mail > addresses from a mySQL membership database and send messages to the > whole list, and was wondering how you're coming along with your > setup... > > I saw a lot of good ideas out there... what method did you end up > going with, and how is it working?

    I am certain I've said this on the list a few times, but here goes again. There is always going to be an inherit problem with trying to send multiple emails via a web interface IF you want to personalise each one. The reason for this is that each email has to be generated and qued individually on the mail server, which eats up server performance dramatically. Depending on your server, you will hit a snag somewhere (at 10 people, or 100 people or 500 people, or 10000 people), because either the server or browser will timeout, or the sysadmin of your host will shut you down for eating up server processing time.

    The solution is to NOT send personalised emails. Send ONE email with everyone in the Bcc: field, and it should take maybe 3 seconds to que the email to 50,000+ people.

    Another solution is to move your mailing list to a dedicated ml service provider (like sparklist), who will send a minimum of 50,000 emails anywhere you like, personalised, in HTML and plain text, blah blah blah for the minimum of US$50/month.

    Currently I have one client who demands personalised emails. Luckily, it's a small list (200 people), and I break the send-out down to batches of 20 emails, split apart by 2 minutes (this could be done manually, or with META refresh tags, or even javascript).

    Regards,

    Justin

    attached mail follows:


    Justin French wrote on Wed, Sep 04, 2002 at 11:58:10AM +1000: > Currently I have one client who demands personalised emails. Luckily, it's > a small list (200 people), and I break the send-out down to batches of 20 > emails, split apart by 2 minutes (this could be done manually, or with META > refresh tags, or even javascript).

    And why does the whole process even have to be web based? Fill out the form with the data, and submit sort-of a batch job, recieve a report in your inbox when it exits, c'est la vie.

    Also, if using sendmail, you will benefit if you only queue up the mail, not attempt to deliver it upon submission, and let sendmail deliver it in a normal queue run. This way many/all messages destined to the same mail server will be delivered in one large transaction, not many small ones. A small gain, but it adds up.

    -- 
    Tomasz Orzechowski                                           tmoapk.net
    APK.net systems administration team                                TO630
    

    attached mail follows:


    Hi,

    Wednesday, September 4, 2002, 1:30:49 AM, you wrote: RL> Why exit() funtion always exit with 255 value instead of the passed RL> value, in php 4.2.2, even when I compile with --enable-cli. RL> Check the code bellow, to see

    RL> # cat t3.php RL> #!/usr/src/php-4.2.2/php RL> <?php RL> echo "Version: ",phpversion(),"\n"; RL> exit(1); ?>> RL> # ./t3.php ; echo "last run exit value:"$? RL> Version: 4.2.2 RL> last run exit value:255

    Try changing the commas to dots like echo "Version: ".phpversion()."\n";

    -- 
    regards,
    Tom
    

    attached mail follows:


    Is it possible to pass an array in a form post? If so, how do I reference the array on the next page?

    Thank You Paul php

    attached mail follows:


    In article <AGEOIIKDIJBPINCJIFJKIENOCIAA.pmaineaustin.rr.com>, pmaineaustin.rr.com says... > Is it possible to pass an array in a form post? If so, how do I reference > the array on the next page? > > Thank You > Paul > php

    I believe you may need serialize/unserialize here. Use serialize($array) to create a simple variable that can be passed, then at the other end, use unserialize to restore it.

    http://www.php.net/serialize for more info

    -- 
    David Robley
    Temporary Kiwi!
    

    Quod subigo farinam

    attached mail follows:


    you can also join() the elements and pass as a single string, then explode() the elements back again.

    Elias "Paul Maine" <pmaineaustin.rr.com> wrote in message news:AGEOIIKDIJBPINCJIFJKIENOCIAA.pmaineaustin.rr.com... > Is it possible to pass an array in a form post? If so, how do I reference > the array on the next page? > > Thank You > Paul > php >

    attached mail follows:


    If you are in a session you can register the array and it will be available on the next page, once you finish working with the array, just unregister the array.

    File1.php action= file2.php session_start(); session_register("foo"); var $foo = array();

    File2.php session_start(); Work with $foo session_unregister("foo");

    "Paul Maine" <pmaineaustin.rr.com> escribió en el mensaje news:AGEOIIKDIJBPINCJIFJKIENOCIAA.pmaineaustin.rr.com... > Is it possible to pass an array in a form post? If so, how do I reference > the array on the next page? > > Thank You > Paul > php >

    attached mail follows:


    Alberto wrote on Tue, Sep 03, 2002 at 06:32:56PM -0300: > There is an error code that says that it cannot load module 'mm' at line > 0, or something like that.

    in your shell do: ldd `which php`

    it will most likely say something like: 'libmm.so.11 not found'

    you will then need to find the 'mm' library on the system, perhaps with: find /usr/lib -name \*mm\* find /usr/local/lib -name \*mm\* and set your LD_LIBRARY_PATH accordingly, or call the PHP binary with the library preloaded: 'LD_PRELOAD=/usr/lib/libmm.so.11 php'

    or I might be way off base ;)

    -- 
    Tomasz Orzechowski                                           tmoapk.net
    APK.net systems administration team                                TO630
    

    attached mail follows:


    Hey all. I do most of my coding on win98 before uploading it to my web host running linux. I'm running the windows versions of apache/mysql/php. I'm using the cgi version of php. I also run the personal firewall software, zone alarm. When zone alarm is running it slows php/mysql down so much that the script usually times out. I have given these programs the permissions that they need in zone alarm. Zone alarm doesn't keep them from running, it just makes them really slow. It doesn't run slow unless I query the mysql DB from a php page. Php in and of itself is not slow, just when used in conjunction with mysql. Also, when I use mysql from the command line it doesn't seem to be slow.

    I know this isn't necessarily a php issue, but thought maybe some of you may have run into a problem like this before and would know a remedy.

    Any help appreciated.

    tia, --ed

    __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com

    attached mail follows:


    Øystein Håland wrote:

    >on my own machine, W2k+Apache+php4.2 this works without problem, >on the Internet-server though, (Linux), the following script produces a >blank page: > ><?php > require "../utils.php"; > $link=openDB(); > $file = $target.form; > >// Queries for student >if ($target == "student") { > // Add student <Query to add> > > // Change student info <Query to change info> > > // Delete student <Query to delete> >} > >// Queries for result >if ($target == "result") { > // Delete result <Query to delete> >} > >if(!isset($administrate) && $goal) { > if ($logga_in == "ok" ) { > $adm_user = "admin"; > $adm_pass = "password"; > > if ($operation == "logon") { > if ($password == $adm_pass && $admin == $adm_user) { > setcookie("administrate", "OK", 0); > > include("../recycle/head.php"); > include ("$file.php"); > } else { > include("../recycle/head.php"); > echo "<CENTER><FONT SIZE=\"5\" COLOR=\"#C90000\">Please try again. Check >your spelling.</FONT><CENTER>"; > include ("loginform.php"); > } > } > } else { > include("../recycle/head.php"); > include ("loginform.php"); > } >} elseif ($target) {//When logged in this load the right form > include("../recycle/head.php"); > include ("$file.php"); >} >if (!$target) {//This happens when first loaded. In the head.php there's a >menu and the different targets are set > include("../recycle/head.php"); > echo " ><H2>Administration of <SUB><IMG BORDER=0 SRC=\"../pics/mypicmin.gif\" >WIDTH=135 HEIGHT=30></SUB></H2> > "; >} >include("../recycle/bottom.php"); >?> > >Explanation: utils.php with the two functions openDB() and queryDB() connect >to the database and do the query. loginform.php contains the html to the >loginform. > $file = $target.form; so the right form will be loaded. >So, what is wrong, why does it 'behave' so different? > > > > > > > Does not look that there are any problems in your script. The real problem could be in the include files though!

    You might start doing the following 1) check if your internet server allows access to the other directories (like ../recycle and ../). I suppose that you did not forget to copy these files too ;-) 2) compare the php.ini of your test system and the internet server. Differences might give a clue to the problem 3) view the source code of the 'blank page' . Is it realy blank? It might contain a bit of HTML output that can give a hint of were your script stops 4) include error_reporting(E_ALL); as first line of code in your php-scripts. It might help debugging 5) does your internet server have access to the database? Is it the same database? Arre the access rights the same? 6) run this script on both machines and look for differences in the outputs: <?php php_info() ?>

    Good luck

    René

    attached mail follows:


    Rodrigo Dominguez wrote:

    >I made a mistake while I was writting the example, in my original code I >wrote it as you did, with $this->b[0] = new one(); but it doesn't work. >Thank you. > >"Philip Hallstrom" <philipadhesivemedia.com> escribió en el mensaje >news:20020903141730.Y54117-100000cypress.adhesivemedia.com... > > >>Not tested, but what if you change >> >> $b[0] = new one(); >> $b[1] = new one(); >> >>to: >> >> $this->b[0] = new one(); >> $this->b[1] = new one(); >> >>On Tue, 3 Sep 2002, Rodrigo Dominguez wrote: >> >> >> >>>I have a problem, I can't create an array of classes into a class, for >>>example: >>> >>>class one { >>> var $a; >>> >>> function foo() { >>> echo "foo"; >>> } >>>} >>> >>>class two { >>> var $b; >>> >>> function initialize() { >>> $b[0] = new one(); >>> $b[1] = new one(); >>> } >>>} >>> >>>$test = new two(); >>>$test->initialize(); >>> >>>$test->b[0]->foo(); //It doesn't work >>>$test->b[1]->foo(); //It doesn't work >>> >>>Any suggestion? >>> >>> >>> >>> >>>-- >>>PHP General Mailing List (http://www.php.net/) >>>To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >>> > > > > >

    Eh.. unchecked code, but what about:

    $this->b[0] = new one; $this->b[1] = new one;

    $test = new two;

    Instead of $this->b[0] = new one(); $this->b[1] = new one();

    $test = new two();

    If no luck try to include error_reporting(E_ALL); as first line of your script.

    Good luck

    René

    attached mail follows:


    what are the components to be use if you want to set up a site that SENDS Free SMS and uses PHP?

    -- 
    Lejanson C. Go, SDE I
    

    attached mail follows:


    Hi all,

    I have a input button like this: <input name="imagen" type="FILE" id="imagen" height=1> How can i get this image? I need to receive it as a attachment file or insert it into a MySQL database.

    Any Ideas? Thanks for help.

    Peace & Love skitum

    attached mail follows:


    Hi there

    Have a look at http://www.php.net/manual/en/features.file-upload.php

    It should explain all.

    Regards

    -Scott

    > -----Original Message----- > From: skitum [mailto:skitumhotmail.com] > Sent: Wednesday, September 04, 2002 10:35 AM > To: php-generallists.php.net > Subject: [PHP] how get a image? > > > Hi all, > > I have a input button like this: <input name="imagen" type="FILE" > id="imagen" height=1> > How can i get this image? I need to receive it as a attachment > file or insert it into a MySQL database. > > Any Ideas? > Thanks for help. > > Peace & Love > skitum >

    attached mail follows:


    Hi, There are somewhere a script to manage mysql table in this way: -In table i have a date field(format yyyy-mm-dd). I tried "webmin", PHPMyEdit etc, for editing this field from web page, but field is displayed as textbox and i have to write manually date field. I want next to textfield a button with popup window with calendar inside, when i select a day, popup window is closed and value selected is written in textbox. In html with javascript is easy, but here i mess. tx in adv for any help

    attached mail follows:


    This script is not mine, but I modified it so that it can work with any form field... take a look at the sources:

    http://lgwm.org/ozone/calcall.htm

    Good luck.

    "Adi" <adipublichome.ro> wrote in message news:001701c253f3$5ce58820$9600a8c0adi... Hi, There are somewhere a script to manage mysql table in this way: -In table i have a date field(format yyyy-mm-dd). I tried "webmin", PHPMyEdit etc, for editing this field from web page, but field is displayed as textbox and i have to write manually date field. I want next to textfield a button with popup window with calendar inside, when i select a day, popup window is closed and value selected is written in textbox. In html with javascript is easy, but here i mess. tx in adv for any help