OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Tue Aug 07 2001 - 03:15:47 CDT

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

    php-general Digest 7 Aug 2001 08:15:47 -0000 Issue 801

    Topics (messages 61474 through 61560):

    Re: Host OnLine ?
            61474 by: Arcadius A.
            61477 by: Robert Collins
            61487 by: mike cullerton
            61488 by: Karl Austin
            61526 by: Andreas D. Landmark

    Re: Display the weather on my site
            61475 by: Tim
            61483 by: pierre-yves

    Re: get value
            61476 by: Sam Masiello
            61480 by: mjriding.wcoil.com

    PHP App developer position --South San Francisco
            61478 by: Greg Landis

    Text area ...
            61479 by: Coconut Ming
            61482 by: James, Yz
            61497 by: Jon Yaggie
            61506 by: ani.lamundial.net

    Session problem
            61481 by: Chad Day
            61490 by: mike cullerton

    trouble with configure for current cvs :: gdImageGifCtx
            61484 by: Caffeinate The World

    Re: What's the difference between echo and print?
            61485 by: James, Yz
            61498 by: mike cullerton

    Turning off Content-type header.
            61486 by: Karl Austin
            61491 by: Alexander Wagner
            61492 by: Karl Austin

    How is this done?
            61489 by: mjriding.wcoil.com

    getting an auto increment value immediately after insert
            61493 by: garman
            61494 by: Tim
            61495 by: James, Yz

    Splitting Text
            61496 by: Jordan Elver
            61499 by: Alfredeen, Johan
            61500 by: Matthew Loff

    configuring php from a binary install
            61501 by: Christian Cresante

    Re: spell checker
            61502 by: Garth Dahlstrom

    News Shows??? I made $2,000 in 4 WEEKS!! Did You??
            61503 by: jc mills

    Uptime script
            61504 by: Craig Westerman
            61505 by: Tim
            61527 by: Andreas D. Landmark
            61531 by: Andrew Brampton
            61535 by: Craig Westerman
            61536 by: Andreas D. Landmark
            61537 by: Craig Westerman

    Unable to create COM objects on Win2k
            61507 by: Diego Fulgueira Pastor

    Re: phpAds advice needed
            61508 by: John Monfort

    Any good gif/jpg processing tool for PHP??
            61509 by: Diego Fulgueira Pastor
            61541 by: Gaylen Fraley
            61556 by: Girish Nath
            61557 by: Jon Yaggie

    Re: ASSISTANCE NEEDED
            61510 by: John Monfort

    File Uploads
            61511 by: Scott Kalbach

    Re: New lists (was [PHP] Attitude of B van Ouwerkerk)
            61512 by: Joel Ricker

    Re: What would you want in a PHP web host?
            61513 by: Joel Ricker

    How do I write a compound variable?
            61514 by: Hugh Danaher
            61517 by: mike cullerton
            61533 by: mike cullerton
            61553 by: Hugh Danaher
            61555 by: Christian Reiniger

    Re: Form call a function on submit
            61515 by: mike cullerton

    urlencode/decode
            61516 by: Michael Mehlmann

    Problem with require(), determining context.
            61518 by: Ryan Fischer
            61520 by: Michael Mehlmann

    how to show banners
            61519 by: Michael Mehlmann

    Re: running stand-alone php
            61521 by: mike cullerton

    Search Engines
            61522 by: Tom Carter
            61525 by: Tim
            61542 by: rm

    problem with querystring
            61523 by: Ishak Anwar
            61528 by: Tim
            61529 by: Ishak Anwar
            61530 by: Tim

    Re: myPhpAdmin/mysql/php/ Problem
            61524 by: David Robley

    Re: PHP scripts that return files
            61532 by: Tom Carter

    Re: Easiest Automated mailing list concept?
            61534 by: Justin French

    I HAVE A PROBLEM HERE...
            61538 by: Joshman
            61540 by: rm
            61544 by: Joshman
            61545 by: Peter Houchin
            61546 by: Gaylen Fraley
            61549 by: rm

    Does $PHP_SELF work in templates?
            61539 by: Phil Latio

    Python and PHP
            61543 by: rm

    handling form control
            61547 by: i_union

    Writing php modules in C++
            61548 by: Shao Zhang
            61558 by: Yasuo Ohgaki

    Feasibility of using XML, PHP for a database-driven web application
            61550 by: Gerry Kirk
            61551 by: Justin Farnsworth

    SSL encryption type in PHP?
            61552 by: Dr. Evil

    Re: XML Next 25 Results
            61554 by: Girish Nath

    Insecurity with PHP authorization
            61559 by: Stefen Lars

    Re: veuillez m'inscrire dans la liste
            61560 by: elias

    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:


    What if the host I'm checking is a simple workstation not running neither a
    HTTP nor a FTP server ?
    I'm writing this script for an intranet to check which machines are
    currently on ...

    Thanks ....

    Arcad

    "Arcadius A." <ahouanssh.cvut.cz> wrote in message
    news:20010806154419.82744.qmailpb1.pair.com...
    > Hello !
    > Is there any function in PHP returning true or false or something similar
    > when a given host is online or not ?
    >
    > Basically , I'm in need od something "ping" ....
    > Thanks ...
    >
    > Arcad
    >
    >

    attached mail follows:


    Why not use ping like

    <?
    $bob = exec("ping -c 1 php.net");
    echo $bob;
    ?>

    -----Original Message-----
    From: Arcadius A. [mailto:ahouanssh.cvut.cz]
    Sent: Monday, August 06, 2001 10:17 PM
    To: php-generallists.php.net
    Subject: [PHP] Re: Host OnLine ?

    What if the host I'm checking is a simple workstation not running neither a
    HTTP nor a FTP server ?
    I'm writing this script for an intranet to check which machines are
    currently on ...

    Thanks ....

    Arcad

    "Arcadius A." <ahouanssh.cvut.cz> wrote in message
    news:20010806154419.82744.qmailpb1.pair.com...
    > Hello !
    > Is there any function in PHP returning true or false or something similar
    > when a given host is online or not ?
    >
    > Basically , I'm in need od something "ping" ....
    > Thanks ...
    >
    > Arcad
    >
    >

    -- 
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


    on 8/6/01 11:17 PM, Arcadius A. at ahouanssh.cvut.cz wrote:

    > What if the host I'm checking is a simple workstation not running neither a > HTTP nor a FTP server ? > I'm writing this script for an intranet to check which machines are > currently on ...

    maybe some kind of snmp query?

    -- mike cullerton

    attached mail follows:


    "Arcadius A." <ahouanssh.cvut.cz> wrote in message news:20010806154419.82744.qmailpb1.pair.com... > Hello ! > Is there any function in PHP returning true or false or something similar > when a given host is online or not ? > > Basically , I'm in need od something "ping" .... > Thanks ... > > Arcad > > Hi,

    Try downloading http://scripts.kdawebservices.com/kdamon-1.0.0.zip you can configure what ports it monitors and what IP addresses it monitors and it's free.

    --
    Karl Austin - KDA Web Services Ltd.
    http://www.kdawebservices.com
    Affordable UK Web hosting from £3.33
    

    attached mail follows:


    At 07.08.2001 06:17, Arcadius A. wrote: >What if the host I'm checking is a simple workstation not running neither a >HTTP nor a FTP server ? >I'm writing this script for an intranet to check which machines are >currently on ... > >Thanks .... > >Arcad >

    IIRC there was a class that enabled you to send icmp echo's / "pings", the name has completely evaded me, but I guess google (and/or fm) would be happy to help ;-)

    -- 
    Andreas D Landmark / noXtension
    Real Time, adj.:
             Here and now, as opposed to fake time, which only occurs there
    and then.
    

    attached mail follows:


    WeatherUnderground.com and Weather.com both offer little weather boxes for your site.

    - Tim

    On 06 Aug 2001 14:44:55 -0400, pierre-yves wrote: > Hello, > I would like to display the wheather on a page depending on the city of my user. > (or the capital of their province/state) > Do you know a service/db/web site I could query in order to extract what I need ? > > py

    attached mail follows:


    Thanks, I got what I needed out of parsing http://weather.noaa.gov/weather/CA_cc.html As for the webcam, I will pass, I don't want to be blamed if our clients/managers ruin their golf game because of me ;)

    py

    ----- Original Message ----- From: "Kevin Leavell" <kevinldigitaldesign.com> To: <php-generallists.php.net>; <pylemsympatico.ca> Sent: Monday, August 06, 2001 3:00 PM Subject: RE: [PHP] Display the weather on my site

    > >Put a webcam in your window. Put the city names in a database. Rotate > through the city names randomly. > >They will be None The Wiser. > > LOL! > > If you don't have a webcam, here are a few options :) > > http://www.hotscripts.com/search/?query=weather&category=php > >

    attached mail follows:


    There might be an easier way to do it, but this should work:

    Change your SELECT statement to "SELECT count(*) as c ....<other criteria here>"

    After $result = mysql_query($sql,$connection) or die("Couldn't execute query."); Do this: $mycount = mysql_result($result, 0, 'c') ;

    $mycount should now be the value held from your count in the SQL statement.

    HTH

    Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 smasiellosynacor.com

    -----Original Message----- From: Jeremy Morano [mailto:jeremyprepresshelp.com] Sent: Monday, August 06, 2001 4:07 PM To: php-generallists.php.net Subject: [PHP] get value

    hi,,,

    can someone tell me how to access the value of count? please? ---------------------------------------------------------------------------- --------- $db = mysql_select_db($db_name, $connection) or die("Couldn't select database.");

    $sql = "SELECT count(*) FROM $table_name, company Where company.uid = user.companyUid and company.company = '$PHP_AUTH_USER' ";

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

    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


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

    That's it!

    On Mon, 6 Aug 2001, Jeremy Morano wrote:

    > hi,,, > > can someone tell me how to access the value of count? please? > ---------------------------------------------------------------------------- > --------- > $db = mysql_select_db($db_name, $connection) or die("Couldn't select > database."); > > $sql = "SELECT count(*) > FROM $table_name, company > Where company.uid = user.companyUid and company.company = '$PHP_AUTH_USER' > "; > > $result = mysql_query($sql,$connection) or die("Couldn't execute query."); > ---------------------------------------------------------------------------- > ---------- > > > >

    attached mail follows:


    Hi,

    Not sure if this is the right place to post for this but wanted to give it a try. I work for CFN in South San Francisco and we are looking to add one more talented PHP Application Developer to our small fun team. We are a stable private NON start-up NON dot.com (means not looking for 2nd round VC to pay our bills:) company working in the oil industry providing financial services to independent oil marketers. Might not sound very exciting but our technology is and this industry is a trillion dollar industry with no end in sight. This position is full time employment with great benefits, telecommute possibility and with good career growth potential. Requirements are only solid fundamental knowledge of OOP and at least one year developing Apps in PHP.

    If this is the wrong place to post just a postions, I would appreciate any help to re-direct.

    Thank you,

    Greg

    Greg Landis Snr Recruiter/CFN greglcfnnet.com 650 616-3318

    attached mail follows:


    hi.. Did you feel it is strange alignment when you output the same thing again in PHP... I mean the line break... For example I enter the following text and the order of text as below I AM A GUY

    so... I store it.... when I output it again.. It is display as I AM A GUY.... the line break or [enter] key just does not detected... Anyone know any solution for this? thanks for helping.

    Sincerely Kok Ming

    attached mail follows:


    Hi Kok,

    use nl2br();

    $string = nl2br($string); echo $string;

    See the manual for full details.

    James

    "Coconut Ming" <coconutmaxis.net.my> wrote in message news:3B6EFCF3.70D47626maxis.net.my... > hi.. > Did you feel it is strange alignment when you output the same thing > again in PHP... > I mean the line break... For example I enter the following text and the > order of text as below > I > AM > A > GUY > > so... I store it.... when I output it again.. It is display as I AM A > GUY.... > the line break or [enter] key just does not detected... Anyone know > any solution for this? thanks for helping. > > Sincerely > Kok Ming >

    attached mail follows:


    i take it you input this into a <textarea> hence the subject

    try this <textarea wrap=physical> this should carry over the formatting into the cariable or how ever your store it

    Thank You,

    Jon Yaggie www.design-monster.com

    And they were singing . . .

    '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code

    101 little bugs in the code . . .'

    And it continued until they reached 0

    ----- Original Message ----- From: "Coconut Ming" <coconutmaxis.net.my> To: <php-generallists.php.net> Sent: Tuesday, August 07, 2001 3:24 AM Subject: [PHP] Text area ...

    > hi.. > Did you feel it is strange alignment when you output the same thing > again in PHP... > I mean the line break... For example I enter the following text and the > order of text as below > I > AM > A > GUY > > so... I store it.... when I output it again.. It is display as I AM A > GUY.... > the line break or [enter] key just does not detected... Anyone know > any solution for this? thanks for helping. > > Sincerely > Kok Ming > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    try replacing the char num.10, line break or [enter] key with <BR> when doing the query this helps keeping the original text format

    SELECT replace(text,char(10),'<BR>') as text, FROM whatever

    Ani Lopez http://www.lamundial.net visit our site, download and spread our music

    attached mail follows:


    PHP 4.0.2 ..

    I have a very basic script, gets the user's name, registers it, then displays "Welcome, $NAME." $NAME is the session registered name.

    If I constantly reload that page that says Welcome, sometimes $NAME appears, sometimes not. Completely random. It just loses track of the variable.

    My code:

    auth.php:

    session_start();

    ...

    $res = mysql_query("SELECT NAME FROM dbhere where EMAIL = '$EMAIL' AND PASSWORD = '$PASSWORD'");

    if ($row = mysql_fetch_array($res)) { $NAME = $row[NAME]; session_register("NAME"); }

    ...

    Header("Location: menu.php");

    menu.php:

    session_start();

    echo "Welcome, $NAME";

    So like, what the hell. Why would it keep losing track of $NAME?

    Thanks, Chad

    attached mail follows:


    i would try

    session_start(); session_register("NAME");

    $res = mysql_query("SELECT NAME FROM dbhere where EMAIL = '$EMAIL' AND PASSWORD = '$PASSWORD'");

    if ($row = mysql_fetch_array($res)) { $NAME = $row[NAME]; }

    notice that $NAME is registered before being assigned to.

    on 8/6/01 2:23 PM, Chad Day at cdayatpco.com wrote:

    > PHP 4.0.2 .. > > I have a very basic script, gets the user's name, registers it, then > displays "Welcome, $NAME." $NAME is the session registered name. > > If I constantly reload that page that says Welcome, sometimes $NAME appears, > sometimes not. Completely random. It just loses track of the variable. > > My code: > > auth.php: > > session_start(); > > ... > > $res = mysql_query("SELECT NAME FROM dbhere where EMAIL = '$EMAIL' AND > PASSWORD = '$PASSWORD'"); > > if ($row = mysql_fetch_array($res)) { > $NAME = $row[NAME]; > session_register("NAME"); > } > > ... > > Header("Location: menu.php"); > > > > menu.php: > > session_start(); > > echo "Welcome, $NAME"; > > > > So like, what the hell. Why would it keep losing track of $NAME? > > Thanks, > Chad >

    -- mike cullerton

    attached mail follows:


    # uname -a NetBSD ns01 1.5W NetBSD 1.5W (ALPHA-$Revision: 1.127.2.2 $) #5: Mon Jun 25 22:34:09 CDT 2001 tomns01:/usr/src/sys/arch/alpha/compile/ns01 alpha

    rm config.cache export LIBS="-lm -lc -lintl -lX11" && \ export LDFLAGS="-Wl,-export-dynamic \ -Wl,-R/usr/lib -L/usr/lib \ -Wl,-R/usr/pkg/lib -L/usr/pkg/lib \ -Wl,-R/usr/local/lib -L/usr/local/lib \ -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib"

    ./configure \ --with-apxs \ --disable-pear \ --with-gd=/usr/pkg \ --with-png-dir=/usr/pkg \ --with-jpeg-dir=/usr/pkg \ --with-freetype-dir=/usr/pkg \ --with-xpm-dir=/usr/X11R6 \ --with-pgsql=/usr/local \ --with-mysql=/usr/local \ --enable-libgcc \ --with-gnu-ld \ --with-zlib \ --with-system-regex \ --with-config-file-path=/usr/local/etc \ --enable-track-vars \ --enable-force-cgi-redirect \ --enable-discard-path \ --enable-memory-limit \ --enable-sysvsem \ --enable-sysvshm \ --enable-sockets \ --with-ttf=/usr/pkg \ --enable-freetype-4bit-antialias-hack

    configure status hangs at: ... checking for gdImageColorResolve in -lgd... yes checking for gdImageGifCtx in -lgd... no checking whether to include GNU gettext support... no checking for gmp support... no checking for Hyperwave support... no checking for ICAP support... no checking for iconv support... no ./configure: 23508: Syntax error: redirection unexpected

    config.log: # tail -20 config.log /home/staffs/t/tom/work/php/php4-current/php4/configure:22183: undefined reference to `gdImageGif Ctx' /home/staffs/t/tom/work/php/php4-current/php4/configure:22183: undefined reference to `gdImageGif Ctx' collect2: ld returned 1 exit status configure: failed program was: #line 22176 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gdImageGifCtx();

    int main() { gdImageGifCtx()

    ; return 0; } configure:22274: checking whether to include GNU gettext support configure:22697: checking for gmp support configure:22977: checking for Hyperwave support configure:23146: checking for ICAP support configure:23465: checking for iconv support

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

    attached mail follows:


    Hi Phil,

    Print returns a boolean true / false value as functions do, as well as any output, whereas echo doesn't. Have a look through the archives.. This is quite a popular question, and it wasn't long ago when it was last asked.

    James.

    "Phil Latio" <phil.latiof-in-stupid.co.uk> wrote in message news:20010806183055.10269.qmailpb1.pair.com... > What's the difference between echo and print? > > I believed they were the same. > >

    attached mail follows:


    on 8/6/01 12:32 PM, Phil Latio at phil.latiof-in-stupid.co.uk wrote:

    > What's the difference between echo and print?

    this is definitely one of those frequently asked ones :)

    a good place to start is

    http://php.net/echo http://php.net/print http://php.net/printf

    for info and user comments. i found a couple cool nuggets in there. here are some things i believe are true.

    print() is a function and you need the parantheses. print also returns whether or not is was successful, as in

    if (print($thing)) { $thing_was_printed = 1; } else { $thing_was_printed = 0; }

    echo is not a function. it is a language construct. (i'm not sure of all the implications of this) also, you do not need parantheses. so,

    echo $thing;

    is valid.

    -- mike cullerton

    attached mail follows:


    Hi,

    Does anyone know how to turn off the content type header? The binary compiled from the source (I am assuming the source needs changing?) will only be used for a single script that needs to not produce any spurious output such as the Content-type header.

    Thanks in advance.

    --
    Karl Austin - KDA Web Services Ltd.
    http://www.kdawebservices.com
    Affordable UK Web hosting from £3.33
    

    attached mail follows:


    Karl Austin wrote: > Does anyone know how to turn off the content type header? The binary > compiled from the source (I am assuming the source needs changing?) > will only be used for a single script that needs to not produce any > spurious output such as the Content-type header.

    php -q script.php

    regards Wagner

    -- 
    Madness takes its toll. Please have exact change.
    

    attached mail follows:


    "Alexander Wagner" <wagnerglobalpark.de> wrote in message news:0108062256260H.00774zahna... > Karl Austin wrote: > > Does anyone know how to turn off the content type header? The binary > > compiled from the source (I am assuming the source needs changing?) > > will only be used for a single script that needs to not produce any > > spurious output such as the Content-type header. > > php -q script.php > > regards > Wagner > > -- > Madness takes its toll. Please have exact change.

    Hi,

    Thanks for that, you're a gem.

    I'm assuming that it is documented somewhere obvious and I missed it?

    --
    Karl Austin - KDA Web Services Ltd.
    http://www.kdawebservices.com
    Affordable UK Web hosting from £3.33
    

    attached mail follows:


    Being the golf enthusiast I am, I'm always visiting a few interesting golf stie. The one I visit most is www.golfinohio.com. They have a rotating banner ad at the top of their page, but, as I view the source of the page, I notice that it displays one image on some banners, two or three on other banners, etc. I know why this would have to be done, but how is this accomplished?

    Would you use a database to store all the links?

    I would like to build a page of my own with banner ads.

    Thank you,

    Michael

    attached mail follows:


    Hello:

    I'm inserting some information into a MySQL database via a PHP script. A handful of various information is put into the database via the "INSERT INTO..." SQL command. Each entry has a unique, auto increment field that acts as an index number for that entry. I can't seem to figure out a clean and simple way to get that index number immediately after an insert.

    Granted I have a lot of field information that I could use in a very specific SELECT statement's WHERE clause. And the chances of that information being identical to another is virtually zero. However, I would like something a bit more "elegant," i.e., a function like "mysql_get_inserted_row ()".

    If anyone has any suggestions, they would be sincerely appreciated!

    Thanks, Matt

    attached mail follows:


    See:

    http://www.php.net/manual/en/function.mysql-insert-id.php

    - Tim

    On 06 Aug 2001 16:03:43 -0500, garman wrote: > I'm inserting some information into a MySQL database via a PHP script. A > handful of various information is put into the database via the "INSERT > INTO..." SQL command. Each entry has a unique, auto increment field that acts > as an index number for that entry. I can't seem to figure out a clean and > simple way to get that index number immediately after an insert.

    attached mail follows:


    Hi Matt,

    mysql_insert_id();

    See the manual for more info.

    James

    "Garman" <garmanstudents.uiuc.edu> wrote in message news:3B70907Dwebmail.uiuc.edu... > Hello: > > I'm inserting some information into a MySQL database via a PHP script. A > handful of various information is put into the database via the "INSERT > INTO..." SQL command. Each entry has a unique, auto increment field that acts > as an index number for that entry. I can't seem to figure out a clean and > simple way to get that index number immediately after an insert. > > Granted I have a lot of field information that I could use in a very specific > SELECT statement's WHERE clause. And the chances of that information being > identical to another is virtually zero. However, I would like something a bit > more "elegant," i.e., a function like "mysql_get_inserted_row ()". > > If anyone has any suggestions, they would be sincerely appreciated! > > Thanks, > Matt >

    attached mail follows:


    Hi, Can anyone give some pointers for my problem. I want to pull articles out of a db and then show the first x number of words with a read more link to the rest of the article.

    Could someone point me in the right direction. I've seen a code snippet for this, but now I can't find it :-(

    TIA,

    Jord

    -- 
    Jordan Elver
    http://www.jordanelver.co.uk
    

    Oops, my brain just hit a bad sector!

    attached mail follows:


    Jord, I would accomplish this through SQL. You could use SELECT LEFT(mycolumn,x) FROM mytable WHERE ... and then display that along with a link to a page where you select the whole string on that particular article ID. In fact, I do this exact thing on my site.

    Or you could read the whole string into an array, and use the PHP function to retrieve the substring you want. I prefer the first option however.

    Good luck,

    Johan Alfredeen PongWorld.com www.pongworld.com

    -----Original Message----- From: Jordan Elver [mailto:jord.elvervirgin.net] Sent: Monday, August 06, 2001 3:20 PM To: PHP General Mailing List Subject: [PHP] Splitting Text

    Hi, Can anyone give some pointers for my problem. I want to pull articles out of a db and then show the first x number of words with a read more link to the rest of the article.

    Could someone point me in the right direction. I've seen a code snippet for this, but now I can't find it :-(

    TIA,

    Jord

    -- 
    Jordan Elver
    http://www.jordanelver.co.uk
    

    Oops, my brain just hit a bad sector!

    -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-helplists.php.net To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    You can do this several ways... Either use explode(): http://www.php.net/manual/en/function.explode.php

    ...to split the retrieved data by a space " " as the delimeter, then use a for() loop to print X number of words... E.g.:

    $array = explode(" ", $db_string);

    for($i = 0; $i < 25; $i++) echo $array[$i];

    (That will print the first 25 words...)

    Or, another way to do it is to use strtok() to tokenize the string... http://www.php.net/manual/en/function.strtok.php

    The manual has a good example of tokenizing a string into individual words...

    -----Original Message----- From: Jordan Elver [mailto:jord.elvervirgin.net] Sent: Monday, August 06, 2001 5:20 PM To: PHP General Mailing List Subject: [PHP] Splitting Text

    Hi, Can anyone give some pointers for my problem. I want to pull articles out of a db and then show the first x number of words with a read more link to the rest of the article.

    Could someone point me in the right direction. I've seen a code snippet for this, but now I can't find it :-(

    TIA,

    Jord

    -- 
    Jordan Elver
    http://www.jordanelver.co.uk
    

    Oops, my brain just hit a bad sector!

    -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-helplists.php.net To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    I have php4.0.4pl1 installed from redhat 7.1 binary cd along w/ apache 1.3.19 and a couple other stuff from the cd. everything works fine, but now i want support for pdf and swf. i looked for a configure script for php but none was found. how would i go about doing this? i would hate to install it from the source as i just want one or two mods installed. if i have pdf.so or swf.so and uncomment those lines where it loads it in php.ini, it should work, right? that is, if someone can send me those two files. i'm confused. can someone help me out? thanks in advance.

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

    attached mail follows:


    ('binary' encoding is not supported, stored as-is) Justin French: > Hi, > > I know this is a biggie, but has anyone attempted to write a > spell check (preferably english) in PHP? > > I'd LOVE something that can spell-check user-submitted text > somehow, becuase I'm writing a fully dynamic news-based site, > and the only downfall to the site could be bad content, since > it's being supplied by writers world-wide, submitted dynamically. > > My other option is to have an editor approve each article > before publishing, but I thought i'd at least ASK if nyone's > attempted it.

    I had the exact same situation as you, so I'm in the process of attempting it now (versions 0.1 and 0.2 released so far)...

    The one I built that uses a lot of client side Javascript (therefore requires IE5+ or NS6) and a call to XML-RPC service on a server.

    It's called XSpell, and you can find the demo at: http://www.northern.ca/projects/xspell/

    And D/L the source off sourceforge at: http://sourceforge.net/projects/xspell/

    Note: You need to build pspell support into PHP for the XML-RPC service to work.

    -Ironstorm

    Northern.CA ===-- http://www.northern.ca Canada's Search Engine

    attached mail follows:


    ATTENTION: You have received this message because you have recently posted to my FFA pages, belong to the same safelists, clubs, email lists, or have emailed me with your business opportunity. If you believe that you have received this in error I sincerely apologize. Per the proposed H.R. 3113 Unsolicited Electronic Mail Act of 2000, further transmissions to you by me may be stopped at no cost to you by forwarding this email to REMOVE at: jcmills_hotmail.com. Thank You! Read on, it's true, every word of it. It is legal, I checked, because you are buying and selling something of value. For verification or questions on the legality of this program, contact the Office of Associate Director for Marketing Practices, Federal Trade Commission, Bureau of Consumer protection, Washington, D.C.

    I'll make you a promise. Read this email to the end - follow what it says to the letter and you will not worry whether a RECESSION is coming or not, who is President, or whether you will keep your current job or not. Yes, I know what you are thinking (the same thing I thought the first time I received one of these emails). I never responded before either. One day though, something just said, "You throw away $25.00 going to a movie, you stop and spend for that cup of Starbuck's java a couple of times a week". So, what the heck.

    SEEN ON NATIONAL TV:

    Making over half million dollars every 4 to 5 months from the comfort of your home for a one- time only investment of $25.00 US Dollars. THANKS TO HARNESSING THE INCREDIBLE POWER OF THE INTERNET YOU CAN BE AN INTERNET MILLIONAIRE WITHIN A YEAR!

    Before you say "BULL" and throw this away, please read the following. This is the letter you have been hearing about on the news lately. Due to the tremendous popularity of this letter via Internet, a national weekly news program devoted its' entire show to the investigation of this program described below. The show investigated whether this program was legal as well as whether it really can make people money.

    Their findings proved once again that there are "Absolutely NO laws prohibiting participation in the program," and if people will "follow the simple instructions" they are bound to make "mega bucks with only a $25 out of pocket cost." DUE TO THE RECENT POSITIVE PUBLICITY AND RESPECT THIS PROGRAM HAS RECEIVED, IT IS WORKING BETTER THAN EVER BEFORE.

    This is what one participant had to say:

    "Thanks to this profitable opportunity. I was approached many times before but each time I passed on it. I'm glad I finally joined just to see what one could REALLY expect in return for the minimal effort and money required. To my astonishment, I received a total of $610,470.00 in 21 weeks, with money still coming in".

    Pam Hedland, Fort Lee, New Jersey

    Another said:

    "This program has been around for a long time but I never believed in it. But one day when I received it again in the mail I decided to gamble my $25 on it. I followed the simple instructions and voila....3 weeks later the money started to come in. The first month I only made $240 but the next two months after that I made a total of $290,000.00. So far, in the past 8 months, by re-entering the program, I have made over $710,000.00 and am playing again. The key to the success in this program is to follow the simple steps and NOT CHANGE ANYTHING." More testimonials later but first: PRINT THIS FIRST FOR FUTURE REFERENCE

    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$

    If you would like to make at least $500,000 every 4 to 5 months easily and comfortably, please read the following.....then read it again and again!!

    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$

    Follow the Simple Instructions Below and Your Financial Dreams Will Come True, Guranteed!

    INSTRUCTIONS:

    1. Order ALL FIVE reports shown on the list below

    For each report, write the NAME and NUMBER of the report you are ordering on a sheet of paper. Write YOUR NAME and your EMAIL ADDRESS below the report name and number. Enclose $5.00 CASH, and send it to the person whose name appears ON THE LIST next to that particular report. MAKE SURE YOUR RETURN ADDRESS is clearly written on the upper left hand corner of your envelope in case of mail problems.

    ****A Special Note Here: The reason for sending CASH is not because there is anything illegal or wrong. It is simply because of time. Time for checks to clear, the time required and cost of accepting credit cards. Concealing the $5,00 is simply so no one can SEE there is money in the envelope and steal it before it gets to you! CAREFULLY CHECK TO MAKE SURE YOU ORDERED ALL FIVE REPORTS. MAKE SURE THE REPORT NUMBER CORRESPONDS TO THE SAME PERSON YOU ADDRESSED YOUR ENVELOPE TO. You must have all five reports so that you can save them on your computer to resell them. (Also save on floppy disc for backup)

    A note on mailing to Canada: Follow the exact same easy procedure but use 60 cents postage.

    YOUR TOTAL COST $5 X 5 = $25.00 (plus minimal postage)

    Within a few days, you will receive, via e-mail, each of the 5 reports from those 5 individuals. Save them on your computer so they will be easily accessible to send to the 1,000's of people who will order them from you. Again, also save to floppy disc just in case.

    IMPORTANT - DO NOT ALTER THE NAMES OF THE PEOPLE WHO ARE LISTED NEXT TO EACH REPORT OR THEIR SEQUENCE ON THE LIST IN ANY WAY OTHER THAN AS INSTRUCTED IN THE STEP BY STEP INSTRUCTIONS. IF YOU DO YOU WILL LOSE THE MAJORITY OF YOUR PROFITS! Once you understand the way it works, you will see why it does not work if you change it. Remember, this method has been tested using regular snail-mail and now the Internet. If you alter it, it WILL NOT WORK!!

    People have tried to put their friends/relatives names on all five thinking they could get all the money. It does not work that way. Being greedy causes you to gain nothing. Honesty reaps the reward!!! This is a LEGITIMATE BUSINESS. You are offering a product for sale and are being paid for it. Treat it as such and you will be VERY profitable in a short period of time.

    2. After you have completed the ordering and mailing for your 5 reports (Check and recheck prior to mailing for correct information) proceed as follows:

    REMOVE THE NAME AND ADDRESS OF THE PERSON IN THE REPORT #5 SPOT. This person has made it through the cycle and is no doubt counting their fortune!

    Continue by moving the person in the #4 position down to #5 (Complete name, address and report #)

    Move the person in the #3 position down to #4

    Move the person in the #2 position down to #3

    Move the person in the #1 position down to #2

    THEN.........................................

    Put YOUR name and address in the Report #1 POSITION

    PLEASE MAKE SURE YOU COPY EVERY NAME, ADDRESS AND REPORT NUMBER ACCURATELY!! THIS IS CRITICAL TO YOUR SUCCESS!!!

    3. Finally, save this entire letter with the new list of names (yours in the #1 position) on your computer. I again suggest to save to floppy disc also.

    DO NOT MAKE ANY OTHER CHANGES!!!

    The 5 reports which you will be receiving will provide you with invaluable marketing information to assist you in your Internet business program. The reports include where to find thousands of free classified sites to post to, how to send bulk e-mails legally without spamming anyone, and much more.

    There are two primary methods for getting this venture going:

    METHOD #1 SENDING BULK E-MAIL LEGALLY

    EXAMPLE:

    Let's say you decide to, just to see how it goes start out small. Let's assume that you and those involved send out only 5,000 emails each. Let's also assume that the mailing generates about 0.2% response rate (the response rate is usually better but let's use a very low figure right now) Also, many people will send out hundreds of thousands emails not just 5,000.

    Continuing with the example, you send out 5,000. With a response rate of 0.2%, you will receive 10 orders for Report #1. Those people send out 5,000 emails each for a total of 50,000 emails sent with a 0.2% response rate equals 100 people requesting Report #2.

    Those 100 people email 5,000 each for a total of 500,000. The 0.2% response rate is 1000 orders for Report #3.

    Those 1000 people send 5,000 emails each for a total of 5 million emails sent out. The 0.2% response is 10,000 for Report #4.

    Those 10,000 people send out 5,000 emails for a total of 50,000,000 (fifty million) emails. The 0.2% response rate is 100,000 orders for Report #5.

    THAT'S 100,000 ORDERS TIMES $5.00 EACH = $500,000 (HALF A MILLION DOLLARS)

    Your total income in this example is:

    1.........$50 2.........$500 3.........$5,000 4.........$50,000 5.........$500,000

    GRAND TOTAL...........................$555,550

    OK, STILL NOT CONVINCED? GET A PENCIL AND PAPER AND FIGURE OUT THE WORST CASE SCENARIO. NO MATTER HOW YOU CALCULATE IT, YOU WILL STILL MAKE A LOT OF MONEY!

    REMEMBER, THIS IS ASSUMING THAT ONLY 10 PEOPLE ORDERED REPORT #1 OUT OF THE 5,000 YOU EMAILED TO!

    Dare to think for a moment if more than 10 order Report #1. What about 20 or more? There are currently more than 160 million people on the Internet worldwide daily with thousands coming on line every day.

    METHOD #2 PLACING FREE ADS ON THE INTERNET:

    Advertising on the 'Net is very, very inexpensive with hundreds (if not thousands) of FREE places to advertise. Placing lots of FREE ads on the Internet will easily get a larger response. We strongly suggest you start with Method #1 and add Method #2 as you go along. For every $5 order you receive all you MUST do is email them the Report they ordered. That's it! ALWAYS provide same day service on each and every order received. This will guarantee that the email they send out, with YOUR name and address on it, will be prompt. They cannot advertise until they receive the Report.

    REPORTS:

    ORDER EACH REPORT BY IT'S NAME AND NUMBER ONLY. ALWAYS SEND $5 CASH (US Currency) FOR EACH REPORT. AGAIN, MAKE CERTAIN THE CASH IS CONCEALED BY ENCLOSING IT IN AT LEAST 2 SHEETS OF PAPER OR USE ENVELOPES THAT ARE DESIGNED FOR INFORMATION PRIVACY. (THEY ARE EASILY FOUND AT OFFICE SUPPLY OR LARGE DISCOUNT SUPERSTORES)

    Write the NUMBER and NAME of the Report you are ordering on one of the sheets of paper noted above. Then add YOUR NAME, YOUR EMAIL ADDRESS, and YOUR POSTAL ADDRESS. Wrap the $5 in the sheet with your information on it and mail. DOUBLE CHECK to make sure you have ordered the CORRECT REPORT from the CORRECT PERSON on the list you received.

    NOW.......ORDER THESE REPORTS:

    REPORT #1: "THE INSIDER'S GUIDE TO ADVERTISING FOR FREE ON THE 'NET"

    Order Report #1 from:

    Julie Mills 110 Oak Hill Circle Lebanon, TN 37087 USA

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ REPORT #2: "THE INSIDER'S GUIDE TO SENDING BULK EMAIL ON THE 'NET"

    Order Report #2 from:

    Robert Raney 6820 Roadrunner Road Youngstown, Florida 32466 USA

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    REPORT #3: "SECRET TO MULTILEVEL MARKETING ON THE 'NET"

    Order Report #3 from:

    C.W. Stansburg 9272 Sunridge Dr. Huntington Beach, CA 92646 USA

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    REPORT #4: "HOW TO BECOME A MILLIONAIRE USING MLM AND THE 'NET"

    Order Report #4 from:

    Z.L. Campbell 1350 Tracey Street Abbotsford, B.C. Canada V2T-6G3

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    REPORT #5: "HOW TO SEND OUT ONE MILLION EMAILS FOR FREE"

    Order Report #5 from:

    Ron J. 512 Hudson Ave. Marshall, MN 56258-1166

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ YOUR SUCCESS GUIDELINES $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

    Follow these simple guidelines to guarantee your success:

    If you do not receive AT LEAST 10 orders for Report #1 within 2 weeks, continue sending email until you do. After you have received 10 orders, about 2-3 weeks after that, you should receive 100 or more for Report #2. As above, follow the same procedure until you do. Once you have received 100 orders or more for Report #2, RELAX! The system is already working for you and the cash will continue to roll in!

    IMPORTANT TO REMEMBER:

    Every time your name is moved down in the list, you are placed in front of a different Report. Keep track of your progree by watching which Report people are ordering from you. IF YOU WANT TO GENERATE MORE INCOME, SEND ANOTHER BATCH OF EMAILS AND START THE WHOLE PROCESS AGAIN! THERE IS NO LIMIT TO THE INCOME YOU CAN GENERATE FROM THIS BUSINESS!

    A NOTE FROM THE ORIGINATOR OF THIS PROGRAM:

    "You have just received information that can give you financial freedom for the rest of your life, with NO RISK and just a LITTLE BIT OF EFFORT. You can make more money in the next few weeks and months than you have ever imagined. Follow the program EXACTLY AS INSTRUCTED. Do not change it in any way. It works exceedingly well as it is now.

    Remember to email a copy of this exciting report AFTER you have put your name and address in Report #1 and moved the others to #2.....#5 as instructed above. One of the people you send this to may send out 100,000 or more emails and your name will be on every one of them. The more YOU send out the more potential customers you reach. I have given you the ideas, information, materials, and opportunity to become financially independent. IT'S UP TO YOU NOW!"

    MORE TESTIMONIALS: "My name is Mitchell. My wife, Jody, and I live in Chicago. I am an accountant with a major U.S. Corporation and I make pretty good money. When I received this program I grumbled to Jody about receiving "junk mail". I made fun of the whole thing, spouting my knowledge of the population and percentages involved. I "knew" it wouldn't work. Jody totally ignored my supposed intelligence and a few days later she jumped in with both feet. I made merciless fun of her, and was ready to lay on the "I told you so" when the thing didn't work. Well, the laugh was on me! Within 3 weeks she had received 50 responses. Within the next 45 days she received a total of $147,200.00..........all cash! I was shocked. I have joined Jody in her "hobby".

    Mitchell Wolf, Chicago, Illinois

    "Not being a gambling type, it took me several weeks to make up my mind to participate in this plan. But conservative as I am, I decided that the initial investment was so little that there was no way I I wouldn't get enough orders to at least get my money back. I was surprised when I found my medium sized post office box crammed with orders. I made $319,210.00 in the first 12 weeks. The nice thing about this deal is it does not matter where people live. There simply isn't a better investment with a faster return and so big"

    Dan Sondstrom, Alberta, Canada

    "I had received this program before. I deleted it, but later wondered if I should have given it a try. Of course, I had no idea who to contact to get another copy. I had to wait until I was emailed by someone else.............11 months passed and it luckily came again.........I did not delete this one! I made more than $490,000 on my first try and all of the money came within 22 weeks".

    Susan De Suza, New York, N.Y.

    "It really is a great opportunity to make relatively easy money with little cost to you. I followed the simple instructions carefully and within 10 days the money started to come in. My first month I made $20,560.00 and by the end of my thrid month my total cash count was $362,840.00. Life is beautiful, Thanx to Internet"

    Fred Dellaca, West Port, New Zealand

    ORDER YOUR REPORTS TODAY AND GET STARTED ON YOUR ROAD TO FINANCIAL FREEDOM!

    Removal/Deletion Instructions as noted from first paragraph:

    Further transactions to you may be stopped by sending an email message with the word "REMOVE" in the subject line to jcmills_hotmail.com It is not our intent to offend, if we have, please accept our most sincere apology.

    attached mail follows:


    Does anyone here have a script to run uptime every ten minutes or so, log output, then display daily output in a nice friendly chart?

    Thanks

    Craig ><> westermanchanuteks.com

    attached mail follows:


    Nope, but I do something similar with weather data from my home weather station.:) The jpgraph library (http://freshmeat.net/projects/jpgraph/) is excellent and makes that kind of stuff a snap.

    A sample graph is attached.

    - Tim http://www.phptemplates.org

    On 06 Aug 2001 17:15:53 -0500, Craig Westerman wrote: > Does anyone here have a script to run uptime every ten minutes or so, log > output, then display daily output in a nice friendly chart? > > Thanks > > Craig ><> > westermanchanuteks.com

    attached mail follows:


    At 06.08.2001 23:15, Craig Westerman wrote: >Does anyone here have a script to run uptime every ten minutes or so, log >output, then display daily output in a nice friendly chart?

    Seems a bit daft running it every ten minutes, as a server should be up 24/7, how do you plan to check it otherwise?

    But on a more serious note, check out www.uptimes.net

    (I used to be ranked in the top 250, but then i had to physically move the box *sniff*)

    -- 
    Andreas D Landmark / noXtension
    Real Time, adj.:
             Here and now, as opposed to fake time, which only occurs there
    and then.
    

    attached mail follows:


    it seems that www.uptimes.net has shut down, I would of liked to see a site like that.

    And tsk tsk, couldn't you of moved your machine while it was on :).. All the "hard core" web server admins carry theirs with a UPS attacked and a Radio Link net connection :) hehehe

    Andrew ----- Original Message ----- From: "Andreas D. Landmark" <andreas.landmarknoxtension.com> To: "PHP-General" <php-generallists.php.net> Sent: Tuesday, August 07, 2001 1:52 AM Subject: Re: [PHP] Uptime script

    > At 06.08.2001 23:15, Craig Westerman wrote: > >Does anyone here have a script to run uptime every ten minutes or so, log > >output, then display daily output in a nice friendly chart? > > Seems a bit daft running it every ten minutes, as a server should be up 24/7, > how do you plan to check it otherwise? > > But on a more serious note, check out www.uptimes.net > > (I used to be ranked in the top 250, but then i had to physically move the > box *sniff*) > > -- > Andreas D Landmark / noXtension > Real Time, adj.: > Here and now, as opposed to fake time, which only occurs there > and then. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    >>Does anyone here have a script to run uptime every ten minutes or so, log >>output, then display daily output in a nice friendly chart?

    >Seems a bit daft running it every ten minutes, as a server should be up 24/7, >how do you plan to check it otherwise?

    I'm wanting to chart the server load average data displayed when you run uptime not how many days it has been running.

    %uptime 6:10PM up 321 days, 6:59, 3 user, load averages: 0.20, 0.16, 0.15 %uptime 6:19PM up 321 days, 7:08, 3 user, load averages: 0.15, 0.16, 0.16 %uptime 10:15PM up 321 days, 11:04, 3 user, load averages: 0.19, 0.24, 0.22

    Craig ><> westermanchanuteks.com

    attached mail follows:


    At 07.08.2001 03:19, Craig Westerman wrote: > >>Does anyone here have a script to run uptime every ten minutes or so, log > >>output, then display daily output in a nice friendly chart? > > >Seems a bit daft running it every ten minutes, as a server should be up >24/7, > >how do you plan to check it otherwise? > > >I'm wanting to chart the server load average data displayed when you run >uptime not how many days it has been running. > >%uptime > 6:10PM up 321 days, 6:59, 3 user, load averages: 0.20, 0.16, 0.15 >%uptime > 6:19PM up 321 days, 7:08, 3 user, load averages: 0.15, 0.16, 0.16 >%uptime >10:15PM up 321 days, 11:04, 3 user, load averages: 0.19, 0.24, 0.22

    The correct way to do that would be to read it straight from the source, (eg. /proc/loadav for linux with procfs).

    That would be much quicker, and it would also save your server a fork for each reading (unless you are running php as a cgi ;-)

    nice uptime btw...

    -- 
    Andreas D Landmark / noXtension
    Real Time, adj.:
             Here and now, as opposed to fake time, which only occurs there
    and then.
    

    attached mail follows:


    >I'm wanting to chart the server load average data displayed when you run The correct way to do that would be to read it straight from the source, (eg. /proc/loadav for linux with procfs).

    That would be much quicker, and it would also save your server a fork for each reading (unless you are running php as a cgi ;-)

    nice uptime btw...

    -- 
    Andreas D Landmark / noXtension
    

    I'm running FreeBSD. I'll see if if I can find source as you suggest.

    Thanks

    Craig ><> westermanchanuteks.com

    attached mail follows:


    Hi! I have the following problem:

    I am using IIS 5.0 on Win2k, and I am unable to create COM objects. For example, the following code will produce the script to halt:

    $myObject= new COM("CDONTS.NewMail"); $myObject->to='memysite.com'; $myObject->send();

    The script stops in the second line, when i try to access the object's methods and properties. No error message is displayed.

    Help, please! I need this funcionality not only to send mails, but for a bunch of other things.

    Any ideas will be greatly appreciated. Cheers and thanks in advance, Diego.

    attached mail follows:


    Are you trying to add additional fields to the table, or just basic banner info?

    For the latter, you should be able to add everything from the admin page.

    PHPAds will redirect you to the admin, or client, section based on your username. When you create an account, you'll have the option to give that user admin priviledges.

    I hope that help...

    -john

    __________John Monfort_________________ _+-----------------------------------+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___________________________________+-

    On Mon, 6 Aug 2001, Jack wrote:

    > I am trying to install phpAdsNew to my site, the given docs don't seems to have enough information about how can I add banner details into table banners correctly. I mean, I know how to insert data into a table and all that, but I am talking about each parameters in that table and what are they suppose to do specifically. > If there is anyone who has experiences about using this phpAdsNew or phpAds, please give me some advice or tell me where could I get further information beside the given docs that come when you download it. > Jack > jackyactivelifestyle.com > "Love your enemies, it will drive them nuts" >

    attached mail follows:


    I am sure many of you have had this same problem. I want all uploaded images to my site (gifs and jpg) to be resized "on the fly" so that all have the same width and height. Does anyone knows about a tool (free, if possible) that can do this under Win2k, IIS 5.0 and that can be used with PHP 4.0? A php extension (dll) would be great. If it works only for one format (gif or jpg) is fine. Thanks in advance for any tip.

    Cheers, Diego.

    attached mail follows:


    PHP does exactly that. Look in the manual for the Image functions.

    --
    

    "Diego Fulgueira Pastor" <dfulmetahogar.com> wrote in message news:PDEPKLDIPCODFDGNLKBBIEFEDDAA.dfulmetahogar.com... > I am sure many of you have had this same problem. I want all uploaded images > to my site (gifs and jpg) to be resized "on the fly" so that all have the > same width and height. Does anyone knows about a tool (free, if possible) > that can do this under Win2k, IIS 5.0 and that can be used with PHP 4.0? A > php extension (dll) would be great. If it works only for one format (gif or > jpg) is fine. > Thanks in advance for any tip. > > Cheers, Diego. > >

    attached mail follows:


    Hi

    I've used ImageMagick in the past(it runs on NT and Linux), I found it gives higher quality results than the builtin functions especially when resizing jpegs.

    http://www.imagemagick.org

    Girish

    ----- Original Message ----- From: "Gaylen Fraley" <gfraley5earthlink.net> To: <php-generallists.php.net> Sent: Tuesday, August 07, 2001 4:43 AM Subject: [PHP] Re: Any good gif/jpg processing tool for PHP??

    PHP does exactly that. Look in the manual for the Image functions.

    --
    

    "Diego Fulgueira Pastor" <dfulmetahogar.com> wrote in message news:PDEPKLDIPCODFDGNLKBBIEFEDDAA.dfulmetahogar.com... > I am sure many of you have had this same problem. I want all uploaded images > to my site (gifs and jpg) to be resized "on the fly" so that all have the > same width and height. Does anyone knows about a tool (free, if possible) > that can do this under Win2k, IIS 5.0 and that can be used with PHP 4.0? A > php extension (dll) would be great. If it works only for one format (gif or > jpg) is fine. > Thanks in advance for any tip. > > Cheers, Diego. > >

    -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-helplists.php.net To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    how do you feel about the speed of imagemagick? fastwr? slower than gd functions?

    ----- Original Message ----- From: "Girish Nath" <girishnbtinternet.com> To: <php-generallists.php.net> Sent: Tuesday, August 07, 2001 1:56 PM Subject: Re: [PHP] Re: Any good gif/jpg processing tool for PHP??

    > Hi > > I've used ImageMagick in the past(it runs on NT and Linux), I found it gives > higher quality results than the builtin functions especially when resizing > jpegs. > > http://www.imagemagick.org > > > Girish > > > ----- Original Message ----- > From: "Gaylen Fraley" <gfraley5earthlink.net> > To: <php-generallists.php.net> > Sent: Tuesday, August 07, 2001 4:43 AM > Subject: [PHP] Re: Any good gif/jpg processing tool for PHP?? > > > PHP does exactly that. Look in the manual for the Image functions. > > -- > > "Diego Fulgueira Pastor" <dfulmetahogar.com> wrote in message > news:PDEPKLDIPCODFDGNLKBBIEFEDDAA.dfulmetahogar.com... > > I am sure many of you have had this same problem. I want all uploaded > images > > to my site (gifs and jpg) to be resized "on the fly" so that all have the > > same width and height. Does anyone knows about a tool (free, if possible) > > that can do this under Win2k, IIS 5.0 and that can be used with PHP 4.0? > A > > php extension (dll) would be great. If it works only for one format (gif > or > > jpg) is fine. > > Thanks in advance for any tip. > > > > Cheers, Diego. > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    Hahahaha !!

    I've received soooo many of these e-mails...

    __________John Monfort_________________ _+-----------------------------------+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___________________________________+-

    On 6 Aug 2001, kelvin asonze wrote:

    > FROM: MR.KELVIN NZE. > AUDITING AND ACCOUNTING UNIT. > FOREIGN OPERATIONS DEPARTMENT. > BANQUE TOGOLAISE POUR LE COMMERCE ET L'INDUSTRIE, > LOME- TOGO. TEL:(228)04-45-26. > > Dear sir, > > > I am Mr.KELVIN NZE, the director in charge of > auditing and accounting section of Banque Togolaise > Pour le Commerce Et l'Industrie Lome-Togo in West > Africa with due respect and regard. I have decided to > contact you on a business transaction that will be > very beneficial to both of us at the end of the > transaction . > > > > During our investigation and auditing in this bank, my > department came across a very huge sum of money > belonging to a deceased person who died on November > 1st 1999 in a plane crash and the fund has been > dormant in his account with this Bank without any > claim of the fund in our custody either from his > family or relation before our discovery to this > development. > > Although personally, I keep this information secret > within myself and partners to enable the whole plans > and idea be Profitable and successful during the time > of execution. The said amount was (U.S $8.5M UNITED > STATES DOLLARS), As it may interest you to know, I got > your impressive information through my good friends > who works with chamber of commerce on foreign business > relations here in Lome- Togo. It is him who > recommended your person to me to be viable and capable > to champion a business of such magnitude without any > problem. > > Meanwhile all the whole arrangement to put claim over > this fund as the bonafide next of kin to the deceased, > get the required approval and transfer this money to a > foreign account has been put in place and directives > and needed information will be relayed to you as soon > as you indicate your interest and willingness to > assist us and also benefit your self to this great > business opportunity. > > > > In fact I could have done this deal alone but because > of my position in this country as a civil servant(A > Banker),we are not allowed to operate a foreign > account and would eventually raise an eye brow on my > side during the time of transfer because I work in > this bank. This is the actual reason why it will > require a second party or fellow who will forward > claims as the next of kin with affidavit of trust of > oath to the Bank and also present a foreign account > where he will need the money to be re-transferred into > on his request as it may be after due verification and > clarification by the correspondent branch of the bank > where the whole money will be remitted from to your > own designation bank account. > > > > I will not fail to inform you that this transaction is > 100% risk free. On smooth conclusion of this > transaction, you will be entitled to 30% of the total > sum as gratification, while 10% will be set aside to > take care of expenses that may arise during the time > of transfer and also telephone bills, while 60% will > be for me and my partners. Please, you have been > adviced to keep "top secret" as we are still in > service and intend to retire from service after we > conclude this deal with you. > > I will be monitoring the whole situation here in this > bank until you confirm the money in your account. and > ask us to come down to your country for subsequent > sharing of the fund according to percentages > previously indicated and further investment, either in > your country or any country you advice us to invest > in. All other necessary vital information will be sent > to you when I hear from you. > > I suggest you get back to me as soon as possible > stating your wish in this deal. My mobile telephone > number is +228 04-45-26. > > I look forward to pick your call asap. > > Yours faithfully, > > KELVIN NZE. > > > > > > > > Sign up for your "FREE E-MAIL" MADMAIL http://www.madmail.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Hi, I am having a problem with http uploads:

    First I am using Mandrake 8.0 with apache 1.3.19 and php 4.0.4.

    I have an upload script which I need to allow large files to be uploaded. I have set the <input type="hidden" name="MAX_FILE_SIZE" value="104857600"> Which I believe should be 100mb.

    I have also set the same value in the php.ini file for the memory_limit and upload_max_filesize directives and also set a longer script execution time out.

    No matter what valuesI give these directives I still can't upload anything over 8 megs which was the default before I changed it. I have restarted apache and rebooted.

    Any help would be appreciated.

    Scott

    attached mail follows:


    From: "Andreas D. Landmark" <andreas.landmarknoxtension.com>

    > I'd second this suggestion, the general list has become flooded with posts that > seems like a pop-quiz taken straight from the manual...

    Right. I've just signed up the list and I've all but given up on trying to follow things. Just way too much traffic for a mailing list to have.

    If a seperate list for support or tutor or whatever you want to call gets started, I'll be happy to volunteer my time to assist people but I'd really like to be able to keep up with this list as I'm sure there are some great advanced threads that I'm missing.

    Joel

    attached mail follows:


    ----- Original Message ----- From: "Ryan Fischer" <ryangigabee.com> > > Are hosting companies reluctant to give you more access rights? > > Usually, and that really sucks, because I've found myself having to set > up my own "pseudo-server" on my computer, with PHP4, Apache, and MySQL, > just to develop, because the hosts I've found are very reluctant to > either upgrade from PHP, or build PHP with the necessary extensions I > need. IMO, PHP4 on web hosts should always be compiles with *all* > options, so there will be no issue there. And it should always be > upgraded to the newest stable version within a week of its release. > This may be asking a lot, but people should get what they pay for, > right?

    I'm in the same boat but fortunately I've got a great web host who would give me access to set up my own install. Is this possible? Any relavent documentation anywhere?

    Thanks Joel

    attached mail follows:


    I want to do a simple FOR statement where I average the high and low value for a given year. A user will input the values on a separate page and hit a submit button. I can hard code each year to do what I want, but I'd like a simpler method. I've tried variations of multiple $'s, +'s and quote marks but haven't hit on the correct method, and I could certainly use someone's help.

    Thanks, Hugh

    What I want to do: <?php

    $high_1995=22; $high_1996=23; $high_1997=20; $high_1998=18; $high_1999=20; $high_2000=21; $high_2001=23;

    $low_1995=22; $low_1996=23; $low_1997=20; $low_1998=18; $low_1999=20; $low_2000=21; $low_2001=23;

    for ($year=1995;$year<=2001;$year++) { $avg_$year=($high_$year"+$low_$year)/2 // create $avg_1995, ... print "$avg_$year<br>"; }

    ?>

    attached mail follows:


    try

    for ($year=1995;$year<=2001;$year++) { $high = "high_" . $year; $low = "low_" . $year; printf("avg for %s is %s",$year,($high + $low)/2); }

    on 8/6/01 5:50 PM, Hugh Danaher at hdanaherearthlink.net wrote:

    > I want to do a simple FOR statement where I average the high and low value for > a given year. A user will > input the values on a separate page and hit a submit button. I can hard code > each year to do what I want, but I'd like a simpler method. I've tried > variations of multiple $'s, +'s and quote marks but haven't hit on the correct > method, and I could certainly use someone's help. > > Thanks, > Hugh > > > What I want to do: > <?php > > $high_1995=22; > $high_1996=23; > $high_1997=20; > $high_1998=18; > $high_1999=20; > $high_2000=21; > $high_2001=23; > > $low_1995=22; > $low_1996=23; > $low_1997=20; > $low_1998=18; > $low_1999=20; > $low_2000=21; > $low_2001=23; > > for ($year=1995;$year<=2001;$year++) > { > $avg_$year=($high_$year"+$low_$year)/2 // create $avg_1995, ... > print "$avg_$year<br>"; > } > > ?> >

    -- mike cullerton

    attached mail follows:


    oops, that's printf("avg for %s is %s",$year,($$high + $$low)/2);

    :)

    sorry

    on 8/6/01 6:17 PM, mike cullerton at php-lbakednotfried.com wrote:

    > try > > for ($year=1995;$year<=2001;$year++) { > $high = "high_" . $year; > $low = "low_" . $year; > printf("avg for %s is %s",$year,($high + $low)/2); > } > > > on 8/6/01 5:50 PM, Hugh Danaher at hdanaherearthlink.net wrote: > >> I want to do a simple FOR statement where I average the high and low value >> for >> a given year. A user will >> input the values on a separate page and hit a submit button. I can hard code >> each year to do what I want, but I'd like a simpler method. I've tried >> variations of multiple $'s, +'s and quote marks but haven't hit on the >> correct >> method, and I could certainly use someone's help. >> >> Thanks, >> Hugh >> >> >> What I want to do: >> <?php >> >> $high_1995=22; >> $high_1996=23; >> $high_1997=20; >> $high_1998=18; >> $high_1999=20; >> $high_2000=21; >> $high_2001=23; >> >> $low_1995=22; >> $low_1996=23; >> $low_1997=20; >> $low_1998=18; >> $low_1999=20; >> $low_2000=21; >> $low_2001=23; >> >> for ($year=1995;$year<=2001;$year++) >> { >> $avg_$year=($high_$year"+$low_$year)/2 // create $avg_1995, ... >> print "$avg_$year<br>"; >> } >> >> ?> >> > > > -- mike cullerton > >

    -- mike cullerton

    attached mail follows:


    Arthur, Thank you very much for your help. I tried it and it works perfectly.

    I haven't tried the array yet though, I'm a bit shy of them as I don't know much about accessing arrays yet. Perhaps in the future. Thank you again. Hugh ----- Original Message ----- From: Arthur <xapx.org> To: Hugh Danaher <hdanaherearthlink.net> Sent: Monday, August 06, 2001 5:41 PM Subject: Re: [PHP] How do I write a compound variable?

    > To make your code work use curly braces for the compound variables. > > http://www.php.net/manual/en/language.variables.variable.php > > $high_1995=22; > $high_1996=23; > $high_1997=20; > $high_1998=18; > $high_1999=20; > $high_2000=21; > $high_2001=23; > > $low_1995=22; > $low_1996=23; > $low_1997=20; > $low_1998=18; > $low_1999=20; > $low_2000=21; > $low_2001=23; > > for ($year=1995;$year<=2001;$year++) > { > ${"avg_" . $year} = ( ${"high_" . $year} + ${"low_" . $year} > )/2; // create $avg_1995, ... > print "${"avg_" . $year}<br>"; > } > > > To do it without compound variables do this: > > $arr = array( > 1995 => array(high=>22,low=>22), > 1996 => array(high=>23,low=>23), > 1997 => array(high=>20,low=>20), > 1998 => array(high=>18,low=>18), > 1999 => array(high=>20,low=>20), > 2000 => array(high=>21,low=>21), > 2001 => array(high=>23,low=>24), > ); > > foreach($arr as $year=>$vals){ > $avg = ( $vals["high"] + $vals["low"] ) / 2; > echo $year . " - " . $vals["high"] . " - " . $vals["low"] . " - " . $avg . > "<br>\n"; > } > > > > - Arthur >

    attached mail follows:


    On Tuesday 07 August 2001 01:50, Hugh Danaher wrote:

    > I want to do a simple FOR statement where I average the high and low > value for a given year. A user will input the values on a separate

    > What I want to do: > <?php > > $high_1995=22; > $high_1996=23; > $high_1997=20; > $high_1998=18; > $high_1999=20; > $high_2000=21; > $high_2001=23;

    Use Arrays: $high [1995] = 22; $high [1996] = 23;

    ...

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

    Results 1 - 10 of about 201,000,000. Search took 0.08 seconds

    - http://www.google.com/search?q=e

    attached mail follows:


    on 8/5/01 11:05 PM, Richard Kurth at rkurthpacifier.com wrote:

    > Is it possible to have a form submit button call a function. Like for > updating a record in a database or for deleting data. Rather than a > new page or with PHP_SELF

    i'm sure this isn't the only way, but what i do is...

    switch ($submit) { case "my_value": my_function(); break;

    case "my_other_value": my_other_function(); break;

    default: my_default_function(); break; }

    so, when the form is submitted, i check the value of submit and run the corresponding function.

    hope this helps, mike

    -- mike cullerton

    attached mail follows:


    this script works as expected, if you don't submit ",' and \ but if you use ",' or \ these characters will be quoted with \

    "'\test"'\ -> \"\'\\test\"\'\\

    <? echo htmlentities($val)."<form method=GET><input type=text name=val><input type=submit></form>"; ?>

    how to get rid of this??? I don't want any character been quoted!!!

    thanks michi

    -- 
    Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne
    Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
    http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a
    

    attached mail follows:


    Hello! :)

    I have a script that loads another script with require() and based on the context, I'd like different things to happen. So, index.php is calling the required file require.php. And when require.php is run, if there's no HTTP_REFERER and the file is index.php, everything is OK. But if the file is accessed directly (say by GET) then I want an error to be thrown. Reason being is require.php can also accept POST operations, but I don't want it to accept GETs, because it's not supposed to be used alone. Problem is, when it's required with another file, GET is OK. So basically, I want to detect if the file is being required or called on its own. At least, that's what it sounds like I want to do from my above explanation. Any ideas how I can accomplish this? Thanks! :)

    --
     -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/
    

    attached mail follows:


    > Hello! :) > > I have a script that loads another script with require() and based on > the context, I'd like different things to happen. So, index.php is > calling the required file require.php. And when require.php is run, if > there's no HTTP_REFERER and the file is index.php, everything is OK. > But if the file is accessed directly (say by GET) then I want an error > to be thrown. Reason being is require.php can also accept POST > operations, but I don't want it to accept GETs, because it's not > supposed to be used alone. Problem is, when it's required with another > file, GET is OK. So basically, I want to detect if the file is being > required or called on its own. At least, that's what it sounds like I > want to do from my above explanation. Any ideas how I can accomplish > this? Thanks! :)

    I think $PHP_SELF is your friend!

    hth Michael

    -- 
    Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne
    Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
    http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a
    

    attached mail follows:


    I would like to hear your opinion:

    how would you organize showing banners?

    .) save the banners in database or filesystem? .) choose the banner in the main.php: $banner=my_random_func(); echo "<img src=${banner}.gif>"; .) or choose them in a separate script: <img src=banner.php> .) how to output the gif? fpassthrough ???

    thanks for any hints and ideas Michael

    -- 
    Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne
    Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
    http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a
    

    attached mail follows:


    i'm not sure i understand how you are running this...

    if it is a file you are running at the command line, try "-q" after the php.exe statement.

    if this is a web page, comment that line out.

    hope this helps, mike

    on 8/6/01 1:16 PM, miguel valero at mrv169yahoo.com wrote:

    > When I run the following script under an stand-alone > php 4.0.6 and Apache 1.3 (Win95/98), the path to PHP > (#!c:\php\php.exe) will show up on the first line of > the browser output. > > #!c:\php\php.exe > > <?php > > phpinfo(); > > ?> > > Is there a way to fix this? How can I get rid of the > path line, on the top of the page, on the browser > output? Any help will be greatly appreciated. > > My apologies if this has been covered before, or if > this is in the manual, but I couldn't see it > > thanks. > > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/

    -- mike cullerton

    attached mail follows:


    Hi All,

    Does anyone have any experience with registering sites on the major search engines? I have a number of questions I hope to find help with (and please do excuse that not all of them are directly PHP related)

    -Do search engines treat .html and .php files differently in caching etc?

    -I include a standard header on each page, and was originally going to put into this standard all the various meta tags to describe the site, however someone suggested to me that this counetd against you by some search engine....anyone have any knowledge on this?

    -How is it best to create meta tags? does anyone know of php or other tools or good guides?

    Any other general advice more than appreciated!

    attached mail follows:


    The web site http://www.searchenginewatch.com is highly recommended. :)

    I believe that some search engines may not grok .php files properly, but that may be old information, given the amount of PHP out there these days. All of my clients sites that I run use .html as a PHP extension, so that's not an issue for them.

    - Tim

    On 07 Aug 2001 01:47:28 +0100, Tom Carter wrote: > Hi All, > > Does anyone have any experience with registering sites on the major search > engines? I have a number of questions I hope to find help with (and please > do excuse that not all of them are directly PHP related) > > -Do search engines treat .html and .php files differently in caching etc? > > -I include a standard header on each page, and was originally going to put > into this standard all the various meta tags to describe the site, however > someone suggested to me that this counetd against you by some search > engine....anyone have any knowledge on this? > > -How is it best to create meta tags? does anyone know of php or other tools > or good guides? > > > Any other general advice more than appreciated! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    One of best tutorials around can be found at: http://www.northernwebs.com/set/

    rm

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

    attached mail follows:


    hai all, i have problem with QueryString. I use php 4.0.x with apache 1.3.x on win 2000 but can not get the querystring on browser. ex: http://localhost/m1.php?par1=value1 on m1.php, i write: <? echo("m1 = $par1 "); ?> i can not get the value of $par1... i have this problem may be after i installed too many programming language and oracle that have relation to apache.

    help me please.

    thanks zaacendo

    attached mail follows:


    Is it found in $HTTP_GET_VARS["par1"]?

    - Tim

    On 07 Aug 2001 08:02:44 +0700, Ishak Anwar wrote: > hai all, > i have problem with QueryString. > I use php 4.0.x with apache 1.3.x on win 2000 > but can not get the querystring on browser. > ex: > http://localhost/m1.php?par1=value1 > on m1.php, i write: > <? > echo("m1 = $par1 "); > ?>

    attached mail follows:


    with $HTTP_GET_VARS["par1"] i can get par1 value... but... why with $par1 variable i can not get it ?

    thanks

    >From: Tim<infozearthlink.net> >To: zaacendotriplegate.com >Cc: php-generallists.php.net >Subject: Re: [PHP] problem with querystring >Date: Tue, August 7, 2001 8:10 am > > Is it found in $HTTP_GET_VARS["par1"]? > > - Tim > > On 07 Aug 2001 08:02:44 +0700, Ishak Anwar wrote: > > hai all, > > i have problem with QueryString. > > I use php 4.0.x with apache 1.3.x on win 2000 > > but can not get the querystring on browser. > > ex: > > http://localhost/m1.php?par1=value1 > > on m1.php, i write: > > <? > > echo("m1 = $par1 "); > > ?> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    See:

    http://www.php.net/manual/en/security.registerglobals.php

    - Tim

    On 07 Aug 2001 08:12:46 +0700, Ishak Anwar wrote: > with $HTTP_GET_VARS["par1"] > i can get par1 value... > but... why with $par1 variable i can not get it ? > > thanks

    attached mail follows:


    On Tue, 7 Aug 2001 01:52, Julian Simpson wrote: > who's fault is this?: > I have a table 'cdrequest' it has columns 'albumfill' and > 'releasedatefill' among others.... when i do the following query with > myphpadmin > update cdrequest set albumfill = "hot shots II", releasedatefill = > 20010708 where requstID = 2; i get: > You have an error in your SQL syntax near '\"hot shots II\", > releasedatefill = 20010708 where requstID = 2' at line 1 I can't see > any reason for the error..... > part 2: > when I flip to properties for the cdrequest just to make sure i'm > spelling the columns corectly and cut and paste the exact same query on > that page IT WORKS.... > Why would it work on that page but not the other. both are supposed to > be places where you can enter a normal sql query.. > It also doesn't work in my PHP script which is where I really want it > to work. What am I missing?? >

    You might try using single quotes rather than double quotes to delimit your string value in the SQL statement.

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

    Do vegetarians eat animal crackers?

    attached mail follows:


    Hi All,

    This is something I have working nicely now, and I know theres been posts on here before without any satisfactory answer, but this eeems to cover all.

    When you have a script that returns a file, you obviously want to return a file which looks right. Ths initially simple looking way of doing this is by using the "Content Disposition" header. This however has many problems.. when calling a script say getfile.php?name=my_file which looks up in the database to find that file and return it, a lot of browsers may (intermittently) prompt you to open/save getfile.php.. you then have to open this (sometimes twice) to be prompted to download my_file.zip.

    The solution... sadly its not a PHP one..... On apache theres an extention called mod_rewrite (there are equivalents for other servers) that basically uses regular expression to rewrite urls (which can be useful in soo many situations). using this you can specify a rule something like

    RewriteRule /downloads/([^/.]+).zip getfile.php?name=$1

    which basically says that if the user requests the url of something like /downloads/silly.zip then it is redirected to getfile.php?name=$1..neat, huh?

    Remove the Content Disposition line from your php script and it will all work wonderfully well!!

    Also good for DB stored images you don't want to appear as .php!

    hope this helps some people...

    Tom "Rambling" Carter

    attached mail follows:


    What platform is the server? Unix? Win98? It shouldn't be putting line breaks in.

    Do you have access to MySQL? If so, that may be a solution.

    Justin French

    Marcus James Christian wrote: > > Hello, > > I've been having quite a challenging ordeal making a simple custom > mailing list using PHP. > > The part where automatically added names happen to an external file > works but if I put line breaks in it drops them from their hidden Bcc > list. Which is a no can do for this. > > Then when I don't put in line breaks from the string somewhere after > many names the machine automatically puts a line break in and leaves > this very uncool three or four most recent names sitting in the top part > of the emails body!? > > Help, > > Marcus > > -- > Marcus James Christian -- UNLIMITED > Multimedia Internet Design > http://mjchristianunlimited.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    Supposively all php variables arent suppose to have size limits, for example, I have a php file with a variable the about the size of 40 bytes, but it wont let me submit the variable for some stupid reason, somebody tell me what parameter I have to set to the variable so it WILL work.. and/or why it is not working the way php.net says it should. thanks..

    -Josh

    attached mail follows:


    Problem isn't size, you may have a syntax error...perhaps if you give more detail, submit the variable to what? What do you mean it won't let you?

    rm

    --- Joshman <Joshezcrosswinds.net> wrote: > Supposively all php variables arent suppose to have > size limits, for > example, I have a php file with a variable the about > the size of 40 bytes, > but it wont let me submit the variable for some > stupid reason, somebody tell > me what parameter I have to set to the variable so > it WILL work.. and/or why > it is not working the way php.net says it should. > thanks.. > > -Josh > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribelists.php.net > For additional commands, e-mail: > php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net >

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

    attached mail follows:


    the php file wont submit to the next file (which is th same file actually: $PHP_SELF ) because the variable is too big for some reason aparently, evn though i have other variables larger than that particular one...

    -Josh

    "Rm" <richand2002yahoo.com> wrote in message news:20010807034214.336.qmailweb12702.mail.yahoo.com... > Problem isn't size, you may have a syntax > error...perhaps if you give more detail, submit the > variable to what? What do you mean it won't let you? > > rm > > > --- Joshman <Joshezcrosswinds.net> wrote: > > Supposively all php variables arent suppose to have > > size limits, for > > example, I have a php file with a variable the about > > the size of 40 bytes, > > but it wont let me submit the variable for some > > stupid reason, somebody tell > > me what parameter I have to set to the variable so > > it WILL work.. and/or why > > it is not working the way php.net says it should. > > thanks.. > > > > -Josh > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > > php-general-unsubscribelists.php.net > > For additional commands, e-mail: > > php-general-helplists.php.net > > To contact the list administrators, e-mail: > > php-list-adminlists.php.net > > > > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/

    attached mail follows:


    Sorry for jumping in & not knowing the full story.. is this going into a DB on submit?

    if so check your char sizes on the DB table fields if their not big enough then you will not be able to submit propperly.

    Peter >Mailing-List: contact php-general-helplists.php.net; run by ezmlm >list-help: <mailto:php-general-helplists.php.net> >list-unsubscribe: <mailto:php-general-unsubscribelists.php.net> >list-post: <mailto:php-generallists.php.net> >Delivered-To: mailing list php-generallists.php.net >To: php-generallists.php.net >From: "Joshman" <Joshezcrosswinds.net> >Date: Mon, 6 Aug 2001 21:16:15 -0700 >X-Priority: 3 >X-MSMail-Priority: Normal >X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 >X-Posted-By: 216.58.212.17 >Subject: Re: [PHP] I HAVE A PROBLEM HERE... >X-Mozilla-Status: 0000 >X-Mozilla-Status2: 00000000 >X-UIDL: 588e28a02a933636c3a843cd9908ce74 > >the php file wont submit to the next file (which is th same file actually: >$PHP_SELF ) because the variable is too big for some reason aparently, evn >though i have other variables larger than that particular one... > >-Josh > >"Rm" <richand2002yahoo.com> wrote in message >news:20010807034214.336.qmailweb12702.mail.yahoo.com... >> Problem isn't size, you may have a syntax >> error...perhaps if you give more detail, submit the >> variable to what? What do you mean it won't let you? >> >> rm >> >> >> --- Joshman <Joshezcrosswinds.net> wrote: >> > Supposively all php variables arent suppose to have >> > size limits, for >> > example, I have a php file with a variable the about >> > the size of 40 bytes, >> > but it wont let me submit the variable for some >> > stupid reason, somebody tell >> > me what parameter I have to set to the variable so >> > it WILL work.. and/or why >> > it is not working the way php.net says it should. >> > thanks.. >> > >> > -Josh >> > >> > >> > >> > -- >> > PHP General Mailing List (http://www.php.net/) >> > To unsubscribe, e-mail: >> > php-general-unsubscribelists.php.net >> > For additional commands, e-mail: >> > php-general-helplists.php.net >> > To contact the list administrators, e-mail: >> > php-list-adminlists.php.net >> > >> >> >> __________________________________________________ >> Do You Yahoo!? >> Make international calls for as low as $.04/minute with Yahoo! Messenger >> http://phonecard.yahoo.com/ > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net >

    ------------------------------------------------------ Peter Houchin Sun Rentals STR Manager Phone: 03 9329 1455 Fax: 03 9329 6755 peterhsunrentals.com.au http://www.sun.com.au/rentals ========================================================= _____ __ /\ /_/_/_\ / |_/ \ /_/_/_ __ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/ \_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/ v ________ ________________________________________ /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ ______ __ __ /_/ ____ __ ______ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\ /_/ /_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/ \_\/_/_/_/ /_/ \/_/ /_/ /_/ \_\/_/_/_//_/_/_/ ========================================================= Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 ************* We rent the dot in .COM! **************

    attached mail follows:


    There is a maximum length that a link with variable pairs can pass. It escapes me right now, but it isn't too large. Are you passing more than just this one variable? If so, just as a test, try only passing php_self and see if it makes it.

    --
    

    "Joshman" <Joshezcrosswinds.net> wrote in message news:20010807040655.97168.qmailpb1.pair.com... > the php file wont submit to the next file (which is th same file actually: > $PHP_SELF ) because the variable is too big for some reason aparently, evn > though i have other variables larger than that particular one... > > -Josh > > "Rm" <richand2002yahoo.com> wrote in message > news:20010807034214.336.qmailweb12702.mail.yahoo.com... > > Problem isn't size, you may have a syntax > > error...perhaps if you give more detail, submit the > > variable to what? What do you mean it won't let you? > > > > rm > > > > > > --- Joshman <Joshezcrosswinds.net> wrote: > > > Supposively all php variables arent suppose to have > > > size limits, for > > > example, I have a php file with a variable the about > > > the size of 40 bytes, > > > but it wont let me submit the variable for some > > > stupid reason, somebody tell > > > me what parameter I have to set to the variable so > > > it WILL work.. and/or why > > > it is not working the way php.net says it should. > > > thanks.. > > > > > > -Josh > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: > > > php-general-unsubscribelists.php.net > > > For additional commands, e-mail: > > > php-general-helplists.php.net > > > To contact the list administrators, e-mail: > > > php-list-adminlists.php.net > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Make international calls for as low as $.04/minute with Yahoo! Messenger > > http://phonecard.yahoo.com/ > >

    attached mail follows:


    i assume you mean your passing the variable as part of the url...PHP_SELF?a=something (is this what your doing) if so make sure you use rawurlencode/urlencode before passing the variable and rawurldecode/urldecode on the variable afterwards...

    --- Joshman <Joshezcrosswinds.net> wrote: > the php file wont submit to the next file (which is > th same file actually: > $PHP_SELF ) because the variable is too big for some > reason aparently, evn > though i have other variables larger than that > particular one... >

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

    attached mail follows:


    Lets take the most simple of scripts and run it on a standalone page to prove it's working correctly before we import into a template file. http://www.yorkshire-search.co.uk/links/add_form.php4

    Next step, lets change the tags <?php ?> to <php></php> because that's what it says in the manual and put it into the add_form.html template and see if it runs now. http://www.yorkshire-search.co.uk/links/add.php3

    Oh dear boys and girls, it doesn't work and poor old Phil is starting to cry.

    I know, let's play a game and see if we can cheer him up by finding out why the below code doesn't work and of course, you can play along at home too.

    <php> { $MetaTags = get_meta_tags("$getmetafrompage/",1); { $description = $MetaTags["description"]; }

    print "<FORM ACTION=\"$PHP_SELF\" METHOD=post>"; print "If your page already has META tags you may import and edit them.<BR>"; print "<B>URL:</B> <INPUT TYPE=text NAME=getmetafrompage SIZE=30 VALUE=\"http://\"><BR>"; print "<INPUT TYPE=submit VALUE=\"Import META tags from page\"></FORM><HR>";

    echo "<font face=\"Arial\" size=\"2\" color=\"Red\"><%error_msg%></font>"; echo "<form action=\"add.php3\" method=post>"; echo "<input type=hidden name=pflag value=add>"; echo "<textarea name=\"description\" cols=\"40\" rows=\"10\" maxlength=\"255\" wrap=\"virtual\">"; echo "$description"; echo "</textarea><p>"; echo "<input type=submit name=submit value=\"Add\" class=\"button\">"; echo "</form>";

    }

    </php>

    This is my attempt at humour if anyone was wondering !!

    attached mail follows:


    I've noticed in some articles I ran across today that that there is some opinion that PHP is too linear and that Python was being used in conjuction with PHP since Python is so strong with oop. Anyone run across any docs or tutorials on using both P's together.

    rm

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

    attached mail follows:


    Hi all

    I'm succsesfuly created online handling form and parse is in Oracle databaze ... but I wana to control each entry before it will be inserted into a database ... As you guess I nedd form control script which will control entries ...I dont need Java Script I neeed any small php script which can control form filling ..

    Please help me or give me some idea !!!

    Thanks in advance

    _________________________________________________________ Do You Yahoo!? Get your free yahoo.com address at http://mail.yahoo.com

    attached mail follows:


    Hi,

    I cannot find any information on writing the php external module in C++ or any other languages other than C. Basically I need to develop an external php module to interface with some other third party library which is only available in C++.

    Your help is really appreciated.

    Regards,

    Shao.

    -- 
    Shao Zhang                          Tel:  (02) 9209 4838
    Software Engineer                   Fax:  (02) 9209 4992
    Redfern Broadband Networks (RBN)    Mail: szhangrbni.com
    

    attached mail follows:


    From Coding Standard === Syntax and indentation ----------------------

    *SNIP*

    PHP is written in C, and is aimed at compiling under any ANSI-C compliant compiler. ===

    You are better to ask in php-dev list, if use of C++ is acceptable or not. If you are not interested in making your extension available as standard module, I think it's your choice.

    --
    Yasuo Ohgaki
    

    "Shao Zhang" <shaoblueskyhost.com> wrote in message news:5usnf4jweg.fsfszhang.redfernnetworks.com... > Hi, > > I cannot find any information on writing the php external module in C++ or any > other languages other than C. Basically I need to develop an external php module > to interface with some other third party library which is only available in C++. > > Your help is really appreciated. > > Regards, > > Shao. > > -- > Shao Zhang Tel: (02) 9209 4838 > Software Engineer Fax: (02) 9209 4992 > Redfern Broadband Networks (RBN) Mail: szhangrbni.com

    attached mail follows:


    Hello,

    I've been doing some research to assess the feasibility of using PHP and XML for a web-based database-driven application. From what I've read, it seems that presently the costs of using XML outweigh the benefits.

    Here are the costs I see: 1. XML standards are still maturing 2. XSLT is complex and difficult to understand 3. Their is minimal support for XML in relational databases, and none for MySQL 4. PHP's XML tools are still in their infancy 5. The processing time to go from SQL to XML to HTML via XSLT is often high.

    The benefits? 1. Greater abstraction between data, logic and presentation which can be easier to design, develop and maintain.

    Your thoughts?

    Thanks, Gerry Kirk

    attached mail follows:


    Gerry:

    Check out binarycloud. You have XML-driven site generation, complete separation of layout/content, et cetera.

    _justin

    ======================

    Gerry Kirk wrote: > > Hello, > > I've been doing some research to assess the feasibility of using PHP and > XML for a web-based database-driven application. From what I've read, it > seems that presently the costs of using XML outweigh the benefits. > > Here are the costs I see: > 1. XML standards are still maturing > 2. XSLT is complex and difficult to understand > 3. Their is minimal support for XML in relational databases, and none for MySQL > 4. PHP's XML tools are still in their infancy > 5. The processing time to go from SQL to XML to HTML via XSLT is often high. > > The benefits? > 1. Greater abstraction between data, logic and presentation which can be > easier to design, develop and maintain. > > Your thoughts? > > Thanks, > Gerry Kirk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    -- 
    Justin Farnsworth
    Eye Integrated Communications
    321 South Evans - Suite 203
    Greenville, NC 27858 | Tel: (252) 353-0722
    

    attached mail follows:


    Is there a function in PHP which can tell me the encryption strength being used by the browser? I want to be able to put a little message on the page saying, "You are using strong encryption" or "Warning: you should upgrade your browser to one which supports 128bit crypto".

    Thanks

    attached mail follows:


    Hi Gerry

    The XML isn't coming directly from a database, it's coming from an IIS server that i query (i generate XML file containing the parameters of the query, POST it to the IIS machine, it runs some .ASP to query an inhouse database, then POST the XML results back to me)

    I then parse the XML to generate a HTML table, however sometimes i may end up with a massive table, and i'm trying to find a way to break that table into pages of 25 results. However, i'm completely stumped how to do this :(

    Regards

    Girish

    --
    

    function fetchXML($parameters, $request) {

    $appserverIP = "123.456.789.10"; $appserverPort = "8080"; $appserverPacketSize = "4096"; $phpServer = "aeris";

    $header .= "POST /directory/" . $request . " HTTP/1.1\r\n"; $header .= "Host: " . $phpServer . "\r\n"; $header .= "User-Agent: PHP\r\n"; $header .= "Content-type: application/x-www-form-urlencoded\r\n"; $header .= "Content-length: " . strlen($parameters)."\r\n"; $header .= "Connection: close\r\n\r\n";

    $fp = fsockopen($appserverIP,$appserverPort);

    if ($fp) { fputs($fp, $header . $parameters);

    while (!feof($fp)) { $response .= fgets($fp,$appserverPacketSize); }

    fclose($fp); }

    return cleanXML($response); // custom function to strip HTTP headers from fetched data.

    }

    ----- Original Message ----- From: "Gerry Kirk" <gerrymccb.org> To: "Girish Nath" <girishnbtinternet.com> Sent: Tuesday, August 07, 2001 5:22 AM Subject: Re: [PHP] XML Next 25 Results

    Hello Girish,

    I can't help you with your problem, as I am just getting acquainted with XML myself. I've been doing some research to assess the feasibility of using PHP and XML for a web-based database-driven application.

    If you don't mind, could you share with me how you are using XML? Are you retrieving / querying / storing data from a database?

    Thanks, Gerry Kirk

    attached mail follows:


    Hello all

    I have just implemented a mySQL authorization: each html and php page checks to see whether a user is logged in by checking a cookie in the user browser. The user can log out and edit her profile (including password). If a page is called without the user being logged in, he is presented with a log in form. This works very well. There is an SSL connection to the server. Only a hash value of the password is stored in the database.

    However, if I directly request a graphic (or a ZIP file etc) from the site, by entering: https://www.myserver.com/photo.jpg for example, I can download that file without being logged in (naturally).

    In the particular *intranet* project that I am working on, this is particularly undesirable, as only personnel at the company’s four locations may have access to the intranet. And there certainly will be a lot of ‘confidential’ ZIP and graphic files placed on the server.

    I do realize that if I were to place a .htaccess file in the root of the intranet server, I could prevent the above from happening, but then I loose the advantage of having the users profile in a database, where a user can easily change her password. Allowing a web user to edit a password in the .htaccess file poses more problems than it solves, especially as it certainly could occur that more than one persons wants to edit his password simultaneously.

    Could anyone suggest a method to allow a user to easily edit his password, but at the same time, not allow direct access to specific non-PHP files on the intranet server?

    Perhaps one method would be to restrict access to the company’s four gateway servers (IP addresses). However, I feel this is not to secure, and these IPs could be spoofed (and this does not really solve the problem).

    Any enlightenment on this subject would be well received.

    TIA

    S.

    _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

    attached mail follows:


    Fait cela toi même.

    "Said El Maataoui" <said.elmaataouicaramail.com> wrote in message news:997014508023116caramail.com... merci _________________________________________________________ Le journal des abonnés Caramail - http://www.carazine.com