php-general Digest 23 Nov 2002 20:55:04 -0000 Issue 1722

2002-11-23 Thread php-general-digest-help

php-general Digest 23 Nov 2002 20:55:04 - Issue 1722

Topics (messages 125716 through 125738):

Re: php teleprogramming -- How to avoid being ripped off ?
125716 by: Khalid El-Kary

How to obtain unique XML Elements
125717 by: David Pratt
125718 by: Khalid El-Kary

Undefined Variable
125719 by: Adriano Santos
125720 by: Derick Rethans
125724 by: Adriano Santos
125725 by: Derick Rethans
125734 by: Adriano Santos

Re: extension can't be found
125721 by: Derick Rethans

Re: Post again. question about Animated GIF
125722 by: Derick Rethans

Re: put result of "include" into a variable
125723 by: Derick Rethans

Some error in file upload.
125726 by: Naif Al-Otaibi
125727 by: Derick Rethans

Re: Some error in file upload.]
125728 by: Marco Tabini
125730 by: Marco Tabini

Re: OT- "Private Registrations" for Domains
125729 by: Ernest E Vogelsinger

Re: echo'ing array contents through reference variable ... why doesn't this work???
125731 by: -<[ Rene Brehmer ]>-
125733 by: Ernest E Vogelsinger

Re: dynamic arraynames
125732 by: John W. Holmes

Re: echo'ing array contents through reference variable
125735 by: Tularis

Insert file into sql server binary field.
125736 by: Naif Al-Otaibi

using cookies
125737 by: Ken Nagorski
125738 by: Rich Gray

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
hi,
don't be so unhappy withit, because you won however, money comes and goes 
knowledge stays, through this experience you learned much, right? so you 
didn't lost much! :-)





_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

--- End Message ---
--- Begin Message ---
Anyone have a simple technique for obtaining a unique list of elements from
an XML file?

Am looking for something that will identify the first opening tag ie
 and the single tag  so that I get an array of tags
that I can print out.  Having a bit of trouble with regex to get something
to work.

Basic idea I had is to open file, read through each line with regex, add
matches to array, and then do unique elements of array and write to another
file.

Is there a better way?

--
Regards,
Dave

--- End Message ---
--- Begin Message ---
hi,
you can get this parser

http://creaturesx.ma.cx/kxparse/

if you want only this limited functionality (take an old version) 0.2 for 
example, you may also want to take only particular functions from it

this is valid in all cases (as i think), except that you are developing 
another parser :)

khalid








_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

--- End Message ---
--- Begin Message ---
Hi,

I'm with problem: Undefined Variable.
I'm using :
PHP 4.2.3
MySql 3.2.39
Windows 2000

How do I make to soluction my problem ?
thanks



--- End Message ---
--- Begin Message ---
Adriano Santos wrote:

Hi,

I'm with problem: Undefined Variable.
I'm using :
PHP 4.2.3
MySql 3.2.39
Windows 2000

How do I make to soluction my problem ?


at the top of your script:
error_reporting(E_ALL & ~E_NOTICE);

or initialize your variables likes:
$number = 0;
$string = "foo";

Derick


--

-
 Derick Rethans http://derickrethans.nl/
 PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/
-


--- End Message ---
--- Begin Message ---
My php.ini:  error_reporting = E_ALL & ~E_NOTICE

I have a form to send of the variables, but my page do not receive values.

This my code:



thanks


"Derick Rethans" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Adriano Santos wrote:
> > Hi,
> >
> > I'm with problem: Undefined Variable.
> > I'm using :
> > PHP 4.2.3
> > MySql 3.2.39
> > Windows 2000
> >
> > How do I make to soluction my problem ?
>
> at the top of your script:
> error_reporting(E_ALL & ~E_NOTICE);
>
> or initialize your variables likes:
> $number = 0;
> $string = "foo";
>
> Derick
>
>
> --
>
> -
>   Derick Rethans http://derickrethans.nl/
>   PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/
> -
>



--- End Message ---
--- Begin Message ---
Adriano Santos wrot

php-general Digest 24 Nov 2002 09:23:29 -0000 Issue 1723

2002-11-24 Thread php-general-digest-help

php-general Digest 24 Nov 2002 09:23:29 - Issue 1723

Topics (messages 125739 through 125772):

Re: using cookies
125739 by: Paul Marinas
125742 by: Rich Gray
125754 by: Chris Shiflett

Re: Using Ping (was: using cookies)
125740 by: Marco Tabini

Passing Variables
125741 by: Craig Edgmon
125743 by: Marco Tabini
125745 by: Rich Gray
125749 by: Stephan Seidt

Re: Php search results]
125744 by: Tom Culpepper

Re: grabbing data from a site
125746 by: Tom Culpepper

Re: put result of "include" into a variable
125747 by: Tom Culpepper

Re: dynamic arraynames
125748 by: Floyd Baker
125753 by: Hugh Danaher

logs(querystring) in php4 or apache?
125750 by: Frank Wang

PHP Syntax - mail statement
125751 by: Michael Sharp
125752 by: Marco Tabini

strings and vars
125755 by: empty
125756 by: Kyle Gibson
125757 by: Ernest E Vogelsinger
125758 by: empty

Parse URLs
125759 by: Stephen
125760 by: Tom Culpepper
125761 by: Stephen
125762 by: Tom Culpepper

getting mysql dump using php
125763 by: See Kok Boon
125764 by: Rich Gray
125765 by: Morgan Hughes

Secureing PHP.
125766 by: Steven Adams
125767 by: Stephan Seidt

Re: sessions and trans-sid problem/question
125768 by: Jean-Christian Imbeault
125769 by: Jean-Christian Imbeault
125770 by: Jean-Christian Imbeault

does //commenting reduce performance?
125771 by: Adam

Newbie: element index array
125772 by: Michael Wai

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

dose anyone how to send a "ping" in local network

thanks

Paul Marinas
Technical Support
RDS Craiova


Phone:  +402-51-410-194
Mobile: +407-22-451-439
Fax:+402-51-416-579
www.rdsnet.ro
.

Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this
message (or responsible for delivery of the message to such person), you may
not copy or deliver this message to
anyone. In such a case, you should destroy this message and kindly notify
the sender by reply e-mail.



--- End Message ---
--- Begin Message ---
Try the system() or passthru() functions...

Rich
-Original Message-
From: Paul Marinas [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2002 13:09
To: Rich Gray
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] using cookies



dose anyone how to send a "ping" in local network

thanks

Paul Marinas
Technical Support
RDS Craiova


Phone:  +402-51-410-194
Mobile: +407-22-451-439
Fax:+402-51-416-579
www.rdsnet.ro
.

Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this
message (or responsible for delivery of the message to such person), you may
not copy or deliver this message to
anyone. In such a case, you should destroy this message and kindly notify
the sender by reply e-mail.



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




--- End Message ---
--- Begin Message ---
--- Ken Nagorski <[EMAIL PROTECTED]> wrote:

> I have never used cookies before, however I am trying to
> implement them to make things a little more secure. Rather
> than passing a sql statement via a hidden input tag I am
> setting a cookie.

I think someone else already mentioned this, but let me emphasize
that this is a terrible idea and definitely does not make things a
little more secure.

The best analogy I can think of for a cookie would be handing out
name tags to people who visit your site. Imagine that you write the
following SQL on someone's name tag:

select * from foo where unique_id='12345'

This helps you distinguish them from the next person who may have a
unique identifier of 23456. While this might work for those who play
by the rules, you are placing a tremendous amount of trust in these
people. What if someone erased what you wrote on their name tag,
replacing it with this:

delete from foo

If you were to trust this person's name tag the next time you saw
them, you would delete all of the data from that table.

In addition to this, hidden form variables are just as bad. It is a
different method, but you are still basically sending something to
the client and just trusting the client to return exactly what you
sent. Placing so much trust in the client is never a good idea.

I would recommend abandoning these methods for anything that you, as
you say, are wanting to make more secure. Look into using sessions
inste

php-general Digest 24 Nov 2002 21:40:01 -0000 Issue 1724

2002-11-24 Thread php-general-digest-help

php-general Digest 24 Nov 2002 21:40:01 - Issue 1724

Topics (messages 125773 through 125836):

Re: Newbie: element index array
125773 by: Chase Urich
125774 by: Kyle Gibson

Re: does //commenting reduce performance?
125775 by: Kyle Gibson
125781 by: DL Neil
125783 by: Ernest E Vogelsinger
125797 by: Ernest E Vogelsinger
125798 by: . Edwin
125804 by: DL Neil
125806 by: DL Neil
125808 by: Sterling Hughes
125811 by: Ernest E Vogelsinger
125817 by: Vincent Vandemeulebrouck

Creating mySql search feature.
125776 by: Cookra
125777 by: Jean-Christian Imbeault
125778 by: Hatem Ben
125827 by: Marek Kilimajer

Re: sessions and trans-sid problem/question
125779 by: Ernest E Vogelsinger
125780 by: Ernest E Vogelsinger
125785 by: Jean-Christian Imbeault
125790 by: Justin French
125793 by: Jean-Christian Imbeault
125800 by: Ernest E Vogelsinger
125801 by: Ernest E Vogelsinger
125814 by: Michael Sims
125819 by: Chris Shiflett

get info of sub-directories
125782 by: gamin

Re: [PHP-WIN] Unable to upload.. :(
125784 by: Boris Kolev

getting mysql dump using php
125786 by: See Kok Boon
125789 by: See Kok Boon
125792 by: . Edwin
125831 by: See Kok Boon

Stripslashes through an array.
125787 by: Cookra

backticks vs Safe Mode
125788 by: Vincent Starre

Huffman encoding
125791 by: Hatem Ben
125794 by: Jean-Christian Imbeault
125795 by: Jean-Christian Imbeault

Re: Secureing PHP.
125796 by: . Edwin

Re: Huffman encoding / almost done
125799 by: Hatem Ben

How do I Install PHP on Apache 2.0?
125802 by: Tweak2x
125803 by: Stephan Seidt
125809 by: Tweak2x
125810 by: Stephan Seidt
125812 by: Tweak2x

Frequent question..Which Mailing List Script
125805 by: Bret L Conard

rad tools, form paser/validator
125807 by: Robert Mena

security of stand alone script
125813 by: gamin
125822 by: gamin
125823 by: Stephen
125825 by: DL Neil
125830 by: Ernest E Vogelsinger

Re: Linux Question
125815 by: Marek Kilimajer

Re: Insert file into sql server binary field.
125816 by: Marek Kilimajer
125818 by: Sterling Hughes
125826 by: Marek Kilimajer
125832 by: Chris Shiflett

php and caching
125820 by: Alex
125824 by: Stephan Seidt
125828 by: Marek Kilimajer
125833 by: Marco Tabini
125834 by: Ernest E Vogelsinger

Parse URLs
125821 by: Stephen

Cookies
125829 by: Omid

Another cookie question
125835 by: Øystein Håland
125836 by: Kyle Gibson

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
unset($a['element2']);

http://www.php.net/manual/en/function.unset.php

> I would like to ask that how can I completely delete the $a['element2'] in
> the array? That's mean I will get 'false' in 'isset($a['element2']) after
> the delete process is taken place.
-- 
Linux: Because rebooting is for adding hardware.
Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8 BE8



signature.asc
Description: This is a digitally signed message part
--- End Message ---
--- Begin Message ---
If I declared an element indexed array and put some values into it:

$a['element1'] = array('btime' => '19D', 'etime' => '22D', 'dayname' => 4);
$a['element2'] = array('btime' => '12D', 'etime' => '20D', 'dayname' => 2);
$a['element3'] = array('btime' => '15D', 'etime' => '17D', 'dayname' => 3);

I would like to ask that how can I completely delete the $a['element2'] in
the array? That's mean I will get 'false' in 'isset($a['element2']) after
the delete process is taken place.

Thanks for your help.


Use unset()

http://www.php.net/manual/en/function.unset.php

--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/


--- End Message ---
--- Begin Message ---
I have always had the opinion that the more comments you put into php
scripts, the slower they will run because there is more data to be read...
Can someone tell me if there is any truth in this or whether commenting has
absolutely 'no' impact on the performance of a script?


The comments are ignored, except the characters that initiate the actual 
comment.

//some comment
$somevar="va";

"some comment" wouldn't even be looked at. PHP sees the //, and goes to 
the next line.

I suppose on a large scale this could reduce performance, but the 
performance that is lost in standard applications is minuscule.

One thing you might want to avoid is using

php-general Digest 27 Nov 2002 11:17:23 -0000 Issue 1729

2002-11-27 Thread php-general-digest-help

php-general Digest 27 Nov 2002 11:17:23 - Issue 1729

Topics (messages 126201 through 126259):

Re: & in Query String
126201 by: Ernest E Vogelsinger
126209 by: Chris Shiflett
126247 by: . Edwin

session problems
126202 by: Jason Romero
126207 by: John W. Holmes
126233 by: conbud
126236 by: conbud

Re: Problems with a simple While-If condition
126203 by: Bret L Conard
126205 by: Jason Romero

Re: URL hiding
126204 by: Marco Tabini
126211 by: Kris
126213 by: Marco Tabini
126219 by: Bob Irwin
126224 by: John Nichel

Re: deleting a record.
126206 by: Peter Houchin

Re: Problems with a simple While-If condition With the statement
126208 by: Rodrigo de Oliveira

PHP zipcode distance class
126210 by: UberGoober

Re: Multiple page form
126212 by: Verdon Vaillancourt
126226 by: . Nilaab

Re: Need email solution
126214 by: Bryan Koschmann - GKT

displaying record number in a cell in a table
126215 by: Peter Houchin
126217 by: Van Andel, Robert
126220 by: Peter Houchin

testing for empty array
126216 by: poliva.cox.net
126218 by: Van Andel, Robert
126221 by: Kyle Gibson
126222 by: Morgan Hughes

php/mysql report builder
126223 by: Michael P. Carel
126225 by: John W. Holmes
126227 by: Miles Thompson
126250 by: DL Neil

php bugs (Chinese word display problem)-help
126228 by: samuel.3give.com
126229 by: Tom Culpepper
126234 by: samuel.3give.com
126246 by: . Edwin

How do i provide Download facility ??
126230 by: Venkatesh Hosur
126232 by: Chris Shiflett
126235 by: Justin French

Re: Linux Question
126231 by: Justin French

Re: php version of majordomo?
126237 by: Jason Wong

Invalid Charactors in a string.
126238 by: Philip J. Newman
126239 by: Tom Culpepper
126243 by: Justin French
126248 by: DL Neil

My first XML!
126240 by: Boris Kolev
126245 by: olinux

Changing SERVER's IP ADDRESS
126241 by: Adharsh Praveen R
126244 by: Jason Wong
126249 by: Adharsh Praveen R

array manipulations
126242 by: Mattia Wow

Re: spawing new PHP process
126251 by: Geranium

Newbie : How work with parameters?
126252 by: Stéphane Génin
126253 by: Ernest E Vogelsinger
126254 by: Scott Houseman
126255 by: Rich Gray

XSLT support for RH8
126256 by: Dan Kuykendall

Re: Decrypt Password
126257 by: Joakim Andersson

Re: Confirm message box
126258 by: Keith Sauvant
126259 by: Marek Kilimajer

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
At 00:00 27.11.2002, Jonathan Rosenberg \(Tabby's Place\) said:
[snip]
>Ok ... I take back what I said about & not working in a query string.
>It works just fine.
[snip] 

Ahhh - and I just created a test page for all to check out... nevertheless,
here it is:
http://www.vogelsinger.at/test.php

Simply provides a link using query parameters encoded with &, to check
with different browsers. Maybe someone will check this outwith his browser
anyway.


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



--- End Message ---
--- Begin Message ---
--- "Jonathan Rosenberg" <[EMAIL PROTECTED]> wrote:

> I tried it & it fails.  The browser sends the query
> string with the & & the $_GET access fails.
> 
> I am using IE 6.  I can't imagine that it would be
> buggy in this regard.

I just tried this in IE 6, and it worked fine for me. My test code
follows:

";
 print_r($_GET);
 echo "";
}
else
{
?>
Click Here


This should display:

Array
(
[foo] => bar
[blah] => blah
)

Does it not work for you?

Chris

--- End Message ---
--- Begin Message ---
Hello,

"Chris Shiflett" <[EMAIL PROTECTED]> wrote:

[snip]
> Does it not work for you?
[/snip]

It does, just like I said earlier :)

Anyway, I just wanted to add that not only in IE6 but even in NN4 or N7
(also in linux) it works perfectly fine.

- E


--- End Message ---
--- Begin Message ---
when using session registered variables
i can only get them to save as session variables for one page
then on the next page they are gone
far as i can tell the variables are not getting written over or unset
and the session is not gettting destroyed
any other ideas what it might be?

Jason



--- End Message ---
--- Begin Message ---
> when using session registered variables
> i can only get them to save as session variables for one page

php-general Digest 28 Nov 2002 11:26:02 -0000 Issue 1731

2002-11-28 Thread php-general-digest-help

php-general Digest 28 Nov 2002 11:26:02 - Issue 1731

Topics (messages 126374 through 126397):

session problems again
126374 by: Jason Romero
126378 by: Rich Gray

Re: [PHP-DEV] Parse search string a la Google (Regular expression?)
126375 by: Ernest E Vogelsinger

Re: ignoring client supplied session data
126376 by: Justin French
126386 by: John W. Holmes
126387 by: John W. Holmes

Re: Password Script
126377 by: Justin French
126397 by: Vicky

PHP 4.3.0RC2 released
126379 by: Andrei Zmievski

Re: printing screen without the print dialog
126380 by: Justin French

Re: Parsing XML files, logic involved...
126381 by: Khalid El-Kary

Re: dynamic arraynames
126382 by: Floyd Baker
126383 by: Floyd Baker
126384 by: Floyd Baker
126396 by: Hugh Danaher

Re: Streaming audio
126385 by: olinux

Re: Show only user that variable "music"contain  "pop"
126388 by: John W. Holmes

Error in retrieving a BLOB from DB.
126389 by: Naif Al-Otaibi
126390 by: Faisal Abdullah

Re: sendmail problem!
126391 by: Manuel Lemos

getaddrinfo failed: No address associated with hostname
126392 by: Godzilla
126395 by: Tony Earnshaw

how to use openssl_x509_read.
126393 by: Richard Rojas

mcrypt 2.4.x - trouble with small data fields?
126394 by: Steve Yates

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
--when using session registered variables
--i can only get them to save as session variables for one page
--then on the next page they are gone
--far as i can tell the variables are not getting written over or unset
--and the session is not gettting destroyed
--any other ideas what it might be?

i tried the seggestions you guys had
and i came up with one more question
does the session cookie.cookie_lifetime have anything to do with the amount
of time that session variables can be stored
the session.use_cookies is on and register.globals is turned on
however session.cookie_lifetime is set to 0
so would this affect the session variable lifetime?




--- End Message ---
--- Begin Message ---
Jason

session.cookie_lifetime set to 0 means the session cookie persists until the
client browser is closed...

I'm not clear if you are still having session problems now or the advice you
got earlier sorted it?

Rich
-Original Message-
From: Jason Romero [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2002 15:09
To: [EMAIL PROTECTED]
Subject: [PHP] session problems again


--when using session registered variables
--i can only get them to save as session variables for one page
--then on the next page they are gone
--far as i can tell the variables are not getting written over or unset
--and the session is not gettting destroyed
--any other ideas what it might be?

i tried the seggestions you guys had
and i came up with one more question
does the session cookie.cookie_lifetime have anything to do with the amount
of time that session variables can be stored
the session.use_cookies is on and register.globals is turned on
however session.cookie_lifetime is set to 0
so would this affect the session variable lifetime?




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




--- End Message ---
--- Begin Message ---
At 23:11 27.11.2002, Ernest E Vogelsinger said:
[snip]
>If I understand you correctly you want to isolate either quoted strings
>(with or without whitespace), or tokens separated by whitespace, as array
>elements?
>
>For this you would first have to isolate the first quoted sentence, then
>tokenize the part before, and loop this as long you're not done.
>
>Should work something like that:
>
> [...]
>Disclaimer: untested as usual. _Should_ behave like this:
[snip] 

I _should_ have tested. This script actually works the way you expect it to be:






The output of this script is:

Array (
[0] => search for this sentence
[1] => -NotForThisWord
[2] => ButDefinitelyForThisWord
) 


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



--- End Message ---
--- Begin Message ---
on 28/11/02 9:22 AM, Evan Nemerson ([EMAIL PROTECTED]) wrote:

> I'm not worried about them using the query string for malicious purposes- I
> have register_globals off... I'm worried about someone messing with their
> cookie and sedding authorized to true- that _will_ change my $_SESSION
> variable, unless I can find some way to ignore cookies, which brings us back
> to my original question- how do i igno

php-general Digest 28 Nov 2002 23:44:52 -0000 Issue 1732

2002-11-28 Thread php-general-digest-help

php-general Digest 28 Nov 2002 23:44:52 - Issue 1732

Topics (messages 126398 through 126442):

rewrite urls with preg_replace
126398 by: Dieter Koch
126417 by: liljim
126418 by: John W. Holmes

Re: controlling ownership on file uploads ...
126399 by: Marek Kilimajer

Re: Bad File Mode?
126400 by: Marek Kilimajer
126402 by: Ernest E Vogelsinger

Re:  Converting dynamic webpages into static HTML pages
126401 by: Marek Kilimajer

Re: printing screen without the print dialog
126403 by: Marek Kilimajer

Bizarreness with htmlentities() and other things
126404 by: James Coates
126410 by: Rich Gray
126412 by: James Coates

Re: session problems again
126405 by: Marek Kilimajer

Re: editing .htaccess / .htpasswrd
126406 by: Mika Tuupola
126407 by: James Coates

String function
126408 by: Shaun
126409 by: Marco Tabini

Re: PHP 4.3.0RC2 released
126411 by: Vadim Tkachenko

Re: echo'ing array contents through reference variable ... why doesn't this work???
126413 by: -<[ Rene Brehmer ]>-

Re: echo'ing array contents through reference variable
126414 by: -<[ Rene Brehmer ]>-

mysql, php, checkbox
126415 by: Adrian Partenie
126416 by: John W. Holmes

Re: Password Script
126419 by: Bobby Patel

2D Array
126420 by: Khalid El-Kary

Re: dynamic arraynames
126421 by: Floyd Baker

Re: [PHP-DB] Help with date
126422 by: Aaron Wolski

Multidimensional array
126423 by: Mako Shark

Hello ! How to write a programme in PHP which executes a routine at a given time ?
126424 by: Jonathan
126425 by: Jon Haworth

Detecting email bounces sent by the mail function?
126426 by: Ade Smith
126430 by: DL Neil
126432 by: Marek Kilimajer
126434 by: Michael Sims
126437 by: scott

Multidimensional arrays (more and more...)
126427 by: Mako Shark
126428 by: Marek Kilimajer
126431 by: Mako Shark
126439 by: Mako Shark
126440 by: Matt Vos

File handling
126429 by: Jeff

Postnuke ---   Meta keywords and title different for all the pages...
126433 by: Manoj Nahar

Help with the PHP
126435 by: Ted Frank
126438 by: Hatem Ben

Re: [PHP-DEV] Parse search string a la Google  (Regular expression?)
126436 by: Benny Rasmussen

session_name() - Question
126441 by: Juerg Zgraggen

help with session variables
126442 by: Thomas Goeminne

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi to all the PHP-Fans out there,

i have a syntax-problem with the folowing preg_replace command:

$returnString = preg_replace("/(href=\")(.+?)(\")/is",
preg_quote("\\1".ebLinkEncode(."\\2".)."\\3"), $returnString);

i'm trying to call my own function within a preg_replace function and it
won't work.
any ideas ? it seems to me, that the quoting is incorrect, but i'm not
shure, why it is incorrect,
especially because i use preg_quote() ...

thanks in advance for some hints !

best regards
[EMAIL PROTECTED]






--- End Message ---
--- Begin Message ---
Hi Dieter,

You need to use the 'e' modifier as well as 'is' in your pattern. Have a
look in the manual, here:

http://www.php.net/manual/en/pcre.pattern.modifiers.php

"If this modifier is set, preg_replace() does normal substitution of
backreferences in the replacement string, evaluates it as PHP code, and uses
the result for replacing the search string."

Also look here:
http://www.php.net/manual/en/function.preg-replace.php

And check the "Example 2. Using /e modifier" part.

Hope that helps ;)

James


"Dieter Koch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi to all the PHP-Fans out there,
>
> i have a syntax-problem with the folowing preg_replace command:
>
> $returnString = preg_replace("/(href=\")(.+?)(\")/is",
> preg_quote("\\1".ebLinkEncode(."\\2".)."\\3"), $returnString);
>
> i'm trying to call my own function within a preg_replace function and it
> won't work.
> any ideas ? it seems to me, that the quoting is incorrect, but i'm not
> shure, why it is incorrect,
> especially because i use preg_quote() ...
>
> thanks in advance for some hints !
>
> best regards
> [EMAIL PROTECTED]
>
>
>
>
>



--- End Message ---
--- Begin Message ---
> Hi to all the PHP-Fans out there,
> 
> i have a syntax-problem with the folowing preg_replace command:
> 
> $returnString = preg_replace("/(href=\")(.+?)(\")/is",
> preg_quote("\\1".ebLinkEncode(."\\2".)."\\3"), $returnString);
> 
> i'm trying to call my own function within a preg_replace function and
it
> won't work.
> any ideas ? it seems to m

php-general Digest 29 Nov 2002 11:47:32 -0000 Issue 1733

2002-11-29 Thread php-general-digest-help

php-general Digest 29 Nov 2002 11:47:32 - Issue 1733

Topics (messages 126443 through 126464):

Werid problemswith mail() command: From address on sent messages
126443 by: C.F. Scheidecker Antunes

Suppressing X-Return-Path
126444 by: Darren Fehrmann

Re: Is it possible to do this in PHP ? If it is then, how ?
126445 by: Axis Computers
126461 by: Marek Kilimajer

file creation date
126446 by: Research and Development
126450 by: John W. Holmes

Re: Postnuke ---   Meta keywords and title different for all the  pages...
126447 by: Peter Houchin

Re: File handling
126448 by: Justin French
126454 by: Jeff RingRose
126456 by: Jeff RingRose

Help with login/redirect/insert to dbase
126449 by: Karl James

IRCG/PHP and Apache 1.3
126451 by: Sascha Schumann

Logging out and session ids
126452 by: Gerard Samuel
126459 by: Tom Rogers

how to use mssql_connect()?
126453 by: Kim

Can't recover data in php posted with a form tag.
126455 by: Luc Roettgers
126457 by: Jeff RingRose
126458 by: Bastian Vogt

Re: Detecting email bounces sent by the mail function?
126460 by: Chris Hewitt

Questions on PHPs openssl extensions
126462 by: Richard Rojas

images
126463 by: Craig

Re: dynamic arraynames
126464 by: Ford, Mike   [LSS]

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hello All,

I wonder if is there anyone who ever had the same problem and know how to solve it.

I have a web site that does send e-mail to some users based on requests. The problem 
is that although I pass the right user/from address on the mail function, the message 
source shows From as beeing apache@localhost and therefore some messages bouce back 
due to anti spam filters.

This server is a Red Hat Linux 7.2 and it does not have apache 2.0 but 1.3. It does 
not have sendmail runnig or installed but another server on the same network does have 
it.

The problem is that I do not want and cannot have my message headers with a From: 
Apache@LocalHost as this copy bellow shows:

I've changed the header variable and put a From in it so it does displays the right 
FROM: address as bellow. But as you can see, the Received: (from apache@localhost) by 
servername, etc is there so the spam filters filter it.

Return-Path: 
Received: (from apache@localhost)
 by ns1.nando.net (8.11.2/8.11.2) id gASLtQM27458;
 Thu, 28 Nov 2002 19:55:26 -0200
Date: Thu, 28 Nov 2002 19:55:26 -0200
Message-Id: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] 
Subject: Order # 603 (511066220021128194052)
Content-Type: text/html
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
X-Mailer: PHP/

My php.ini has an smtp entry but no sendmail is running on the local machine. Do I 
have to have one running? I wish I did not have to do it. Any other way to fix this 
issue?




Carlos Fernando Scheidecker Antunes
Linux User #207984

--- End Message ---
--- Begin Message ---
Has anyone had experience with PHP or a mail server setting the X-Return-Path header 
on mail sent using PHP's mail() command?  
Our tests indicate the X-Return-Path is being set to the "sendmail_from" address found 
in php.ini.  Our code definately isn't doing it, as a hello-world mail() example 
proved.  

The system is running Win 2K, all current service packs and hot fixes, IIS 5, php 
4.2.3 (running as a CGI),  and the Zend optimizer 2.0.1.  The mail server is Microsoft 
Exhange Server.  

Does anyone know why the webserver or mail server would set the X-Return-Path, and if 
it can be suppressed?

Regards,

Darren Fehrmann
Storefront.com

--- End Message ---
--- Begin Message ---
Thanks for replying,

Now I know it's possible to do it, but I still don't know how can I develop
such interface, I will do it in php and mysql, but I need a little guidance
with the way to do it I just can't figure out how ...

Thank you

Ricardo Fitzgerald

- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 10:34 AM
Subject: Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?


> Using javascript you can change the src of image. So you start with
> blank image, and if onchange
> event handler finds out the input field has two chars, changes the src
> of the image to say show_image.php?id=input.value
>
> Axis Computers wrote:
>
> >Hi,
> >
> >I was wondering if this is possible to in PHP ... I am developing an
> >application for a pizza place, where touch typing interface is much
faster
> >than using the mouse, so I was wondering if I can develop an interface
with
> >a calculator style keypad, and the codes entered (u

php-general Digest 30 Nov 2002 00:18:12 -0000 Issue 1734

2002-11-29 Thread php-general-digest-help

php-general Digest 30 Nov 2002 00:18:12 - Issue 1734

Topics (messages 126465 through 126505):

OpenSSL Encryption to a browser.
126465 by: Comunica2 s. coop.
126468 by: Dan Hardiker

Re: Multidimensional arrays (more and more...)
126466 by: Ford, Mike   [LSS]

Re: File handling
126467 by: Justin French
126484 by: Maxim Maletsky

array with session
126469 by: Laurence
126470 by: Craig
126471 by: Craig
126505 by: Justin French

First PHP
126472 by: heikkikk
126473 by: Khalid El-Kary
126494 by: John Nichel
126496 by: CC Zona
126503 by: Godzilla

Upload wont work, OS X
126474 by: magnus nilsson
126479 by: Beth Gore
126500 by: magnus nilsson

Re: Logging out and session ids
126475 by: Gerard Samuel
126489 by: Tom Rogers

Re: Werid problemswith mail() command: From address on sent messages
126476 by: Chris Hewitt

Re: how to use mssql_connect()?
126477 by: Chris Hewitt

Re: rewrite urls with preg_replace
126478 by: Dieter Koch

php and https
126480 by: DUPUIS Grégoire BE/DGC
126485 by: Marco Tabini
126487 by: DUPUIS Grégoire BE/DGC

Re: Help with login/redirect/insert to dbase
126481 by: Maxim Maletsky

Re: file creation date
126482 by: Maxim Maletsky

Re: Help with the PHP
126483 by: Maxim Maletsky

Multiuser System with Sessions
126486 by: Anson LeClair

Enable Quota function with php
126488 by: EdwardSPL.ita.org.mo

Convert dates
126490 by: Sturle
126491 by: John W. Holmes

How to access properties of objects within objects
126492 by: Randall Perry

Re: Detecting email bounces sent by the mail function?
126493 by: John Nichel

Re: imap Server support Quota]
126495 by: EdwardSPL.ita.org.mo

Sessions not written to db on windows...
126497 by: Gerard Samuel

Re: Bad File Mode?
126498 by: Steve Keller

YATS on OS X
126499 by: Adam Atlas

Test links?
126501 by: Rob Packer
126502 by: Jason Reid

Re: Is it possible to do this in PHP ? If it is then, how ?
126504 by: Axis Computers

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I would like to use OpenSSL to send encrypted information to a browser. The
information would be encrypted to a public key that has its private
counterpart installed in the browser. The idea is that the information would
be decrypted automatically, but only when the destination browser has the
right private key installed.

Would it be possible to us header("Content-type: multipart/encrypted"),
since it is originally meant for messages?

--
René



--- End Message ---
--- Begin Message ---
> I would like to use OpenSSL to send encrypted information to a browser.
> The information would be encrypted to a public key that has its private
> counterpart installed in the browser. The idea is that the information
> would be decrypted automatically, but only when the destination browser
> has the right private key installed.

Most people would leave apache (usually with mod_ssl) to handle the
encryption over https. Im not even sure if you could do what I think you
are asking without controlling the whole http communication (as the whole
thing is SSL wrapped, or none of it).

> Would it be possible to us header("Content-type: multipart/encrypted"),
> since it is originally meant for messages?

I think you need to look into one of the following:

- Handling the requests yourself by listening to port 80 (not advisable -
php wasnt built for that sort of task, but its possible)
- Using ssl certificate pairs and installing them in a custom manner on
the apache installation
- Alternative methods

PS: if your not using apache, I cant help you at all. Others may.


---
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative



--- End Message ---
--- Begin Message ---
> -Original Message-
> From: Mako Shark [mailto:[EMAIL PROTECTED]]
> Sent: 28 November 2002 18:20
> 
> A little more info on my count()ing.
> I have $issue[0]["number"] to $issue[x]["number"] just
> like any other multidimensional array (we'll call them
> m-arrays for simplicity).
> 
> If I try to count($issue), I'll get all instances of
> my array (instances?) mltipled by the number of
> elements

Uh -- have you actually tried this?  Without doing so myself, I'm 99% sure that 
count($issue) will give you the answer you're looking for -- i.e. the number of 
different subscripts in the first dimension.  From your description of how you expect 
count() to work, I suspect you're labouring under a misapprehension about how PHP 
array

php-general Digest 30 Nov 2002 12:31:53 -0000 Issue 1735

2002-11-30 Thread php-general-digest-help

php-general Digest 30 Nov 2002 12:31:53 - Issue 1735

Topics (messages 126506 through 126526):

Method for displaying downline
126506 by: Daren Cotter
126510 by: Daren Cotter
126512 by: Daren Cotter

Re: How Do I install php on Apache 2.0
126507 by: -<[ Rene Brehmer ]>-

Re: First PHP
126508 by: -<[ Rene Brehmer ]>-

imap_open authentication failure
126509 by: Dumdeedum

Re: & in Query String
126511 by: Malcolm Brownell

test for ascii or binary string
126513 by: Jonathan Sharp
126514 by: Jonathan Sharp
126515 by: Morgan Hughes
126523 by: Paul Chvostek

string
126516 by: Remon Redika
126517 by: Kyle Gibson

PHP & Javascript compatibilty
126518 by: Wee Keat [Amorphosium]
126519 by: Kyle Gibson

About Speech
126520 by: Ing. Raúl González Rodríguez

Re: Test links?
126521 by: Jason Wong

Re: Upload wont work, OS X
126522 by: Jason Wong

Re: Hello ! How to write a programme in PHP which executes a routine at a given time ?
126524 by: Paul Chvostek

Re: Multidimensional array
126525 by: Paul Chvostek

Re: OpenSSL Encryption to a browser.
126526 by: Tony Earnshaw

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.

There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate info.
Referrals keeps track of who referred who (AffID and
ReferredBy fields).

The output I need is something like:

 7
   10 11
   14  16 18  20
 26  28  31  34 36  38  41  44

Where 7 referred 10 and 11, 10 referred 14 and 16, 14
referred 26 and 28, etc. Each member can only refer
two others.

I know some sort of looping (possibly recursion?)
structure is needed, but I can't figure out how to
display the output in tables as shown above.

Any help would be greatly appreciated!

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--- End Message ---
--- Begin Message ---
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.

There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate info.
Referrals keeps track of who referred who (AffID and
ReferredBy fields).

The output I need is something like:

 7
   10 11
   14  16 18  20
 26  28  31  34 36  38  41  44

Where 7 referred 10 and 11, 10 referred 14 and 16, 14
referred 26 and 28, etc. Each member can only refer
two others.

I know some sort of looping (possibly recursion?)
structure is needed, but I can't figure out how to
display the output in tables as shown above.

Any help would be greatly appreciated!


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--- End Message ---
--- Begin Message ---
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.

There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate info.
Referrals keeps track of who referred who (AffID and
ReferredBy fields).

The output I need is something like:

 7
   10 11
   14  16 18  20
 26  28  31  34 36  38  41  44

Where 7 referred 10 and 11, 10 referred 14 and 16, 14
referred 26 and 28, etc. Each member can only refer
two others.

I know some sort of looping (possibly recursion?)
structure is needed, but I can't figure out how to
display the output in tables as shown above.

Any help would be greatly appreciated!


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--- End Message ---
--- Begin Message ---
Hi Adam Voigt,

On 27 Nov 2002 11:44:49 -0500, you wrote about "Re: [PHP] How Do I install
php on Apache 2.0" something that looked like this:

>A. What does having Adobe installed matter?

Where'd you get that??

>B. Why are you trying to run 2.0? Apache 2.0 isn't even recommended f

php-general Digest 1 Dec 2002 00:36:26 -0000 Issue 1736

2002-11-30 Thread php-general-digest-help

php-general Digest 1 Dec 2002 00:36:26 - Issue 1736

Topics (messages 126527 through 126580):

Re: Multidimensional arrays (more and more...)
126527 by: Paul Chvostek
126529 by: Paul Chvostek

Re: test for ascii or binary string
126528 by: Beth Gore
126532 by: Ernest E Vogelsinger

Re: Method for displaying Downline
126530 by: Rick Widmer
126531 by: Rick Widmer

Re: Test links?
126533 by: Rob Packer
126538 by: Jason Wong
126551 by: Rob Packer
126555 by: Jason Wong
126560 by: Beth Gore
126562 by: Chris Hewitt
126579 by: Rob Packer

Quota function
126534 by: EdwardSPL.ita.org.mo
126535 by: Jason Wong
126539 by: EdwardSPL.ita.org.mo
126541 by: Michael Sims

Language codes to textual languages.
126536 by: Noodle Snacks

Re: About Speech
126537 by: Mark Charette

Re: How Do I install php on Apache 2.0
126540 by: Tweak2x

Going Mad
126542 by: Andy
126543 by: Chris Hewitt
126544 by: Phil Driscoll
126545 by: Chris Hewitt
126546 by: Andy
126547 by: Chris Hewitt
126548 by: Andy
126556 by: Phil Driscoll
126558 by: Chris Hewitt
126565 by: Chris Hewitt

How to override header info in mail()
126549 by: Phil Powell
126557 by: Paul Nicholson
126580 by: Paul Nicholson

last updated ?
126550 by: Paul O'Neil
126552 by: Beth Gore
126559 by: Chris Hewitt

PHP confirmation window
126553 by: Lars Espelid
126563 by: Jason Sheets

Page break
126554 by: Lars Espelid

OS X and cURL Issues
126561 by: Weston Houghton
126564 by: Sterling Hughes

Redirect opening in a new window
126566 by: Troy May
126568 by: Jason Sheets
126569 by: Troy May

Function passed as argument to function
126567 by: Jeffrey B.Ferland
126572 by: Jason Wong
126574 by: Jeffrey B.Ferland
126578 by: Jason Wong

Read Files
126570 by: Randum Ian
126571 by: Randum Ian
126573 by: Chris Wesley
126575 by: Randum Ian
126577 by: Randum Ian

domxml?
126576 by: Devin

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Well, counting is easy...  count($issue) will be correct.  If you want
to count things that match only specific elements, use things like:

  $c=0;
  foreach($issue as $what)
if ( $year==2003 && $month>=5 )
  $c++;

As I said in the previous email, to sort by array elements, you'd need
to use array_multisort.  Something like...

  $sortkey=array();
  foreach($issue as $what)
$sortkey[]=$what['number'];
  array_multisort($issue,$sortkey);

And for looping, foreach is still your best bet:

  foreach($issue as $key => $what) {
if ($what['senttosubscribers']==0)
  $issue[$key]['description'].=" (EMPTY)";
else
  $issue[$key]['description'].=str_replace(" (EMPTY)","",$what['description']);
  }

With regard to PHP being "screwey", I haven't found this -- I use
multidimensional arrays quite a bit and find that they behave exactly as
I would predict.  Maybe I'm just lucky.  ;-)

p

On Thu, Nov 28, 2002 at 09:55:25AM -0800, Mako Shark wrote:
> 
> Wow. This goes way beyond simply printing
> multidimensional arrays. Here's some sample data:
> 
> $issue[]["number"] = "number";
> $issue[]["headline"] = "headling";
> $issue[]["writers"] = "writers";
> $issue[]["list"] = "list";
> $issue[]["senttosubscribers"] = "0";
> $issue[]["month"] = "05";
> $issue[]["year"] = "2003";
> $issue[]["description"] = "description";
> 
> What I need to do now is count(), sort() by number,
> and loop through this array.
> 
> I read that PHP is screwy when counting and sorting
> multidimensional arrays, but they *have* to have come
> up with a method, right?

-- 
  Paul Chvostek <[EMAIL PROTECTED]>
  Operations / Abuse / Whatever  +1 416 598-
  it.canada - hosting and development  http://www.it.ca/


--- End Message ---
--- Begin Message ---

On Thu, Nov 28, 2002 at 10:19:38AM -0800, Mako Shark wrote:
...
> My problem is I need to loop through these. So I can't
> just assume that the count is count($issue[]) divided
> by 8, because that won't work in a for loop. I suppose
> I could just iterate through my for loop in jumps of
> 8, but that seems really hacky and unintuitive to
> whomever has to figure out my code when I'm gone.

By your description, count($issue)/count($issue[]) is the number of
real elements.  And a foreach loop will correctly step through whatever
array you pass to it, even if the values of th

php-general Digest 1 Dec 2002 13:25:08 -0000 Issue 1737

2002-12-01 Thread php-general-digest-help

php-general Digest 1 Dec 2002 13:25:08 - Issue 1737

Topics (messages 126581 through 126598):

Re: last updated ?
126581 by: Morgan Hughes

Re: Read Files
126582 by: Chris Wesley

login_script_help needed.
126583 by: Karl James
126585 by: Maxim Maletsky
126592 by: Andrew Brampton

Re: Page break
126584 by: Justin French

Re: Redirect opening in a new window
126586 by: Maxim Maletsky

Problem importing LARGE text file.
126587 by: CDitty

Re: Test links?
126588 by: Hugh Danaher
126590 by: Jason Wong

Session Variables Not Being Passed
126589 by: Jami

Guestbook
126591 by: Vicky
126593 by: Thomas Seifert
126594 by: Jason Wong
126595 by: sfasf saff

Inheritance problem
126596 by: Bernard Chamberland
126597 by: Tom Rogers

anyone askin for Page Breaks  !
126598 by: sfasf saff

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
> >Dumb question here but whats the general practice regarding putting a
> >"website last updated:" entry on a web page? Does the web master manually
> >enter in today's date in a database table entry and let PHP display. Is it
> >statically added to the HTML page? Etc...
> If you want "website last updated" then from a database sounds OK but
> where I'm working its commonly a "page last updated" wanted. In this
> case its just a manually entered date in html in the page.

  Or use stat() to get the page's mtime, something like

  

  Which will be automatically updated...

-- 
   Morgan Hughes
   C programmer and highly caffeinated mammal.
   [EMAIL PROTECTED]
   ICQ: 79293356



--- End Message ---
--- Begin Message ---
On Sat, 30 Nov 2002, Randum Ian wrote:

> Ministry is the name of the club.
> Full is the type of the content.
> 6122002 is the date - It is in the form ddmm so the example here is
> 6th December 2002.
> Is there a simple way I can just grab the date and sort it by order?
> Should I change the format of the date to make it easier or something?

It'd be easier to sort if you changed your date format a bit ... what you
have is rather difficult to work with, unless you take the string apart.
(i.e. - How is '7102002' not greater than '6122002'?)
For simplicity & ease, I work with date strings formatted as "MMDD".
If your files were named "something-full-MMDD", you could get a sorted
array of your files easily.

$interestingFiles = array();
$dir = opendir( "/path/to/directory" ) or die( "Could not open dir" );
while( $dirEntry = readdir( $dir ) ){
  if( ereg( "full-([0-9]{8})", $dirEntry, $MATCH ) ){
   $interestingFiles[$MATCH[1]] = $dirEntry;
  }
}
ksort( $interestingFiles );

g.luck,
~Chris


--- End Message ---
--- Begin Message ---
http://www.ultimatefootballleague.com/Create_Account.phps
 
hey people
 
I was wondering if anyone can tell me why I cant get this script to
work.
 
Or do you have an easier one I can use..
 
Thanks
Karl

--- End Message ---
--- Begin Message ---

what is on your line 22?

-- 
Maxim Maletsky
[EMAIL PROTECTED]


On Sat, 30 Nov 2002 20:46:12 -0800 "Karl James" <[EMAIL PROTECTED]> wrote:

> http://www.ultimatefootballleague.com/Create_Account.phps
>  
> hey people
>  
> I was wondering if anyone can tell me why I cant get this script to
> work.
>  
> Or do you have an easier one I can use..
>  
> Thanks
> Karl


--- End Message ---
--- Begin Message ---
Well quickly looking at the code I can't see what line is causing the
Warning: Cannot add header information
but there have been many discussion explaining why this happens... as for
your
Unknown MySQL Server Host '$198.63.221.3'
the error for that is on the line:
if(!($link_id = mysql_connect($198.63.221.3, $Ultimatefootball,
$kjames1973))) die(mysql_erorr());
I think the line would look better like:
$link_id = mysql_connect('198.63.221.3', 'Ultimatefootball', 'kjames1973')
or die(mysql_erorr());

(might be a good idea to change your password now btw (since you have shown
everyone))

Hope that gets you started
Andrew
- Original Message -
From: "Karl James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 01, 2002 4:46 AM
Subject: [PHP] login_script_help needed.


> http://www.ultimatefootballleague.com/Create_Account.phps
>
> hey people
>
> I was wondering if anyone can tell me why I cant get this script to
> work.
>
> Or do you have an easier one I can use..
>
> Thanks
> Karl
>


--- End Message ---
--- Begin Message ---
This is totally not PHP related.  There is a page-break: before; (or
similar) in CSS, so I suggest you go look around some CSS sites... like the
W3.org.

Justin

on 01/12/02 5:26 AM, Lars Espeli

php-general Digest 2 Dec 2002 13:33:15 -0000 Issue 1739

2002-12-02 Thread php-general-digest-help

php-general Digest 2 Dec 2002 13:33:15 - Issue 1739

Topics (messages 126660 through 126712):

Re: Disable refresh?
126660 by: Larry Brown
126661 by: Martin Towell
126663 by: Larry Brown
126683 by: Ernest E Vogelsinger
126686 by: phpnew_bocket
126698 by: Marek Kilimajer

Re: [PHP-INST] OS X and Curl Issues
126662 by: Randall Perry

Re: XTemplate
126664 by: Oleg Krogius

Passing arguments to the same script
126665 by: Troy May
12 by: John W. Holmes
126667 by: Troy May
126668 by: Kyle Gibson
126669 by: Chris Wesley
126670 by: John W. Holmes
126671 by: Jonathan Sharp
126672 by: Jonathan Sharp
126673 by: Troy May
126674 by: Troy May
126704 by: Marek Kilimajer

header() and target page
126675 by: Jami
126676 by: John W. Holmes
126688 by: phpnew_bocket

Re: includes & globals
126677 by: Cesar Aracena
126678 by: Tom Rogers
126689 by: Marek Kilimajer

Why all the returned emails from this list?
126679 by: Troy May

Dynamically Adding methods to an object
126680 by: Brian Takita

some data output formatting and grouping question...
126681 by: Victor
126682 by: Bastian Vogt
126693 by: Marek Kilimajer

page auto reload after new window closed
126684 by: Michael P. Carel
126685 by: Ernest E Vogelsinger
126691 by: Marek Kilimajer

Re: last updated ?
126687 by: Chris Hewitt

How do I run a command as root?
126690 by: Luke van Blerk
126692 by: Luke van Blerk
126694 by: John Wards
126695 by: Jon Haworth
126696 by: Marek Kilimajer
126697 by: Matthieu Le Corre

Failed php module load
126699 by: bob pilly
126712 by: Ford, Mike   [LSS]

Newbie Question
126700 by: hacook
126701 by: Jon Haworth

How to get/wait for user-input?
126702 by: Martin Thoma
126703 by: Marek Kilimajer

PHP and WebDAV
126705 by: Adam.Whitehead.csm.com.au

Cache caches anyway, regardless
126706 by: Elmota Abdul Ayyash
126708 by: Justin French

Who can tell me the best php-base webmail?
126707 by: joskey.lianluo.com
126710 by: Jon Haworth

Re: Date problem
126709 by: Rosen

Re: Sessions not written to db on windows...
126711 by: Ford, Mike   [LSS]

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
If not, is there a variable that provides information that a refresh
occurred to load the page?

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 01, 2002 8:23 PM
To: PHP List
Subject: [PHP] Disable refresh?

Anyone know of a method of preventing a user from refreshing a page.  I get
multiple updates with the same information in my database...

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388




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



--- End Message ---
--- Begin Message ---
no, no way to disable and no variable to say a refresh happened

one way to get around it is to submit to the page that does the update, then
get that page to do a header("location...") to another page. When the user
refreshes, they'll only refresh the last page, and not the updating page.

HTH
Martin

-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 12:33 PM
To: PHP List
Subject: RE: [PHP] Disable refresh?


If not, is there a variable that provides information that a refresh
occurred to load the page?

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 01, 2002 8:23 PM
To: PHP List
Subject: [PHP] Disable refresh?

Anyone know of a method of preventing a user from refreshing a page.  I get
multiple updates with the same information in my database...

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388




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



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

--- End Message ---
--- Begin Message ---
Thanks guys this forum is going to get me in trouble.  It is so convenient I
keep asking questions too soon.  After submitting the amendment to the
original question I thought of the solution of setting a session variable
and then clearing it before and after the submittal page.  I'll work the
gray matter a little harder next 

php-general Digest 3 Dec 2002 13:41:08 -0000 Issue 1741

2002-12-03 Thread php-general-digest-help

php-general Digest 3 Dec 2002 13:41:08 - Issue 1741

Topics (messages 126791 through 126846):

Re: dynamic arraynames
126791 by: Floyd Baker

Re: printing array
126792 by: . Edwin
126793 by: Matt

Re: IIS 5
126794 by: . Edwin

Validating get and post data
126795 by: Beth Gore
126802 by: Matt
126803 by: . Edwin
126804 by: John W. Holmes
126806 by: . Edwin
126822 by: Tom Rogers
126825 by: Tom Rogers
126833 by: Ford, Mike   [LSS]

Re: PHP --with-dbm enabled???
126796 by: . Edwin

Need advice on downloading files and databases
126797 by: Dara Dowd
126819 by: Jason Wong

PHP and the PDFlib
126798 by: Ryan Smaglik
126799 by: Morgan Hughes
126807 by: Marco Tabini

Re: Browser going to page twice?
126800 by: Leif K-Brooks

Comment Threading
126801 by: Beth Gore
126818 by: Philip Hallstrom

How to handle "so called" expired sessions??
126805 by: Gerard Samuel
126820 by: Tom Rogers
126823 by: Gerard Samuel

[JOB] Senior Developer (PHP/Perl/Java/SQL), Washington DC Area
126808 by: Alok K. Dhir

Re: PDF Help Please
126809 by: Larry Brown

Can't get this right
126810 by: John Taylor-Johnston

hiding php
126811 by: Larry Brown
126812 by: Peter Houchin
126813 by: Rasmus Lerdorf
126816 by: Justin French
126821 by: Larry Brown
126824 by: Jason Wong
126827 by: Serge A.
126830 by: Dan Hardiker
126834 by: Ford, Mike   [LSS]
126840 by: Dan Hardiker

Re: Show Folder Contents in Form
126814 by: . Nilaab

easiest way to get 1st and last dates of the month?
126815 by: Justin French
126817 by: Justin French
126832 by: Ford, Mike   [LSS]

Does using msql_select_db excessively burn resources?
126826 by: Rob Paxon

Re: Date problem
126828 by: James Coates
126835 by: Jason Wong

Pear vs Phplib vs adodb
126829 by: David Eisenhart

object method overloading
126831 by: Javier Montserat

writing to mysql using php
126836 by: Shams

does anybody know PHPlib's source site?
126837 by: Alexander A. Savenkov

Problem: Only 1 fsockopen() connection for apache at a time.
126838 by: William Bailey

mail with CC and BCC
126839 by: Alain ROMERO
126843 by: Jason Wong

Re: php5 features?
126841 by: Brad Young

[SEMI-OT] Making secure flash high scoring?
126842 by: Leif K-Brooks

variable num of function args
126844 by: christian haines
126845 by: christian haines

need advice on template engine
126846 by: Alexander A. Savenkov

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---


Just want to thank everyone and tell how it finally came out...

I was making way to much of this and went into difficult concepts too
quickly.  That's where the problem came from.  Trying to build on
earlier mistakes.   

We already had an array for the column names so a suggestion that I
use one single array for all the data columns works out the best.
Now I'm unwinding that one long array according to how many name
fields there are in each row.  As each process is done, the fields are
there in the original column order, no matter how big the x-y grid is.

The data from the 'basic' column arrays is also going to be included
in the single array too.

I'm not a wiz by any means so creating the best application 'method'
can be rough no matter what I know about the individual functions.
The *single* array just never dawned on me.  Thanks for the help...
:-)  

Floyd 













On Fri, 29 Nov 2002 11:47:56 -, you wrote:

>> -Original Message-
>> From: Floyd Baker [mailto:[EMAIL PROTECTED]]
>> Sent: 28 November 2002 17:09
> 
>OK, I think I'm finally beginning to understand what you're up to, and it seems to me 
>everyine's been making rather heavy weather of it so far!
>
>> The user's choice is made from a drop down list of available items,
>> prior to running the routine itself.  The choices are predetermined
>> and kept in a personal table to be called by the routine.  This part
>> is finished to the point of putting the needed column names at the top
>> of the input columns on the form.  The choices are fixed spellings to
>> match formula if-then's, etc.
>
>If this is the case, couldn't you use 2-dimensional arrays with the column names as 
>the first dimension, and the values relating to it in the second dimension?
>
>So you'd have something like 
>
>  $user['colour'][0]   $user['hobby'][0]   $user['etc'][0]
>  $user['colour'][1]   $user['h

php-general Digest 6 Dec 2002 14:18:32 -0000 Issue 1747

2002-12-06 Thread php-general-digest-help

php-general Digest 6 Dec 2002 14:18:32 - Issue 1747

Topics (messages 127216 through 127255):

Re: Sending no content-type header?
127216 by: Chris Wesley
127217 by: Leif K-Brooks

Need Redirection Trick...
127218 by: . Nilaab
127223 by: Jason Wong
127224 by: Roger Lewis
127226 by: . Nilaab

Re: PHP includes without access to the default directory
127219 by: Morgan Hughes
127225 by: Tom Rogers

Re:
127220 by: Karl James

empty string parameters to backslashes?
127221 by: andyw.scroom.com
127237 by: DL Neil

Re: MySQL ?
127222 by: Justin French
127227 by: Tom Rogers

md5 question
127228 by: conbud
127229 by: Chris Wesley
127232 by: Jason Wong

Making random string function function more random?
127230 by: Leif K-Brooks

$DOCUMENT_ROOT
127231 by: christopher calicott

HOW GET ALL HTML CONTENT
127233 by: nice_boy

ezmlm
127234 by: Randum Ian
127235 by: Jason Wong

Re: How to create user in mySQL ?
127236 by: Krzysztof Dziekiewicz

Re: Repeating Decimals
127238 by: Marek Kilimajer
127249 by: Tom Rogers

PHP query to javascript array
127239 by: Christian Ista
127242 by: Marek Kilimajer

Re: Checking for Overlapping Dates
127240 by: DL Neil
127246 by: DL Neil

GD support in PHP 4.1.2
127241 by: GoodnGo.de \(R\) Zentrale

Cookies help please
127243 by: Steve Vernon

--with-gd=DIR
127244 by: GoodnGo.de \(R\) Zentrale
127245 by: info.t-host.com
127253 by: Tom Rogers

Output of MySQl sorted query to text or Word file.
127247 by: ed.home.homes2see.com
127255 by: Tim Ward

How to loop diplays of 4 column of items, every row?
127248 by: Wee Keat [Amorphosium]
127251 by: Chris Boget
127252 by: Marek Kilimajer

mail function() with MS
127250 by: Anthony Ritter

Check wheter GD function is working
127254 by: info.t-host.com

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
On Thu, 5 Dec 2002, Leif K-Brooks wrote:
> I'm running a few simple php scripts from the (windows) command line.
>  Since I'm not using a web browser to view it, the HTTP headers are
> annoying and pointless.  I've turned expose_php off in php.ini, but
> commenting out default_mimetype changes nothing, and setting it to an
> empty string sends a blank content-type header.  Is there any way to do
> this?

php.exe -q

~Chris


--- End Message ---
--- Begin Message ---
 Ok, thanks a lot.  For what it's worth, here's my simple .bat file for 
executing php files:
@ECHO OFF
IF NOT EXIST %1.php goto usage
php.exe -q %1.php
goto end
:usage
echo ÚÄÄÄ¿
echo ³   USAGE   ³
echo ³Type "php.bat" (without quotes)³
echo ³ followed by the  name of a³
echo ³valid php file without the .php³
echo ³extension. ³
echo ÀÄÄÄÙ
:end

Chris Wesley wrote:

On Thu, 5 Dec 2002, Leif K-Brooks wrote:
 

I'm running a few simple php scripts from the (windows) command line.
Since I'm not using a web browser to view it, the HTTP headers are
annoying and pointless.  I've turned expose_php off in php.ini, but
commenting out default_mimetype changes nothing, and setting it to an
empty string sends a blank content-type header.  Is there any way to do
this?
   


php.exe -q

   ~Chris


 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.



--- End Message ---
--- Begin Message ---
Hello Everyone,

I have a simple problem that, I think, might require a little trick to be
used. I have a list of products in a database that is organized by
categories and subcategories. Categories can have as many subcategories as
it wants, but some categories don't need to have a subcategory at all.

In the following code "cat" refers to category and "subcat" refers to
subcategory.

cat_data and subcat_data refers to a multi-dimentional array, pulled from
the DB, with values of an id and a name.
example: cat_data[row_number][name_of_category] and
cat_data[row_number][id].

Ok, before I ask the question, here's the code:

[-- snip --]
get_cat_data();
for ($i=0; $i < count($cat_data); $i++) {
   echo '' .
$cat_data[$i]["name"] . "\n";
   if ($cat_id) {
  $subcat_data = $db->get_subcat_data($cat_id);
  if ($subcat_data != 0 && ($cat_id == $cat_data[$i]["id"])) {
 for ($j=0; $j < count($subcat_data); $j++) {
echo '- ' .
$subcat_data[$j]["name"] . "\n";
 }
  }
  elseif ($su

php-general Digest 7 Dec 2002 15:46:03 -0000 Issue 1749

2002-12-07 Thread php-general-digest-help

php-general Digest 7 Dec 2002 15:46:03 - Issue 1749

Topics (messages 127352 through 127377):

Re: mail() problems...
127352 by: Anthony Ritter
127372 by: Jason Wong
127376 by: Anthony Ritter

Date again
127353 by: Miguel Brás
127356 by: Stephen
127371 by: Jason Wong

Re: XSLT failing when DOCTYPE declaration present
127354 by: Dave
127355 by: Dave
127368 by: Chris Wesley

Re: Help! Stuck! Perm denied w/ fopen.
127357 by: Dave
127375 by: psy berpunk

Re: Middle Number
127358 by: Rick Widmer

Re: HOW GET ALL HTML CONTENT
127359 by: Dave

Re: Repeating Decimals
127360 by: Tom Rogers
127377 by: Stephen

Humour me
127361 by: John Taylor-Johnston
127363 by: . Edwin
127369 by: Jerry M. Howell II

Re: Generating forms using OOP
127362 by: Peter J. Schoenster
127367 by: Tom Rogers
127373 by: Davy Obdam
127374 by: Davy Obdam

Re: Output page cut off after 7000 characters
127364 by: Tom Rogers

Re: PHP includes without access to the default directory
127365 by: Tom Rogers

Re: Confused about $_SESSION and $_COOKIE scope..
127366 by: Tom Rogers

Re: Allowed memory size exhausted
127370 by: . Edwin

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
To all who assisted me today.

I finally managed to get the mail () funtion to work.

Thank you and happy holidays to you all...
TR





--- End Message ---
--- Begin Message ---
On Saturday 07 December 2002 12:16, Anthony Ritter wrote:
> To all who assisted me today.
>
> I finally managed to get the mail () funtion to work.

Would you mind disclosing what you did to make it work? Those searching the 
archives in generations to come would appreciate what the conclusion was.

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

/*
Reply hazy, ask again later.
*/


--- End Message ---
--- Begin Message ---
Jason Wong wrote:
> Would you mind disclosing what you did to make it work? Those searching
the
> archives in generations to come would appreciate what the conclusion was.
.

Sure.

1. I put it the _correct _name of my ISP's mailserver.

No more errros.

However...that sent out the mail but I didn't receive it back.

Then...

2. I received a nice e-mail from Ms. Meloni explaining that I forget to
replace the string in the variable:

$to

with _my_ e-mail address - not _hers_.

She was getting my test e-mails.

Oh brother...
Happy holidays and thank you for your help.
TR





--- End Message ---
--- Begin Message ---
Ok guys,

having a problem here. I did my table with 6 fields, they are:
id  position  name  timein  timeout  date

I have a form to insert the info on the fields, and at the date field, I
have a drop down menu that returns me the next 7 days (the date in d/m/y),
people will choose the date they want and that will be stored on the table.

Now I want to retrieve the position, name, timein and timeout from by table
and display it on a page. But I want only the records for the present date.
I inserted the info on my table and on the date's field I inserted 07/12/02
and 06/12/02 just for testing

I called the data via a query: SELECT position, name, timein, timeout, date
FROM table WHERE date=NOW()
It was supposed that only the record from the present date was shown. But
not, I can't have anything. Only the custom message I did if nothing was
available

What is missing here? Looked at PHP manual, time, date mktime and so on
functions, but nothing.
Anybody for a hand?

One more thing, how can I do to prevent that different people apply for a
same position, on the same day and during the "shift" of the first one that
applied?

I mean, I decide to occupy the FSS position from 21:00 to 23:00 on 08th
Decemeber.
Someone come and try to apply also for FSS but from 19:00 to 20:30 or from
21:30 to 22:30. Since the position is occupied during a portion of the
requested time or during all the requested time, how can I prevent this to
be added on the table??

Thx
Miguel



--- End Message ---
--- Begin Message ---
Not sure but I think now() doesn't return the date formate you'd want
assuming your date section is classified as a date. Here's what I would do:

$date = date("Y-m-d");
$sql = "SELECT * FROM table WHERE date='".$date"'";
$result = mysql_query($sql, $connection);

Hope it works!


- Original Message -
From: "Miguel Brás" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 06, 2002 10:39 PM
Subject: [PHP] Date again


> Ok guys,
>
> having a problem here. I did m

php-general Digest 8 Dec 2002 04:31:57 -0000 Issue 1750

2002-12-07 Thread php-general-digest-help

php-general Digest 8 Dec 2002 04:31:57 - Issue 1750

Topics (messages 127378 through 127413):

save file from outside url
127378 by: Jeremiah Breindel
127382 by: Jason Wong
127383 by: Jeremiah Breindel

Re: redirect URL
127379 by: John W. Holmes

Simple text editor for Windows?
127380 by: John W. Holmes
127381 by: Tim Ward
127386 by: Tom Rogers
127388 by: DL Neil
127389 by: Tom Rogers
127395 by: Jonathan
127398 by: John W. Holmes

passing argument between scripts
127384 by: Geert Arts
127385 by: Andrew Brampton

Re: Repeating Decimals
127387 by: Tom Rogers
127390 by: Stephen

Re: PHP includes without access to the default directory
127391 by: Gundamn

Spaces
127392 by: Patrick McKinley
127393 by: Leif K-Brooks
127394 by: Patrick McKinley
127397 by: John W. Holmes

Help on OOP
127396 by: Mohd_Q
127399 by: Khalid El-Kary
127400 by: Khalid El-Kary
127407 by: Matt Giddings
127408 by: Khalid El-Kary

PHP trouble out of the box
127401 by: Dennis Putnam

Re: Good eve
127402 by: rolf vreijdenberger

Re: Middle Number
127403 by: Stephen
127409 by: Rick Widmer

Finding Mode
127404 by: Stephen
127410 by: Rick Widmer
127412 by: Stephen

Re: String to an Array
127405 by: Justin French
127411 by: Rick Widmer

Re: Question about displaying directories and files
127406 by: Justin French

Just Curious
127413 by: conbud

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I am trying to save a dynamically generated image on an outside server to a
local file on my server using the code below:

 $fc = fopen($image_filename, "wb");
 $file = fopen ($image_url, "rb");

 if (!$file) {
  echo "Unable to open remote file.\n";
  exit;
 }else{
  while (!feof ($file)) {
   $line = fread ($file, 1028);
   fwrite($fc,$line);
  }
 }
 fclose($fc);
fclose($file);


$image_filename is a locally referred to file, such as "../images/file1.png"
and $image_url is an absolute address, such as
"http://www.whatever.com/imagecreate.php";.

Instead of saving when I run the script through a browser, the image
displays within the browser, and the script creates a file containing only
"427" on the server.  Any ideas why or what I can do to correct this?

Jeremiah



--- End Message ---
--- Begin Message ---
On Saturday 07 December 2002 05:12, Jeremiah Breindel wrote:
> I am trying to save a dynamically generated image on an outside server to a
> local file on my server using the code below:
>
>  $fc = fopen($image_filename, "wb");
>  $file = fopen ($image_url, "rb");
>
>  if (!$file) {
>   echo "Unable to open remote file.\n";
>   exit;
>  }else{
>   while (!feof ($file)) {
>$line = fread ($file, 1028);
>fwrite($fc,$line);
>   }
>  }
>  fclose($fc);
> fclose($file);
>
>
> $image_filename is a locally referred to file, such as
> "../images/file1.png" and $image_url is an absolute address, such as
> "http://www.whatever.com/imagecreate.php";.
>
> Instead of saving when I run the script through a browser, the image
> displays within the browser, and the script creates a file containing only
> "427" on the server.  Any ideas why or what I can do to correct this?

Hmm, I don't see how the above code can make the remote image *display* your 
browser. The code itself looks OK, are there some parts of the code that you 
haven't shown us? 

If the above is indeed your complete code, then what is your $image_url?

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

/*
Things will be bright in P.M.  A cop will shine a light in your face.
*/


--- End Message ---
--- Begin Message ---
Thanks for responing Jason!

There is other code in there for updating some database entries and
producing a confirmation page, but I had them working perfectly before I
added the image code below.  Only when acessing the outside script and
saving to file did it start doing the odd things.  I didn't write the image
creation script, only hard coded in some values for font and bg colors in
it.  I have attached that script at the bottom of this, away from everything
else.  Maybe a header problem from that script?  Any idea what 427 is from?
Thanks for all your help!

The $image_url is like this - "$rollover_image_url =
"http://www.anysite.com//pngmake.php?msg="; . $rollover .
"&rot=0&size=12&font=fonts/ARIAL.TTF";

"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Satu

php-general Digest 8 Dec 2002 16:38:31 -0000 Issue 1751

2002-12-08 Thread php-general-digest-help

php-general Digest 8 Dec 2002 16:38:31 - Issue 1751

Topics (messages 127414 through 127436):

Re: Just Curious
127414 by: Leif K-Brooks
127415 by: Justin French
127419 by: Kyle Gibson
127420 by: rolf vreijdenberger
127422 by: Thomas Seifert
127424 by: Davy Obdam
127427 by: Henrik Malmberg

Question about Trim
127416 by: Dade Register
127418 by: Justin French

Free Util: apxDebug
127417 by: Weston Houghton

Dumb session cookie question?
127421 by: Douglas Douglas
127423 by: Justin French
127428 by: Robert Pruitt

Snoopy Class
127425 by: DL Neil

Domxml and problem
127426 by: Winthux

Re: save file from outside url
127429 by: Jason Wong

Re: Finding Mode
127430 by: Ford, Mike   [LSS]

open_basedir
127431 by: Przemys³aw ¯ó³czyñski PRV

force download with header()
127432 by: Patrick McKinley
127433 by: Marco Tabini

mysql_connect problem under RedHat 8.0 ?
127434 by: Brian J. Celenza

LogIn check within function within class :: HELP!
127435 by: Sean Mayhew
127436 by: Tom Rogers

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I use the mailing list.

conbud wrote:


I was just curious, but what program or website do you all use to view and
reply to the newsgroups with ?

Lee



 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




--- End Message ---
--- Begin Message ---
I use the e-mailing list, not the newsgroup... but I think there is an
*experimental* web based interface to the newsgroup at http://news.php.net,
and most mail readers (outlook, outlook express and netscape I know for
sure) can all read news.

on 08/12/02 3:31 PM, conbud ([EMAIL PROTECTED]) wrote:

> I was just curious, but what program or website do you all use to view and
> reply to the newsgroups with ?
> 
> Lee
> 
> 

Justin French

http://Indent.com.au
Web Development & 
Graphic Design



--- End Message ---
--- Begin Message ---
I was just curious, but what program or website do you all use to view and
reply to the newsgroups with ?



Fun Fact # 14:
Netscape 7.0

;)

--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/


--- End Message ---
--- Begin Message ---
outlook express 6



--- End Message ---
--- Begin Message ---

Mail/News-Client Sylpheed

On Sat, 7 Dec 2002 23:31:57 -0500 [EMAIL PROTECTED] (Conbud) wrote:

> I was just curious, but what program or website do you all use to view and
> reply to the newsgroups with ?
> 
> Lee
> 
> 

--- End Message ---
--- Begin Message ---
Mozilla 1.2.1 ;-)

conbud wrote:


I was just curious, but what program or website do you all use to view and
reply to the newsgroups with ?

Lee



 




--- End Message ---
--- Begin Message ---
Also using Mozilla

Davy Obdam wrote:


Mozilla 1.2.1 ;-)

conbud wrote:

> I was just curious, but what program or website do you all use to view
> and
> reply to the newsgroups with ?
>
> Lee
>
>
>
>
>






--- End Message ---
--- Begin Message ---
Hey... I have a question about trim. I don't know if
trim() is the right funtion to use, but here is my
problem.

I am recieving a textarea input from a form and
writing it to a data file. I need to change any line
breaks or (enter) if you will into a  or something
else. When it's in my text file, it screws it up.
Please, someone give me an idea of how to oversome
this. I can't seem to make trim() work at all. It does
remove a \n if you type that in, but won't actually
remove an (enter). Thanx for your help in advance.

-Dade

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--- End Message ---
--- Begin Message ---
To convert \n's to \n's on any string, use nl2br().

To trim excess white space (\n, \r, [space] \t, etc) from both the beginning
and end of a string, use trim().

Eg:



This should echo:
---
this is a string with an
enter in the middle
---

What do you actually want to do, and what's the problem?

Justin


on 08/12/02 5:28 PM, Dade Register ([EMAIL PROTECTED]) wrote:

> Hey... I have a question about trim. I don't know if
> trim() is the right funtion to use, but here is my
> problem.
> 
> I am recieving a textarea input from a form and
> writing it to a data file. I need to change any line
> breaks or (enter) if you will into a  or something
> else. When it's in my text file, it screws it up.
> Please, someone give me an idea of how to oversome
> this. I can't seem to make trim() work at all. It does

php-general Digest 9 Dec 2002 05:40:32 -0000 Issue 1752

2002-12-08 Thread php-general-digest-help

php-general Digest 9 Dec 2002 05:40:32 - Issue 1752

Topics (messages 127437 through 127468):

Re: mysql_connect problem under RedHat 8.0 ?
127437 by: Tom Rogers
127438 by: Jason Wong
127439 by: Brian J. Celenza
127440 by: Brian J. Celenza

Re: open_basedir
127441 by: Chris Hewitt

Re: Finding Mode
127442 by: Paul Chvostek

fopen have a "setTimeout" feature?
127443 by: Phil Powell
127451 by: Tim Ward

Can I check MYSQL version
127444 by: John Taylor-Johnston
127445 by: Johannes Schlueter
127446 by: John Taylor-Johnston
127448 by: Stephen
127449 by: Chris Knipe

Typo -- Re: [PHP] Can I check MYSQL version
127447 by: Johannes Schlueter

Hiding URL Variable
127450 by: Stephen
127452 by: Tim Ward

Re: Send PHP results in email
127453 by: Malcolm Brownell

Re: PHP Configuration - Can't Change Post_Max_Size
127454 by: Malcolm Brownell

Re: Simple text editor for Windows?
127455 by: John W. Holmes

mpm perchild mod_php4
127456 by: Jochen Kächelin

Solaris
127457 by: Kris
127458 by: Peter Houchin
127460 by: Kris

date() on two diff. servers
127459 by: Justin French
127461 by: John W. Holmes
127462 by: . Edwin
127463 by: . Edwin
127464 by: Justin French
127465 by: Tom Rogers
127467 by: . Edwin
127468 by: Justin French

Re: C#
127466 by: michael kimsal

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi,

Monday, December 9, 2002, 2:29:35 AM, you wrote:
BJC> Hello!

BJC> When trying to connect to a mysql database under my linux system, I get the
BJC> following error:

BJC> Warning: Can't connect to local MySQL server through socket
BJC> '/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php on line 2

BJC> Here is a copy of the code I am using:

BJC>  $link =  mysql_connect("localhos" , "username" , "password")
BJC> or die("Couldn't Connect.");
BJC>   ?>

BJC> I am currently running Apache with Mysql and PHP version 4 on Redhat 8. Any
BJC> suggestions?

BJC> Thank you.
BJC> --
BJC> ---
BJC> Brian J. Celenza
BJC> [EMAIL PROTECTED]
BJC> ICQ: 100942424
BJC> AIM: BJCKnight

If that is the location of the socket (mysql default is /tmp/mysql.sock but I
don't know with RH)you could try

$link =  mysql_connect(":/var/lib/mysql/mysql.sock" , "username" , "password")

If that fails, check the permissions of the path to the socket for the apache
user and that mysqld is running.
-- 
regards,
Tom


--- End Message ---
--- Begin Message ---
On Monday 09 December 2002 00:29, Brian J. Celenza wrote:
> Hello!
>
> When trying to connect to a mysql database under my linux system, I get the
> following error:

How did you install your apache, mysql & php? Source/RPM? If RPM, where did 
you get the RPMs? IIRC Redhat's packaging of MySQL differs from that provided 
by www.mysql.com and this difference could potentially cause the problem 
you're seeing ...

> Warning: Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php on line 2
>
> Here is a copy of the code I am using:
>
> 
> $link =  mysql_connect("localhos" , "username" , "password")
> or die("Couldn't Connect.");
>   ?>

... assuming that the above really is a typo and you _are_ using 'localhost' 
and not 'localhos'.

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

/*
Your business will assume vast proportions.
*/


--- End Message ---
--- Begin Message ---
I'm almost positive that the socket file is in the correct spot.

My installation was with Redhat 8.0, I also have mysqlcc installed, and it
uses /var/lib/mysql/mysql.sock successfully.

- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 08, 2002 11:53 AM
Subject: Re: [PHP] mysql_connect problem under RedHat 8.0 ?


> On Monday 09 December 2002 00:29, Brian J. Celenza wrote:
> > Hello!
> >
> > When trying to connect to a mysql database under my linux system, I get
the
> > following error:
>
> How did you install your apache, mysql & php? Source/RPM? If RPM, where
did
> you get the RPMs? IIRC Redhat's packaging of MySQL differs from that
provided
> by www.mysql.com and this difference could potentially cause the problem
> you're seeing ...
>
> > Warning: Can't connect to local MySQL server through socket
> > '/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php on line

php-general Digest 14 Dec 2002 19:55:50 -0000 Issue 1763

2002-12-14 Thread php-general-digest-help

php-general Digest 14 Dec 2002 19:55:50 - Issue 1763

Topics (messages 128272 through 128292):

Re: Text Fields - How Big Can They Be?
128272 by: Jason Wong

Re: Problems with text files from a Mac
128273 by: Justin French

Re: Is there any alternative to FuseBox?
128274 by: Jason Wong
128288 by: Javier
128292 by: Jason Wong

Re: Mail Error
128275 by: Jason Wong

Re: File Upload
128276 by: Tom Rogers
128277 by: Jason Wong
128280 by: Paul Roberts
128281 by: Paul Roberts
128282 by: Bogdan Stancescu
128283 by: Jason Wong

session_start
128278 by: John Taylor-Johnston

I did: Re: session_start
128279 by: John Taylor-Johnston
128284 by: Jason Wong

php --with-GD
128285 by: info.t-host.com

migrating from register_globals on to off
128286 by: Willem
128287 by: John W. Holmes

php --with-gd support
128289 by: info.t-host.com

Compiling PHP and RH Linux
128290 by: Todd Cary
128291 by: Chris Hewitt

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
On Saturday 14 December 2002 15:46, Monty wrote:
> Hi John, I'm using POST for the form. But it's the HTML form field itself
> that won't allow me to paste in a large amount of text. If I can get the
> field to accept the text, there's no problem sending it via POST to the PHP
> script.

I think that is browser-dependent. For example, for NN (4.x) I think it was 
64K.

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

/*
If you don't strike oil in twenty minutes, stop boring.
-- Andrew Carnegie, on public speaking
*/


--- End Message ---
--- Begin Message ---
1. they can export the CSV as DOS/Windows from Excel on the Mac with ease

2. they can pipe the CSV thru any text editor that lets them choose between
mac/win/unix line endings (BBEdit/Lite for example)

3. $filecontents = str_replace('\r', '\n', $filecontents); //should work


on 13/12/02 1:22 PM, Sterling Anderson ([EMAIL PROTECTED]) wrote:

> I am working on an application for a school district and am having some
> problems with the files they are supplying for import.
> They are supplying data files and I am writing routines to populate the
> database using these files. Its a simple file upload then I just need to
> parse through the tab separated value file. I am using the most recent
> PHP build on Windows with IIS ISAPI and a MSSQL database. They are
> sending text files from a Macintosh application.
> I noticed on the documentation for fgetcsv() that it cannot read the end
> of line character on Mac files. I have not been able to find a good work
> around for this issue. When I grab the entire contents of the file then
> try doing a string replacement on the "\r" or even "\t" for that matter
> it does not work.
> Has anyone found a good solution for dealing with Mac files?
> 

Justin French

http://Indent.com.au
Web Development & 
Graphic Design



--- End Message ---
--- Begin Message ---
On Saturday 14 December 2002 12:25, Javier wrote:
> I was reading FuseBox's beginners' guide but I didn't completely understood
> the way that framework works.
>
> How do you process the data obtained from forms? Is it the same script that
> displays the form?

Doesn't fusebox have it's own mailing list where you can ask questions? If so 
wouldn't that be a better place to do so?

In answer to the question in your subject:

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

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

/*
The big cities of America are becoming Third World countries.
-- Nora Ephron
*/


--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Jason Wong) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

Hi, sorry that I didn't make it clear.
I'm looking for an alternative to php-fusebox.

So I was asking how do you process the data from forms and so. 


> On Saturday 14 December 2002 12:25, Javier wrote:
>> I was reading FuseBox's beginners' guide but I didn't completely
>> understood the way that framework works.
>>
>> How do you process the data obtained from forms? Is it the same
>> script that displays the form?
> 
> Doesn't fusebox have it's own mailing list where you can ask
> questions? If so wouldn't that be a better place to do so?
> 
> In answer to the question in your subject:
> 
>   http://marc.theaimsgroup.com/?l=php-general&m=10396419611339

php-general Digest 15 Dec 2002 08:02:34 -0000 Issue 1764

2002-12-15 Thread php-general-digest-help

php-general Digest 15 Dec 2002 08:02:34 - Issue 1764

Topics (messages 128293 through 128322):

Re: Formatting dates (from MySQL)
128293 by: freaky
128294 by: Marco Tabini
128295 by: John W. Holmes

Undefined Variable
128296 by: Anthony Ritter
128297 by: Marco Tabini
128298 by: Anthony Ritter
128299 by: Marco Tabini
128300 by: Anthony Ritter

Hey, If anyone can help me with this at all, I would really appreciate it...
128301 by: Ryan Smaglik
128322 by: Jason Wong

Parse Errors
128302 by: Andy Turegano
128303 by: DL Neil

Querying two tables
128304 by: Cesar Aracena

Session: I RTFM
128305 by: John Taylor-Johnston
128306 by: Marco Tabini
128309 by: TomH
128312 by: John Taylor-Johnston
128313 by: John Taylor-Johnston
128315 by: Justin French
128319 by: michael kimsal
128321 by: conbud

question
128307 by: r.vellinga
128314 by: Justin French
128318 by: Andy Turegano

PHP/ldap - atomic attribute modification
128308 by: Carl J Meyer

Re: A little regex help
128310 by: Justin French

Re: migrating from register_globals on to off
128311 by: Justin French

Installing PEAR on windows
128316 by: Davy Obdam

Strange problem with PHP,SSI
128317 by: sport4ever
128320 by: conbud

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hey there,

I was just looking at the date/time functions
(http://www.php.net/manual/en/function.time.php) and I can't seem to find a
function that can format a date that is supplied in the format of a DATETIME
column.

So, I was wondering, is there a function that can format it properly or
should I let the database handle the formatting (I'm really new to SQL, I
didn't come across anything to mod in the select statement yet). I could
ofcourse split it on space for a time and a date var and then split the date
on -'s for years, months and days but efficient is something else I think
:-) In the archives I saw some examples doing exactly that, but nothing with
a single function (unless home defined ofcourse).

Kind regards and TIA




--- End Message ---
--- Begin Message ---
You should be able to use strtotime() to transform the datetime string
into a UNIX timestamp, which you can then format back using date().
However, this is a very circuitous way--either use SQL to format it or,
if your DBMS supports it, have it returned already as a UNIX timestamp.
The actual SQL commands depend on which DBMS you actually use.


Marco
-- 

php|architect - The Magazine for PHP Professionals
The monthly magazine dedicated to the world of PHP programming

Check us out on the web at http://www.phparch.com!

--- Begin Message ---
Hey there,

I was just looking at the date/time functions
(http://www.php.net/manual/en/function.time.php) and I can't seem to find a
function that can format a date that is supplied in the format of a DATETIME
column.

So, I was wondering, is there a function that can format it properly or
should I let the database handle the formatting (I'm really new to SQL, I
didn't come across anything to mod in the select statement yet). I could
ofcourse split it on space for a time and a date var and then split the date
on -'s for years, months and days but efficient is something else I think
:-) In the archives I saw some examples doing exactly that, but nothing with
a single function (unless home defined ofcourse).

Kind regards and TIA




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


--- End Message ---
--- End Message ---
--- Begin Message ---
> I was just looking at the date/time functions
> (http://www.php.net/manual/en/function.time.php) and I can't seem to
find
> a
> function that can format a date that is supplied in the format of a
> DATETIME
> column.
> 
> So, I was wondering, is there a function that can format it properly
or
> should I let the database handle the formatting (I'm really new to
SQL, I
> didn't come across anything to mod in the select statement yet). I
could
> ofcourse split it on space for a time and a date var and then split
the
> date
> on -'s for years, months and days but efficient is something else I
think
> :-) In the archives I saw some examples doing exactly that, but
nothing
> with
> a single function (unless home defined ofcourse).

You can use the DATE_FORMAT() function in your SELECT query to format
the date however you want it. Or, you can use UNIX_TIMESTAMP() to pull
it out in the unix format and then use the PHP function date() to format
it. 

http://www.mysql.com/documentation/mysql/bychapter/manual_R

php-general Digest 15 Dec 2002 22:09:08 -0000 Issue 1765

2002-12-15 Thread php-general-digest-help

php-general Digest 15 Dec 2002 22:09:08 - Issue 1765

Topics (messages 128323 through 128346):

Re: Querying two tables
128323 by: Lars Olsson

Re: Session: I RTFM
128324 by: Marco Tabini
128325 by: michael kimsal

Getting full HTTP request the page was requested with?
128326 by: Leif K-Brooks
128328 by: Hatem Ben
128335 by: Leif K-Brooks

AIM and PHP
128327 by: John Meyer

New PHP Editor/IDE Project
128329 by: Hidayet Dogan

Getting a field value
128330 by: drparker
128333 by: Jason Wong

JPG from Blob to HTML
128331 by: Miro Kralovic
128332 by: Jason Wong
128334 by: Miro Kralovic

PHP/MySQL Query
128336 by: Steven M
128337 by: Leif K-Brooks
128343 by: Steven M

Problems with "ftp_put()", .in.-file already exists
128338 by: Tobias Schlitt

Socket_connect() timeout
128339 by: Max Clark

PGP/PHP
128340 by: Jonathan
128341 by: Jonathan

Re: arrays
128342 by: drparker

Passing text info using $PHP_SELF
128344 by: Lightfirst
128345 by: Jason Sheets

Executing a Perl/CGI program from PHP
128346 by: Troy May

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi!

To fetch information from several tables you usually use a join 
operation. Here's a starting point in the MySQL manual.

http://www.mysql.com/doc/en/JOIN.html

/Lars ([EMAIL PROTECTED])



Cesar Aracena wrote:
Hi all,

I have several tables from which I have to fetch certain products &
categories based on customer selection. The tables are as follows:

Table 1 - Categories
catid (autonum)
catname

Table 2 - Sub categories
subcatid (autonum)
subcatname

Table 3 - Products
prodid (autonum)
prodname

Table 4 - Relationships
Catid
Subcatid
Prodid

Now, the question is how to fetch all the sub-categories let's say that
are related to category 0001. I know it's as simple as relating two
tables in one query, but I don't remember how. Any help appreciated.


Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina






--- End Message ---
--- Begin Message ---
Single quotes are normal strings. Double quotes are strings in which
substitutions can take place. For example:



Double quotes also expand escape strings (e.g."\n") whereas single
quotes don't.

Cheers,


Marco
-- 

php|architect - The Magazine for PHP Professionals
The monthly magazine dedicated to the world of PHP programming

Check us out on the web at http://www.phparch.com!

--- Begin Message ---
Marco (or anyone)

What is the difference between:
$familyname = getvar("familyname");
and
$familyname = getvar('familyname');

What do single quotes do, as a general rule, that double cannot (he asks remembering 
something, but not sure what)?




Marco Tabini wrote:

> I haven't followed the rest of the thread, but how about using a
> function?
>
> function getvar ($varname)
> {
> if (isset ($_POST[$varname])
> {
> $_SESSION[$varname] = $_POST[$varname];
> return $_POST[$varname];
> }
> elseif (isset ($_SESSION[$varname]))
> return $_SESSION[$varname];
> }
>
> session_start();
>
> // You don't need session_register anymore
>
> $familyname = getvar('familyname');
>
> and so on--just one line per variable.
>
> Hope this helps.
>
> Cheers,
>
> Marco
> --
> 
> php|architect - The Magazine for PHP Professionals
> The monthly magazine dedicated to the world of PHP programming
>
> Check us out on the web at http://www.phparch.com!
>
>   
>---
>
> Subject: [PHP] Session: I RTFM
> Date: Sat, 14 Dec 2002 18:41:40 -0500
> From: John Taylor-Johnston <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Orga

php-general Digest 16 Dec 2002 10:17:04 -0000 Issue 1766

2002-12-16 Thread php-general-digest-help

php-general Digest 16 Dec 2002 10:17:04 - Issue 1766

Topics (messages 128347 through 128382):

Re: how to send an MSWORD email?
128347 by: Chris Shiflett
128349 by: Andy Turegano
128360 by: Jonathan Sharp
128367 by: See kok Boon

select * From 
128348 by: Bruce Levick
128350 by: Martin Towell
128353 by: Seraphim
128355 by: Martin Towell
128357 by: Javier

Re: Getting full HTTP request the page was requested with?
128351 by: Chris Shiflett

Re: Querying two tables
128352 by: Javier

Re: Executing a Perl/CGI program from PHP
128354 by: John W. Holmes
128361 by: Jonathan Sharp

Print bgcolors in table
128356 by: Lars Espelid
128381 by: Bogdan Stancescu

Print text and image in the same page.
128358 by: Naif M. Al-Otaibi
128359 by: Chris Shiflett

Re: Simple text editor for Windows?
128362 by: David T-G
128363 by: Chris Shiflett

Re: approaching a relational database
128364 by: David T-G

to php or to perl, that is the question
128365 by: David T-G
128366 by: Rasmus Lerdorf

could an audio streaming reflector be written in php?
128368 by: Kendal

Can php auto execute it's script in schedule without opening a webpage?
128369 by: Jack
128370 by: Chris Shiflett
128382 by: John W. Holmes

notice prevents setting cookie in 4.3.0RC2?
128371 by: Alex Pukinskis

Re: Passing text info using $PHP_SELF
128372 by: Ernest E Vogelsinger

Re: INSERT using subqueries
128373 by: Evan Nemerson
128374 by: Ernest E Vogelsinger
128376 by: Evan Nemerson

needle in a haystack (Can't find :)
128375 by: John Taylor-Johnston
128377 by: Jason Wong
128378 by: Ernest E Vogelsinger

Re: Mail() Not working right
128379 by: Miguel González Castaños

PDF Lib
128380 by: Bogomil Shopov

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
--- See Kok Boon <[EMAIL PROTECTED]> wrote:
> I want to send emails that have graphics, for example
> the pub logo. I know that there are 2 ways to do so
> (maybe there are more, pls enlighten me):
> 
> 1. use html email with
>http://www.mydomain.com/logo.gif";>
> 
> 2. use MSWORD to insert the logo into the email.
>MSWORD will then send the logo.gif as an
>attachment and will ALSO use  tags.

I doubt anyone on this list is going to know what your
second method is, though I would guess that MS Word does
nothing special and does the same thing you mention in your
first method, except that it attaches the image to the
email rather than reference it via URL.

You can probably search the archives for more information
on sending HTML email as well as sending attachments, which
is all you are trying to do. I detest such email myself, so
I cannot offer any help.

Chris

--- End Message ---
--- Begin Message ---
The easiest way to include a picture in the email would be through the
html. The second way sounds much more complex. Right now, I really don't
know of any other ways. Perhaps copy and paste?


On Sun, 15 Dec 2002, Chris Shiflett wrote:

> --- See Kok Boon <[EMAIL PROTECTED]> wrote:
> > I want to send emails that have graphics, for example
> > the pub logo. I know that there are 2 ways to do so
> > (maybe there are more, pls enlighten me):
> >
> > 1. use html email with
> >http://www.mydomain.com/logo.gif";>
> >
> > 2. use MSWORD to insert the logo into the email.
> >MSWORD will then send the logo.gif as an
> >attachment and will ALSO use  tags.
>
> I doubt anyone on this list is going to know what your
> second method is, though I would guess that MS Word does
> nothing special and does the same thing you mention in your
> first method, except that it attaches the image to the
> email rather than reference it via URL.
>
> You can probably search the archives for more information
> on sending HTML email as well as sending attachments, which
> is all you are trying to do. I detest such email myself, so
> I cannot offer any help.
>
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
search google for RFC HTML email, or look at phpmailer.sourceforge.net. 

It's roughly along the lines of: 


Subject: My html email
Content-type: multipart/mime
Content-boundry(): BOUNDRY-ABC

---BOUNDRY-ABC---
Content-type: text/html
...more headers...

Hello! This is an html email with an image -> cid:abc123";>


---BOUNDRY-ABC---
Content-type: image/jpeg
Content-id: abc123
Content-encoding: base64

BKJSDFIWEIJELFJSELIFJEL


On Sun, 15 Dec 2002 14:35:48 -080

php-general Digest 17 Dec 2002 11:06:18 -0000 Issue 1768

2002-12-17 Thread php-general-digest-help

php-general Digest 17 Dec 2002 11:06:18 - Issue 1768

Topics (messages 128489 through 128532):

Re: can I mail unlimited in one click?
128489 by: Kyle Gibson
128514 by: Greg Donald
128515 by: Chris Kay

Re: Array
128490 by: Philip Olson

Put text matching regex into array?
128491 by: Leif K-Brooks
128519 by: Jason Wong

undefined indexproperty.
128492 by: Bruce Levick
128495 by: Bruce Levick
128500 by: Martin Towell

Re: php --with-gd support
128493 by: Bogdan Stancescu
128494 by: Bogdan Stancescu

Updating GD
128496 by: Noodle Snacks
128518 by: Jason Wong
128522 by: Noodle Snacks

Re: Divide into words
128497 by: John W. Holmes

MySQL select a field's first X bytes
128498 by: Micah Bushouse
128499 by: Quentin Bennett
128503 by: Micah Bushouse

Re: Undefined variable
128501 by: New B
128509 by: John W. Holmes

Help for Undefined variable
128502 by: New B

Re: php setup
128504 by: Justin French

invoking the PHP engine on a single .html file
128505 by: Krzysztof Wozniak
128507 by: Justin French

Re: PGP/PHP
128506 by: Jason Sheets

selecting img file extension.
128508 by: Bruce Levick
128510 by: Justin French

Plz help to solve my problem.
128511 by: Elaine Kwek
128512 by: Martin Towell
128513 by: Peter Houchin
128525 by: Tros

Per instance disable_functions in CGI "mode"
128516 by: Lic. Rodolfo Gonzalez Gonzalez

[php] INSERT INTO
128517 by: John Taylor-Johnston
128521 by: Jason Wong

Number of sessions
128520 by: fragmonster

Re: XML + XSL
128523 by: Hristina
128524 by: Bogomil Shopov

"Use of undefined constant" error
128526 by: fragmonster
128527 by: fragmonster
128529 by: Jon Haworth
128530 by: Tim Ward

Showing 10 record items per page...?
128528 by: Davíð Örn Jóhannsson
128531 by: Jon Haworth

PHP with GD Support
128532 by: info.t-host.com

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi,

I wonder if I can mail 300 customers in one click?

part of script:

while($listrow = mysql_fetch_array($listresult))  {

$recipient = $listrow[epost];
$subject = "$subj";
$message = "$mess";
$headers .= "From: $admail\n";
$headers .= "Reply-To: $admail\n";
$headers .= "X-Mailer: PHP\n";
mail($recipient, $subject, $message, $headers);
}

or is there a limit?

Thanks for any help
Jan Grafstrom



Why not just put all the email address into the BCC header field?


$headers .= "Bcc: $email[0], $email[1],,$email[n]\n";


Of course the BCC list could be filled programmatically...

--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/


--- End Message ---
--- Begin Message ---
On Mon, 16 Dec 2002,  wrote:
>I wonder if I can mail 300 customers in one click?
>
>part of script:
>
>while($listrow = mysql_fetch_array($listresult))  {
>
>$recipient = $listrow[epost];
>$subject = "$subj";
>$message = "$mess";
>$headers .= "From: $admail\n";
>$headers .= "Reply-To: $admail\n";
>$headers .= "X-Mailer: PHP\n";
>mail($recipient, $subject, $message, $headers);
>}
>
>or is there a limit?

You may need to increase your max_execution_time, the default seems to be 
30 seconds, pretty low for 300 emails:

>cat `locate php.ini`|grep max_execution_time
max_execution_time = 30 ; Maximum execution time of each script, in 
seconds


--
Greg Donald
http://destiney.com/



--- End Message ---
--- Begin Message ---

I am emailing 150 or so

- 
Chris Kay (Systems Development) 
Techex Communications 
Website: www.techex.com.au Email: [EMAIL PROTECTED] 
Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 
-  

-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 17 December 2002 11:40 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] can I mail unlimited in one click?

On Mon, 16 Dec 2002,  wrote:
>I wonder if I can mail 300 customers in one click?
>
>part of script:
>
>while($listrow = mysql_fetch_array($listresult))  {
>
>$recipient = $listrow[epost];
>$subject = "$subj";
>$message = "$mess";
>$headers .= "From: $admail\n";
>$headers .= "Reply-To: $admail\n";
>$headers .= "X-Mailer: PHP\n";
>mail($recipient, $subject, $message, $headers);
>}
>
>or is there a limit?

You may need to increase your max_execution_time, the default seems to
be 
30 seconds, pretty low for 300 emails:


php-general Digest 19 Dec 2002 13:01:52 -0000 Issue 1772

2002-12-19 Thread php-general-digest-help

php-general Digest 19 Dec 2002 13:01:52 - Issue 1772

Topics (messages 128790 through 128849):

Re: *OK, more eval for today
128790 by: Martin Towell
128847 by: Ford, Mike   [LSS]

Re: $_SERVER['DOCUMENT_ROOT'] on localhost
128791 by: DL Neil

Re: *Premature end of script headers
128792 by: Dave [Hawk-Systems]
128829 by: Alexey Lysenkov

is there php equiv left() and right() functions?
128793 by: Jeff Bluemel
128795 by: Matthew Gray
128796 by: Philip Olson
128797 by: Jeff Bluemel
128798 by: Jeff Bluemel

Re: creating objects by reference?
128794 by: Matthew Gray
128814 by: Bastian Vogt

recommendation needed for dedicated server hosting
128799 by: Taek Kwon
128801 by: Jason Sheets
128802 by: Tom Rogers
128803 by: Kyle Gibson

PHP and MySQL queries
128800 by: Beauford.2002
128810 by: John W. Holmes
128834 by: Rich Gray

repeat region
128804 by: Bruce Levick
128806 by: Jeff
128808 by: Justin French
128816 by: John Taylor-Johnston
128817 by: Bastian Vogt

Re: PHP question
128805 by: gamin

Re: checking bounce email
128807 by: See kok Boon
128840 by: Chris Hewitt

Re: URL parsing
128809 by: gamin

Re: XML + XSL
128811 by: Hristina

php + xsl + xsm
128812 by: Hristina

Re: flush output error
128813 by: electroteque
128848 by: Ford, Mike   [LSS]

problem with sending pages directly from browser
128815 by: Kocnár Peter

speet testing (was URL parsing)
128818 by: Sean Burlington

display edited field in table
128819 by: Lightfirst
128821 by: Lightfirst
128824 by: Jason Wong
128841 by: Chris Hewitt

delete() and unlink()
128820 by: . Nilaab
128823 by: Jason Wong

AddType application/x-httpd-source .phps
128822 by: Freaky

Displaying first 20 characters of a comment
128825 by: Kevin Meredith
128828 by: Quentin Bennett
128832 by: Jon Haworth

sending AND recieving XML
128826 by: K.C.P. van Zijl
128830 by: Quentin Bennett
128831 by: K.C.P. van Zijl

JavaScript or browser detection
128827 by: Steve Vernon
128835 by: fragmonster
128839 by: Chris Hewitt

Check Uploaded File
128833 by: shaun
128836 by: Rich Gray

Looping needs to re-open parm file
128837 by: Jacob van Zanen
128838 by: Wico de Leeuw
128842 by: Wico de Leeuw

RegExpres Prob
128843 by: John Wards
128844 by: Wico de Leeuw
128845 by: John Wards
128849 by: Wico de Leeuw

Inserting tab delimited textfiles into mysql
128846 by: Thomas Goeminne

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
argh! eval()
try this instead: $temp = ${"php_q3_$i"};
to get it directly from $HTTP_POST_VARS: $temp =
$HTTP_POST_VARS["php_q3_$i"];
simple

HTH
Martin

-Original Message-
From: Alexey Lysenkov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 6:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP] *OK, more eval for today


I know, it's eval = evil, but I don't see any other way I can check for 120
variables submitted via post, without making a temp variable, assigning a
value of the posted Var and checking for it (and deciding on the further run
of the script). Anyways, I took a classical eval thing and am doing fine
with it. It looks like this:

$temp = "\$php_q3_".$i; // $i is a loop index
eval ("\$temp = \"$temp\";");

works alright. Now, how do I eval directly from the $HTTP_POST_VARS?

I am trying to do this:

$tempVar1 = '\$HTTP_POST_VARS[\"q4_'.$i.'"]';
  eval("\$tempVar1=\"$tempVar1\";");

and am obviously failing. If you know any other way to validate 120-150
variables in a loop and then rewrite the values into the fields (checkboxes,
radios and selects) - should an error had been made - let me know.

Best Regards,
Alex

p.s. you do help! :)

--- End Message ---
--- Begin Message ---
> -Original Message-
> From: Alexey Lysenkov [mailto:[EMAIL PROTECTED]]
> Sent: 18 December 2002 19:08
> 
> 
> I am trying to do this:
> 
> $tempVar1 = '\$HTTP_POST_VARS[\"q4_'.$i.'"]';
>   eval("\$tempVar1=\"$tempVar1\";");
> 

Well, you have the answer right there in front of you -- why not just take the 
statement you build and eval(), and write it directly in the PHP thus:

   $tempVar1 = $HTTP_POST_VARS['q4_'.$i];

or

   $tempVar1 = $HTTP_POST_VARS["q4_$i"];

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services

php-general Digest 20 Dec 2002 13:47:40 -0000 Issue 1774

2002-12-20 Thread php-general-digest-help

php-general Digest 20 Dec 2002 13:47:40 - Issue 1774

Topics (messages 128931 through 128983):

Re: Another problem with conditional statements
128931 by: Beauford.2002
128934 by: Sean Malloy
128936 by: Beauford.2002
128958 by: Jason Wong
128959 by: Jason Wong
128966 by: Ford, Mike   [LSS]
128969 by: Ford, Mike   [LSS]
128971 by: Ford, Mike   [LSS]
128972 by: Ford, Mike   [LSS]

Re: Training Courses in PHP & MySQL
128932 by: Andrew Wilson
128939 by: michael kimsal
128940 by: Mike Hillyer
128941 by: michael kimsal

Re: Problem with sessions.
128933 by: Philip Olson
128957 by: Jason Wong

Re: Fatal error: Call to undefined function: allerrors() in
128935 by: Beauford.2002
128938 by: John W. Holmes

Code still showing up :(
128937 by: Lic. Rodolfo Gonzalez Gonzalez

syntax to reference $_POST within function
128942 by: Jamie
128945 by: Philip Olson

Good program to indent large quantity of files?
128943 by: Leif K-Brooks
128944 by: Leif K-Brooks
128949 by: Justin French
128954 by: Leif K-Brooks
128983 by: michael kimsal

URL path problems
128946 by: ªüYam
128947 by: Peter Houchin
128948 by: Wee Keat
128961 by: ªüYam

Alternating Links
128950 by: conbud
128951 by: Philip Olson
128952 by: Justin French
128953 by: conbud

Re: offline application
128955 by: Philippe Saladin

PopUp Recall
128956 by: beno

Problem with static call of method - class::method
128960 by: Mirek Novak
128962 by: Mirek Novak
128963 by: Mirek Novak

Re: Error installing
128964 by: Jason Wong

Re: PHP not working in html
128965 by: Dries Verachtert

mkdir() makes dir, but with wrong owner
128967 by: Mirza Muharemagic
128981 by: John W. Holmes

Re: Some discoveries I've made. Anyone care to confirm/deny
128968 by: Ford, Mike   [LSS]

Apache2 & PHP4
128970 by: Chase Urich
128979 by: Dries Verachtert

upload_max_filesize + ini_set
128973 by: electroteque
128976 by: Ford, Mike   [LSS]

Is there any method to filter the single quote from a string?
128974 by: ªüYam
128975 by: Justin French
128982 by: ªüYam

Re: How to upload a file
128977 by: Somesh

Re: PHP not working in html]
128978 by: Dries Verachtert

XML fopen($url)
128980 by: William Bradshaw

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I believe you are incorrect. Switch will look for the first case statement
that is true and execute that statement. The following works - case one is
incorrect so it doesn't get executed but the second case does. Paste this
into a test.php file and you will see it works.. Read the manual.

$a=2;
$b=4;

switch (true) {
case ($a < $b) and ($b > 5):
echo "Incorrect";
case ($a == 2):
echo "Correct";
 }

So my original question is still stands. The switch statement is correct,
but there is a problem with my conditional statements.

- Original Message -
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 7:33 PM
Subject: Re: [PHP] Another problem with conditional statements


> switch() does not work that way.  Switch uses the value in the parentheses
and selects a
> CASE based upon that value.  Read the manual.
>
> You will have to use a series of if()-elseif()-else()
> - Original Message -
> From: "Beauford.2002" <[EMAIL PROTECTED]>
> To: "PHP General" <[EMAIL PROTECTED]>
> Sent: Thursday, December 19, 2002 6:19 PM
> Subject: [PHP] Another problem with conditional statements
>
>
> Hi,
>
> This should be as simple as breathing, but not today. I have two variables
> $a and $b which I need to compare in a switch statement in several
different
> ways, but no matter what I do it's wrong.
>
> This is what I have tried, can someone tell me how it should be.
>
> TIA
>
> switch (true):
>
> case ($a == $b): This one seems simple enough.
> do sum stuff;
> break;
>
> case ($a && $b == 124):   This appears not to work.
> do sum stuff;
> break;
>
> case ($a == 124 && $b == 755):  If $a is equal to 124 and $b is equal
to
> 755 then it should be true..doesn't work.
> do sum stuff;
> break;
>
> case ($a == 124 && $b != 124):   Nope, this doesn't appear to work
> either.
> do sum stu

php-general Digest 21 Dec 2002 14:19:20 -0000 Issue 1776

2002-12-21 Thread php-general-digest-help

php-general Digest 21 Dec 2002 14:19:20 - Issue 1776

Topics (messages 129044 through 129056):

Re: the numeric key of an array???
129044 by: Alexander Guevara
129045 by: John W. Holmes
129046 by: Alexander Guevara

Re: Is there any method to filter the single quote from astring?
129047 by: Alexander Guevara
129050 by: Justin French
129051 by: Philip Olson
129053 by: Jason Wong

running perl script via su
129048 by: Larry Brown

table trouble
129049 by: Didier McGillis

Re: Problem with functions
129052 by: Jeff

Re: real time output
129054 by: Steve Yates

Re: Disable session cookies
129055 by: ed.home.homes2see.com

session life
129056 by: Paul Roberts

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Yeah this workes fine.. thanks!!

"Philip Olson" <[EMAIL PROTECTED]> wrote in message
Pine.BSF.4.10.10212210135051.36987-10@localhost">news:Pine.BSF.4.10.10212210135051.36987-10@localhost...
>
> No, but you can do this:
>
>   $arr2 = array_values($array);
>
>   print $arr2[0]; // VALUE1
>
> Regards,
> Philip Olson
>
>
> On Fri, 20 Dec 2002, Alexander Guevara wrote:
>
> > How can i do for printing the value of an array given the numeric key
for
> > example i have this code:
> >
> > $array = array (
> > 'VAL1' => "VALUE1",
> > 'VAL2' => "VALUE2",
> > 'VAL3' => "VALUE3"
> > )
> >
> > So the only way i have found to print the value is like this :
> > echo $array['VAL1'];
> >
> > and it prints = VALUE1 but i want to know if its possible to do it
something
> > like this:
> > echo $array[0];
> > i mean give the numeric key for printing VALUE1 so instead the string
key
> > (VAL1) use the numerc (0)
> >
> > Thanks in advance!
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



--- End Message ---
--- Begin Message ---
> > If you're looking to loop through your array, there are other
methods.

> Well which kind of methods are you talking about?? could you tell me
some
> for do it??

foreach($array as $key=>$value)

www.php.net/foreach

while(list($key,$value) = each($array)

www.php.net/each
www.php.net/list

$cnt = count($array);
for($x=0;$x<$cnt;$x++)

www.php.net/count

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



--- End Message ---
--- Begin Message ---
Thanks.

it worked fine.. and the reply at the botton too..

Thank you so much!
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
000101c2a896$70aad5c0$7c02a8c0@coconut">news:000101c2a896$70aad5c0$7c02a8c0@coconut...
> > > If you're looking to loop through your array, there are other
> methods.
>
> > Well which kind of methods are you talking about?? could you tell me
> some
> > for do it??
>
> foreach($array as $key=>$value)
>
> www.php.net/foreach
>
> while(list($key,$value) = each($array)
>
> www.php.net/each
> www.php.net/list
>
> $cnt = count($array);
> for($x=0;$x<$cnt;$x++)
>
> www.php.net/count
>
> ---John W. Holmes...
>
> PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> today. http://www.phparch.com/
>
>



--- End Message ---
--- Begin Message ---
It works.. but when you retrieve the data from the database to a text box it
doesnt appear if it has the single quote ('), o tought it was cause i have
the stripslashes but i delete stripslashes and it still doesnt appear in the
text box!


"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
don't filter the quotes... escape them with add_slashes()

justin

on 20/12/02 10:50 PM, ªüYam ([EMAIL PROTECTED]) wrote:

> as title that I'm getting a trouble on filtering the single quote '  ,
since
> there would be error when storing those string into MySQL, thus, i have to
> find the appropriate method to solve it, anybody can help please?
> thx a lot
>
>



--- End Message ---
--- Begin Message ---
on 21/12/02 2:00 PM, Alexander Guevara ([EMAIL PROTECTED]) wrote:

> It works.. but when you retrieve the data from the database to a text box it
> doesnt appear if it has the single quote ('), o tought it was cause i have
> the stripslashes but i delete stripslashes and it still doesnt appear in the
> text box!

Huh?  I can't really understand what you're saying.

If you're adding stuff to a database, and getting an error, use
addslashes(), then on the way out of the database, you need to
stripslashes(). Easy.

If you don't get any errors, then magic quotes is probably enabled in your
php.ini file.


Justin




> "Justin French" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTEC

php-general Digest 22 Dec 2002 02:30:00 -0000 Issue 1777

2002-12-21 Thread php-general-digest-help

php-general Digest 22 Dec 2002 02:30:00 - Issue 1777

Topics (messages 129057 through 129088):

Re: Is there any method to filter the single quote fromastring?
129057 by: Alexander Guevara
129059 by: John W. Holmes
129063 by: Alexander Guevara

Re: session life
129058 by: John W. Holmes
129070 by: Jason Sheets

Re: Disable session cookies
129060 by: John W. Holmes

Adding to Apache access log from PHP
129061 by: Geoff Caplan
129087 by: Tom Rogers

pspell and html tags
129062 by: Gil Disatnik
129064 by: Gil Disatnik

running perl script via su
129065 by: Larry Brown

Sorry
129066 by: Gil Disatnik

No tshowing url in title bar
129067 by: Alexander Guevara
129068 by: Larry Brown
129071 by: Alexander Guevara

Problem with the List?
129069 by: Larry Brown
129074 by: Kyle Gibson

\Z characters
129072 by: Dave J. Hala Jr.
129073 by: Kyle Gibson

Sessions on a shared server
129075 by: Beth Gore
129085 by: Tom Rogers

Mass Mailing
129076 by: Jonathan Chum
129078 by: Gil Disatnik
129080 by: Jonathan Chum
129082 by: Chris Knipe
129083 by: Mark Charette
129086 by: Jonathan Chum

Loading modules not compiled in php
129077 by: John Nichel
129084 by: Tony Earnshaw

Re: text parser
129079 by: Sean Burlington

tool to organize & design a project?
129081 by: Chris Hayes

Forms and PHP variables
129088 by: Beauford.2002

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
WEll for example i got this:
 In a field called name i write a name with single quotes for example 'Alex'
and click submit... in the verify.php i store the data i filled in the
form.php that contains name, surnmane,etcetc...

so when i save my data to the db i use the addslashes($name) in this case...
and the i look up the database and i see that the valeu oin my db for name
is like i wrote it in this cas 'Alex'.. that's perfect.. but when i try to
retrieve the user data in another page for example change_user.php i want to
retrive the user name and show it in a text box but it doesnt show up.. and
i have this code:


where userName i retrieved from the data base with a simple query..

so tell me what is wrong there!...Thanks!

"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
on 21/12/02 2:00 PM, Alexander Guevara ([EMAIL PROTECTED]) wrote:

> It works.. but when you retrieve the data from the database to a text box
it
> doesnt appear if it has the single quote ('), o tought it was cause i have
> the stripslashes but i delete stripslashes and it still doesnt appear in
the
> text box!

Huh?  I can't really understand what you're saying.

If you're adding stuff to a database, and getting an error, use
addslashes(), then on the way out of the database, you need to
stripslashes(). Easy.

If you don't get any errors, then magic quotes is probably enabled in your
php.ini file.


Justin




> "Justin French" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> don't filter the quotes... escape them with add_slashes()
>
> justin
>
> on 20/12/02 10:50 PM, ªüYam ([EMAIL PROTECTED]) wrote:
>
>> as title that I'm getting a trouble on filtering the single quote '  ,
> since
>> there would be error when storing those string into MySQL, thus, i have
to
>> find the appropriate method to solve it, anybody can help please?
>> thx a lot
>>
>>
>
>



--- End Message ---
--- Begin Message ---
> WEll for example i got this:
>  In a field called name i write a name with single quotes for example
> 'Alex'
> and click submit... in the verify.php i store the data i filled in the
> form.php that contains name, surnmane,etcetc...
> 
> so when i save my data to the db i use the addslashes($name) in this
> case...
> and the i look up the database and i see that the valeu oin my db for
name
> is like i wrote it in this cas 'Alex'.. that's perfect.. but when i
try to
> retrieve the user data in another page for example change_user.php i
want
> to
> retrive the user name and show it in a text box but it doesnt show
up..
> and
> i have this code:
>  >

I thought this was already covered today? First, you don't need
stripslashes() on the data when you pull it from the database unless you
have magic_quotes_runtime enabled. Second, slashes mean nothing in HTML.
It doesn't recognize them as escape characters. The reason your data
isn't appearing is because it's coming out with a value like
value=''Alex'', which HTML sees as a value of '' and ignores the rest of
the data and an unrecognized attribute. 

Finally, wh

php-general Digest 22 Dec 2002 15:05:13 -0000 Issue 1778

2002-12-22 Thread php-general-digest-help

php-general Digest 22 Dec 2002 15:05:13 - Issue 1778

Topics (messages 129089 through 129114):

Re: Forms and PHP variables
129089 by: Philip Olson
129097 by: Beauford.2002
129106 by: Jason Wong

assignment by reference bug?
129090 by: reynardmh.netscape.net

Re: Loading modules not compiled in php
129091 by: Philip Olson
129098 by: John Nichel

Function returning a reference - how ?!?
129092 by: Tim Molendijk
129093 by: reynardmh.netscape.net
129094 by: Tim Molendijk
129096 by: Tom Rogers
129099 by: Kyle Gibson

Re: assignment by reference bug? (update)
129095 by: reynardmh.netscape.net

fwrite() blank-line  Quirk?
129100 by: Noel Wade

uploading flat text to MySQL
129101 by: James Brennan
129108 by: Jason Wong

fgets() question?
129102 by: Noel Wade
129107 by: Jason Wong
129109 by: Steve Yates
129110 by: Noel Wade

Re: solved -  uploading flat text to MySQL -
129103 by: James Brennan

Re: un-solved - uploading flat text to MySQL -
129104 by: James Brennan

Re: Mass Mailing
129105 by: Manuel Lemos

Re: \Z characters
129111 by: Mattia
129113 by: Dave J. Hala Jr.

Email problems.
129112 by: Steve Jackson

Is __FILE__ still current or is there something newer?
129114 by: z z

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Use is_numeric()

  http://www.php.net/is_numeric

See also the ctype functions which can
be read about here:

  http://www.php.net/ctype

And yes, regular expressions are another
option but aren't needed here.

Regards,
Philip Olson


On Sat, 21 Dec 2002, Beauford.2002 wrote:

> Hi,
> 
> First off, thanks to all those that helped out with my other questions. Not
> all my problems were solved, but I'm certainly closer. Still working on the
> same project I need to do the following.
> 
> I have a form where users input numbers only, is there a way I can have php
> check to make sure a letter or other character didn't get put in by
> accident. I was looking at ereg, but not to familiar with this or if it
> would work in this case.
> 
> TIA
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--- End Message ---
--- Begin Message ---
Thanks for the info, but . is_numeric does not appear to accept
variables  i.e. is_numeric($num) and ctype gives me the following.

Fatal error: Call to undefined function: ctype_digit() in
/usr/local/apache/htdocs/.. on line 6




- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Saturday, December 21, 2002 9:50 PM
Subject: Re: [PHP] Forms and PHP variables


>
> Use is_numeric()
>
>   http://www.php.net/is_numeric
>
> See also the ctype functions which can
> be read about here:
>
>   http://www.php.net/ctype
>
> And yes, regular expressions are another
> option but aren't needed here.
>
> Regards,
> Philip Olson
>
>
> On Sat, 21 Dec 2002, Beauford.2002 wrote:
>
> > Hi,
> >
> > First off, thanks to all those that helped out with my other questions.
Not
> > all my problems were solved, but I'm certainly closer. Still working on
the
> > same project I need to do the following.
> >
> > I have a form where users input numbers only, is there a way I can have
php
> > check to make sure a letter or other character didn't get put in by
> > accident. I was looking at ereg, but not to familiar with this or if it
> > would work in this case.
> >
> > TIA
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--- End Message ---
--- Begin Message ---
On Sunday 22 December 2002 10:29, Beauford.2002 wrote:
> Hi,
>
> First off, thanks to all those that helped out with my other questions. Not
> all my problems were solved, but I'm certainly closer. Still working on the
> same project I need to do the following.
>
> I have a form where users input numbers only, is there a way I can have php
> check to make sure a letter or other character didn't get put in by
> accident. I was looking at ereg, but not to familiar with this or if it
> would work in this case.

Try this:

  http://www.phpclasses.org/browse.html/package/914.html

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

/*
So this is what it feels like to be potato salad
*/

php-general Digest 23 Dec 2002 03:28:02 -0000 Issue 1779

2002-12-22 Thread php-general-digest-help

php-general Digest 23 Dec 2002 03:28:02 - Issue 1779

Topics (messages 129115 through 129135):

Re: Email problems.
129115 by: Rick Emery
129121 by: Manuel Lemos

Re: Mass Mailing
129116 by: Jonathan Chum
129119 by: Manuel Lemos

Re: Forms and PHP variables
129117 by: Philip Olson

Re: session life
129118 by: John W. Holmes

dropping the resource fork
129120 by: James Brennan
129127 by: David Rice

problems with uploading files
129122 by: Oliver Witt
129123 by: rw.xend.net
129124 by: rw.xend.net

Which one to use..
129125 by: Peter Houchin
129130 by: Justin French

Re: php/dreamweaver mx/mysql server question...
129126 by: Peter Houchin

Tutorials on OOP
129128 by: Davy Obdam
129129 by: Justin French
129131 by: Davy Obdam
129133 by: Wee Keat
129134 by: Philip Olson
129135 by: Stephen

register globals off ...problems
129132 by: Mack

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
This is not realy a PHP question; rather, it is an OutLook question.
Regardless...when you opened the OutLook window to create your mail, did you go to the
Menu->Format and select "Rich Text (HTML)""
- Original Message -
From: "Steve Jackson" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Sunday, December 22, 2002 7:29 AM
Subject: [PHP] Email problems.


> I have generated a page on our server using PHP (from within a CMS system)
> which I renamed the output .html to use in an html email.
> My problem is when I cut and paste the HTML into the email (Outlook) it
> either:
> displays the code,
> displays the html email and then when it's sent, sends it as an attachment
> or sends it as a bunch of html links and  badly formatted text.
>
> I assumed (badly) that Outlook would simply send HTML emails if you
> formatted the program to send html emails but this seems almost impossible.
>
> Anyone have any suggestions?
>
> This is the page I want to send:
> http://www.violasystems.com/e-news/template.html
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
Hello,

On 12/22/2002 11:29 AM, Steve Jackson wrote:

I have generated a page on our server using PHP (from within a CMS system)
which I renamed the output .html to use in an html email.
My problem is when I cut and paste the HTML into the email (Outlook) it
either:
displays the code,
displays the html email and then when it's sent, sends it as an attachment
or sends it as a bunch of html links and  badly formatted text.

I assumed (badly) that Outlook would simply send HTML emails if you
formatted the program to send html emails but this seems almost impossible.

Anyone have any suggestions?

This is the page I want to send:
http://www.violasystems.com/e-news/template.html


You may want to try this class for composing messages that lets you add 
parts from files. Just specify the URL as filename:

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos

--- End Message ---
--- Begin Message ---
Thanks Manuel,

"Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> On 12/21/2002 08:10 PM, Jonathan Chum wrote:
> > An upcoming project I'm working and spec'ing out is a mass mailing
> > application. Initially, I was looking at Mailman which was written in
Python
> > since it looks like it handles delivering emails efficiently without
killing
> > the server. We have 1 client able to send 110,000 emails at 6.5K avg per
> > week on PIII 800 with 128 MB RAM using Mailman. The inteface however is
very
> > bad and we'd like to develop other features like text ads, tracking,
> > templates, etc. This would require writing a wrapper around Mailman in
PHP.
> > I was considering of writing the mass mailing application in PHP instead
> > though.
> >
> > If anyone has eperience writing such applications with this amount of
> > emails, I'd like to know what you've done.
>
> If you do not need to send personalized messages (messages that differ
> for each recipient), just put all recipients in a BCc: header and send a
> single message to the local mailer queue (not via SMTP).
>
> If you do not care for the users that bounce messages, just make the
> return path be black hole email address. OTOH, if you care about bounces
> (you should if you mailing list is large or is not clean), consider
> using ezmlm, which is a mailing list manager than among other things
> takes care of bounce messages thanks to qmail VERP. I was told that is
> the one that eGroups hacked to use in the now known YahooGroup

php-general Digest 23 Dec 2002 15:29:16 -0000 Issue 1780

2002-12-23 Thread php-general-digest-help

php-general Digest 23 Dec 2002 15:29:16 - Issue 1780

Topics (messages 129136 through 129197):

Undefined Functions
129136 by: Beauford.2002
129137 by: Rasmus Lerdorf

Re: fwrite() blank-line  Quirk?
129138 by: Jason Wong

Re: \Z characters
129139 by: Jason Wong

Thumbnail generation
129140 by: Centaur zeus
129142 by: Rasmus Lerdorf
129144 by: Centaur zeus
129145 by: Jason Wong
129172 by: 1LT John W. Holmes
129185 by: Mika Tuupola

Thumbnail
129141 by: Centaur zeus

How to generate thumbnail ?
129143 by: Centaur zeus
129155 by: Gil Disatnik

$_COOKIE and include() or require()
129146 by: Luke Sneeringer
129151 by: Chris Wesley
129154 by: Luke Sneeringer
129157 by: Chris Wesley
129162 by: Jason Wong

Flushing image from database to browser - how to get it cached??
129147 by: Tim Molendijk
129165 by: Dries Verachtert
129170 by: Justin French

Plotting Data Graphics
129148 by: Alexandre Soares
129152 by: Chris Wesley
129159 by: Rick Widmer
129163 by: Jason Wong

¡¾help¡¿how can I put the pull down menu in a frame and display.
129149 by: dreamyman
129153 by: Chris Wesley

Creating Extensions DLL with Delphi
129150 by: Andreas Steibl

Error loading PHP module in Apache 2
129156 by: Andrew Schaefer

Re: Is __FILE__ still current or is there something newer?
129158 by: Rick Widmer

preg_replace question
129160 by: electroteque
129164 by: Jason Wong

Preperation for News CMS?
129161 by: Steve Jackson

LDAP support...
129166 by: Peter Lavender
129167 by: Peter Lavender
129178 by: michael kimsal

PHP scripts use/get passed root's environment?
129168 by: Terrence Koeman

Re: fgets() question?
129169 by: Ford, Mike   [LSS]

Re: upload_max_filesize + ini_set
129171 by: Ford, Mike   [LSS]

calendar solution for workgroups ???
129173 by: Tariq Murtaza
129183 by: Jan Schneider
129196 by: Brent Baisley

php-java formatting
129174 by: Edward Peloke
129177 by: 1LT John W. Holmes
129184 by: Krzysztof Dziekiewicz

md5()
129175 by: Edward Peloke
129176 by: Justin French
129180 by: Chris Hewitt
129181 by: Johannes Schlueter
129182 by: Edward Peloke

Re: cookies
129179 by: Krzysztof Dziekiewicz

php.exe without console window
129186 by: Alexander Kuznetsov

how to specify dimensions of opened window?
129187 by: Jody Cleveland
129188 by: Rick Emery
129189 by: Jody Cleveland
129190 by: Rick Emery
129192 by: Jody Cleveland
129194 by: Rick Emery

Configuring printer output for a POS printer --> Admin Configuring Printer Drivers or 
a Select Driver Menu
129191 by: Axis Computers

MySQL vs PostgreSQL
129193 by: Miro Kralovic
129195 by: Rick Emery

Direct IO functions
129197 by: Slobodan Miljkovic

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi,

I previously asked a question about getting undefined function errors in my
script and someone mentioned that it may be that I am calling it from within
an if or else statement. This turned out to be the case. Now the question -
is there a way around this? What I need to do resolves around many different
conditions, and depending on the what's what I call the necessary function.
I have looked my script over and over and can not see any other way of doing
this. I am fairly new to PHP and maybe there is a better way, and I'm open
to suggestions.

TIA

Example:

if ($a == $b) call function one;

elseif ($a  > $b) call function two;
elseif ($a  == $c) call function two;
elseif ($a  < $b) call function two;
elseif ($c >  $b) call function two;
elseif ($d == $e) call function two;



--- End Message ---
--- Begin Message ---
An undefined function error has nothing to do with where you are calling
the function from.  It has to do with whether or not you have defined the
function you are calling.

-Rasmus

On Sun, 22 Dec 2002, Beauford.2002 wrote:

> Hi,
>
> I previously asked a question about getting undefined function errors in my
> script and someone mentioned that it may be that I am calling it from within
> an if or else statement. This turned out to be the case. Now the question -
> is there a way around this? What I need to do resolves around many different
> conditions, and depending on the what's what I call the necessary function.
> I have looked my script over and over and can not see any other way of doing
> this. I am fair

php-general Digest 24 Dec 2002 04:01:39 -0000 Issue 1781

2002-12-23 Thread php-general-digest-help

php-general Digest 24 Dec 2002 04:01:39 - Issue 1781

Topics (messages 129198 through 129239):

Richiesta collaborazioni
129198 by: Armando

Re: Configuring printer output for a POS printer --> Admin Configuring Printer Drivers 
or a Select Driver Menu
129199 by: Chris Hewitt
129206 by: Chris Hewitt

Re: Undefined Functions
129200 by: Beauford.2002
129203 by: Rasmus Lerdorf
129219 by: Beauford.2002
129221 by: Gerald Timothy Quimpo
129222 by: Leif K-Brooks
129223 by: Rasmus Lerdorf

Re: calendar solution for workgroups ???
129201 by: Rick Emery

Re: MySQL vs PostgreSQL
129202 by: David T-G

Forms
129204 by: Vicente Valero
129205 by: John Nichel
129207 by: Rick Emery
129208 by: Chris Hewitt
129209 by: Johannes Schlueter
129210 by: Jason Reid
129224 by: Jason Sheets

Are there macros in PHP?
129211 by: Don
129212 by: Rick Emery
129217 by: Chris Hewitt

Suggestions on how I should handle this
129213 by: Sarah Heffron
129214 by: Edward Peloke
129215 by: John W. Holmes

socket_select() on STDIN
129216 by: Geir Torstein Kristiansen

mbstring and iconv status and conversion problems
129218 by: Jan Schneider
129220 by: Jan Schneider

Unable to match dollar sign in preg_match
129225 by: Randall Perry
129227 by: John W. Holmes
129228 by: Randall Perry
129237 by: John W. Holmes

Re: upload_max_filesize + ini_set
129226 by: Dan Rossi

Date Subtraction
129229 by: Christopher J. Crane
129231 by: Marco Tabini
129235 by: Justin French

Re: [PHP-WIN] Tutorials on OOP
129230 by: Davy Obdam

php+gif problems take 2
129232 by: cj

mcrypt
129233 by: Ysrael Guzmán
129234 by: Alex Piaz

Re: $_COOKIE and include() or require()
129236 by: Luke Sneeringer

Problem with Include
129238 by: sport4ever

Beginner examples?
129239 by: Chris Rehm

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Salve,

A chiunque possa interessare, cerco persone su Napoli con cui avere scambi
di pareri e info  circa PHP/MySQL, eventualmente ci sarebbero opportunità
lavorative.

Saluti

--
Armando Alario

ICQ# 172677921



--
Armando Alario

ICQ# 172677921



--- End Message ---
--- Begin Message ---
Axis Computers wrote:



I'm developing a Pizza delivery application which uses printer output, and I
want to know which is the better way to format the output to the printer,
and how can I design a select printer menu (communicate with printer
drivers), so the user can select from a number of POS printers (45 columns
?).


I assume that you mean a printer connected to the client computer, not 
the server? As php is all executed on the server, like other server-side 
languages, it has no access to the client computer (for security reasons).

HTH
Chris

--- End Message ---
--- Begin Message ---
Axis Computers wrote:


Yes, but in my application's case the server and the client are on the same
computer, because the server will act as localhost, so you are saying there
is no way to dump any printer output ?


Ah, you do mean the server. OS dependent. If linux then probably call 
lpr via an exec call in php. If windows then possibly COM. I've not had 
to do this so I'm not going to be the best person to advise here. Any 
printing gurus please chip in.

HTH
Chris

--- End Message ---
--- Begin Message ---
I have a function at the bottom of my script which is called from withing an
if/else statement. If I take it out of the if/else and just call the
function it works fine (except I don't get the results I want). So it
appears where you are calling it from does matter. See the examples below.
This isn't the first time either, I have had to redo several scripts for
this project because of it.  If I'm doing this wrong based on the examples
below, please let me know. Thanks.

i.e.

This doesn't work.This does.

some code .. some code


If ($bob) { gotofunction($bob); }  gotofunction($bob);
elseif ($sally) { gotonextfunction($sally); }
gotonextfunction($sally)
   else { gotolastfunction(); }
gotolastfunction()
some other code . some other
code

function gotofunction($bob)   function
gotofunction($bob)
function gotonextfunction() function
gotonextfunction()
function gotolastfunction()  function
gotolastfunction()


- Original M

php-general Digest 25 Dec 2002 08:26:00 -0000 Issue 1783

2002-12-25 Thread php-general-digest-help

php-general Digest 25 Dec 2002 08:26:00 - Issue 1783

Topics (messages 129295 through 129316):

What happened with zend engine version 2?
129295 by: Erik Franzén
129299 by: Rasmus Lerdorf
129308 by: Erik Franzén
129316 by: Erik Franzén

Re: Problem with Include
129296 by: Rick Widmer
129297 by: Tom Woody
129300 by: Philip Olson

Re: forum?
129298 by: Philip Olson

Re: Creating my own External Module for PHP
129301 by: Rasmus Lerdorf
129309 by: Leon Mergen

extracting text
129302 by: Clivus2k1.aol.com
129305 by: John W. Holmes

objects within arrays
129303 by: Beth Gore
129304 by: Andrew Brampton
129307 by: Beth Gore

exif functions
129306 by: Dade Register
129312 by: Jason Sheets

upload_max_filesize hack
129310 by: electroteque
129311 by: electroteque

Greetings
129313 by: Joseph Ross Lee
129314 by: Andy Turegano

Problem with comma in mail form
129315 by: Ben Edwards

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I believed that PHP V4.3 should include the Zend engine version 2 since
there was two alpha releases for PHP-4.3.0 with  Zend engine version 2

-PHP-4.3.0-dev-zend2-win32-alpha1
-PHP-4.3.0-dev-zend2-win32-alpha2

I'm waiting for Zend engine version 2. Where could I read information about
future releases?

I think the Zend engine version 2 provides much better coding facilities so
I would preciate if anybody could answer my questions.

Thanks

/Erik



--- End Message ---
--- Begin Message ---
That was never the plan.  It is scheduled for PHP 5 sometime in the next
6-12 months.

-Rasmus

On Tue, 24 Dec 2002, Erik Franzén wrote:

> I believed that PHP V4.3 should include the Zend engine version 2 since
> there was two alpha releases for PHP-4.3.0 with  Zend engine version 2
>
> -PHP-4.3.0-dev-zend2-win32-alpha1
> -PHP-4.3.0-dev-zend2-win32-alpha2
>
> I'm waiting for Zend engine version 2. Where could I read information about
> future releases?
>
> I think the Zend engine version 2 provides much better coding facilities so
> I would preciate if anybody could answer my questions.
>
> Thanks
>
> /Erik
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
After I posted the first message, I read something about PHP 5 at
www.zend.com and suspected that is was about the new Zend Engine.
I must have missed it totally! I was planning to code on a new website
during my christmas holiday and now that chance is gone because the
functionality in the new Zend Enginge is exactly what I miss.

I also read on Zend.com that there are some decisions to make about some
major changes i.e private members variables or not.

I guess I have to switch to Linux and get a CVS-copy for PHP 5, if it
exists? Maybe a Win32-binary? Does it exist and if it exists, what status
does it have? Can you write code that will work when the final version is
finished with minor changes, or are major changes on the agenda?

And secondly, I have to face the fact that I cannot get the Zend Engine
version 2 in a runtime environment for at least 6 month.
You can be sure that I'm longing for it... :)

"Rasmus Lerdorf" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> That was never the plan.  It is scheduled for PHP 5 sometime in the next
> 6-12 months.
>
> -Rasmus
>
> On Tue, 24 Dec 2002, Erik Franzén wrote:
>
> > I believed that PHP V4.3 should include the Zend engine version 2 since
> > there was two alpha releases for PHP-4.3.0 with  Zend engine version 2
> >
> > -PHP-4.3.0-dev-zend2-win32-alpha1
> > -PHP-4.3.0-dev-zend2-win32-alpha2
> >
> > I'm waiting for Zend engine version 2. Where could I read information
about
> > future releases?
> >
> > I think the Zend engine version 2 provides much better coding facilities
so
> > I would preciate if anybody could answer my questions.
> >
> > Thanks
> >
> > /Erik
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



--- End Message ---
--- Begin Message ---
You don't need to answer my questions. Found almost all answers myself (Yes,
I was "triggerhappy" to post my questions here before I looked for the
answers...)

I have one question though, in which status are Zend Engine 2 in? I mean,
have you already taken the major decisions about (for an example) private
members?

"Erik FranzéN" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> After I posted the first message, I read something about PHP 5 at
> www.zend.com and su

php-general Digest 25 Dec 2002 20:26:44 -0000 Issue 1784

2002-12-25 Thread php-general-digest-help

php-general Digest 25 Dec 2002 20:26:44 - Issue 1784

Topics (messages 129317 through 129327):

Re: Problem with Include
129317 by: sport4ever

Writing byte 0A to a file (LF / CR related)
129318 by: BBun
129319 by: BBun
129320 by: Thomas Seifert

CVS download
129321 by: Bc. Radek Krejèa

How To Get Last Item Of An Array?
129322 by: . Nilaab
129323 by: Chris Wesley

MySQL
129324 by: Parry60.aol.com

Re: Problem with comma in mail form
129325 by: Chris Wesley

Good class for managing settings stored in INI (or other format) file?
129326 by: Leif K-Brooks
129327 by: John W. Holmes

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Thanks to all whom answered me

while there is no solution for my problem (including more than one PHP file
in a HTML page through SSI) :(
I want to return to my server old configuration, It was:
RedHat Linux 7.3
Apach 1.3
PHP 4.0.1
except PHP, because I have encountered some problems with PHP 4.0.1,
and please tell me what I (exactly) suppose to reinstall (Linux,Apache or
PHP)...

Is there any way to undo my upgrade ( what I call downgrade :-) )?
thanx anyway
__
http://www.sport4ever.net
Administrator of Sport4ever.Net
[EMAIL PROTECTED]

- Original Message -
From: "sport4ever" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Tom Ray" <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 8:04 AM
Subject: Re: [PHP] Problem with Include


> It's PHP problem because I can include any number of files with other
> extensions. only PHP which I can not include more than one file at a
page...
>
> maybe there is something wrong with php.ini
> notice that I faced with this problem just after I upgraded to (PHP
4.2.1),
> (Apache2), everything was great before!
>
> >
> > sport4ever wrote:
> >
> >Hello,
> >my problem is that I can't use more than one SSI INCLUDE in a page
> >
> >Please access this test page to check the problem yourself:
> >http://www.sport4ever.com/test/hello.shtml
> >
> >The first INCLUDE will appear correctly and prints "HELLO World, include
#1" which is the output of "hello.php"
> >
> >Whereas the second INCLUDE won't appear, and instead, it will print the
content (code) of "hello2.php", which is the follwoing:
> >
> >
> >So, it always executes the first include statement perfectly, and doesn't
> execute the rest!
> >
> >note: the problem appears only if I include a PHP file, it will execute
> it correctly if it's a SHTML or HTML file.
> >
> >PLEASE is there any solution for this strange problem!
> >
> >
> >
> >
>



--- End Message ---
--- Begin Message ---
Hey,

I am trying to write some binary data (image) to a file, but using fputs,
every 0A byte will be written as 0D 0A. This is because of the windows
representation of a new line (\r\n), but I'm not writing a text file! I'm
writing binary data! Does anyone know how I can make this work correctly?

Thanks




--- End Message ---
--- Begin Message ---
Hey,

I am trying to write some binary data (image) to a file, but using fputs,
every 0A byte will be written as 0D 0A. This is because of the windows
representation of a new line (\r\n), but I'm not writing a text file! I'm
writing binary data! Does anyone know how I can make this work correctly?

Thanks



--- End Message ---
--- Begin Message ---
from the manual:

Note:  On systems which differentiate between binary and text files (i.e. Windows) the 
file must be opened with 'b' included in fopen() mode parameter.



Thomas

On Wed, 25 Dec 2002 11:43:13 +0100 [EMAIL PROTECTED] (Bbun) wrote:

> Hey,
> 
> I am trying to write some binary data (image) to a file, but using fputs,
> every 0A byte will be written as 0D 0A. This is because of the windows
> representation of a new line (\r\n), but I'm not writing a text file! I'm
> writing binary data! Does anyone know how I can make this work correctly?
> 
> Thanks
> 
> 

--- End Message ---
--- Begin Message ---
Hello,
I want to download PHP from CVS and a wrote this command (from
manual):

cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_2_3 php4

But I got this message:

cvs [server aborted]: no such tag PHP_4_2_3

Where is problem?
Thanks Radek



--- End Message ---
--- Begin Message ---
Hello Everyone,

I have an multi-dimensional array called $cat_data, which is info extracted
from a MySQL DB. I want to retrieve the very last item of that array. How
would I do that? I know the first item can be retrieved by simply asking for
$cat_data[0][0], which contains an id number. But I can't figure out how to
get the last item in that same array -- $cat_data[x][0] where x is the last
item in the array.

P.S. - I read the section on Arrays at php.net, but unfortunately I didn

php-general Digest 26 Dec 2002 10:42:56 -0000 Issue 1785

2002-12-26 Thread php-general-digest-help

php-general Digest 26 Dec 2002 10:42:56 - Issue 1785

Topics (messages 129328 through 129346):

Re: How To Get Last Item Of An Array?
129328 by: John W. Holmes
129329 by: Jason Wong
129330 by: Leon Mergen

How to display field after MySQL join.
129331 by: Stephen of Blank Canvas
129345 by: Jason Wong
129346 by: Sean Burlington

Problem with compilation from CVS
129332 by: Bc. Radek Krejèa
129333 by: Johannes Schlueter
129334 by: Bc. Radek Krejèa

Formatting text output
129335 by: menezesd
129336 by: John W. Holmes
129338 by: Justin French

Insert Record (php.ini)
129337 by: Edson Waite
129339 by: John W. Holmes
129341 by: Edson Waite
129342 by: Javier

Re: MySQL
129340 by: Mike Mannakee

UltraTemplate's documentation
129343 by: Javier

Apache
129344 by: Mantas Kriauciunas

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
> I have an multi-dimensional array called $cat_data, which is info
> extracted
> from a MySQL DB. I want to retrieve the very last item of that array.
How
> would I do that? I know the first item can be retrieved by simply
asking
> for
> $cat_data[0][0], which contains an id number. But I can't figure out
how
> to
> get the last item in that same array -- $cat_data[x][0] where x is the
> last
> item in the array.

Kind of begs the question of why can't you just select what you need
with the proper query, instead of loading everything into an array...

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



--- End Message ---
--- Begin Message ---
On Thursday 26 December 2002 03:34, Chris Wesley wrote:
> On Wed, 25 Dec 2002, @ Nilaab wrote:
> > I have an multi-dimensional array called $cat_data, which is info
> > extracted from a MySQL DB. I want to retrieve the very last item of that
> > array. How would I do that? I know the first item can be retrieved by
> > simply asking for $cat_data[0][0], which contains an id number. But I
> > can't figure out how to get the last item in that same array --
> > $cat_data[x][0] where x is the last item in the array.
>
> Naturally, the index of last item of an array is one less than the total
> number of elements in the array.
>
> $num_elements = count( $cat_data );
> $last_element = $cat_data[$num_elements-1][0];
> // 0 being what you were seeking

Or, if you don't need to keep $cat_data intact, you can use array_pop().

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

/*
When it is not necessary to make a decision, it is necessary not to
make a decision.
*/


--- End Message ---
--- Begin Message ---

"John W. Holmes" <[EMAIL PROTECTED]> schreef in bericht
000401c2ac54$142032c0$7c02a8c0@coconut">news:000401c2ac54$142032c0$7c02a8c0@coconut...
> Kind of begs the question of why can't you just select what you need
> with the proper query, instead of loading everything into an array...

Yeah, just add limit 0,1 desc to the query



--- End Message ---
--- Begin Message ---
Hi Everyone,
 
I'm trying to display the content of two mysql tables on a single page,
I have successfully joined them with the following statement.
 
$query = "SELECT serv.*, cat.* FROM site_services AS serv,
site_servicescat AS cat WHERE serv.servicescat_id = cat.servicescat_id
AND serv.theme_id = $DomainTheme AND serv.status = 1 ORDER BY RAND()
LIMIT 3";

This works great but my problem is I have a field in each table called
"title", if I use the normal function of $row[title] I get field from
the "site_services" table but I cannot work out how to get the
"site_servicescat" title field.  I have tried $row[cat.title] but all I
get is errors. 
 
Any help would be really appreciated as I think it's just me missing
something basic.
 
Thanks
 
Stephen

--- End Message ---
--- Begin Message ---
On Thursday 26 December 2002 07:25, Stephen of Blank Canvas wrote:
> Hi Everyone,
>
> I'm trying to display the content of two mysql tables on a single page,
> I have successfully joined them with the following statement.
>
> $query = "SELECT serv.*, cat.* FROM site_services AS serv,
> site_servicescat AS cat WHERE serv.servicescat_id = cat.servicescat_id
> AND serv.theme_id = $DomainTheme AND serv.status = 1 ORDER BY RAND()
> LIMIT 3";
>
> This works great but my problem is I have a field in each table called
> "title", if I use the normal function of $row[title] I get field from
> the "site_services" table but I cannot work out how to get the
> "site_servicescat" title field.  I have tried $row[cat.title] b

php-general Digest 26 Dec 2002 23:14:22 -0000 Issue 1786

2002-12-26 Thread php-general-digest-help

php-general Digest 26 Dec 2002 23:14:22 - Issue 1786

Topics (messages 129347 through 129387):

Open HTTPS connection
129347 by: John W. Holmes

language internationalisation
129348 by: Denis L. Menezes

Populating textboxes and listboxes from a query result of a database table
129349 by: Denis L. Menezes
129351 by: Rick Emery
129381 by: Gerald Timothy Quimpo

Re: Problem with comma in mail form
129350 by: Ben Edwards
129356 by: Ben Edwards
129357 by: John W. Holmes
129360 by: Ben Edwards
129361 by: Paul Roberts

PHP session logger
129352 by: Francisco Vaucher
129353 by: John W. Holmes
129354 by: Francisco Vaucher

Re: Beginner examples?
129355 by: Rick Widmer

Installing PHP on XP
129358 by: Todd Cary

Finding # of weekdays between 2 dates..
129359 by: Chad Day

OOP and object references, not copies - how to do?
129362 by: Erik Franzén

Unable to set permissions
129363 by: Alberto Brea

Re: Mass Mailing
129364 by: peter a

Re: Apache
129365 by: John Nichel

unpack() based on C struct
129366 by: Tim Molendijk

Flow diagrams.
129367 by: Sridhar Moparthy
129380 by: Jimmy Brake
129384 by: Manuel Lemos

Include Problems
129368 by: Mike Bowers
129369 by: Mike Bowers
129370 by: John Nichel
129371 by: John Nichel
129372 by: Chris Hewitt
129373 by: Mike Bowers
129375 by: John Nichel
129377 by: Chris Wesley
129378 by: Mike Bowers
129383 by: Gerald Timothy Quimpo

email
129374 by: Anil Garg

e-mail
129376 by: Anil Garg
129379 by: Paul Roberts
129382 by: James E Hicks III

Selecting what's for deletion
129385 by: Cesar Aracena
129386 by: John W. Holmes

Nested Arrays
129387 by: Beauford.2002

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
What are the different ways to open an HTTPS connection from within a
script and receive back the response into a variable? I know CURL can do
it, and PHP 4.3 with OpenSSL can use fopen() to do it. Can sockets be
used at all with PHP 4.2 to get the page or maybe a system call to a
simple program to do it? This is going to be on a Win2K machine. Thanks
for any info. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/




--- End Message ---
--- Begin Message ---
Hello friends,

As the subject suggests I am looking for language capabilitie on my php webpages.

Can someone please tell me which is a good way? I thought that I could have a 
database, but if so, can MySQL: handle multiple languages in the fields(like chinese 
language)? if this is possible, what about the html output : does the user need to 
install some fonts etc ?

Thanks very much
Denis
--- End Message ---
--- Begin Message ---
Hello friends,

Can someone please tell me where I can find sample scripts for populating
textboxes and listboxes on a form(when the form opens) using the data from
fields in a table?

Thanks
Denis


--- End Message ---
--- Begin Message ---
Text box:
print "\n";

List box:
print "\n";
while($row = mysql_fetch_array($result))
{
  extract($row);
  print "$data_title\n";
}
print "\n";
- Original Message - 
From: "Denis L. Menezes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 26, 2002 6:13 AM
Subject: [PHP] Populating textboxes and listboxes from a query result of a database 
table


Hello friends,

Can someone please tell me where I can find sample scripts for populating
textboxes and listboxes on a form(when the form opens) using the data from
fields in a table?

Thanks
Denis




--- End Message ---
--- Begin Message ---
On Thursday 26 December 2002 06:59 am, Rick Emery wrote:
> Text box:
> print "\n";

i prefer to use templates.  i use my own template code, but there are 
good template systems online that you can use, 
e.g., http://smarty.php.net is powerful.

in a simple template system, assume that there is a file (the template)
that contains HTML (in my system, i use mixed php and html, with a
special function TemplateVirtual to make things work, but in this 
example let's assume it's straight HTML to keep it simple as possible).
we load the file and replace substrings in there with the data.  the
convention is:

database fieldname is, for example, dbfield.  corresponding input fieldname
is dbfield_name, corresponding input value template (in the HTML, to be
replaced with the actual contents of the dbfield) is {dbfield_value}.
so the HTML might look like:  


function templateLoad($fn)  /* returns template as on

php-general Digest 27 Dec 2002 11:32:06 -0000 Issue 1787

2002-12-27 Thread php-general-digest-help

php-general Digest 27 Dec 2002 11:32:06 - Issue 1787

Topics (messages 129388 through 129423):

Re: Open HTTPS connection
129388 by: Sean Burlington

Re: Nested Arrays
129389 by: Weston Houghton
129390 by: Weston Houghton
129391 by: Wee Keat [Amorphosium]
129395 by: Beauford.2002
129402 by: Wee Keat [Amorphosium]
129414 by: Paul Reed

php+gd 2.0.7 problems take 2
129392 by: cj

str_replace
129393 by: Weston Houghton
129396 by: John W. Holmes
129397 by: Weston Houghton

Cheap Hosting
129394 by: Stephen
129398 by: Rick Emery
129405 by: Kyle Gibson
129407 by: Jason k Larson
129409 by: Daniel Kushner

Photos and logos in MySQL + PHP
129399 by: Denis L. Menezes
129400 by: Michael J. Pawlowsky
129401 by: Rick Widmer

include "problem"
129403 by: Pag
129404 by: Rasmus Lerdorf

odd results inquiry
129406 by: Tony Tzankoff
129408 by: Michael J. Pawlowsky
129410 by: Michael J. Pawlowsky

How To Use The next() and prev() functions on multi-dimensional arrays
129411 by: . Nilaab
129412 by: Jason k Larson

Re: Finding # of weekdays between 2 dates..
129413 by: Marek Kilimajer

Re: Installing PHP on XP
129415 by: Marek Kilimajer

Re: Unable to set permissions
129416 by: Marek Kilimajer

Re: Selecting what's for deletion
129417 by: Marek Kilimajer
129419 by: Cesar Aracena
129423 by: John W. Holmes

Re: language internationalisation
129418 by: Marek Kilimajer

CLI delay
129420 by: Maciek Ruckgaber Bielecki
129421 by: Marek Kilimajer
129422 by: Rick Widmer

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
John W. Holmes wrote:

What are the different ways to open an HTTPS connection from within a
script and receive back the response into a variable? I know CURL can do
it, and PHP 4.3 with OpenSSL can use fopen() to do it. Can sockets be
used at all with PHP 4.2 to get the page or maybe a system call to a
simple program to do it? This is going to be on a Win2K machine. Thanks
for any info. 


you could try lynx

http://lynx.isc.org/

its a text browser commanly available on Linux stystems but also 
available for dos/win32

it can retieve and dump to stdout either the raw file or the formatted 
text - and supports https.

--

Sean

--- End Message ---
--- Begin Message ---

Sure... for the longwinded approach, just do this:

$row1 = array("col1", "col2", "col3", ...);
$row2 = array("col1", "col2", "col3", ...);
$row3 = array("col1", "col2", "col3", ...);
$row4 = array("col1", "col2", "col3", ...);
$row5 = array("col1", "col2", "col3", ...);

$main_array = array($row1, $row2, $row3, $row4, $row5);

Obviously these could include key-value pairs in the arrays as well. 
Then to prove it to yourself:

print_r($main_array);

Cheers,
Wes


On Thursday, December 26, 2002, at 06:14  PM, Beauford.2002 wrote:

Hi,

Is there anyway to do a nested array, I have looked at the various 
array
functions and can't figure this out (if possible).

I want to be able to put each field of  a row into an array, and then 
put
that entire row and into another array.

so when I display it, I would have:

row1 - col1  col2  col3 col4 col5
row2 - col1  col2  col3 col4 col5
row3 - col1  col2  col3 col4 col5
row4 - col1  col2  col3 col4 col5
row5 - col1  col2  col3 col4 col5

etc. (depending on how many rows there are).

TIA



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




--- End Message ---
--- Begin Message ---

Sure... for the longwinded approach, just do this:

$row1 = array("col1", "col2", "col3", ...);
$row2 = array("col1", "col2", "col3", ...);
$row3 = array("col1", "col2", "col3", ...);
$row4 = array("col1", "col2", "col3", ...);
$row5 = array("col1", "col2", "col3", ...);

$main_array = array($row1, $row2, $row3, $row4, $row5);

Obviously these could include key-value pairs in the arrays as well. 
Then to prove it to yourself:

print_r($main_array);

Cheers,
Wes



On Thursday, December 26, 2002, at 06:14  PM, Beauford.2002 wrote:

Hi,

Is there anyway to do a nested array, I have looked at the various 
array
functions and can't figure this out (if possible).

I want to be able to put each field of  a row into an array, and then 
put
that entire row and into another array.

so when I display it, I would have:

row1 - col1  col2  col3 col4 col5
row2 - col1  col2  col3 col4 col5
row3 - col1  col2  col3 col4 col5
row4 - col1  col2  col3 col4 col5
row5 - col1  col2  col3 col4 col5

etc. (depending on how many rows there are).

TIA



--
PHP General Mailing Lis

php-general Digest 28 Dec 2002 00:13:54 -0000 Issue 1788

2002-12-27 Thread php-general-digest-help

php-general Digest 28 Dec 2002 00:13:54 - Issue 1788

Topics (messages 129424 through 129481):

Re: Cheap Hosting
129424 by: Shashwat Nagpal
129428 by: David T-G
129442 by: Stephen
129445 by: 1LT John W. Holmes
129447 by: Edward Peloke
129451 by: Steve Jackson

Re: php+gd 2.0.7 problems take 2
129425 by: Marek Kilimajer

Re: Nested Arrays
129426 by: Marek Kilimajer
129427 by: Marek Kilimajer
129452 by: Beauford.2002
129454 by: Marek Kilimajer
129455 by: Michael J. Pawlowsky
129464 by: Beauford.2002

executable
129429 by: Edward Peloke
129430 by: Marek Kilimajer
129432 by: Michael J. Pawlowsky

Does PHP recognize multiple selections in a form?
129431 by: Micah Bushouse
129433 by: Marco Tabini
129434 by: Marek Kilimajer
129440 by: Micah Bushouse

XML-Presentationsystem from the Conf2002
129435 by: Tobias Schlitt
129436 by: Rasmus Lerdorf

Re: [PHP-DEV] XML-Presentationsystem from the Conf2002
129437 by: Derick Rethans
129438 by: Derick Rethans

Re: Finding # of weekdays between 2 dates..
129439 by: Chad Day

Reg Ex for replacing  or  with \n
129441 by: Tom Beddard
129444 by: Tom Beddard

Re: OOP and object references, not copies - how to do?
129443 by: Rasmus Lerdorf

processform.php not found
129446 by: Cerebrimbor
129448 by: Stephen
129453 by: Maciek Ruckgaber Bielecki

PHP 4.3.0 released
129449 by: Andrei Zmievski

Re: CLI delay
129450 by: Maciek Ruckgaber Bielecki

Just need a link ;)
129456 by: Brian J. Celenza
129457 by: Jason Sheets
129458 by: Michael J. Pawlowsky

uploading + downloading Large files ...
129459 by: Jimmy Brake
129460 by: Andrew Brampton
129462 by: James E Hicks III

mysql_escape_string is deprecated?
129461 by: Leif K-Brooks
129471 by: 1LT John W. Holmes

Flow diagrams.-- Resending
129463 by: Sridhar Moparthy
129475 by: Jimmy Brake

directory list function?
129465 by: Dade Register
129466 by: Kevin Stone
129467 by: Maciek Ruckgaber Bielecki
129473 by: Maciek Ruckgaber Bielecki

monster form and compression?
129468 by: Jeff D. Hamann
129470 by: Maciek Ruckgaber Bielecki
129477 by: Jimmy Brake

php app frameworks?
129469 by: Jeff D. Hamann
129479 by: Javier

[PHP-WIN] ftp_rawlist working as Admin and not working as normal user
129472 by: Paul Menard

exec, system , backtick
129474 by: gamin
129476 by: Maciek Ruckgaber Bielecki
129478 by: gamin
129480 by: Maciek Ruckgaber Bielecki

Re: Flow diagrams
129481 by: Manuel Lemos

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I can suggest u the best then.. 40$ annually will be fine with you??? then mail me 
back!

Cheers!

Shashwat
www.shashwat.com
  "Stephen" <[EMAIL PROTECTED]> wrote in message 
001e01c2ad42$b4ff1d20$0200a8c0@melchior">news:001e01c2ad42$b4ff1d20$0200a8c0@melchior...
  Hello,

  I need a nice, reliable host for my new website. It needs to be fast, reliable, 
needs a good uptime, and some features. PHP and MySQL are the two I really need. Does 
anyone recomend one that's really cheap? So far I've found on, $5 a month, but it's 
slower then what'd I like. If nothing else pops up, I'll go with it. I'd also like 
domain parking and/or domain registration (don't really need the registration though). 
Thanks in advance!

  Thanks,
  Stephen Craton
  http://www.melchior.us

  "What is a dreamer that cannot persevere?" -- http://www.melchior.us
--- End Message ---
--- Begin Message ---
Stephen --

...and then Stephen said...
% 
% Hello,

Hi!


% 
% I need a nice, reliable host for my new website. It needs to be fast, reliable, 
needs a good uptime, and some features. PHP and MySQL are the two I really need. Does 
anyone recomend one that's really cheap? So far I've found on, $5 a month, but it's 
slower then what'd I like. If nothing else pops up, I'll go with it. I'd also like 
domain parking and/or domain registration (don't really need the registration though). 
Thanks in advance!

This question has come up a number of times before.  Check the archives
for even more suggestions.

That said...  I offer php, mysql, ftp, multiple mail boxes, mailing
lists, yourdomain hosting/parking, and more; my server is at DataPipe
with good bandwidth and all of the goodies of a more expensive hosting
package (since that's what *I* have).


% 
% Thanks,
% Stephen Craton
% http://www.melchior.us
% 
% "What is a dreamer that cannot persevere?"

php-general Digest 28 Dec 2002 13:02:28 -0000 Issue 1789

2002-12-28 Thread php-general-digest-help

php-general Digest 28 Dec 2002 13:02:28 - Issue 1789

Topics (messages 129482 through 129496):

Re: php app frameworks?
129482 by: Jason Sheets
129486 by: michael kimsal
129487 by: Javier

Re: exec, system , backtick
129483 by: Michael Sims
129489 by: gamin
129490 by: gamin

object vs functions
129484 by: Mat Harris
129492 by: Paul Reed

Re: PHP 4.3.0 released
129485 by: The Doctor
129495 by: Rick Widmer

some multiple array problems...
129488 by: Victor

XSLT Transformation
129491 by: Boris Kolev

rounding...sort of
129493 by: Peter Lavender
129494 by: Jason Wong

Date fields
129496 by: Peter Goggin

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
If you go to www.hotscripts.com they have several PHP application
frameworks listed.

I've investigated PHPLIB, and horde (http://www.horde.org) but wound up
creating my own framework because I have not yet found a well documented
framework that does what I need it to do.

Jason

On Fri, 2002-12-27 at 13:51, Jeff D. Hamann wrote:
> What application frameworks are avail for php?
> 
> Jeff.
> 
> --
> Jeff D. Hamann
> Hamann, Donald & Associates, Inc.
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> Bus. 541-753-7333
> Cell. 541-740-5988
> [EMAIL PROTECTED]
> www.hamanndonald.com
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
Jason Sheets wrote:

If you go to www.hotscripts.com they have several PHP application
frameworks listed.

I've investigated PHPLIB, and horde (http://www.horde.org) but wound up
creating my own framework because I have not yet found a well documented
framework that does what I need it to do.



What were you looking for that you couldn't find in other products/projects?

Thanks.



--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Jason Sheets) wrote in 
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:

Have you got any documentation of it to share?

> If you go to www.hotscripts.com they have several PHP application
> frameworks listed.
> 
> I've investigated PHPLIB, and horde (http://www.horde.org) but wound
> up creating my own framework because I have not yet found a well
> documented framework that does what I need it to do.
> 
> Jason
> 
> On Fri, 2002-12-27 at 13:51, Jeff D. Hamann wrote:
>> What application frameworks are avail for php?
>> 
>> Jeff.


-- 
*** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig)

--- End Message ---
--- Begin Message ---
On Sat, 28 Dec 2002 02:55:44 +0530, you wrote:

>I tried a simple command line script, in all cases no_file does not exist. I
>do not want the command line script to show the error on the screen but to
>deliver it in the variable $r. But alas, in all 3 cases i get 'rm: canoot
>remove `no_file': No such file or directory'
[script snipped]

I think this is because your error is being sent to stderr but PHP is
only capturing what is sent to stdout.  I was able to acheive your
desired results by redirecting stderr to stdout via the shell.  Try
the following, it worked for me:

#! /usr/bin/php -q
&1`;
echo "the value in r is $r";
?>

If you need more info on the "2>&1" part, consult the Advanced Bash
Scripting Guide here:

http://www.digitaltoad.net/docs/guide/advshell/io-redirection.html

--- End Message ---
--- Begin Message ---

"Maciek Ruckgaber Bielecki" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> how about :
> #!/usr/local/bin/php -q
>
>  $file = 'no_file';
>
> if(!is_file($file))
>   $mess =  "no such file";
> else
>   $mess = shell_exec("ls $file");
>
> echo $mess."\n";
> ?>
> regards,
> Maciek Ruckaber Bielecki
>

Hi Maciek,

   I used rm as an example to illustrate what i want to do, basically i need
to catch an error if it occurs and STOP the script from going ahead and
include the error in a file for later examination. I would be using 'rm,
unzip, tar, rpm' etc commands from inside a PHP script. Micheal Sims' post
has something interesting.

gamin



--- End Message ---
--- Begin Message ---

"Michael Sims" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sat, 28 Dec 2002 02:55:44 +0530, you wrote:
<--sniped -->

#! /usr/bin/php -q
&1`;
echo "the value in r is $r";
?>

If you need more info on the "2>&1" part, consult the Advanced Bash
Scripting Guide here:

http://www.digitaltoad.net/docs/guide/advshell/io-redirection.html

Thx Michael,

   I tested what you prescribed and it works like a charm. Thanks for the
link to ABSG, a very useful Guide indeed.

Im running a linux system so i have 

php-general Digest 29 Dec 2002 14:53:59 -0000 Issue 1791

2002-12-29 Thread php-general-digest-help

php-general Digest 29 Dec 2002 14:53:59 - Issue 1791

Topics (messages 129556 through 129579):

unpack() - how to handle bitfields??
129556 by: Tim Molendijk

Form duplicate post problem
129557 by: Pag
129558 by: Timothy Hitchens (HiTCHO)
129559 by: Pag
129561 by: John W. Holmes
129562 by: Timothy Hitchens (HiTCHO)
129568 by: Pag
129570 by: Michael J. Pawlowsky

Directing to a URL from a radio group
129560 by: Denis L. Menezes
129563 by: John W. Holmes

php.ini ignored!  Re: [PHP] PHP 4.3.0 released
129564 by: omer k

include option and calling only part of a file.
129565 by: Stephen of Blank Canvas
129572 by: John W. Holmes

snmpget
129566 by: Gareth Hastings

PHP 4.3.0, function removed?
129567 by: Detritus
129569 by: Sterling Hughes
129571 by: Detritus
129573 by: gamin

Re: [PHP-DEV] Re: [PHP] PHP 4.3.0 released
129574 by: Rick Widmer

preg_split
129575 by: Mr Nik Frengle

Re: IIS Quit Working
129576 by: Jason Wong

Warning: 1 is not a valid File-Handle resource - HELP!
129577 by: Phil Powell

European "daylight saving" summer-time.
129578 by: Martin Thoma

PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43
129579 by: Rui Costa

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi all,

I'm wrestling with this problem for a while now. I want to read a binary
file (created by C software) using PHP. I know of unpack(). But the C struct
that is stored in the binary file contains variables with bitfields:

struct some_struct {
char val_a : 2
int val_b : 7
}

Such a construct means that val_a is char with a bitfield of 2 and therefore
can contain values between 0 (00 binary) and 3 (11 binary). val_b is an
integer with a range of 0 (000) to 127 (111).

Now the problem is: how on earth do I handle those values with PHP's
unpack()?!? I've tried a lot of syntaxes but none of them seem to work. Can
someone please shortcut whether it is possible or not and if yes, *how*?

Thanks in advance,
Tim



--- End Message ---
--- Begin Message ---

	Hi,

	I am having some problems with duplicate form input.
	I have a form that adds comments to an article, works fine, but if the 
user clicks on "refresh", having added a comment previously, the same 
comment is added again. I tried clearing the variables after the database 
write, but the refresh somehow resends the previous values.
	Roughly, heres how my script works: (not using actual code syntax here)

	--
	if {$flag=1 AND $name!='' AND $commentbody!=''){

	inserts the comment into the database
	$flag = 0
	$name = ''
	$comment = ''
	}
	--
	routine to display the article and the existing comments here
	--
	form here
	if user clicks send, puts $flag=1 and calls same page
	--


	How can i prevent these double entries? Some command to definitely clear 
the variables?
	Thanks.

	Pag


--- End Message ---
--- Begin Message ---
There is a very simple solution to this on the page that
does the entries into the database simply to a header redirect
to a new page that displays the success notices etc and if they
do a back or a refresh nothing will happen as the POST data
is on the previous now "removed" from history page.

header('Location: http://www.yourdomain.com/success.html');

* you will need to put some GET data in the URL to show the correct page.

That will do it for you.

Remember that you can't send output on the database entry page simple
to the database calls and they do the header call as above.



Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]


If you need PHP hosting with an experienced
support team 24/7 then email me today.

On Sun, 29 Dec 2002, Pag wrote:

>
>   Hi,
>
>   I am having some problems with duplicate form input.
>   I have a form that adds comments to an article, works fine, but if the
> user clicks on "refresh", having added a comment previously, the same
> comment is added again. I tried clearing the variables after the database
> write, but the refresh somehow resends the previous values.
>   Roughly, heres how my script works: (not using actual code syntax here)
>
>   --
>   if {$flag=1 AND $name!='' AND $commentbody!=''){
>
>   inserts the comment into the database
>   $flag = 0
>   $name = ''
>   $comment = ''
>   }
>   --
>   routine to display the article and the existing comments here
>   --
>   form here
>   if user clicks send, puts $flag=1 and calls same page
>   --
>
>
>   How can i pr

php-general Digest 30 Dec 2002 03:21:26 -0000 Issue 1792

2002-12-29 Thread php-general-digest-help

php-general Digest 30 Dec 2002 03:21:26 - Issue 1792

Topics (messages 129580 through 129622):

Re: Warning: 1 is not a valid File-Handle resource - HELP!
129580 by: Rick Emery
129605 by: gamin

Re: Form duplicate post problem
129581 by: Pag
129585 by: John W. Holmes
129586 by: Pag
129589 by: Jason Wong
129590 by: Pag
129592 by: Jason Wong
129594 by: John W. Holmes
129599 by: Pag
129601 by: Michael J. Pawlowsky
129602 by: John W. Holmes
129604 by: Jason Sheets
129606 by: Pag

Formatting text
129582 by: Denis L. Menezes
129583 by: Michael J. Pawlowsky
129584 by: John W. Holmes
129587 by: Denis L. Menezes
129588 by: Michael J. Pawlowsky
129593 by: John W. Holmes
129595 by: Maciek Ruckgaber Bielecki

lstdc++ problem
129591 by: Dmitry Demczuk

Re: IIS Quit Working
129596 by: Stephen
129597 by: John W. Holmes
129598 by: Stephen
129600 by: Michael J. Pawlowsky

Re: Problem with REQUIRE in PHP 4.3.0
129603 by: gamin

Re: php.ini ignored!  Re: [PHP] PHP 4.3.0 released
129607 by: Michael Mauch

Embedding image a PHP file
129608 by: empty
129610 by: justin gruenberg

Re: PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43
129609 by: Dirk Schiefke

Load Data Infile
129611 by: Anthony Ritter
129612 by: Marco Tabini
129614 by: Anthony Ritter

using mail() with .info emails?
129613 by: Joe Popovich
129615 by: Johannes Schlueter

Rookie mail() q's .. can't find answer after RTFM...
129616 by: -<[ Rene Brehmer ]>-
129617 by: Sean Burlington
129618 by: Michael J. Pawlowsky

Dropping Tables
129619 by: Steve Buehler
129620 by: Michael J. Pawlowsky
129622 by: John W. Holmes

imap_set_quota function
129621 by: Roger Thomas

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
The last line cannot be producing the warning; it does not refer to a file.
Please show us the EXACT error message.

Are you certain the file was opened?  Did you try to print $stuff after reading it?  
Did it have the
info you thought it should?

- Original Message -
From: "Phil Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, December 29, 2002 3:08 AM
Subject: [PHP] Warning: 1 is not a valid File-Handle resource - HELP!


Ok, I am a bad coder. :(  I can't figure this out at all:

   $fileID = fopen("nicknames.txt", 'r');
$stuff = fread($fileID, filesize("nicknames.txt")); fclose($fileID);
if (strlen($stuff) > 0) $priorNickNewLine = "\n";
$nicks = explode("\n", $stuff);

The last line produces the Warning.. why?  I am trying to read contents from 
nicknames.txt and split
according to the newline character so that each nickname is an array element.

What did I do wrong? :(

Phil



--- End Message ---
--- Begin Message ---

"Phil Powell" <[EMAIL PROTECTED]> wrote in message
021801c2af19$e05909d0$2aaf6244@scandinawa1bo6">news:021801c2af19$e05909d0$2aaf6244@scandinawa1bo6...
Ok, I am a bad coder. :(  I can't figure this out at all:

   $fileID = fopen("nicknames.txt", 'r');
$stuff = fread($fileID, filesize("nicknames.txt")); fclose($fileID);
if (strlen($stuff) > 0) $priorNickNewLine = "\n";
$nicks = explode("\n", $stuff);

<--snip-->

I would recommend you to always check if the file was opened successfully.
Simply add this after your fopen..
if ($fileID === false) { // 3 '=' signs checks
variable type and value
die("Error opening file. $php_errormsg"); // you will need
track_errors = ON in php.ini to use $php_errormsg.

HTN

gamin.



--- End Message ---
--- Begin Message ---



You can still use one page and use a "middle-man" technique. The part
that processes the form input would redirect back to itself after the
data is inserted into the database, thus getting rid of the post data.
So subsequent refreshes of the page will refresh without attempting to
repost the data.


This post is merely for reference and, hopefully, to help out some 
other person that runs into the same problem.

I solved my duplicate form post problem using that middle-man 
technique you guys mentioned, but i did it in a little more user friendly 
way than using a complete page and redirecting back to the original. (thus 
preventing some design problems on my specific site)

I used some javascript to open a small window, it has the code to 
insert the comment into the database, thanks for the user input and 
immediately closes and refreshes the original, s

php-general Digest 30 Dec 2002 15:34:19 -0000 Issue 1793

2002-12-30 Thread php-general-digest-help

php-general Digest 30 Dec 2002 15:34:19 - Issue 1793

Topics (messages 129623 through 129672):

Re: Dropping Tables
129623 by: Steve Buehler

Re: imap_set_quota function
129624 by: Michael Sims

Re: PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43
129625 by: Davy Obdam

Re: Problem with REQUIRE in PHP 4.3.0
129626 by: Bc. Radek Krejca

Clear file or write to file erasing all old content
129627 by: Noodle Snacks
129628 by: jason perkins
129629 by: Noodle Snacks

PHP and XML parser (expat)
129630 by: Lasse Tarp

HTML module problem under Linux/APache2.0
129631 by: Tiziano Crimella
129632 by: Leif K-Brooks
129633 by: Tiziano Crimella
129634 by: Jason k Larson

Auto_incerement value
129635 by: Cesar Aracena
129636 by: Jason k Larson
129637 by: Rick Widmer

Serializing a DOM object
129638 by: Boget, Chris

PHP & PostgreSQL
129639 by: Boget, Chris
129640 by: Jason Wong
129643 by: Boget, Chris
129644 by: Jason Wong
129645 by: Rick Widmer
129647 by: Rick Widmer
129648 by: Jason Wong
129650 by: Boget, Chris
129654 by: Boget, Chris
129657 by: Michael Sims
129658 by: Boget, Chris
129660 by: Michael Sims
129663 by: Jason Wong
129665 by: Boget, Chris
129668 by: Jason Wong
129670 by: Boget, Chris

Zerofill
129641 by: Cesar Aracena
129642 by: Jason k Larson
129649 by: Rudolf Visagie

usort crashes
129646 by: CeeGee

Text repeating problem
129651 by: Simon Hay
129666 by: Rasmus Lerdorf

install problem
129652 by: gnu_is_not_unix.wp.pl
129661 by: Rasmus Lerdorf

help-regarding installation
129653 by: celia rexselin

function misfunction
129655 by: Martin S
129659 by: Michael Sims
129669 by: Jason Wong

Multi Language support
129656 by: Michael J. Pawlowsky

creating a .doc file in php
129662 by: Edward Peloke
129664 by: Marco Tabini
129672 by: Edward Peloke

Re: include "problem" -- how to use an external 'template' file and still use PHP 
variables?
129667 by: Daevid Vincent

importing array from flash, how does PHP handle it?
129671 by: Gav

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Thank You so much John and Michael.  SHOW TABLES LIKE 'a%' worked like a 
charm and was exactly what I was looking for.  I guess my searches were 
using the wrong keywords.  Kind of figures.  Some of my searches were 
turning up 1000's of results.


How do you know whether it's an "active" a* table or not?  Will you be
dropping a table that someone is actually using?


I will be shutting down the script at a certain time each day to run some 
things like this for maintenance.  So none of these should be active and if 
they are, it won't hurt anything.   The customer can just wait until the 
maintenance time is over.  Approximately 10 mintues.

At 10:21 PM 12/29/2002 -0500, you wrote:
> Basically just do a a php script the sends the sql "show tables";
>
> Then do a strchr() to see if "a" is the first letter in the resuts and
if
> so do a delete table.
>
> Just yo play safe do a dump of your db first.


Or even better, use SHOW TABLES LIKE 'a%' to just get the a* tables and
drop each one.

How do you know whether it's an "active" a* table or not? Will you be
dropping a table that someone is actually using?

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3


--- End Message ---
--- Begin Message ---
On Sun, 29 Dec 2002 18:26:01 -0800 (PST), you wrote:

>"This function requires the imap_stream to have been opened as the mail
>administrator account. It will not work if opened as any other user.
[...]
>my question is, where do i set this admin called 'mailadmin' with password
>'password'. do i set it in courier/uw for example? 

Yes, you need to give imap_set_quota() a username and password of an
account that has administrator privileges on your IMAP server.  If you
were using Cyrus IMAP you'd use an account that's specified in the
"admins" section of /etc/imapd.conf.  I don't know how this is handled
in Courier or UW, but I assume the mechanisms are similar.  I suggest
checking

php-general Digest 31 Dec 2002 15:58:36 -0000 Issue 1795

2002-12-31 Thread php-general-digest-help

php-general Digest 31 Dec 2002 15:58:36 - Issue 1795

Topics (messages 129728 through 129779):

Re: SQL Error
129728 by: John W. Holmes

Re: PHP Look Back 2002
129729 by: John W. Holmes

Making  with $values!!!
129730 by: Alexander Guevara
129732 by: Maciek Ruckgaber Bielecki
129765 by: Marek Kilimajer

Eocene -- An OO Framework for Web Devlopment
129731 by: Eocene

printing documents on printer
129733 by: Larry Brown
129734 by: John W. Holmes
129735 by: Larry Brown
129736 by: Michael J. Pawlowsky

PLEASE HELP
129737 by: Dale
129756 by: gamin

FORM text formatting problem
129738 by: Pag
129739 by: John W. Holmes
129740 by: Pag

Getting short (DOS) name of file?
129741 by: Leif K-Brooks
129748 by: Leif K-Brooks
129749 by: Tom Rogers
129769 by: Michael Sims

chunking a blob field.  adding a large object chunk by chunk
129742 by: Mike Brancato
129759 by: Marek Kilimajer

Function misfunction - 2
129743 by: Martin S
129758 by: Marek Kilimajer
129761 by: Martin S
129764 by: Jason Wong
129766 by: Martin S
129767 by: Jason Wong
129770 by: Martin S
129771 by: Jason Wong
129772 by: Martin S
129774 by: Marek Kilimajer

Re: PHP 4.3 JPG Support. Whats needed?
129744 by: Jason Wong

Re: PHP3 + session handling limitation
129745 by: electroteque
129750 by: Tom Rogers

Shopping Cart Credit Card Verification
129746 by: Josiah Peters
129747 by: Maciek Ruckgaber Bielecki

Date problem
129751 by: Denis L. Menezes
129757 by: Rick Widmer
129775 by: John W. Holmes

Arrays of strings from regex
129752 by: David Pratt
129762 by: Marek Kilimajer

Re: rtfI knew it couldn't be this easy
129753 by: gamin

Re: Keeping script running, but returning control to user?
129754 by: gamin

PHP Error
129755 by: Dale
129760 by: Marek Kilimajer

Parameters and Access
129763 by: rblack.datavisibility.co.uk

Re: [PHP-DEV] PHP Look Back 2002
129768 by: Marcus Börger

mail()
129773 by: Edward Peloke

Problems getting PHP to work (IIS5/XP Pro)
129776 by: Jeff Lewis

Php 4.3.0 and Mail() function
129777 by: Carl Bélanger

Repeats of values
129778 by: Anthony Ritter

openssl_csr_sign issues
129779 by: Larry

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I don't think there's anything wrong with the queries themselves. Are
you trying to run them all at once? You're getting an error because
MySQL is reaching a semi-colon somewhere and that's causing a parse
error... Show how you're trying to run all of these queries. Bottom
line, you must do them one at a time with mysql_query, or run them
through the command line in a file. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/


-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 30, 2002 7:15 PM
To: PHP List
Subject: [PHP] SQL Error

I'm having some troubles. I have an install script which runs a lot of
SQL statements to create tables then insert info into them. One of them
is an emoticons table. Here's the error I'm getting:
 
You have an error in your SQL syntax near '; INSERT INTO c_emotes VALUES
\(':\)', 'emotes/smile.gif'\); INSERT INTO c_emo' at line 4
 
or, if I change my code a little, it's this:
 
You have an error in your SQL syntax near '; INSERT INTO c_emotes VALUES
\(':)', 'emotes/smile.gif'\); INSERT INTO c_emo' at line 4
 
Here's my code which inserts the information:
 
INSERT INTO c_emotes VALUES (':)', 'emotes/smile.gif'); // I also have
tried placing a \ infront of the )...no luck
INSERT INTO c_emotes VALUES (';)', 'emotes/wink.gif');
INSERT INTO c_emotes VALUES (':(', 'emotes/sad.gif');
INSERT INTO c_emotes VALUES (':P', 'emotes/tounge.gif');
INSERT INTO c_emotes VALUES (':|', 'emotes/blank.gif');
INSERT INTO c_emotes VALUES (':-|', 'emotes/blank.gif');
INSERT INTO c_emotes VALUES (':-)', 'emotes/smile.gif');
INSERT INTO c_emotes VALUES (';-)', 'emotes/wink.gif');
INSERT INTO c_emotes VALUES (':-P', 'emotes/tounge.gif');
INSERT INTO c_emotes VALUES (':-(', 'emotes/sad.gif');
 
Anyone see the problem??

Thanks,
Stephen Craton
http://www.melchior.us
 
"What is a dreamer that cannot persevere?" -- http://www.melchior.us



--- End Message ---
--- Begin Message ---
> We are almost at the end of 2002, and it seemed appropriate to look
back
> on the development issues of the past year. So starts the first PHP
Look
>

php-general Digest 1 Jan 2003 04:58:08 -0000 Issue 1796

2002-12-31 Thread php-general-digest-help

php-general Digest 1 Jan 2003 04:58:08 - Issue 1796

Topics (messages 129780 through 129823):

Re: Repeats of values
129780 by: Andrew Brampton
129782 by: Tom Rogers
129783 by: Thomas Seifert

MySQL Join
129781 by: John Hinton
129811 by: Jason Wong

Re: Function misfunction - 2
129784 by: Andrew Wallace

How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL
129785 by: . Nilaab
129788 by: Stephen
129808 by: . Nilaab
129812 by: Jason Wong

assigning to $this in constructor?
129786 by: Matt Friedman

loading a db table into a php array from mysql
129787 by: David T-G
129791 by: Tularis
129793 by: David T-G
129819 by: Rick Widmer

Re: Serializing a DOM object
129789 by: Boget, Chris

Re: Keeping script running, but returning control to user?
129790 by: Tularis

FastCGI
129792 by: Fernando Serboncini

Re: Getting short (DOS) name of file?
129794 by: Leif K-Brooks

fwrite() debugging
129795 by: Alberto Brea
129796 by: Timothy Hitchens \(HiTCHO\)
129798 by: Michael J. Pawlowsky

SUMMARY - Re: [PHP] Re: loading a db table into a php array from mysql
129797 by: David T-G

Running PHP on Windows OS
129799 by: Todd Cary
129804 by: John Nichel
129814 by: Todd Cary
129816 by: David Freeman

Re: Flow diagrams.-- Resending
129800 by: Jimmy Brake

receiving XML stream as server via PHP
129801 by: Kristopher Yates
129806 by: Timothy Hitchens \(HiTCHO\)
129809 by: Timothy Hitchens \(HiTCHO\)
129813 by: Boget, Chris

Missing logos
129802 by: Richard A Downing
129803 by: Tyler Longren
129807 by: Richard A Downing

Re: Using strtotime on 'old' dates.
129805 by: David J. Johnson

Re: mail()
129810 by: Jason Wong

HTTP_IF_MODIFIED_SINCE
129815 by: Ian M. Evans

use included GD of external
129817 by: Richard Pijnenburg
129821 by: Rick Widmer
129822 by: Richard Pijnenburg

Re: Php 4.3.0 and Mail() function
129818 by: Rick Widmer

PHP 4.3.0 (Win32, zip) not bundled with PEAR?
129820 by: Tobias Schlitt

makeing an array
129823 by: Philip J. Newman

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi,
I think changing
while(list (,$value) = each ($line)) {
to
foreach ($line as $value) {

might help but I'm unsure, either way foreach is easier to read :)

Andrew
- Original Message - 
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 31, 2002 4:47 PM
Subject: [PHP] Repeats of values 


> I'm running the following sql query which outputs a repeat value for each
> field in the html cell box.
> 
> Like this:
> ..
> 3.3 3.3 78 78 2002-06-11 2002-06-11
> ...
> 
> which is not what I would like.
> 
> I was trying to get:
> .
> 3.3 78 2002-06-11
> 
> 
> I thought that by dropping off the $key in the $key - $value pair
> to:
> 
> while(list (,$value) = each ($line))
> 
> would accomplish that.
> 
> The SQL query is:
> 
> SELECT level, pm, date FROM daytime WHERE pm >=75
> 
> 
> The php script is:
> 
>  $link = mysql_connect("", "", "")
> or die ("Could not connect");
> mysql_select_db ("water")
> or die ("Could not select database");
> 
> 
> $query = "SELECT level, pm, date FROM daytime WHERE pm >= 75";
> $result = mysql_query ($query)
> or die ("Query failed");
> 
>  // printing HTML result
> 
> 
> print ("Dates where water exceeded 75
> degrees at Callicoon, New York - 2002");
>  print("");
> print "\n";
> 
>  while($line = mysql_fetch_array($result)){
>   print "\t\n";
>   while(list (,$value) = each ($line)) {
>print " size=2>$value\n";
>   }
>   print "\t\n";
>  }
>  print "\n";
> 
> mysql_close($link);
> ?>
> ..
> 
> Any help would be greatly appreciated.
> Happy New Year!
> 
> Tony Ritter
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Hi,

Wednesday, January 1, 2003, 2:47:57 AM, you wrote:
AR> I'm running the following sql query which outputs a repeat value for each
AR> field in the html cell box.

AR> Like this:
AR> ..
AR> 3.3 3.3 78 78 2002-06-11 2002-06-11
AR> ...

AR> which is not what I would like.

AR> I was trying to get:
AR> .
AR> 3.3 78 2002-06-11
AR> 

php-general Digest 1 Jan 2003 17:26:29 -0000 Issue 1797

2003-01-01 Thread php-general-digest-help

php-general Digest 1 Jan 2003 17:26:29 - Issue 1797

Topics (messages 129824 through 129854):

Re: makeing an array
129824 by: Timothy Hitchens \(HiTCHO\)
129826 by: Philip J. Newman
129827 by: Timothy Hitchens \(HiTCHO\)
129840 by: Sean Malloy
129841 by: Timothy Hitchens \(HiTCHO\)

Re: Serializing a DOM object
129825 by: Tom Rogers

Re: PHP3 + session handling limitation
129828 by: Dan Rossi
129829 by: Dan Rossi
129830 by: Tom Rogers
129831 by: Justin French

Re: Alternatives for Meta Refresh
129832 by: Justin French
129833 by: Timothy Hitchens \(HiTCHO\)

Securing areas of a web site with PHP
129834 by: Jean-Christian Imbeault
129837 by: Tularis
129838 by: Jean-Christian Imbeault
129846 by: Michael J. Pawlowsky
129848 by: michael kimsal

Need Help.
129835 by: thkiat
129851 by: Jason Sheets

error on include_path=(''c:\php4\pear")
129836 by: anand.texsurat.com

Re: loading a db table into a php array from mysql
129839 by: David T-G

Re: How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL
129842 by: . Nilaab
129843 by: Thomas Seifert

Windows XP
129844 by: Stephen
129847 by: Mat Harris

call_user_method_array
129845 by: Boget, Chris
129849 by: Marco Tabini
129850 by: Boget, Chris

error when conecting to mysql
129852 by: Paul Roberts
129853 by: Michael J. Pawlowsky

Re: Php 4.3.0 and Mail() function
129854 by: Carl Bélanger

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Example of an Array:

$my_first_array = array(1 => 'first', 2 => 'second', 3 => 'third');

You can now access these like so:

echo $my_first_array[1];   etc etc

of if you had this:  $my_first_array = array('first_name' => 'Philip',
'last_name' => 'Newman');

You could do this:

echo $my_first_array['first_name'];

The thing to remember is that array's start at 0 "see below!!" (I started at
1 at the top to make it easier).

You can also make an array like so:

$first[] = 'Philip';
$first[] = 'John';
$first[] = 'Paul';

Now you can simply do:

echo $first[0];  // this could output 'Philip';

You can then look at multi dimensional etc...

I trust this get's you on your way.


Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]


HiTCHO | Open Platform Web Development
Consulting - Outsourcing - Training - Support


- Original Message -
From: "Philip J. Newman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 01, 2003 2:57 PM
Subject: [PHP] makeing an array


> Can someone help me make an array ...
>
> I have $foo amount of loops to preform (1-20), and would like to make the
> veriable work for me like $comment_1, $comment_2 etc etc.
>
> http://nz.php.net/manual/en/function.array.php makes no sence to me after
i
> read it and read it ...
>
> help me please
>
> ---
> Philip J. Newman.
> Head Developer.
> PhilipNZ.com New Zealand Ltd.
> http://www.philipnz.com/
> [EMAIL PROTECTED]
>
> Mob: +64 (25) 6144012.
> Tele: +64 (9) 5769491.
>
> VitalKiwi Site:
> Philip J. Newman
> Internet Developer
> http://www.newman.net.nz/
> [EMAIL PROTECTED]
>
> *
>   Friends are like Stars,
>   You can't always see them,
>   But you know they are there.
>
> *
>
> ICQ#: 20482482
> MSN ID: [EMAIL PROTECTED]
> Yahoo: [EMAIL PROTECTED]
> AIM: newmanpjkiwi
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
So in saything that I could do this ...

$s = 10

$comment[1] = '$comment_1';
$comment[2] = '$comment_2';
$comment[3] = '$comment_2';

for($i = 0; $i <= $s; $i++) {

 echo $comment[$i]."";

}



- Original Message -
From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]>
To: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 01, 2003 6:12 PM
Subject: Re: [PHP] makeing an array


> Example of an Array:
>
> $my_first_array = array(1 => 'first', 2 => 'second', 3 => 'third');
>
> You can now access these like so:
>
> echo $my_first_array[1];   etc etc
>
> of if you had this:  $my_first_array = array('first_name' => 'Philip',
> 'last_name' => 'Newman');
>
> You could do this:
>
> echo $my_first_array['first_name'];
>
> The thing to remember is that array's start at 0 "see below!!" (I started
at
> 1 at the top to make it easier).
>
> You can also make an array like so:
>
> $first[] = 'Philip';
> $first[] = 'John';
> $first[] = 'Paul';
>
> Now you can simply do:
>
> echo $first[0];  // this could output 'Philip';
>
> You can then look at mult

php-general Digest 2 Jan 2003 17:55:50 -0000 Issue 1799

2003-01-02 Thread php-general-digest-help

php-general Digest 2 Jan 2003 17:55:50 - Issue 1799

Topics (messages 129918 through 129966):

help with script!!
129918 by: Karl James
129919 by: Michael J. Pawlowsky
129920 by: Justin French

help with script
129921 by: Karl James
129922 by: Michael J. Pawlowsky

Re: How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL
129923 by: . Nilaab

Re: loading a db table into a php array from mysql
129924 by: Rick Widmer
129926 by: Rick Widmer

Re: Using mail() for mailist list app
129925 by: Rick Widmer
129940 by: Manuel Lemos

Re: creating a .doc file in php
129927 by: Chris Hewitt

Re: send page with https and php sessions problem
129928 by: Chris Hewitt

prevent session_replay
129929 by: scott
129934 by: Michael J. Pawlowsky
129941 by: Marek Kilimajer
129945 by: Michael J. Pawlowsky
129953 by: Chris Shiflett

Re: makeing an array
129930 by: Sean Malloy
129939 by: Ford, Mike   [LSS]
129942 by: Gerald Timothy Quimpo
129947 by: Ford, Mike   [LSS]

mail attachments
129931 by: Edward Peloke
129932 by: Marco Tabini
129933 by: Edward Peloke
129935 by: Michael J. Pawlowsky
129936 by: Manuel Lemos
129937 by: Adam Voigt
129943 by: Michael J. Pawlowsky

Re: Text repeating problem
129938 by: Ford, Mike   [LSS]

killing child process
129944 by: gamin
129946 by: Michael J. Pawlowsky
129952 by: Marek Kilimajer
129955 by: Michael J. Pawlowsky

Index page
129948 by: thkiat
129949 by: Michael J. Pawlowsky

Re: receiving XML stream as server via PHP
129950 by: Kristopher Yates
129951 by: Kristopher Yates
129954 by: Kristopher Yates

phpinfo() and HTTP_RAW_POST_DATA
129956 by: Kristopher Yates
129957 by: Chris Shiflett

Multidimensional Array manipluation...
129958 by: Dhaval Desai
129963 by: Chris Shiflett
129964 by: Dhaval Desai
129965 by: Chris Shiflett
129966 by: Dhaval Desai

Re: accelerator and Apache 2
129959 by: Gyozo Papp
129960 by: Gyozo Papp

Re: func_get_args() and call-by-reference?
129961 by: Atahualpa Jones

Re: mcrypt
129962 by: J Smith

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
HYPERLINK
"http://host.makethewebsecure.com/~admin12/do_adduser.phps"http://host.m
akethewebsecure.com/~admin12/do_adduser.phps
 
 
can someone take a look at this
and see why this wont work.
 
karl

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

--- End Message ---
--- Begin Message ---

Without the error message you are making it kind of tough.

What's the response that you get.

Also  you should use long HYPERLINK
>"http://host.makethewebsecure.com/~admin12/do_adduser.phps"http://host.m
>akethewebsecure.com/~admin12/do_adduser.phps
> 
> 
>can someone take a look at this
>and see why this wont work.
> 
>karl
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002





--- End Message ---
--- Begin Message ---
on 02/01/03 7:54 AM, Karl James ([EMAIL PROTECTED]) wrote:

> can someone take a look at this
> and see why this wont work.

why don't you start by telling us what's wrong, or HOW it "doesn't work"?

Justin


--- End Message ---
--- Begin Message ---
Sorry guys!!!
 
Well im trying to add the form to my database table.
Which is this link!!
 
HYPERLINK
"http://host.makethewebsecure.com/~admin12/show_adduser.html"http://host
.makethewebsecure.com/~admin12/show_adduser.html
 
then when I hit add user!!!
 
I get this error message
 

Added to auth_users:

Access denied for user: 'kjames@localhost' to database '
ultimatefootballleague_com'
 
Which is this site
HYPERLINK
"http://host.makethewebsecure.com/~admin12/do_adduser.php"http://host.ma
kethewebsecure.com/~admin12/do_adduser.php
 
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

--- End Message ---
--- Begin Message ---

There's your answer...
You do not have permission to insert into the database with that user.

Contact your DBA!   :-)

and if that's you read the MySQL manual.
Especially about the mysql.user table



*** REPLY SEPARATOR  ***

On 01/01/2003 at 1:19 PM Karl James wrote:
>
>Access denied for user: 'kja

php-general Digest 4 Jan 2003 18:21:57 -0000 Issue 1803

2003-01-04 Thread php-general-digest-help

php-general Digest 4 Jan 2003 18:21:57 - Issue 1803

Topics (messages 130209 through 130241):

Re: true ip tracking
130209 by: electroteque
130212 by: Jason Wong

Re: Still executing afte die()?
130210 by: Jason Wong
130213 by: Leif K-Brooks

Re: exec() not exec-ing?
130211 by: Jason Wong
130215 by: gilrain
130217 by: Jason Wong
130220 by: gilrain
130221 by: gilrain
130240 by: gilrain

Avoiding Repeat Posts
130214 by: OrangeHairedBoy
130218 by: Justin French
130219 by: OrangeHairedBoy
130223 by: Tularis
130225 by: Michael J. Pawlowsky
130233 by: Charles likes PHP
130237 by: Gyozo Papp

Re: Hello and help
130216 by: OrangeHairedBoy

PHP and MySQL bug
130222 by: Nuno Lopes
130226 by: Michael J. Pawlowsky
130239 by: OrangeHairedBoy
130241 by: Michael J. Pawlowsky

Re: Javascript broken!
130224 by: Sean Burlington

how to determine if the output has been flushed normally...
130227 by: Gyozo Papp
130229 by: Gyozo Papp

PHP vs. ASP
130228 by: Anthony Rodriguez
130234 by: Leon Mergen

REPOST: installation problems (php 4.2.3/mcrypt/curl)
130230 by: Michael Geier
130238 by: Michael J. Pawlowsky

help with preg_match
130231 by: Anders Thoresson
130235 by: Tracy Finifter Rotton

security in guest book and user forums
130232 by: Anders Thoresson

upgrading WAMP environment
130236 by: Anders Thoresson

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
its a bit tedious to make anonymous visotors register on the site to vote a
poll , so there is no other workaround then ?
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Saturday 04 January 2003 12:38, electroteque wrote:
> > hi i was wondering if there was a way to get the clients ip's behind
> > proxies that hide the HTTP_X_FORWARDED_FOR header ?
>
> No.
>
> > this is most important
> > for checking ips for polls except some proxies dont send this important
> > header ??
>
> It's not that important. In many cases it could very well be a private IP
> address and hence of dubious value.
>
> If the accuracy of the poll is important then only let registered and
logged
> in users take part in the poll. Even then, depending on your registration
> procedures, you may have people registering multiple times to cast
multiple
> votes.
>
> In short there is no surefire way of preventing people from voting more
than
> once.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> "From there to here, from here to there, funny things are everywhere."
> -- Dr. Seuss
> */
>



--- End Message ---
--- Begin Message ---
On Saturday 04 January 2003 14:32, electroteque wrote:
> its a bit tedious to make anonymous visotors register on the site to vote a
> poll , so there is no other workaround then ?

No. You could make them people pay a substantial sum of money for each vote 
they place -- that'll make them think twice before putting in multiple votes 
:)

But seriously, look in the archives the hows and whys have been covered quite 
comprehensively in the past.

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

/*
VMS is like a nightmare about RXS-11M.
*/


--- End Message ---
--- Begin Message ---
On Saturday 04 January 2003 13:44, Leif K-Brooks wrote:

As I understand it, your situation is this:

a) all your pages are named in lowercase

b) if someone tries to access a non-existent page on your site (eg using a URI 
which is not fully lowercase) they'll hit your 404.php

> But I only want it to insert if the page was all lowercase when they
> went to it. 

But if the page was all lowercase they wouldn't be hitting your 404.php page 
in the first place? Or am I missing something?

> I understand it continuing after redirecting, but why after
> die()ing too?  Putting the insert code into an else statment solved the
> problem, but it's ugly, and the question still remains... why does it do
> this?

It cannot continue after a die(), unless there's a bug in PHP. If you still 
think that it does then post your full code and the circumstances under which 
it happens.

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

/*
My nose feels like a bad Ronald Reagan movie ..

php-general Digest 5 Jan 2003 09:19:52 -0000 Issue 1804

2003-01-05 Thread php-general-digest-help

php-general Digest 5 Jan 2003 09:19:52 - Issue 1804

Topics (messages 130242 through 130301):

No Global Code Fixing
130242 by: Michael J. Pawlowsky
130244 by: Rasmus Lerdorf
130245 by: Michael J. Pawlowsky
130248 by: Michael J. Pawlowsky
130249 by: Tularis
130250 by: Jason Sheets

Re: security in guest book and user forums
130243 by: Seraphim
130246 by: Tularis
130254 by: Jason Wong
130285 by: Justin French
130286 by: Justin French

mssql functions
130247 by: Duncan

Re: One more form question
130251 by: Ford, Mike   [LSS]

Re: PHP and MySQL bug
130252 by: Stefan Hinz, iConnect \(Berlin\)
130253 by: Michael J. Pawlowsky

You gotta love it...
130255 by: Michael J. Pawlowsky
130256 by: Andy Turegano

Re: [PEAR-DEV] Announcing open CVS for phpDocumentor project
130257 by: Greg Beaver

I can't code today to save my life! :(
130258 by: Phil Powell
130259 by: Chris Hayes
130260 by: Michael J. Pawlowsky
130261 by: Michael J. Pawlowsky

Re: upgrading WAMP environment
130262 by: David T-G

counter problem
130263 by: Anthony Ritter
130265 by: Michael J. Pawlowsky
130266 by: Michael J. Pawlowsky
130270 by: Anthony Ritter
130281 by: Michael J. Pawlowsky

Second (Bizarre) Question regarding PHP and ASP
130264 by: Phil Powell
130267 by: Michael J. Pawlowsky
130268 by: Andrew Brampton
130273 by: Gerald Timothy Quimpo
130280 by: Phil Powell
130284 by: Michael J. Pawlowsky

Perl > PHP
130269 by: Sam
130275 by: Leif K-Brooks

web visitor viewing a script?
130271 by: Larry Brown
130277 by: Timothy Hitchens \(HiTCHO\)
130282 by: Michael J. Pawlowsky
130294 by: Larry Brown

PHP and empty() if form value is 0
130272 by: Phil Powell
130278 by: Michael Sims
130279 by: Phil Powell
130300 by: Michael Sims

Re: exec() not exec-ing?
130274 by: Brendon Gearin

Read-only gif support in 4.3.0
130276 by: Adam Plocher
130283 by: Michael J. Pawlowsky
130287 by: Adam Plocher
130288 by: Michael J. Pawlowsky
130289 by: Adam Plocher
130292 by: Rasmus Lerdorf
130293 by: Michael J. Pawlowsky

Function to catch all mySQL errors?
130290 by: Jeff Lewis
130291 by: Adam Plocher
130296 by: Michael J. Pawlowsky
130298 by: Tom Rogers

pack, unpack and little endian double values
130295 by: timmer

Re: Recommend payment processors?
130297 by: Jonathan Rosenberg \(Tabby's Place\)
130299 by: David McInnis

php4.3.0 & GD library
130301 by: thkiat

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Well I've been fixing up all my code (and other peoples which is worst) getting ready 
to do an upgrade to 4.3. and turning off globals and warnings on.

I very often move parameters that were once POSTed as a GETs.
For instance... some one does a search but is not logged in, they can see the results 
but don's see the "Edit" results button.
So they log in, and I send them back to the search they just did.

The first search is done by a POST and when I redirect them after the login it's done 
by a GET.

So I use to simply not specify if it was a GET or POST and looked to see if the var 
existed or not to see how to load that page.

Now I've been adding alot of:


if (isset($_POST['keyword'])){
$keyword = $_POST['keyword'];
}elseif (isset($_GET['keyword'])){
$keyword = $_GET['keyword'];
} else {
unset($keyword);
}


I suppose I could also do something like this (which is not much different)

 if(isset($_POST['keyword']) || isset($_GET['keyword'])){
$keyword = isset($_POST['keyword'])?$_POST['keyword']:$_GET['keyword'];
 }else{
   unset($keyword);
 }

I guess I could get rid of the unset, but I like it there just in case something 
earlier filled that puppy.

So I end up with alot of these right now at the top of each page.
Especially if the URI is something like 
http:www.mysite.com/index.php?this=that&id=1&lang=en&so=on&so=on&so=on&so=on&so=on&so=on

Know what I mean?

So just wondering if anyine had something really elegant to replace it.


Cheers,
Mike


--- End Message ---
--- Begin Message ---
Why don't you just use $_REQUEST['keyword'] ?

On Sat, 4 Jan 2003, Michael J. Pawlowsky wrote:

> Well I've been fixing up all my code (and other peoples which is worst) getting 
>ready to do an upgrade to 4.3. and turning off globals and warnings on.

php-general Digest 5 Jan 2003 21:27:01 -0000 Issue 1805

2003-01-05 Thread php-general-digest-help

php-general Digest 5 Jan 2003 21:27:01 - Issue 1805

Topics (messages 130302 through 130336):

Re: PHP and MySQL bug
130302 by: Nuno Lopes

array help please
130303 by: John Fishworld
130304 by: David T-G

undefining an array element
130305 by: David T-G
130308 by: Tom Rogers
130309 by: David T-G

'php_network_getaddresses'
130306 by: zzori

undocumented OOP feature/bug?
130307 by: Sean Malloy
130313 by: Jurre Thiel

php_admin values in httpd.conf
130310 by: Jochen Kaechelin
130311 by: Jurre Thiel
130327 by: Jason Wong

Re: security in guest book and user forums
130312 by: Jurre Thiel

Re: Perl > PHP
130314 by: Jurre Thiel
130318 by: Marek Kilimajer
130321 by: Jurre Thiel
130323 by: Mark Charette

Re: counter problem
130315 by: Anthony Ritter

Re: File Modification Date/Time
130316 by: Marek Kilimajer

Re: please help me, y have a error
130317 by: Marek Kilimajer

JPgraph Font Problems
130319 by: Alexandre Soares

[announce] AtomicBoard v0.6.1
130320 by: Vincent Vollers

web reload
130322 by: TACKEL
130325 by: Marek Kilimajer
130326 by: Jason Sheets
130329 by: Marek Kilimajer

Mysql update problems
130324 by: Jesse Lawrence
130328 by: Rick Emery
130330 by: Jason Wong
130331 by: Jesse Lawrence
130332 by: Rick Emery

.doc parsing class or function?
130333 by: James Brennan
130335 by: Sean Burlington

system()
130334 by: Richard Baskett

Re: php4.3.0 & GD library
130336 by: Philip Olson

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Here is the source code:

Seleccione a localização para o download:Localização Principal";
if ($mirrors) {
echo " Mirrors";
$m=explode("»",$mirrors);
foreach ($m as $v) {
$m2=explode("!",$v);
echo "$m2[0]";
}
echo "Nota: Deve escolher o mirror mais próximo da sua localização,
para acelerar o dowload. No caso de um mirror estar indisponível, utilize
outro.";
}
}
@MYSQL_CLOSE();
?>



--- End Message ---
--- Begin Message ---
can someone give me a bit of help / walthrough the following for me !
this first bits is okay
$mysql query1
result
array[cityid][cityname]

mysql query2
result
array[cityid][cityname]

now what i want to do is kick out any doubles in my array and resort them
alphebetically by cityname ?!


help !



--- End Message ---
--- Begin Message ---
John, et al --

...and then John Fishworld said...
% 
% can someone give me a bit of help / walthrough the following for me !

Let's see if I can help.


% this first bits is okay
% $mysql query1
% result
% array[cityid][cityname]
% 
% mysql query2
% result
% array[cityid][cityname]

Are CityIDs unique, like US-GA-ATL and CN-QC-MON or 214365 and 214387, or
is duplication possible?  If the IDs are unique then adding duplicates
won't cause duplicate entries.


% 
% now what i want to do is kick out any doubles in my array and resort them
% alphebetically by cityname ?!

Check out array_merge and array_multisort to put the two together and
sort on the second key, respectively.


% 
% 
% help !


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg91679/pgp0.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Hi, all --

If I have an array like

  $a1 = array ( 'a' => 'aaa' , 'b' => 'bbb' , 'c' => 'ccc' ) ;

and I want to completely remove 'b' from it (not just set $a1[b] to ""),
how do I undefine that element?


TIA & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg91679/pgp1.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Hi,

Sunday, January 5, 2003, 9:46:05 PM, you wrote:
DTG> Hi, all --

DTG> If I have an array like

DTG>   $a1 = array ( 'a' => 'aaa' , 'b' => 'bbb' , 'c' => 'ccc' ) ;

DTG> and I want to completely remove 'b' from it (not just set $a1[b] to ""),
DTG> how do I undefine that element?


DTG> TIA & HAND

DTG> :-D

unset($a1['b']);

-- 
regards,
Tom


--- End Message ---
--- Begin Message ---
Tom, et al --

...and then Tom Rogers said...
% 
% Hi,

Hi!


% 
% Sunday, January 5, 2003, 9:46:05 PM, you wrote:
% 
...
% DTG> how do I undefine

php-general Digest 6 Jan 2003 10:05:07 -0000 Issue 1806

2003-01-06 Thread php-general-digest-help

php-general Digest 6 Jan 2003 10:05:07 - Issue 1806

Topics (messages 130337 through 130374):

Advanced PHP Debugger
130337 by: Fredrik Johansson

Re: security in guest book and user forums
130338 by: Justin French

Re: PHP and MySQL bug
130339 by: David Freeman

Good Linux Admin Mail List
130340 by: Michael J. Pawlowsky

Unexpected $end error?
130341 by: Vincent Bouret
130342 by: Tom Rogers
130343 by: Rick Emery
130345 by: Michael J. Pawlowsky

How to get the mail sending stuff to work on Win2k?
130344 by: Rad Craig
130347 by: Andrew Brampton
130349 by: Rad Craig
130350 by: Rad Craig
130351 by: Manuel Lemos

Re: array help please
130346 by: David Freeman

Pass Variables
130348 by: Stephen
130352 by: Stephen
130359 by: Greg Beaver

Re: locally enabling register_globals?
130353 by: Daevid Vincent

Passing Query_String or variables through multiple pages?
130354 by: Noel Wade
130355 by: Justin French

Web Based PHP CVS
130356 by: Michael J. Pawlowsky
130357 by: Sterling Hughes

Re: undocumented OOP feature/bug?
130358 by: Greg Beaver

Zend IDE vs. PhpEd
130360 by: John Wells
130362 by: Sterling Hughes
130363 by: John Wells
130372 by: Mirek Novak
130373 by: Timothy Hitchens \(HiTCHO\)

Combine sockets and Header()
130361 by: Bobby Patel

Re: system()
130364 by: Jason Wong

printer_open
130365 by: Kathy
130366 by: Leif K-Brooks
130367 by: Jason Wong

emulate full post wth redirect
130368 by: Bobby Patel

emulate Post with redirect
130369 by: Bobby Patel
130370 by: Jason Wong

changing uid/gid
130371 by: Pupeno

email a web page
130374 by: DC

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
 Hi,

If someone out there has an .dll file for the Advanced PHP Debugger 
(APD) extension to run i Windows 2000 (PHP version 4.2.2) I would be 
glad if you could send it to me. I have tried to compile one myself but 
has failed each and every time :(

Regards,
Fredrik Johansson


--- End Message ---
--- Begin Message ---
on 05/01/03 11:54 PM, Jurre Thiel ([EMAIL PROTECTED]) wrote:

> The bad side of this that all other HTML tags than  and  will be
> removed.

So add some more tags!!  Gz!  Which would you prefer?  Pretty colours
and bold text, or a page full of unclosed tags, evil javascripts, and other
harmfull markup?

Let me know where your message board / guestbook's are on the web, and i'll
wrap a 



tag around my whole post... as soon as someone mouses over my guestbook
post, the window will close down :)


Justin French


--- End Message ---
--- Begin Message ---

 > @MYSQL_QUERY("UPDATE d SET h='$h' WHERE id='$id'"); // this
 > query doesn't work

Personally, I'd call it bad programming practice to do a database update
and not check to see if it worked or not.  In this case, how are you
determining that the query did not work?  Are you manually checking the
database?  You don't have anything in your code to check the status of
this query.

Perhaps this might get you somewhere:

$qid = @mysql_query("UPDATE d SET h = '$h' WHERE id = '$id'");

if (isset($qid) && mysql_affected_rows() == 1)
{
  echo "query executed";
} else {
  echo "query failed: " . mysql_error();
}

At least this way you might get some indication of where the problem is.

CYA, Dave




--- End Message ---
--- Begin Message ---

Perhaps a weird place to ask.. but, anyone have a really good (advanced without to 
many newbie questions) Linux System Administrators Mail List?

Thanks,
Mike




--- End Message ---
--- Begin Message ---
Can someone tell me why I keep getting that error:

Parse error: parse error, unexpected $end in D:\Program Files\Apache
Group\Apache2\htdocs\proxy\acc_new.php on line 62

line 62 refers to 

Thanks for your help

Vincent

Here is the content of acc_new.php




Account Management Tools - Add a new account





Accounts Management Tools
Add a new account

Username:
  

  Password:

Must contain between 4 and 20 characters.
  Firstname:

  
  Lastname:

  
  Email address:

  
  Usergroup:
  
  

  
   
   

  

  



Back to Account Management Tools




and here is the content of auth.php



and mysql.php





--- End Message ---
--- Begin Message ---
Hi,

Monday, January 6, 2003, 8:56:58 AM, you wrote:
VB> Can someone tell me why I keep getting that error:

VB> Parse error: parse error, unexpected $end in D:\Program Files\Apache
VB> Group\Apache2\htdocs\proxy\acc_new.php on line 62

VB> line 62 refers to 

VB> Thanks for your help

VB> Vincen

php-general Digest 7 Jan 2003 10:38:05 -0000 Issue 1808

2003-01-07 Thread php-general-digest-help

php-general Digest 7 Jan 2003 10:38:05 - Issue 1808

Topics (messages 130503 through 130551):

Re: mail() not working on Win2k
130503 by: Manuel Lemos
130507 by: Rad Craig
130513 by: Manuel Lemos

Directory Listing with php on unix boxes
130504 by: Joe Jeffcoat
130508 by: Joe Jeffcoat

re> Save Image?
130505 by: greg R

Re: MySQL vs PostgreSQL
130506 by: Jeffrey B. Ferland

Empty messages from PHP General...
130509 by: Richard Baskett

Parse source for braces
130510 by: Shawn McKenzie
130522 by: Greg Beaver

Re: time stamp screwing up
130511 by: Justin French

Re: Defaults in drop down list...
130512 by: Justin French
130514 by: Rick Widmer

PHP sendmail configuration
130515 by: Richard Baskett
130521 by: Peter Houchin
130545 by: Petre Agenbag

Double entry into MySQL..
130516 by: Altug Sahin

m SELECT
130517 by: Bruce Levick
130520 by: Steve Edberg
130523 by: Jason k Larson
130524 by: Bruce Levick

Re: Dreaded Return-Path and mail()
130518 by: David T-G
130519 by: Timothy Hitchens \(HiTCHO\)
130547 by: Petre Agenbag
130548 by: Timothy Hitchens \(HiTCHO\)

Using VS.NET for PHP Projects
130525 by: Sean Malloy

MySQL field to maintain formatting
130526 by: Vernon
130527 by: Jason Sheets

Access page via user & password
130528 by: Ezequiel Sapoznik
130529 by: Peter Houchin

populate a list menu
130530 by: Bruce Levick
130531 by: Jean-Christian Imbeault
130532 by: Justin French
130533 by: Bruce Levick
130534 by: Jean-Christian Imbeault
130537 by: Justin French

Using VS.NET for PHP Projects - Revisit
130535 by: Sean Malloy

Text editors
130536 by: Karl James

ftp and www
130538 by: Mukta Telang
130539 by: Jason k Larson

Re: progress page
130540 by: Nuno Lopes

XHTML Validator Problem
130541 by: Michael Egan

PHP Editors
130542 by: Nilza Lafayette
130549 by: Neil Freeman
130551 by: Khalid El-Kary

InStallation Error Of ZendStudio on win98
130543 by: Steven Seijmonsbergen
130544 by: Timothy Hitchens \(HiTCHO\)

Re: PHP and MySQL bug
130546 by: Nuno Lopes

Re: Creating an extra library
130550 by: Tom Vandeplas

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hello,

On 01/06/2003 01:21 PM, Rad Craig wrote:

I'm running under Win2k, new install of PHP(last week), I have been trying
to test the mail() function, but it doesn't seem to work.  I host my own
mail server on the same machine and I know it works, has been for months,
all other mail come/goes just fine.  I don't have the default SMTP server
for IIS installed since I have my own SMTP/POP3 mail server on this same
server.

I have tried it with the following:
mail("[EMAIL PROTECTED]", "test message", "this is a test");

I have SMTP authentication turned off on my mail server for this testing.

It never arrives, I never get an error.

I can telnet to port 25, all works fine.

phpinfo.php reports that everything looks good, only thing i saw was that
the extension directory shows c:\php4 instead of c:\php.

I don't have any extra .dll's or anything turned on since it has built-in
support for MySQL.


Have you tried this alternative as I suggested in this other message to 
you? Many people solved their problem with it, so can you.

http://news.php.net/article.php?group=php.general&article=130351


--

Regards,
Manuel Lemos

--- End Message ---
--- Begin Message ---
I can't use that as the program that I need for the email to work with, I
don't have access to it's mail() function...yet.

Rad...

> -Original Message-
> From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 4:28 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: mail() not working on Win2k
>
>
> Hello,
>
> On 01/06/2003 01:21 PM, Rad Craig wrote:
> > I'm running under Win2k, new install of PHP(last week), I have
> been trying
> > to test the mail() function, but it doesn't seem to work.  I host my own
> > mail server on the same machine and I know it works, has been
> for months,
> > all other mail come/goes just fine.  I don't have the default
> SMTP server
> > for IIS installed since I have my own SMTP/POP3 mail server on this same
> > server.
> >
> > I have tried it with the following:
> > mail("[EMAIL PROTECTED]", "test message", "this is a test");
> >
> > I have SMTP authentication turned off on my mail server for
> this testing.
> >
> > It never arrives, I never get an error.
> >
> > I can telnet to port 25, all works fine.
> 

php-general Digest 9 Jan 2003 23:44:09 -0000 Issue 1813

2003-01-09 Thread php-general-digest-help

php-general Digest 9 Jan 2003 23:44:09 - Issue 1813

Topics (messages 130923 through 131015):

Re: Adding HTTP URL Code
130923 by: Sean Burlington
130931 by: Robert Fisher

Can you insert into $_POST manually?
130924 by: Noel Wade
130927 by: Scott Houseman
130928 by: Noel Wade
130935 by: Philippe Saladin
130943 by: Marek Kilimajer
131001 by: Chris Shiflett
131011 by: Noel Wade

Re: session not set, server configuration?
130925 by: Noel Wade

Unable to load dynamic library ... php_gd.dll
130926 by: Even Thorbergsen

Re: how to make server response to emails
130929 by: See kok Boon
130961 by: Michael Sims

Re: PHP 4.3.0 with Oracle
130930 by: Thies C. Arntzen
130963 by: José Manuel Valente
130966 by: José Manuel Valente

Re: Databases vs. File Access
130932 by: David Eisenhart

grgrgrgr  other problem with location??
130933 by: Ysrael Guzmán
130941 by: Marek Kilimajer

session problem
130934 by: Supra

how to passing two dimension array
130936 by: Rizki Salamun
130940 by: Marek Kilimajer
130945 by: Rizki Salamun
130949 by: Marek Kilimajer

I have a problem while installing...
130937 by: Terry Lau
130944 by: Marek Kilimajer

Re: graph libs
130938 by: Marek Kilimajer

Re: Double entry into MySQL..
130939 by: Marek Kilimajer

Re: PHP / GnuPG problem with Fopen
130942 by: Clint Fern

i want to send 2 variables
130946 by: Ysrael Guzmán
130947 by: Joshua Pierre
130952 by: rw.xend.net

calculate the traffic size with php(like the apache access_log)
130948 by: Torsten Rosenberger
130950 by: Marek Kilimajer

Having / not posted to MySQL Database
130951 by: Vernon
130955 by: Adam Voigt

Informing a User of an Illegal Character in a post
130953 by: Vernon

problem with forms and sessions
130954 by: scott

forms and sessions ?
130956 by: scott
130973 by: Munir

php and asp
130957 by: Jerry M. Howell II
130959 by: Adam Voigt
130960 by: Clint Tredway
131005 by: Khalid El-Kary

Re: XML File does not reflect changes upon reopen - HELP
130958 by: Marek Kilimajer

undefined variable notice - how to furn of
130962 by: Borut Kovacec
130975 by: Joseph W. Goff
131002 by: Gurvinder Singh

flash and php (using the varibles)
130964 by: - \[ Paul Ferrie \] -
130968 by: Philipp Hartmann

Reading Registry
130965 by: Christopher Ditty
130967 by: Kansu Dinçer

Re: undefined variable notice - how to furn of[Scanned]
130969 by: Michael Egan

Re: apache and php
130970 by: Gareth Thomas

newbee
130971 by: Hendrik van Niekerk
130976 by: Joseph W. Goff
130980 by: Hendrik van Niekerk
130992 by: Joseph W. Goff
131009 by: Hendrik van Niekerk

mail submission... from flash
130972 by: travis
130981 by: Jason Wong
130982 by: travis
131007 by: travis

Newbee observation
130974 by: Hendrik van Niekerk
130977 by: Tom Ray
130979 by: Larry Brown

Interesting timeout issue
130978 by: Ben Vaughn
131004 by: Ben Vaughn

another 4.3.0 issue?
130983 by: john

Dynamic menu from DB
130984 by: Cesar Aracena
130991 by: Marek Kilimajer

checkboxes, radio buttons and $_POST['']
130985 by: John-Erik Omland
130986 by: Tim Ward
130988 by: Marek Kilimajer

Sessions and Frames...
130987 by: Dale Schell

Re: fletcher's checksum
130989 by: Ford, Mike   [LSS]
131006 by: Dave Gervais

Re: float precision
130990 by: Ford, Mike   [LSS]

Re: [PHP-DEV] Terminal text objects (PHP CDK NCURSES)
130993 by: Dave Mertens

Re: ftp_put: permission denied
130994 by: Oliver Witt

building web album - design questions
130995 by: Anders Thoresson
130997 by: bbonkosk.tampabay.rr.com
130998 by: Rick Emery
131000 by: Kevin Stone
131003 by: Chris Wesley

Re: session_destroy problem
130996 by: Ken Nagorski

"re-throw" from custom error handler?  error patterns?
130999 by: kellan

PHP/Oracle  Command line Segmentation Fault
131008 by: Christopher Ditty

Auto Include a Function
131010 by: Brian T. Allen

php stored in mysql
131012 by: Paul Roberts
131015 by: Paul Roberts

Re: unlink ($files);
131013 by: Brian T. Allen

php, and  svg problem
131014 by: Gil Perez

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

php-general Digest 11 Jan 2003 12:20:39 -0000 Issue 1816

2003-01-11 Thread php-general-digest-help

php-general Digest 11 Jan 2003 12:20:39 - Issue 1816

Topics (messages 131210 through 131239):

Re: Make fil downloadable
131210 by: Timothy Hitchens \(HiTCHO\)
131211 by: Stephen
131213 by: Timothy Hitchens \(HiTCHO\)
131214 by: Stephen
131217 by: Timothy Hitchens \(HiTCHO\)
131218 by: Stephen
131219 by: Stephen

php with mime magic?
131212 by: Rob Brandt

Re: session_destroy problem
131215 by: Tamás Árpád
131232 by: Larry Brown
131239 by: Tamás Árpád

Re: Source Guardian
131216 by: UberGoober
131224 by: michael kimsal
131226 by: Sean Malloy
131227 by: michael kimsal

Suggestions on FAQ application?
131220 by: Jeff Lewis
131221 by: Timothy Hitchens \(HiTCHO\)
131222 by: Jeff Lewis
131223 by: Sean Malloy
131225 by: michael kimsal

Re: Medium to Large PHP Application Design
131228 by: Manuel Lemos

Re: how to passing two dimension array
131229 by: Rizki Salamun

Re: Encrypt in Javascript and Decrypt in PHP
131230 by: Gerald Timothy Quimpo

Binary data confusion
131231 by: Clay Loveless
131233 by: Clay Loveless

Session vars vs. POST/GET vars?
131234 by: Noel Wade
131235 by: Noel Wade
131236 by: Jason k Larson

Using $vars from include()d functions in the main programm and other functions
131237 by: ben9000

version confusion - please help
131238 by: Christian Stalberg

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
You need to send headers to tell the browser how to handle it see:
header(); or.. if it is a php file and you want the visitor to
see/download the source you would be better off giving it another
extension eg .phps or .txt etc or have a handler file that did a
readfile after sending headers.


Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED] 


-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, 11 January 2003 10:17 AM
To: PHP List
Subject: [PHP] Make fil downloadable


I need to somehow make it so when a user clicks a link, then get
displayed the download dialogue for the file. The file is a .php file so
I'm not sure how this is done but I've seen it been done before. How can
you do this?

Thanks,
Stephen Craton
http://www.melchior.us

"What's the point in appearance if your true love, doesn't care about
it?" -- http://www.melchior.us


--- End Message ---
--- Begin Message ---
It's a dynamically created file the user downloads and uses later as a PHP
script. If I put header() in it, that would make it downloadable again when
the user uses it on his/her server, wouldn't it?


- Original Message -
From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]>
To: "'Stephen'" <[EMAIL PROTECTED]>; "'PHP List'"
<[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 7:24 PM
Subject: RE: [PHP] Make fil downloadable


: You need to send headers to tell the browser how to handle it see:
: header(); or.. if it is a php file and you want the visitor to
: see/download the source you would be better off giving it another
: extension eg .phps or .txt etc or have a handler file that did a
: readfile after sending headers.
:
:
: Timothy Hitchens (HiTCHO)
: Open Platform Consulting
: e-mail: [EMAIL PROTECTED]
:
:
: -Original Message-
: From: Stephen [mailto:[EMAIL PROTECTED]]
: Sent: Saturday, 11 January 2003 10:17 AM
: To: PHP List
: Subject: [PHP] Make fil downloadable
:
:
: I need to somehow make it so when a user clicks a link, then get
: displayed the download dialogue for the file. The file is a .php file so
: I'm not sure how this is done but I've seen it been done before. How can
: you do this?
:
: Thanks,
: Stephen Craton
: http://www.melchior.us
:
: "What's the point in appearance if your true love, doesn't care about
: it?" -- http://www.melchior.us
:
:
: --
: PHP General Mailing List (http://www.php.net/)
: To unsubscribe, visit: http://www.php.net/unsub.php
:
:
:



--- End Message ---
--- Begin Message ---
eg:

Download File Click Here

Now in the file.php you have:



This won't put the headers into the downloaded file and remember to
change the xxx.php into the file
to be delivered and the xxx.php in the header to the name you would like
them to save as.

* the file.php in the top is not the real file but a script that reads
into the buffer the real file!!



Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]

> -Original Message-
> From: Stephen [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, 11 January 2003 10:29 AM
> To: Timothy Hitchens (HiTCHO)
> Cc: PHP List
> Subject: Re: [PHP] Make fil downloadable
> 
>

php-general Digest 12 Jan 2003 00:36:55 -0000 Issue 1817

2003-01-11 Thread php-general-digest-help

php-general Digest 12 Jan 2003 00:36:55 - Issue 1817

Topics (messages 131240 through 131286):

Change Date
131240 by: Naqashzade, Sadeq
131242 by: Thomas Seifert
131243 by: Naqashzade, Sadeq
131249 by: Thomas Seifert
131272 by: Jason Wong

Re: Using $vars from include()d functions in the main programm and other functions
131241 by: Thomas Seifert

count characters without space
131244 by: harald.mohring.gmx.de
131246 by: Gerald Timothy Quimpo
131256 by: Jeffrey B. Ferland

Make thumbnail online
131245 by: Naqashzade, Sadeq
131250 by: Thomas Seifert
131283 by: Hugh Danaher

Date Comparison
131247 by: Dhaval Desai
131248 by: Matt
131273 by: Jason Wong

COM object
131251 by: jlord2002.libero.it
131252 by: Marco Tabini

How I can get one line from a file?
131253 by: Joskey Liaus
131254 by: Marco Tabini
131258 by: Gerald Timothy Quimpo

Re: Suggestions on FAQ application?
131255 by: Jeffrey B. Ferland
131259 by: John Nichel
131262 by: Jeff Lewis
131263 by: Jeff Lewis
131285 by: The Head Sage

Problem with Search Engine Friendly URLs under PHP & Windows XP
131257 by: Jonathan Chum
131261 by: Gerard Samuel
131267 by: Jonathan Chum

Re: Template tutorials?
131260 by: David Eisenhart

XML Cleanup Regex
131264 by: Gerard Samuel

Re: Is this possible with php?
131265 by: Rasmus Lerdorf
131268 by: Chris Hewitt
131269 by: Chris Hewitt

Sorting arrays
131266 by: Chris Kay

Free web-hosting
131270 by: Anton Gladky

php5 cvs
131271 by: electroteque
131286 by: Danny Shepherd

Re: Session vars vs. POST/GET vars?
131274 by: Jason Wong
131276 by: Jason Wong

global to superglobal
131275 by: pippo.bellnet.ca
131278 by: Jason Wong
131282 by: pippo.bellnet.ca

Re: version confusion - please help
131277 by: Jason Wong

Re: Loading Information into an array.
131279 by: Jason Wong

rintones using php
131280 by: Arvindv
131281 by: Arvindv

fopen with nasty pathnames
131284 by: Mat Harris

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi,
How can I find time stamp for example 125 next days. or 03:30 hours next?

Regards,
S. Naqashzade
PS: Sorry for my bad english :-(



--- End Message ---
--- Begin Message ---
http://de.php.net/manual/en/function.mktime.php

The most important part is 
"mktime() is useful for doing date arithmetic and validation, as it will automatically 
calculate the correct value for out-of-range input."



Thomas

On Sun, 11 Jan 2004 16:12:01 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade) wrote:

> Hi,
> How can I find time stamp for example 125 next days. or 03:30 hours next?
> 
> Regards,
> S. Naqashzade
> PS: Sorry for my bad english :-(
> 
> 

--- End Message ---
--- Begin Message ---

So Thanks, but can you get me some example code?

Regards,
Sadeq

"Thomas Seifert" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> http://de.php.net/manual/en/function.mktime.php
>
> The most important part is
> "mktime() is useful for doing date arithmetic and validation, as it will
automatically calculate the correct value for out-of-range input."
>
>
>
> Thomas
>
> On Sun, 11 Jan 2004 16:12:01 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade) wrote:
>
> > Hi,
> > How can I find time stamp for example 125 next days. or 03:30 hours
next?
> >
> > Regards,
> > S. Naqashzade
> > PS: Sorry for my bad english :-(
> >
> >



--- End Message ---
--- Begin Message ---

i.e.
// getting the current time in an array
$timeval=localtime();

// we want the time 3 hours in the future
$timeval[2] = $timeval[2]+3;

// calc the new timestamp
$timestamp=mktime ($timeval[2], $timeval[1], $timeval[0], $timeval[4], $timeval[3], 
i$timeval[5]);



An even better solution, you are talking about a unix-timestamp, right?

just add or subtract the the seconds from the current timestamp,
i.e.

// get the current timestamp
$timestamp=time();

// 1 minute = 60 seconds, 1 hour = 60 minutes, therefore 1 hour = 60*60 = 3600 seconds
// so we add 3600*3 to have the time in 3 hours
$timestamp = $timestamp + (3600*3);

// you can convert this time back to a readable format using strftime



Regards,

Thomas

On Sun, 11 Jan 2004 16:22:08 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade) wrote:

> 
> So Thanks, but can you get me some example code?
> 
> Regards,
> Sadeq
> 
> "Thomas Seifert" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > http://de.ph

php-general Digest 12 Jan 2003 12:39:48 -0000 Issue 1818

2003-01-12 Thread php-general-digest-help

php-general Digest 12 Jan 2003 12:39:48 - Issue 1818

Topics (messages 131287 through 131328):

Simple Form Processing
131287 by: Kyle Babich
131299 by: Justin French
131328 by: Kyle Babich

Some help on PHP & HTML please
131288 by: Denis L. Menezes
131289 by: Daniel Kushner

Sorry, PHP & HTML
131290 by: Denis L. Menezes
131294 by: Timothy Hitchens \(HiTCHO\)
131298 by: Larry Brown

Permission Denied
131291 by: Stephen
131295 by: Stephen
131300 by: jacob.keystreams.com
131321 by: Jason Wong

Re: php5 cvs
131292 by: electroteque
131315 by: electroteque
131317 by: Sean Malloy
131323 by: electroteque
131325 by: Zeev Suraski
131327 by: electroteque

Re: global to superglobal
131293 by: Greg Beaver

Re: fopen with nasty pathnames
131296 by: Gerald Timothy Quimpo
131324 by: Mat Harris

displaying in the table problem
131297 by: Denis L. Menezes

Re: rintones using php
131301 by: Justin French

Uploading images to a particular folder in the server
131302 by: Denis L. Menezes
131303 by: Rick Emery
131320 by: Jason Wong

Changing permissions with mkdir?
131304 by: Ben Cheng
131310 by: Timothy Hitchens \(HiTCHO\)
131319 by: Jason Wong

Format tables!!
131305 by: Karl James
131309 by: Justin French

Amount of data in the database
131306 by: Denis L. Menezes
131307 by: Timothy Hitchens \(HiTCHO\)
131311 by: Denis L. Menezes
131312 by: Timothy Hitchens \(HiTCHO\)

OOP for Web Programming Paradigm
131308 by: Victor

Re: version confusion - please help
131313 by: Jesse Cablek

Re: php-general Digest 27 Mar 2002 13:15:24 - Issue 1251
131314 by: DCnFamily.aol.com

test
131316 by: Karl James
131318 by: Philip J. Newman

highlight keywords issue
131322 by: Hatem Ben

strip php tags from code ?
131326 by: David D

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I just broke skin with php and I'm learning forms, which I'm not good
with at all.  These are snippets from post.html:


and




but how would I pass the actual image on because when I do something like
this:

as you could probably guess only the filename prints.

So how do I take the image instead of just the filename?

Thank you,
--
Kyle

--- End Message ---
--- Begin Message ---
Hi,

the files themselves are available in the $_FILES array, but it's not as
simple as that.

may i recommend you start by copying the Examples 18-1 and 18-2 from this
page:
http://www.php.net/manual/en/features.file-upload.php

Once you've got THAT code working smoothly and understand what's happening,
THEN start modifying it to a 3-file form.

I'd personally push forms through using POST method rather than get whenever
possible -- especially when dealing with files... the manual does it this
way too :)


Justin



on 12/01/03 12:18 PM, Kyle Babich ([EMAIL PROTECTED]) wrote:

> I just broke skin with php and I'm learning forms, which I'm not good
> with at all.  These are snippets from post.html:
> 
> 
> and
> 
> 
> 
> 
> but how would I pass the actual image on because when I do something like
> this:
>  ?>
> as you could probably guess only the filename prints.
> 
> So how do I take the image instead of just the filename?
> 
> Thank you,
> --
> Kyle


--- End Message ---
--- Begin Message ---
This is what I tried:

if (is_uploaded_file($HTTP_POST_FILES['image1']['image1']) {
move_uploaded_file($HTTP_POST_FILES['image1']['image1'], 
"$DOCUMENT_ROOT/images/$file");
}

and also this:

if (is_uploaded_file($_FILES['image1']['image1']) {
move_uploaded_file($_FILES['image1']['image1'], "$DOCUMENT_ROOT/images/$file");
}

and this:

if (is_uploaded_file($_FILES['image1']['image1'])) {
copy($_FILES['image1']['image1'], "$DOCUMENT_ROOT/images");
}

,the image (which was within the size range) was never uploaded.  I have
a feeling that I am makeing 1 or 2 of the same mistakes in all three but
through my experimenting and reading I am having no luck.  I also bought
Programming PHP but I trust it less and less as I even find simple
mistakes like missing quotes in example code.  So what's going wrong?

Thank you again,
Kyle

On Sun, 12 Jan 2003 15:17:42 +1100, "Justin French"
<[EMAIL PROTECTED]> said:
> Hi,
> 
> the files themselves are available in the $_FILES array, but it's not as
> simple as that.
> 
> may i recommend you start by copying the Examples 18-1 and 18-2 from this
> page:
> http://www.php.net/manual/en/features.file-upload.php
> 
> Once you've got THAT code working smoothly and unders

php-general Digest 13 Jan 2003 01:21:46 -0000 Issue 1819

2003-01-12 Thread php-general-digest-help

php-general Digest 13 Jan 2003 01:21:46 - Issue 1819

Topics (messages 131329 through 131381):

Re: strip php tags from code ?
131329 by: Matt
131330 by: Timothy Hitchens \(HiTCHO\)

Re: highlight keywords issue
131331 by: Timothy Hitchens \(HiTCHO\)
131370 by: Hatem Ben
131374 by: Hatem Ben

Re: Simple Form Processing
131332 by: Justin French
131334 by: Jason Wong

php editor
131333 by: Hannes Smit
131335 by: Jason Wong
131336 by: rush
131363 by: Steven Balthazor

return last update for a whole website?
131337 by: arnaud gonzales

SESSION variable to pass login ID
131338 by: Willie G
131341 by: Tom Rogers
131348 by: Willie G
131349 by: Nova
131350 by: Willie G
131351 by: John W. Holmes

File information JPEG Files
131339 by: harald.mohring.gmx.de
131340 by: Warren Vail
131342 by: Tom Rogers

Phorum 3.4 Released!
131343 by: Brian Moon

count characters
131344 by: harald.mohring.gmx.de
131345 by: Reuben D. Budiardja
131346 by: Jason Sheets

Pre-built CMS - Anyone recommend one?
131347 by: Nick Wilson
131354 by: Chris Hayes
131358 by: Chris Mason

test
131352 by: Karl James
131353 by: Karl James
131355 by: Karl James
131356 by: Karl James

Sorry about that guys,
131357 by: Karl James

What means  "ioctl"
131359 by: harald.mohring.gmx.de
131360 by: Rick Emery
131364 by: Nova
131376 by: nicos.php.net

PHP/MySQL help?
131361 by: Steven M
131362 by: Johannes Schlueter
131366 by: Steven M
131368 by: Timothy Hitchens \(HiTCHO\)
131371 by: Steven M
131375 by: Timothy Hitchens \(HiTCHO\)
131380 by: Steven M

Re: Permission Denied
131365 by: Stephen
131367 by: Timothy Hitchens \(HiTCHO\)

Re: OOP for Web Programming Paradigm
131369 by: olinux
131381 by: Victor

using "getimagesize" to read out image informations form local harddrive
131372 by: harald.mohring.gmx.de
131378 by: Nova

object in session & security
131373 by: Hannes Smit
131377 by: Timothy Hitchens \(HiTCHO\)

Re: php5 cvs
131379 by: Sean Malloy

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
>- Original Message -
>From: "David D" <[EMAIL PROTECTED]>
>Sent: Monday, January 06, 2003 7:47 AM
>Subject: [PHP] strip php tags from code ?


> I only want to keep html code of a page.
> I want to remove php tags.

It sound like you want the parser output of the page.  You can use PHPs
output control to buffer the page output, and capture it into a variable to
do whatever you want with it.

http://www.php.net/manual/en/ref.outcontrol.php

Alternately, you can find a template class that does it.



--- End Message ---
--- Begin Message ---
So you want to remove only the unparsed/raw php script blocks.

Why... are you displaying PHP without parsing??

If this is the case you can write a couple of very simple preg_replace
with a call
back and all is done.



Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]

> -Original Message-
> From: David D [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, 6 January 2003 10:48 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] strip php tags from code ?
> 
> 
> I only want to keep html code of a page.
> I want to remove php tags.
> Some tell that strip_tags is not adapted.
> 
> sample of what i want to do:
> 
> na
> 
> 
> ->
> 
> na
> 
> 
> php tags can be :
> or 
> or   /i
> 
> Merci.
> 
> 
> 
> ..
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--- End Message ---
--- Begin Message ---
You will need to break apart the entire document then process each area
inside of the
tags and to be very careful for nested tags.

The simplest way around I have found to do with is to add to tags that
have been processed
with attributes that are ignored by the browser renderer eg... PHP
as you can see the  -Original Message-
> From: Hatem Ben [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, 12 January 2003 7:24 PM
> To: PHP List
> Subject: [PHP] highlight keywords issue
> 
> 
> Heya all,
> 
> I'm trying to highlight search keywords in a string, 
> everything work expect when this keyword is inside a tag like this :
> 
> keyword (php) :
> 
> php
> 
> 
> 
> will be highlighted to :
> 
>  #66">php"> style="color: black; background-color: #66">php
> 
>  #66">php.gif" border=0 alt="php.net">
> 
> I have tryed to separate text from html, then highlight it 
> then join

php-general Digest 13 Jan 2003 13:27:33 -0000 Issue 1820

2003-01-13 Thread php-general-digest-help

php-general Digest 13 Jan 2003 13:27:33 - Issue 1820

Topics (messages 131382 through 131431):

Free web-hosting
131382 by: Rambler

Does PHP's imap_utf7_en/decode compatible with Microsoft Outlook Express?
131383 by: Hunte Swee

php_network_getaddresses()
131384 by: Stanislav Skrypnik
131385 by: Jason Sheets

Re: Permission Denied
131386 by: Stephen
131387 by: Sean Malloy
131389 by: Timothy Hitchens \(HiTCHO\)

Re: php5 cvs
131388 by: daniel

Favorite Email validation routine?
131390 by: Peter Janett
131391 by: Manuel Lemos
131392 by: Justin French
131393 by: Justin French

Re: Pre-built CMS - Anyone recommend one?
131394 by: Jason Wong

class inside class
131395 by: Michael Hall
131400 by: Hatem Ben
131414 by: . Nilaab
131425 by: Michael Hall

Png Could not find/open font
131396 by: Breno Cardoso Perucchi
131397 by: Timothy Hitchens \(HiTCHO\)
131398 by: Jason k Larson

Sessions 'funny' and Zone Alarm Pro 3
131399 by: Neil Stirton

True type font errors . Help me
131401 by: Breno Cardoso Perucchi
131402 by: Torsten Rosenberger

stupid question (Back Function)
131403 by: Remon Redika
131404 by: Sean Malloy

"document contained no data"
131405 by: Justin French
131415 by: Marek Kilimajer
131417 by: Jason Wong
131420 by: Justin French
131423 by: Justin French
131424 by: Marek Kilimajer

Re: Encrypt in Javascript and Decrypt in PHP
131406 by: Marek Kilimajer

Re: occasional mcrypt problems
131407 by: Marek Kilimajer

Can I Copy a directory using PHP?
131408 by: Alex Ciurea
131410 by: Timothy Hitchens \(HiTCHO\)
131413 by: rw.xend.net

Re: Loading Information into an array.
131409 by: Marek Kilimajer

Session wierdness...
131411 by: Duncan Abbott
131412 by: Timothy Hitchens \(HiTCHO\)

Session wierdness
131416 by: Duncan Abbott

Windows - PHP.INI
131418 by: Naqashzade, Sadeq

pls help with session
131419 by: James Tan
131422 by: Jason k Larson

Need some help in "exec"-attack
131421 by: Alex Ciurea
131427 by: Jason Wong
131429 by: Alex Ciurea
131430 by: Alex Ciurea
131431 by: Jason Wong

attachment problem
131426 by: Lars Olsson
131428 by: Timothy Hitchens \(HiTCHO\)

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hello everybody!
Can anybody advice me the best free web-hosting with PHP?
Thank you.


--- End Message ---
--- Begin Message ---
Hi all,

It seems true that php's imap_utf7_en/decode does not compatible with
microsoft outlook express.
We create imap folder(include chinese chars) using IMP, all it ok in IMP
problem, but when use OE
to connect to imap server, the folder can't be shown correctly. And vice
versa.

So my problem is what is wrong? PHP or Outlook Express?

Hunte
Thanks





--- End Message ---
--- Begin Message ---
Hi all,
I have the problem with this peace of code.
This code has to include file containing some Javascript functions.
http://mysite/";);
$javascript=PATH."inc/javascript_functions.js";
include ($javascript);
?>

When I run this I got message:

"Warning: php_network_getaddresses: getaddrinfo failed: Temporary failure in
name resolution in /physical/location/inc/my_file.php on line 5
Warning: Failed opening 'http://mysite/inc/javascript_functions.js' for
inclusion (include_path='.:/php/includes:/usr/share/php') in
/physical/location/inc/my_file.php on line 5"

I was trying to find info about php_network_getaddresses() but no luck.
Any help would be very appreciated.
Stas.



--- End Message ---
--- Begin Message ---
Include will evaluate the file as PHP code, that most likely is not what
you want it to do.  Take a look at file_get_contents(), manual page
available at http://www.php.net/manual/en/function.file-get-contents.

Jason

phpSun, 2003-01-12 at 19:36, Stanislav Skrypnik wrote:
> Hi all,
> I have the problem with this peace of code.
> This code has to include file containing some Javascript functions.
>  //my_file.php
> define ("PATH", "http://mysite/";);
> $javascript=PATH."inc/javascript_functions.js";
> include ($javascript);
> ?>
> 
> When I run this I got message:
> 
> "Warning: php_network_getaddresses: getaddrinfo failed: Temporary failure in
> name resolution in /physical/location/inc/my_file.php on line 5
> Warning: Failed opening 'http://mysite/inc/javascript_functions.js' for
> inclusion (include_path='.:/php/includes:/usr/share/php') in
> /physical/location/inc/my_file.php on line 5"
> 
> I was trying to find inf

php-general Digest 14 Jan 2003 13:36:55 -0000 Issue 1822

2003-01-14 Thread php-general-digest-help

php-general Digest 14 Jan 2003 13:36:55 - Issue 1822

Topics (messages 131498 through 131543):

Re: forms
131498 by: Rick Emery
131499 by: Cal Evans
131500 by: cj
131502 by: David Freeman
131505 by: Chris Shiflett
131507 by: cj
131509 by: Chris Shiflett
131510 by: Rick Emery
131518 by: cj
131520 by: Jason Wong

Re: pass by reference
131501 by: Tom Rogers

cprelogin cookie data
131503 by: Robert Samuel White

Getting info with WHILE
131504 by: Ezequiel Sapoznik
131508 by: Tom Rogers

quota class?
131506 by: UberGoober

increment numbers...
131511 by: Senani
131512 by: Sean Malloy
131513 by: Senani
131514 by: Rick Emery
131516 by: Senani

Re: occasional mcrypt problems
131515 by: Steve Yates
131517 by: Steve Yates

imap quota
131519 by: Roger Thomas

Re: Error in variable when looping
131521 by: menezesd
131523 by: Tim Ward
131536 by: menezesd
131538 by: Tim Ward

restore_error_handler() to default error handler
131522 by: Brian T. Allen
131541 by: Michael Sims

Re: Weird Errors
131524 by: Tim Ward

Re: permission denied
131525 by: Lars Olsson

Re: problems to get image informations form local harddrive using "getimagesize"
131526 by: Lars Olsson

Re: imap_open failure
131527 by: Lars Olsson

regular expression
131528 by: Corin Langosch
131532 by: Chris Hayes

HTTP_ACCEPT - Reliabilty?
131529 by: SED
131530 by: Danny Shepherd

upgrading from 4.0.6 to 4.3.0
131531 by: gamin
131533 by: Jean-Christian Imbeault

Serial device /dev/ttyS0
131534 by: Scott Houseman

globals off in function
131535 by: Michael Bevz
131537 by: Jason Wong
131539 by: Chris Hayes

Cookie, header, output problems
131540 by: J. Alden Gillespy

Persistent global data ?
131542 by: Mathias Rockel

Re: Amount of data in the database
131543 by: Lars Olsson

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Do you mean like two SUBMIT buttons?  Yes.
- Original Message - 
From: "cj" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 7:32 PM
Subject: [PHP] forms


G'day All
Just a quick question
This is really a html more than a php question.

Is it possible to have two buttons and have different actions for each
button in the same form?

Thanks
CJ





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




--- End Message ---
--- Begin Message ---
yes but it's more of an HTML/JavaScript thing.

use INPUT Type='BUTTON' to put a second button on your form.  Then use the
onClick method to assign an action to it.  If you want it to submit your
form then call document.formName.submit();

=C=

*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*


-Original Message-
From: cj [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 7:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms


G'day All
Just a quick question
This is really a html more than a php question.

Is it possible to have two buttons and have different actions for each
button in the same form?

Thanks
CJ





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



--- End Message ---
--- Begin Message ---
Would you know of any tutorial web sites which would explain how to do this?
As I have not done any java programing before.

-Original Message-
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 14 January 2003 12:43 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] forms


yes but it's more of an HTML/JavaScript thing.

use INPUT Type='BUTTON' to put a second button on your form.  Then use the
onClick method to assign an action to it.  If you want it to submit your
form then call document.formName.submit();

=C=

*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*


-Original Message-
From: cj [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 7:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms


G'day All
Just a quick question
This is really a html more than a php question.

Is it possible to have two buttons and have different actions for each
button in the same form?

Thanks
CJ





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


--- End Message ---
--- Begin Message ---
G'day CJ

 > This is really a html more than a php question.

Yep, it probably is...

 > Is it possible to have two buttons and have different
 > actions for 

php-general Digest 15 Jan 2003 13:42:26 -0000 Issue 1824

2003-01-15 Thread php-general-digest-help

php-general Digest 15 Jan 2003 13:42:26 - Issue 1824

Topics (messages 131642 through 131700):

Re: Next and Previous
131642 by: Matt
131645 by: Miguel Brás

Re: PHP & RTF
131643 by: [-^-!-%-
131647 by: Jason Reid

Re: emptying hte array??
131644 by: Jason k Larson

Re: attach image with the mail command?
131646 by: Rick Emery
131655 by: Manuel Lemos

Advanced Search
131648 by: rw.xend.net
131650 by: Andrew Brampton
131651 by: Jean-Christian Imbeault

Re: Trapping PHP errors
131649 by: Jean-Christian Imbeault
131656 by: Michael Sims

Gotchas with Php and Postgresql?
131652 by: John Wells
131657 by: Jason k Larson

Setcookie() and header()
131653 by: J. Alden Gillespy
131658 by: Jason k Larson
131660 by: Michael Sims
131661 by: J. Alden Gillespy
131663 by: Michael Sims

Re: Favorite Email validation routine?
131654 by: Daevid Vincent

Calendar problem
131659 by: menezesd

Save Dialog
131662 by: Richard Rojas

update more "same" fields at the same time
131664 by: Simon
131666 by: Chris Hayes
131667 by: Simon
131668 by: Giannis Vrentzos
131669 by: Simon
131678 by: Giannis Vrentzos
131680 by: Giannis Vrentzos
131682 by: Simon
131684 by: Giannis Vrentzos
131686 by: Simon
131698 by: Giannis Vrentzos

Re: Persistent global data ?
131665 by: Mathias Rockel

Question about $_GET
131670 by: Frank Keessen
131671 by: Danny Shepherd
131672 by: Marek Kilimajer
131673 by: Frank Keessen
131674 by: Jason k Larson
131675 by: Jason k Larson
131676 by: Chris Hayes
131677 by: Marek Kilimajer
131681 by: TomH
131683 by: Jason Wong
131685 by: Rick Emery

Re: MySQL problem with RedHat 8
131679 by: Daniel Elenius

dynamic variables in a while loop?
131687 by: Philipp Hartmann
131690 by: Rick Emery
131693 by: Ford, Mike   [LSS]
131700 by: Philipp Hartmann

Can someone help me with this code please?
131688 by: Phil Powell

sending array
131689 by: Danielle van Gladbach
131691 by: Rick Emery
131692 by: Jason Wong
131694 by: Foong
131695 by: Danielle van Gladbach
131696 by: Mark Charette

php obj -> xml ?
131697 by: neko

PHP/Flash Dynamic Graphs?
131699 by: MH

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
>"Miguel Brás" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> That's not the case, I tested it on ID549 and the previous one should be
548 and he still assume -1

Works for me.  Are you adding the ?ID=500 to the url?  If you don't have
that, then the ID is 0, so you get the 1 and -1.



--- End Message ---
--- Begin Message ---
Let's see

i solved thhe problem...
I did  since I was making the select with WHERE ID = '$ID'
so I get the var $ID.,

Thx for the help of all

Miguel
"Matt" <[EMAIL PROTECTED]> escreveu na mensagem
034901c2bc37$41429160$[EMAIL PROTECTED]">news:034901c2bc37$41429160$[EMAIL PROTECTED]...
> >"Miguel Brás" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > That's not the case, I tested it on ID549 and the previous one should be
> 548 and he still assume -1
>
> Works for me.  Are you adding the ?ID=500 to the url?  If you don't have
> that, then the ID is 0, so you get the 1 and -1.
>
>



--- End Message ---
--- Begin Message ---

Thanks, Michael. I'll look into it.
-john

=P e p i e  D e s i g n s
 www.pepiedesigns.com
 Providing Solutions That Increase Productivity

 Web Developement. Database. Hosting. Multimedia.

On Wed, 15 Jan 2003, Michael Hall wrote:

> I don't know how much use this is for your needs, but I have found Openjade and
> DocBook to be excellent tools for creating RTF files  from XML sources. PHP can
> be the scripting language used to tie things together, manipulate HTML/XML etc,
> but basically this solution is "outside" of PHP I suppose.
>
> Mick
>
> Quoting "[-^-!-%-" <[EMAIL PROTECTED]>:
>
> >
> > For those of you with experience in using php for RTF documents.
> >
> > I need help generating RTF Style tags from PHP. I can convert regular text
> > to an RTF document, but the document will
> > display RTF Style tags as regular text (in the RTF document).
> >
> > How do I make the RTF document recognize the RTF Style tags.
> >
> > Any help with code samples, tutorials and/or references, will be greatly
> > appreciated.
> >
> > -john
> >
> > =P e p i e  D e s i g n s
> >  www.pepiedesigns.com

php-general Digest 16 Jan 2003 14:08:49 -0000 Issue 1826

2003-01-16 Thread php-general-digest-help

php-general Digest 16 Jan 2003 14:08:49 - Issue 1826

Topics (messages 131798 through 131857):

Re: Session Problem
131798 by: Matt

Get the date of the last sunday
131799 by: Renaldo De Silva
131800 by: Daniel Kushner
131804 by: Gladky Anton

MySQL Query - Not PHP Specific
131801 by: Sean Malloy
131802 by: Daniel Kushner
131803 by: Sean Malloy

Re: Security in included PHP files
131805 by: John W. Holmes
131807 by: John W. Holmes
131818 by: Jacob Copsey

Re: File() function and require()
131806 by: John W. Holmes
131854 by: Mike Tharp

Re: OOP
131808 by: John W. Holmes

Re: Calendar problem
131809 by: John W. Holmes

Problems with require() and variables
131810 by: Phil Powell
131837 by: Ford, Mike   [LSS]

Images : Store in dB or disk?
131811 by: Bobby Patel
131813 by: rw.xend.net
131814 by: Bobby Patel
131823 by: Jason Wong
131841 by: Marek Kilimajer

emacs and php markup
131812 by: Larry Brown

temporary DNS lookup in php?
131815 by: Patrick Hsieh
131842 by: Marek Kilimajer

Re: PHP/Flash Dynamic Graphs?
131816 by: SED

execute shell commands
131817 by: Mantas Kriauciunas
131845 by: Marek Kilimajer

Re: Sessions 'funny' and Zone Alarm Pro 3
131819 by: Neil Stirton

Php's future with Asp .NET?
131820 by: Dhaval Desai
131821 by: hitek
131822 by: rw.xend.net
131832 by: Brian McGarvie
131836 by: Sean Malloy
131846 by: Sancar Saran
131849 by: John W. Holmes
131856 by: Maxim Maletsky

Re: All Request to the same script
131824 by: SLanger.spirit21.de

Re: Windows vs Linux
131825 by: Jason Wong

intermittent session loss
131826 by: Justin French

Re: Question about $_GET
131827 by: Frank Keessen

Re: HTTP_REFERER work without a problem
131828 by: Jason Wong

Re: I wanta the PHP doc notes.
131829 by: Jason Wong

Re: Session wierdness...
131830 by: Jason Wong

Why oh Why
131831 by: WMB
131843 by: Jason Wong

Random Row...
131833 by: Brian McGarvie
131835 by: Danny Shepherd

GD version 1.6.2 and resizing images...
131834 by: Marco Alting
131839 by: Jason Wong

Re: Getting a dynamic IP address
131838 by: Marek Kilimajer
131848 by: Chris Hayes

Re: [phplib template] file does not exist
131840 by: Marek Kilimajer

Re: Free web-hosting
131844 by: David T-G

Speed concerns with OOP and PHP4
131847 by: John Wells
131851 by: Maxim Maletsky

Re: "document contained no data"
131850 by: Marek Kilimajer

MIME email...
131852 by: Brian McGarvie

Problem with a for loop...
131853 by: Davíð Örn Jóhannsson
131855 by: John W. Holmes
131857 by: Davíð Örn Jóhannsson

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
>- Original Message - 
>From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: [PHP] Session Problem


> Can some one pl  explain what this means ...
> Warning: Cannot send session cache limiter - headers already sent 
> (output started at /Users/pgarcha/Sites/edit.php:7) in 
> /Users/pgarcha/Sites/edit.php on line 8

Take a look here for an explanation: http://www.php-faq.com/#3


--- End Message ---
--- Begin Message ---
how can i easily get the date of the last sunday. php or javascript code to
do this would be appreciated.



--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/function.strtotime.php
strtotime ("last Sunday");


Regards,
Daniel Kushner
_
Need hosting? http://thehostingcompany.us 


-Original Message-
From: Renaldo De Silva [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 10:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Get the date of the last sunday


how can i easily get the date of the last sunday. php or javascript code to
do this would be appreciated.



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



--- End Message ---
--- Begin Message ---


RDS> how can i easily get the date of the last sunday. php or javascript code to
RDS> do this would be appreciated.





Gladky Anton



   mailto:[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
I know this isn't a PHP question per se, but it does relate to PHP
development.

Every day I work with MySQL as my PHP database, I become more dissalusioned
with its ability as a database server. Yes its fast, but its mis

php-general Digest 17 Jan 2003 14:10:35 -0000 Issue 1828

2003-01-17 Thread php-general-digest-help

php-general Digest 17 Jan 2003 14:10:35 - Issue 1828

Topics (messages 131956 through 132006):

Re: Display Dates in English o_O
131956 by: Rick Emery
131984 by: Tom Rogers

Re: fit window to image
131957 by: Justin French
131958 by: Ezequiel Sapoznik
132002 by: Marek Kilimajer

output sql
131959 by: Paul Marinas
131960 by: Timothy Hitchens \(HiTCHO\)

Create unike variables for each record
131961 by: Lars Espelid
131964 by: Lars Espelid
131966 by: Justin French
131969 by: Jason Sheets

Re: postfix instead of sendmail
131962 by: Timothy Hitchens \(HiTCHO\)

Meta Refresh
131963 by: Edson Waite
131967 by: Jason Wong
131968 by: Edson Waite
131970 by: Jason Wong
131975 by: roel
131996 by: Ford, Mike   [LSS]
132003 by: Marek Kilimajer

--with-mcal=/usr/local/mcal compilation issue
131965 by: Roger Thomas

Re: Php's future with Asp .NET?
131971 by: Tariq Murtaza

Changing page orientaion for printing
131972 by: Stanislav Skrypnik
132006 by: Marek Kilimajer

global variables
131973 by: Dara Dowd
131977 by: Jason k Larson

Making alternate rows of different colour
131974 by: Denis L. Menezes
131976 by: Rasmus Lerdorf
131986 by: Chris Hayes
132001 by: rush
132004 by: Edward Peloke

Re: Passing Arrays Through Forms
131978 by: Sancar Saran

Re: GD version 1.6.2 and resizing images...
131979 by: Marco Alting
131982 by: Jason Wong

Curl Linux Console String --> PHP Translation
131980 by: Andrian Ivanov

Re: Security in included PHP files
131981 by: Philippe Saladin

Re: Ever complained about lousy PHP programmers?
131983 by: Tom Rogers

Re: What's the PHP-equivalent of Perl's AUTOLOAD feature?
131985 by: Chris Hayes

Alternate row colours - what is wrong with this code?
131987 by: Denis L. Menezes
131988 by: Clarkson, Nick
131989 by: Jason Wong
131991 by: Chris Hayes
131992 by: Clarkson, Nick

PDF
131990 by: Brian McGarvie
131993 by: Larry Brown

opening tex file
131994 by: Artur Bereœniewicz
131995 by: Jason Wong
131999 by: Chris Hayes

Re: x12 837
131997 by: Edward Peloke

Re: session_destroy have strange effect
131998 by: Marek Kilimajer

Re: getopt usage?
132000 by: Jason Wong

little Prob...
132005 by: Manohar Ramjibhai Solanki

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
look at mysql's DATE_FORMAT()   Let mysql do it for you, instead of PHP
- Original Message -
From: Stephen
To: PHP List
Sent: Thursday, January 16, 2003 7:16 PM
Subject: [PHP] Display Dates in English o_O


I have a PHP driven site that as a time schedule. Since the site isn't exactly filled 
with very
intellagent people who just LOVE to translate times and dates from a weird format 
(Such as the
format used in MySQL), I'd like to take these from a MySQL table (the table's types 
are DATE and
TIME) and translate the date to something like "Thrusday, January 16th, 2003" when the 
date strate
from the table is "2003-01-16." Then with time, I'd like it to read something like 
"8:00 PM" when it
reads straight from the table "20:00:00." Another feature I'd like to have it 
timezones but that's
not the point of this message. If you don't mind, though, could you also tell me how 
to configure
the times according the the timezone a user has chosen?

Thanks,
Stephen Craton
http://www.melchior.us

"What's the point in appearance if your true love, doesn't care about it?" -- 
http://www.melchior.us



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


--- End Message ---
--- Begin Message ---
Hi,

Friday, January 17, 2003, 11:16:53 AM, you wrote:
S> I have a PHP driven site that as a time schedule. Since the site isn't exactly 
filled with very intellagent people who just LOVE to translate times and dates from a 
weird format (Such as the
S> format used in MySQL), I'd like to take these from a MySQL table (the table's types 
are DATE and TIME) and translate the date to something like "Thrusday, January 16th, 
2003" when the date strate
S> from the table is "2003-01-16." Then with time, I'd like it to read something like 
"8:00 PM" when it reads straight from the table "20:00:00." Another feature I'd like 
to have it timezones but
S> that's not the point of this message. If you don't mind, though, could you also 
tell me how to configure the times according the the timezone a user has chosen?

S> Thanks,
S> Stephen Craton
S> http

php-general Digest 18 Jan 2003 14:53:08 -0000 Issue 1830

2003-01-18 Thread php-general-digest-help

php-general Digest 18 Jan 2003 14:53:08 - Issue 1830

Topics (messages 132074 through 132093):

Re: Gridwidget - javascript
132074 by: David Rice
132077 by: Jason Wong

Select multiple boxes
132075 by: Gregory Chagnon
132092 by: Cal Evans
132093 by: John W. Holmes

Re: Sessions or Cookies?
132076 by: Peter Janett

Re: $HTTP_GET_VARS
132078 by: Philip Olson

Re: Acessing $DOCUMENT_ROOT
132079 by: Philip Olson

Unsupported operand types
132080 by: Brian T. Allen

Re: Ever complained about lousy PHP programmers?
132081 by: olinux
132091 by: Cal Evans

Re: PHP Review Site
132082 by: Manuel Lemos

Free PHP Hosts?
132083 by: JJ Harrison

Re: occasional mcrypt problems
132084 by: Steve Yates

Upload multiple files
132085 by: Antti

Check for start_sessoin without causing header problems
132086 by: SLanger.spirit21.de

Re: PUT uploads
132087 by: Chris Jarecki

Result in the same page
132088 by: Ezequiel Sapoznik
132089 by: Jason Wong
132090 by: Cal Evans

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi:
I believe that if you reference the form element like:

document.forms['mycell[]'].value

you will get what you want.
HTH
David

On Friday, January 17, 2003, at 08:33 PM, Nico Jansen - NiRo IT 
Consultants B.V. wrote:


Hi all,

I'm trying to write a grid widget in php. When the user changes the 
value of
a cell the totals must be recalculated at the client side.
I can write a javascript when I use simple variables like A1, B1.


onChange="njrecalculate()">

onChange="njrecalculate()">

This javascript will do the trick:

function njrecalculate()
{
 document.forms[0].mytot.value = 
Math.round(document.forms[0].A1.value)
+ Math.round(document.forms[0].B1.value)   ;

}

But now I want to create a dynamice grid by using the array variable 
e.g.
mycell[]:

echo "
onChange='njrecalculate()' value=$mycel[0]>";
echo "
onChange='njrecalculate()' value=$mycel[1]>";
echo "
onChange='njrecalculate()' value=$mytot>";
?>

Does anybody know how to access these mycell form fields on the client 
side
using javascript.


Nico Jansen



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



--- End Message ---
--- Begin Message ---
On Saturday 18 January 2003 10:50, David Rice wrote:

> > I'm trying to write a grid widget in php. When the user changes the
> > value of
> > a cell the totals must be recalculated at the client side.
> > I can write a javascript when I use simple variables like A1, B1.
> >
> >  > onChange="njrecalculate()">
> >  > onChange="njrecalculate()">
> >
> > This javascript will do the trick:
> >
> > function njrecalculate()
> > {
> >  document.forms[0].mytot.value =
> > Math.round(document.forms[0].A1.value)
> > + Math.round(document.forms[0].B1.value)   ;
> >
> > }
> >
> > But now I want to create a dynamice grid by using the array variable
> > e.g.
> > mycell[]:
> >  > echo " > onChange='njrecalculate()' value=$mycel[0]>";
> > echo " > onChange='njrecalculate()' value=$mycel[1]>";
> > echo " > onChange='njrecalculate()' value=$mytot>";
> > ?>
> >
> > Does anybody know how to access these mycell form fields on the client
> > side
> > using javascript.

> I believe that if you reference the form element like:
>
> document.forms['mycell[]'].value
>
> you will get what you want.

Which means you have to give your text elements unique names. IE mycel[0] 
instead of mycel[] etc.


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

/*
Today is a good day for information-gathering.  Read someone else's mail file.
*/


--- End Message ---
--- Begin Message ---
Hi-
Is there any way to get all of the elements in a SELECT MULTIPLE box, not
just the ones that are selected?  Thanks!
-Greg



--- End Message ---
--- Begin Message ---
use [] in your select box name. When it comes back in the $_POST array you
will have an array of options.  It breaks HTML standard therefore it is a
Bad Thing (tm) but it does work.


Don't pick me
Pick me


Selecting both results in:

$_POST['mySelect'][1] == "Don't pick me"
$_POST['mySelect'][2] == "Pick me"

HTH,
=C=

*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*


-Original Message-
From: Gregory Chagnon [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 11:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Select multiple boxes


Hi-
Is there any way to get all of the elements in a SELECT MULTIPLE box, not
just the ones that are selected?  Thanks!
-Greg



-

php-general Digest 19 Jan 2003 03:23:15 -0000 Issue 1831

2003-01-18 Thread php-general-digest-help

php-general Digest 19 Jan 2003 03:23:15 - Issue 1831

Topics (messages 132094 through 132157):

Re: Select multiple boxes
132094 by: Cal Evans
132097 by: Gregory Chagnon
132098 by: John W. Holmes
132099 by: Cal Evans

Re: Ever complained about lousy PHP programmers?
132095 by: michael kimsal

Re: Sessions or Cookies?
132096 by: Chris Hewitt
132102 by: Brad Pauly
132125 by: Chris Shiflett

2 Qs: Passing current URL with session and how to avoid session timeout???
132100 by: -<[ Rene Brehmer ]>-
132101 by: Cal Evans
132127 by: Chris Shiflett
132137 by: John W. Holmes
132147 by: Justin French

Can I use php to load a icon?(.ico .exe .)
132103 by: hei
132105 by: Cal Evans

Re: Converting accented characters or numeric equivalents to non-accented
132104 by: -<[ Rene Brehmer ]>-
132108 by: Chris Hewitt
132113 by: Ian M. Evans
132114 by: Ernest E Vogelsinger
132115 by: Ernest E Vogelsinger
132116 by: Ian M. Evans
132118 by: Paul Roberts
132124 by: Ian M. Evans

Does remote file(image) exist ?
132106 by: Stephen of Blank Canvas
132107 by: Andrew Brampton
132110 by: pan

Re: Number Sign in String Variables
132109 by: Joab Stieglitz
132112 by: Brad Pauly
132133 by: Joab Stieglitz
132135 by: John W. Holmes
132140 by: Steve Edberg
132141 by: Joab Stieglitz

hyperlink and mySQL
132111 by: M.E. Suliman
132134 by: Bobby Patel

Logfile statistics - get words from position between other words
132117 by: Svein O. Bennæs
132119 by: Sean Burlington

passing variables to a sql statement
132120 by: jennifer
132123 by: Jason Wong
132131 by: John W. Holmes
132139 by: Bobby Patel
132157 by: Tom Rogers

Multiple sizes for products
132121 by: icaam.icaam.com.ar
132130 by: John W. Holmes
132143 by: Hugh Danaher

Auto Incrementing in PHP
132122 by: Don Mc Nair
132129 by: John W. Holmes
132136 by: Bobby Patel
132149 by: Justin French

Re: Check for start_sessoin without causing header problems
132126 by: Chris Shiflett

PGP signing text from called from PHP
132128 by: {R}ichard Ashton

File perms when dir already exists
132132 by: rw.xend.net

Re: Number Sign in String Variables]
132138 by: Brad Pauly

SQL+php
132142 by: Paul Marinas
132144 by: John W. Holmes
132145 by: Sean Malloy
132146 by: John W. Holmes
132148 by: Paul Marinas
132151 by: Sean Malloy
132152 by: Paul Marinas
132153 by: Justin French
132154 by: Paul Marinas

Re: Free PHP Hosts?
132150 by: David T-G

Changing order of just one array item?
132155 by: Leif K-Brooks
132156 by: Timothy Hitchens \(HiTCHO\)

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
whoops. Sorry, didn't read the question. Wrong answer. John gave the correct
answer.

=C=

*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*


-Original Message-
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 18, 2003 8:41 AM
To: Gregory Chagnon; [EMAIL PROTECTED]
Subject: RE: [PHP] Select multiple boxes


use [] in your select box name. When it comes back in the $_POST array you
will have an array of options.  It breaks HTML standard therefore it is a
Bad Thing (tm) but it does work.


Don't pick me
Pick me


Selecting both results in:

$_POST['mySelect'][1] == "Don't pick me"
$_POST['mySelect'][2] == "Pick me"

HTH,
=C=

*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*


-Original Message-
From: Gregory Chagnon [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 11:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Select multiple boxes


Hi-
Is there any way to get all of the elements in a SELECT MULTIPLE box, not
just the ones that are selected?  Thanks!
-Greg



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



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



--- End Message ---
--- Begin Message ---
The problem is I have 2 seelect boxes...it's for creating a user and adding
them to a list of available groups...so I have one select box that is
initially empty called memberOf and another box that has all of the
available groups listed in it called availableGroups.  I have a script that
can move items back and forth and when the form is submitted

php-general Digest 19 Jan 2003 15:28:36 -0000 Issue 1832

2003-01-19 Thread php-general-digest-help

php-general Digest 19 Jan 2003 15:28:36 - Issue 1832

Topics (messages 132158 through 132180):

Re: 2 Qs: Passing current URL with session and how to avoid session timeout???
132158 by: -<[ Rene Brehmer ]>-
132159 by: -<[ Rene Brehmer ]>-
132160 by: Justin French

Re: Can I use php to load a icon?(.ico .exe .)
132161 by: hei

Re: SQL+php
132162 by: John W. Holmes
132163 by: John W. Holmes
132165 by: Sean Malloy
132172 by: Thomas Seifert
132173 by: Sean Burlington
132178 by: Chris Hewitt

Re: Free PHP Hosts?
132164 by: JJ Harrison

CVS In PHP
132166 by: Trilochan
132171 by: JJ Harrison

File Upload
132167 by: Trilochan
132169 by: John W. Holmes

whois script or class
132168 by: Ashley M. Kirchner
132170 by: Jason k Larson

How know how many sessions are active?
132174 by: Jeremías Grunge
132176 by: Justin French

Re: PHP Encoders and GPL License
132175 by: Zeev Suraski
132177 by: Larry Brown
132179 by: michael kimsal

Re: Changing order of just one array item?
132180 by: Leif K-Brooks

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi Cal Evans,

On Sat, 18 Jan 2003 10:17:01 -0600, you wrote about "RE: [PHP] 2 Qs:
Passing current URL with session and how to avoid session timeout???"
something that looked like this:

>I guess I'm dense this morning. In response to 1:
>
>$_SESSION['mother']=$_SERVER['PHP_SELF'];

Didn't know the server array existed ... where I'd find that in the
manual??? Only doc I've got to run from...

>and then
>
>Go Back
>
>or better yet...
>Go Back

Wouldn't that produce a link to the current url, rather than the previous?

>as to #2:
>I usually just pass this kind of info around on the URL.
>
>http://mypage.com/mypage.php?prevURL=http://mypage.com/lastpage.php
>
>if I have to pass a full query string then I urlencode() it first and
>urldecode() it on the other side.

I can't do that reliably, my URLs are simply too long on some occasions
... so the URL ends up getting the end cut off...

But apparently the sessions expiring isn't an issue afterall ... have had
the page loaded for several hours, and the recursive linkage still works
... Will have to upload to my webhost though before I can be absolutely
certain ... Retaining matching settings in my test-enviro is not entirely
possible because their Apache is older than mine...and they run with
globals on, and I design for them off, just to be safe...

Rene
-- 
Rene Brehmer

This message was written on 100% recycled spam.

Come see! My brand new site is now online!
http://www.metalbunny.net

--- End Message ---
--- Begin Message ---
Hi Justin French,

On Sun, 19 Jan 2003 12:01:45 +1100, you wrote about "Re: [PHP] 2 Qs:
Passing current URL with session and how to avoid session timeout???"
something that looked like this:

>1. If you require the back button to work forever, then do not use sessions,
>because they're not designed to be a forever thing.

I only need the session to pass the url on to the next page ... once there
the old URL will be written into the HTML code... The only reasons I need
to do it with sessions is because my urls are too long for the encoded url
to be transfered reliably within the url...

>2. I do this sort of stuff by building my own URL from $_SERVER components:

I haven't found the server array in the manual (yet anyway), so I'm not
sure what exactly it is you're doing ... so a bit of 'splaining would be
nice ... I'm only on my 4th month of PHP'ing afterall ... 

>$script = $_SERVER['PHP_SELF'];
>$qs = $_SERVER['QUERY_STRING'];
>$currentURL = base64_encode($script."?".$qs);
>?>
>
>The reason why I base64_encode() it is so that the vars=values of the
>previous page don't affect the next page.

I don't have that problem. Variables aren't reausable because I'm doing
divide and conquer design ... that way I can prevent the code from being
too complex and requiring to many variables to work. Thus my variables
differ from master page to master page, all the common ones are rewritten
on each page load (as it only controls the menu links to be linked
correctly up/down folder levels).

>I the link to the second page might be something like:
>
>click
>
>on page.php, to establish a back button:
>
>
>go back
>
>3.  This way, the referring/mother URL is always attached to that URL... if
>they bookmark it, of give it to a friend, it's always there... sessions
>don't achieve this, and cookies usually can, apart from the usual cookie
>problems.

Apparently the trans_sid being on (or 1 as it is) makes the sid transfer
correctly everytime, atleast with my current setup ... which is this:

php-general Digest 20 Jan 2003 04:22:40 -0000 Issue 1833

2003-01-19 Thread php-general-digest-help

php-general Digest 20 Jan 2003 04:22:40 - Issue 1833

Topics (messages 132181 through 132204):

Re: SQL+php
132181 by: Chris Shiflett
132183 by: John W. Holmes

Re: Auto Incrementing in PHP
132182 by: Don Mc Nair
132185 by: Jason Wong
132191 by: Don Read

Re: Changing order of just one array item?
132184 by: -<[ Rene Brehmer ]>-

Re: How know how many sessions are active?
132186 by: Leon Mergen

Multiplication of double
132187 by: Cesar Aracena
132188 by: Foong
132189 by: Jason Wong
132195 by: Chris Shiflett

Re: Free PHP Hosts?
132190 by: David T-G

please help
132192 by: JamsterJAM
132193 by: Ray Hunter
132194 by: Jason Sheets

Text report templates a la Perl
132196 by: Duncan Hill

php-4.3.0 and wu-imap failed to compile
132197 by: Ezra Nugroho

PHP at LinuxWorld Expo 2003
132198 by: Hans Zaunere

php.ini: how to load different ini file depending on host?
132199 by: Jean-Christian Imbeault
132201 by: Timothy Hitchens \(HiTCHO\)
132202 by: Jean-Christian Imbeault
132203 by: Justin French

cli class
132200 by: David T-G

Mass Mailing with PHP & MySQL
132204 by: Tim Thorburn

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
--- Sean Burlington <[EMAIL PROTECTED]> wrote:
> I think the bandwidth wasters are those who ask
> questions poorly (it takes several follow up mails
> to find out what the question was) and those who
> don't have a qucik look at the archives first
> (is someone puuting together an FAQ ?)

I agree. I think John's response was a simple answer to a
simple question. He was probably tired of trying to
interpret questions from this list. I suppose I take a
similar approach in that I quickly delete questions that
make no sense or only hint at the real question. Perhaps I
am being rude, too, but I'm just quieter about it. :-)

Oh, and here is a link that I think John alluded to:

http://www.tuxedo.org/~esr/faqs/smart-questions.html

Chris

--- End Message ---
--- Begin Message ---
> --- Sean Burlington <[EMAIL PROTECTED]> wrote:
> > I think the bandwidth wasters are those who ask
> > questions poorly (it takes several follow up mails
> > to find out what the question was) and those who
> > don't have a qucik look at the archives first
> > (is someone puuting together an FAQ ?)
> 
> I agree. I think John's response was a simple answer to a
> simple question. He was probably tired of trying to
> interpret questions from this list. I suppose I take a
> similar approach in that I quickly delete questions that
> make no sense or only hint at the real question. Perhaps I
> am being rude, too, but I'm just quieter about it. :-)
> 
> Oh, and here is a link that I think John alluded to:
> 
> http://www.tuxedo.org/~esr/faqs/smart-questions.html

I'm not tired of anything; it was just too vague of a question to be
answered, as were the 3 follow-ups that were posted. I still have no
idea what the OP wants.

After some more searching, this is the FAQ I was looking for:

http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-n
o-answers.html

Note that the original question started with "Does anyone know..."

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



--- End Message ---
--- Begin Message ---
Thanks Guys

I just needed a pointer. I decided to use the database and created two
tables, one for invoice number and one for order number then defined a
function to read the current number and the increment it.

// GET AUTO NUMBER and creates the next one
// uses the parameter tablename as $table

function get_auto_number($table)
 {
  if(!$table)
   {
echo "The Function get_auto_number requires the peramater 'tablename' to
allow it to know which auto number you want.";
exit;
   }
  $query = 'select number from '.$table;
  $result = mysql_query($query);
  if (!$result)
   {
echo "Sorry there is a problem getting the auto_number from the
table ".$table."";
exit;
   }
  $current_number = mysql_fetch_row($result);
  global $auto_number;
  $auto_number = $current_number[0];
  $query = "update ".$table." SET number = '".($auto_number +1)."'";
  $result = mysql_query($query);
 }

Simple when someone tells you what to do :o)

Thanks and regards.





"Don Mc Nair" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> Is there a way for a php page to automatically increment a number and
store
> it every time the page is loaded.
>
> I want to generate an invoice number that goes up 1 everytime the HTML
form
> is sent to it.
>
> Tha

php-general Digest 20 Jan 2003 16:32:38 -0000 Issue 1834

2003-01-20 Thread php-general-digest-help

php-general Digest 20 Jan 2003 16:32:38 - Issue 1834

Topics (messages 132205 through 132259):

PHP Books
132205 by: Armoured
132215 by: olinux
132250 by: Mike Morton
132252 by: Mike Morton

Can I use white spaces?
132206 by: Cesar Aracena
132208 by: Larry E. Ullman
132211 by: Cesar Aracena
132213 by: Larry E. Ullman

Re: Mass Mailing with PHP & MySQL
132207 by: Justin French
132210 by: rw.xend.net
132219 by: Brendon G

Re: php.ini: how to load different ini file depending on host?
132209 by: John Nichel
132217 by: Jean-Christian Imbeault

Re: Multiplication of double
132212 by: Bobby Patel

Login scritp help needed.
132214 by: Karl James
132216 by: olinux

Recommended freeware guestbook?
132218 by: David Chamberlin

jpgraph
132220 by: Rizki Salamun

Generating formatted reports
132221 by: Denis L. Menezes

Undefinied Symbol error
13 by: Trilochan
132238 by: Marek Kilimajer

XML & deprecated "Call-time pass-by-reference"
132223 by: kellan
132227 by: Jason Wong

JOIN for FREE ... Learn and Earn
132224 by: Charles Cedeno

PHP and Sessions?
132225 by: Tim Thorburn
132226 by: Sean Burlington

ssl:// with fsockopen () on Windows XP
132228 by: Alexander Stirmlinger

Which country?
132229 by: Martin Thoma
132230 by: Timothy Hitchens \(HiTCHO\)
132232 by: David Freeman

building apache 1.3.27 + php 4.3.0
132231 by: Stain
132234 by: Stain

Re: Something difference betwen php-4.0.3 and php-4.2.3
132233 by: Marek Kilimajer

Re: File perms when dir already exists
132235 by: Marek Kilimajer

Image opendialog function
132236 by: Steven Seijmonsbergen

Re: How know how many sessions are active?
132237 by: Marek Kilimajer
132246 by: Jeremías Grunge
132257 by: Marek Kilimajer

PHP and FDF
132239 by: ed.home.homes2see.com

Freshmeat question
132240 by: De deco
132245 by: Martin Thoma

Database abstraction class
132241 by: Clarkson, Nick

simple date question
132242 by: adrian murphy.2020tourism.com
132244 by: Martin Thoma
132247 by: Rick Emery

Getting https-page
132243 by: Martin Thoma
132248 by: Chris Shiflett
132258 by: Kenneth Brill

Security
132249 by: Phil Ewington
132251 by: Chris Shiflett

Re: Select multiple boxes
132253 by: Ford, Mike   [LSS]

$_POST vars problem
132254 by: Kenneth Brill
132255 by: Chris Shiflett
132256 by: Kenneth Brill
132259 by: Chris Shiflett

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
hello,

i have been told that i should email you to help me
with my question, and the auestion is:

Can you recommend an GREAT book for someone to learn
php off. The person will only have knowladge of html.
Is there a really good book out there that will teach
me php???

thanks

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--- End Message ---
--- Begin Message ---
PHP Fast & Easy Web Development by Julie Meloni
kicked things off for me (after knowing only HTML)

basically walks you through the code of common things
that you would want to do with PHP. (email a submitted
html form - insert/retrieve and edit data in mysql
database)

Read through the examples and picture it in your mind.
Lots of it is repetition but by the end you'll
understand or at lest know where to look to find
answers to solutions you want

http://www.amazon.com/exec/obidos/external-search/002-6827406-7685618?tag=opera-20&index=blended&keyword=PHP+Fast+Easy+Web+Development

Julie's site: www.thickbook.com
Many tutorials available here as well.


PHP Bible is another good reference book. There's also
a lot of sample code in here if I remeber right
http://www.amazon.com/exec/obidos/external-search/002-6827406-7685618?tag=opera-20&index=blended&keyword=PHP+bible

The manual is really invaluable as well. It's very
well organized and easy to find what you need if you
know how to use it. A boring but helpful activity
would be to  read through the summaries of the
functions. You won't remember all [or any :)] of them,
but you will get an idea of what is possible and how
powerful the language is.

Sams Teach Yourself SQL in 10 Minutes
Also ought to pick yourself up this cheapy while your
at it. A great intro to SQL. It's great for a
reference and an idea of what is possible (and how
simple the majority of what you want to do really is)

You'll probabl

php-general Digest 25 Jan 2003 08:31:12 -0000 Issue 1843

2003-01-25 Thread php-general-digest-help

php-general Digest 25 Jan 2003 08:31:12 - Issue 1843

Topics (messages 133033 through 133088):

Re: checkboxes & php
133033 by: Edward Peloke
133034 by: Richard Whitney
133036 by: Richard Whitney
133038 by: 1LT John W. Holmes
133039 by: Greg
133040 by: Greg
133041 by: Didier McGillis
133047 by: Richard Whitney
133053 by: Rick Emery
133055 by: Chris Boget
133056 by: Richard Whitney

NEWBIE: request querystring
133035 by: Tim Haskins
133042 by: Greg
133045 by: Chris Shiflett

Re: ob_gzhandler bug???
133037 by: Serge Paquin

Re: Upload is corrupting files
133043 by: 1LT John W. Holmes

php/sendmail/apache/linux...
133044 by: Bruce Douglas
133082 by: Bruce Douglas

paths after file in url
133046 by: Glenn Pierce
133049 by: Matt

WHILE IF/ELSE loop not working
133048 by: Jay Fitzgerald
133052 by: Rick Emery
133087 by: Jason Wong

MQSeries
133050 by: Didier McGillis

problems getting GD to wrok properly
133051 by: Philipp

Re: value not displayed
133054 by: Brian Burg

sessions IE 6.0 problem
133057 by: news
133059 by: Richard Whitney
133060 by: Chris Shiflett

[url] to html
133058 by: Niels Uhlendorf
133064 by: Leif K-Brooks
133079 by: 1LT John W. Holmes

Re: How do you update multiple rows at the same time?
133061 by: Brian Burg

get apache user
133062 by: Tommy Jensehaugen
133086 by: Jason Wong

file creation (again)
133063 by: Don Mc Nair

Re: file upload question
133065 by: Andrew Rench
133085 by: Jason Wong

Multitier applications using XML as an output format
133066 by: Davy Obdam

memory exhausted... memory leak?
133067 by: Tularis
133072 by: 1LT John W. Holmes

linux cpu usage
133068 by: Gareth Thomas
133069 by: Philip Hallstrom

Designing My First Content Management System
133070 by: Guru Geek
133071 by: Chris Shiflett

Re: how to verify the available email address
133073 by: 1LT John W. Holmes

parse error, unexpected $end ...
133074 by: Octavio Herrera
133075 by: Octavio Herrera
133078 by: 1LT John W. Holmes

Re: IP address
133076 by: Justin French

Re: SSH change password!
133077 by: Michael Sims

Re: domxml_new_doc() utf8 encoding
133080 by: Tom Rogers

Testing
133081 by: César Aracena

PHP and XML mailing list
133083 by: Sterling Hughes

PHP Tutor in Denver?
133084 by: Grae Wolfe

Sendmail function
133088 by: Christian Ista

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
why would you give them all the same name?  I can see this for radio buttons
but not checkboxes.

-Original Message-
From: Greg [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 3:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] checkboxes & php


If I have 3 checkboxes labeled "user", but each one has a seperate value,
how do I get the values of each checkbox?  For example, how would I tell if
the following checkboxes are checked?








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



--- End Message ---
--- Begin Message ---
You need to give the checkboxes unique names like user1, user2 user3

RW

Quoting Greg <[EMAIL PROTECTED]>:

### If I have 3 checkboxes labeled "user", but each one has a seperate value,
### how do I get the values of each checkbox?  For example, how would I tell
### if
### the following checkboxes are checked?
### 
### 
### 
### 
### 
### 
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 


-- 
Richard Whitney
Transcend Development
Producing the next phase of your internet presence.
[EMAIL PROTECTED]
http://xend.net
602-971-2791

--- End Message ---
--- Begin Message ---
Do you, prehaps, wants to use radio buttons instead?

RW

Quoting Greg <[EMAIL PROTECTED]>:

### If I have 3 checkboxes labeled "user", but each one has a seperate value,
### how do I get the values of each checkbox?  For example, how would I tell
### if
### the following checkboxes are checked?
### 
### 
### 
### 
### 
### 
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 


-- 
Richard Whitney
Transcend Development
Producing the next phase of your internet presence.
[EMAIL PROTECTED]
http://xend.net
602-971-2791

--- End Message ---
--- Begin Message ---
Or name them as an array, "user[]" so that you have a $_REQUES

php-general Digest 25 Jan 2003 20:33:38 -0000 Issue 1844

2003-01-25 Thread php-general-digest-help

php-general Digest 25 Jan 2003 20:33:38 - Issue 1844

Topics (messages 133089 through 133122):

If... Else.. I'm not getting it!
133089 by: Frank Keessen
133091 by: Jason Wong
133092 by: Frank Keessen
133093 by: Johannes Schlueter
133094 by: Frank Keessen
133095 by: Rich Gray
133097 by: Frank Keessen
133114 by: Jason Wong

Re: memory exhausted... memory leak?
133090 by: Tularis

Script under Windows OK, under Linux, not...
133096 by: Daniel Page
133099 by: Daniel Page

Re: Designing My First Content Management System
133098 by: Geckodeep

Re: PHP and XML mailing list
133100 by: Dirkjan Ochtman

Re: Sendmail function
133101 by: Chris Hewitt

Re: Evaluate PHP var in stored sql statement?
133102 by: Noah
133118 by: Maxim Maletsky
133119 by: Noah

PHP 4.3.0 - Apache 2 Problem - Missing phpinfo() Info
133103 by: Kenneth Lerman

OO2relation mapping
133104 by: Dominik Wittenbeck

Re: get apache user
133105 by: Tommy Jensehaugen
133112 by: Jason Wong

Re: [SOAP] Re: soap post and http 1.1 100 continue
133106 by: Danny Shepherd

Switch statement || How to output html without using echo() or print()
133107 by: Noah
133109 by: John W. Holmes
133110 by: Johannes Schlueter
133113 by: Leif K-Brooks
133115 by: Noah
133116 by: Noah
133117 by: Noah

Adjusting Indexed Field After Deleting Entry
133108 by: Guru Geek

question about interaction between own state information...
133111 by: Juerg Zgraggen

GD jpg thumbnail - ugly discollored
133120 by: Victor
133121 by: George E. Papadakis
133122 by: Victor

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi all,

Please can you help me with the following:

If got a little sample code:

This one is working (!):




Input yourname





But when i'm using IF Else.. Nothing is happening. I'm only seeing the form but when i 
submit that form: The $vname doen't display..

Here is the code that doesn't work:




Input yourname





What am I doing wrong???

Thanks,

Frank


--- End Message ---
--- Begin Message ---
On Saturday 25 January 2003 18:27, Frank Keessen wrote:

> But when i'm using IF Else.. Nothing is happening. I'm only seeing the form
> but when i submit that form: The $vname doen't display..
>
> Here is the code that doesn't work:
>
>  $vname=$_POST['vname'];
> if($submit) {

Try some basic debugging techniques like echo ($submit). You'll see nothing, 
hence that IF clause fails.

If register_globals is not enabled then you need to use $_POST['submit'] (just 
as you had to use $_POST['vname']).

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

/*
Confidence is simply that quiet, assured feeling you have before you
fall flat on your face.
-- Dr. L. Binder
*/


--- End Message ---
--- Begin Message ---
Hi,

The register_globals = Off. Dit the basic echo ($submit) but it displays
nothing..

Any thoughts somebody??

Thanks for helping me out on this cloudy saturday (in Amsterdam!)

Regards,

Frank

- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 11:36 AM
Subject: Re: [PHP] If... Else.. I'm not getting it!


> On Saturday 25 January 2003 18:27, Frank Keessen wrote:
>
> > But when i'm using IF Else.. Nothing is happening. I'm only seeing the
form
> > but when i submit that form: The $vname doen't display..
> >
> > Here is the code that doesn't work:
> >
> >  > $vname=$_POST['vname'];
> > if($submit) {
>
> Try some basic debugging techniques like echo ($submit). You'll see
nothing,
> hence that IF clause fails.
>
> If register_globals is not enabled then you need to use $_POST['submit']
(just
> as you had to use $_POST['vname']).
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> Confidence is simply that quiet, assured feeling you have before you
> fall flat on your face.
> -- Dr. L. Binder
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
Hi,

On Saturday 25 January 2003 12:18, Frank Keessen wrote:
> The register_globals = Off. Dit the basic echo ($submit) but it displays
> nothing..
>
> Any thoughts somebody??

Switch on register_globals or (better!) use $_GET['submit'], $_POST['submit'] 
or $_REQUEST

php-general Digest 26 Jan 2003 08:39:29 -0000 Issue 1845

2003-01-26 Thread php-general-digest-help

php-general Digest 26 Jan 2003 08:39:29 - Issue 1845

Topics (messages 133123 through 133161):

Re: Minor email problem
133123 by: George E. Papadakis

Re: Word Count
133124 by: George E. Papadakis

Re: $object->function($parameter)->function();
133125 by: Alex

Re: a regular expression problem - split text
133126 by: George E. Papadakis

Re: Script under Windows OK, under Linux, not...
133127 by: Danny Shepherd

Re: GD jpg thumbnail - ugly discollored
133128 by: Mark Charette
133135 by: Victor

Apachequestion
133129 by: Øystein Håland

+ in filenames
133130 by: Victor
133133 by: Richard Whitney
133136 by: Victor
133138 by: Richard Whitney
133139 by: Victor

CRON?
133131 by: Nicole
133132 by: Leif K-Brooks
133134 by: Alex
133140 by: Nicole
133141 by: Nicole
133152 by: Tom Rogers

converting a Recorset into an XML string
133137 by: Octavio Herrera
133142 by: Sean Malloy

Re: Select value for driopdown box
133143 by: Ben C.
133149 by: Greg Beaver

SELECT with WHILE NOT
133144 by: Andre Dubuc
133146 by: Sean Malloy
133147 by: Andre Dubuc

Re: OO2relation mapping
133145 by: Manuel Lemos
133156 by: Dominik Wittenbeck

XORing a string with some hash???
133148 by: Peter Litov
133153 by: Tom Rogers

Check if directory has changed
133150 by: Carlos Fernando Scheidecker Antunes
133151 by: Peter Litov
133158 by: Jason Sheets

Masive mail Advice
133154 by: Maciek Ruckgaber Bielecki
133157 by: Mark Charette
133160 by: Jason Wong

Java problem...need advice.
133155 by: John Wells

A Date and Time Library for all seasons
133159 by: John Lim

__LINE__,__FILE__ + custom error handlers
133161 by: electroteque

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Take a look at the standard php mail function .
You can set most of the available mail headers inluding from/to ones.
That would do it.


--georgep

- Original Message -
From: "Denis L. Menezes" <[EMAIL PROTECTED]>
To: "PHP general list" <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 1:48 AM
Subject: [PHP] Minor email problem


hello friends,

I am hosted with an ISP called Apexon. I have written php scripts to send
mail from a webpage. When I send this mail, the from address becomes
[EMAIL PROTECTED] .  Their website says that the variable sendmail_from
is [EMAIL PROTECTED]  . I want to force my own from address in this. I also want
to change the sender's name to my name rather than my website name.

I have tried many ways, but not successful. Can someone help me?

Please help.

Thanks
denis



--- End Message ---
--- Begin Message ---
$wordsCount  = str_word_count($string);

-- georgep

- Original Message - 
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: "Craig" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 11:26 PM
Subject: Re: [PHP] Word Count


> words, for a programming language, are nothing more than just the spaces.
> So, as previousely was shown - could the mount of spaces in the string
> to get the amount of `words' in between them.
> 
> 
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
> 
> 
> 
> "Craig" <[EMAIL PROTECTED]> wrote... :
> 
> > Is there a way to count the number of words in a string?
> > 
> > 
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
If I am not mistaken, this feature is coming in php5, but is not yet in php4

"Chris McCluskey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
.
Hi there, I've been using PHP for about 2 years now and absolutely love
it!  Our company uses it as our main development language, so far
though, there is one thing that has been annoying me for a while now..
the following line of code will not work:

$object->function1($parameter)->function2();

I receive a parse error when i try to call another function off of the
object that function1 returns.  I know this is possible in java:

object.function1(parameter).function2();

VB:

object.function1(paremeter).function2

and i'm sure C++, although i'm not too familiar with that language.

My question is, will or is there any support for this kind of call in
PHP?  or is there another way that i should be doing it?  as for now,
here is my work around:

$tmp =& $object->function1($parameter);
$tmp->function2();

php-general Digest 26 Jan 2003 20:47:35 -0000 Issue 1846

2003-01-26 Thread php-general-digest-help

php-general Digest 26 Jan 2003 20:47:35 - Issue 1846

Topics (messages 133162 through 133192):

Re: __LINE__,__FILE__ + custom error handlers
133162 by: Jason k Larson

Re: OO2relation mapping
133163 by: Dominik Wittenbeck
133164 by: Manuel Lemos
133165 by: Manuel Lemos

xtemplate & windows
133166 by: Cenk Uysal
133167 by: rush
133172 by: John W. Holmes

CRLF in file
133168 by: Malcolm Brownell
133171 by: Jason Wong
133174 by: Malcolm Brownell
133175 by: Malcolm Brownell
133177 by: Jason Wong

Problems to compile php (cvs)
133169 by: Robert Mena
133176 by: Evan Nemerson

go to detail page problem
133170 by: WMB

Perl Includes when executed with php
133173 by: Mike Morton

human language detection
133178 by: Marco Bleeker
133180 by: Jason Wong

Using MySQL user variables in PHP
133179 by: Jim MacCormaic
133181 by: Jason Wong
133183 by: John W. Holmes
133184 by: Mark Charette
133185 by: Jim MacCormaic
133186 by: Jason Wong

Combine 3 MySql rows into one PHP output row ?
133182 by: CF High

Re: Masive mail Advice
133187 by: Maciek Ruckgaber Bielecki

Predefined Variables In Classes
133188 by: . Nilaab
133189 by: Philip Olson

Problem solved
133190 by: WMB

Java call on object causes segfault.
133191 by: John Wells

PHP And Apache
133192 by: Beogradjanin

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
from: http://www.php.net/manual/en/function.set-error-handler.php

string set_error_handler ( callback error_handler)

The user function needs to accept 2 parameters: the error code, and a
string describing the error. From PHP 4.0.2, an additional 3 optional
parameters are supplied: the filename in which the error occurred, the
line number in which the error occurred, and the context in which the
error occurred (an array that points to the active symbol table at the
point the error occurred).

example:
function myErrorHandler ($errno, $errstr, $errfile, $errline,
$errcontext) {...}

HTH,
Jason k Larson


electroteque wrote:

hi guys i am trying to create callback error functions handlers , i was
wondering if there was a way to get the file and line caught in a error
function say with a database abstraction query without having to explicitly
put the line and number in the query function , at the moment if i put line
and file inside the error handler it will only display where the error was
caught inside the handler itself :|





--- End Message ---
--- Begin Message ---
I am targeting a more slim solution though, solving a very specialized
problem. As a developer I simply hate needing to change a database table,
splitting it up, to make it fit the customers needs. I causes all those SQL
statement to be revised.

With the oo2rel mapping layer I have put much thought into the possibility
that a project's datastructure actually might need a change when it is live
and filled with data. I cannot simply change the structure, recompile my
classes and submit them. I somehow need to preserve integrity within the
data model as well. I know I cannot come up with a comprehensive tutorial,
not even working examples, but this is the background in front of which I
need to operate and somehow I feel I am not the only one

I am going to keep basic SQL statements, since that's the way developers,
not having a degree think in those relational SQL structures as they
understand them more easily. Why take something away from them they know.
SQL will just be adapted to OO-state in a manner that is readable and
understandable at first glance.

As I said: not as comprehensive and complete as your project, but I think
its targeting a more specific solution, that occurs often enough in everyday
life to need support. You didn't discourage me at all, but rather give me an
idea, where thing might be going for me in the future. Tnx! I will have a
look into MetaL, that's for sure, but I will also continue with the OO2REL
project ;-)

"Manuel Lemos" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> On 01/25/2003 01:40 PM, Dominik Wittenbeck wrote:
> > I am currently developing a object to relational mapping layer for PHP.
It's
> > NOT a simple treat all databases like one kind of layer (although it
does
> > involve it to preserve extensibility) but an XML based intermediate
layer
> > that creates both, table structures, following a conventional scheme and
PHP
> > classes that allow, OO access to these tables.
> > I have enclosed the XML file that represents the intermediate layer. Its
> > pretty re

php-general Digest 27 Jan 2003 09:31:45 -0000 Issue 1847

2003-01-27 Thread php-general-digest-help

php-general Digest 27 Jan 2003 09:31:45 - Issue 1847

Topics (messages 133193 through 133228):

can't write and read on/from a file - Apache.exe  access error
133193 by: phplam

Re: Java call on object causes segfault.
133194 by: Philip Olson
133195 by: John Wells

Re: Predefined Variables In Classes
133196 by: . Nilaab
133198 by: John W. Holmes
133199 by: . Nilaab
133201 by: . Nilaab

Re: Masive mail Advice
133197 by: Manuel Lemos
133202 by: Mark Charette
133204 by: Manuel Lemos
133207 by: Mark Charette
133208 by: Manuel Lemos

Re: Mass Mailing
133200 by: Manuel Lemos

Session Variables
133203 by: Jed R. Brubaker
133215 by: Bobby Patel

human language detection
133205 by: Marco Bleeker

human language detection?
133206 by: Marco Bleeker
133209 by: Davy Obdam

Transition Page?
133210 by: Lee Herron
133216 by: Chris Shiflett
133217 by: . Nilaab
133219 by: Lee Herron

I'm new in PHP
133211 by: Beogradjanin
133212 by: Philip Olson
133213 by: Andy Turegano
133218 by: . Nilaab
133225 by: Max Tappenden

Nesting level too deep
133214 by: Sascha Alexander Jopen

Installation problem
133220 by: Jean-Christian Imbeault

Re: Files PHP in tmp ?
133221 by: Max Tappenden

Making a file manager with PHP?
133222 by: Max Tappenden
133227 by: Jason Wong

Re: How do you update multiple rows at the same time?
133223 by: Max Tappenden
133226 by: Richard Whitney

Re: total file size
133224 by: Max Tappenden

autoconf bug leads to configure syntax error when running buildconf
133228 by: Joshua Moore-Oliva

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hello !
I'm in a mess. Please help me.
Every time I tried to write with fwrite or fputs in a file, I get an error
on windows nt sp6 , ie6 from "Doc. Watson" saying that Apache.exe makes an
application access error .
Filesystem functions: is_readable, is_writable,fopen,fclose are ok . I can
create, find,open the file.
versions: PHP 4.2.3, APACHE 1.3
httpd.conf :
   Alias /test/ "C:/Apache/htdocs/test/"


Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

--
example1:
// start buffering the output
ob_start();
$filename = "c:\\apache\\htdocs\\test\files\\mifile.txt";
// output format - either "www" or "file"
$output = "file";
// print some output
print "Welcome to the Matrix, Neo";
// now decide what to do with the buffered output
if ($output == "www")
{
 // either print the contents of the buffer...
 ob_end_flush();
}
else
{
 // ... or write it to a file
 $data = ob_get_contents();
 chmod ($filename, 0777);
 $fp = fopen ($filename, "wb+");
//ERROR IS HERE
 fwrite($fp, $data);
 fclose($fp);
 ob_end_clean();
}

example 2:
//I tried each of the following 5 $filename assignments.
//$filename = "c:\\apache\\htdocs\\mcm\\mifile.txt";
//$filename = "/mifile.txt";
//$filename = "mifile.txt";
//$filename = "c:\\tmp\\mifile.txt";
$filename = "c:\\apache\\htdocs\\test\files\\mifile.txt";
$somecontent = "Add this to the file\n";
$fp = fopen($filename,"wb");
//NOTHING IS DISPLAYED
echo "this is fgets " .fgets ( $fp );
// Write $somecontent to our opened file.
//ERROR IS HERE
if (!fwrite($fp, $somecontent)) {
print "Cannot write to file ($filename)";
exit;
}
fclose($fp);
---
Thanks in advance
phplam





--- End Message ---
--- Begin Message ---

Whenever you get a segfault, try the latest
stable release and during compile be sure to
use --enable-debug
:
  http://snaps.php.net/

If the segfault exists here, write a bug report
and include the backtrace:

  http://bugs.php.net/how-to-report.php
  http://bugs.php.net/

This will be of great help to the php-dev team. Also
I believe many changes to the Java extension went
into 4.3.0 so maybe it'll work for you.

Regards,
Philip


On Sun, 26 Jan 2003, John Wells wrote:

> Working on getting Java integration going.  I was able to get it to work
> with the online example and can create an object of java.lang.System and
> print various properties returned from there.
> 
> However, if I create my own class, I can instantiate it, but if I call a
> method on that class it causes a SIGSEV.
> 
> Could anyone provide some insight?
> 
> Here's the code and backtrace:
> 
> This is with Sun jdk 1.4.1_1, php-4.2.3 on Red Hat 8.0.
> 
>  
> $obj = new Java('com.x.reports.Serv');
> 
> print $obj->getMsg();
> ?>
> 
> --- java code stored off of class path in com/x/reports ---
> package com.x.reports;
> 
> class Serv
> {
> publ

php-general Digest 29 Jan 2003 10:07:34 -0000 Issue 1851

2003-01-29 Thread php-general-digest-help

php-general Digest 29 Jan 2003 10:07:34 - Issue 1851

Topics (messages 133445 through 133473):

Re: register_globals
133445 by: Mike.Kent.indystar.com
133450 by: Justin French

Re: Get command line output
133446 by: Jeff Warrington

Re: Good XML/XSLT mailing list?
133447 by: Jeff Warrington

Re: best way to save form data on user side
133448 by: Mike.Kent.indystar.com
133449 by: Justin French
133461 by: Hugh Danaher

Advice on uploaded files
133451 by: Manuel Ochoa
133452 by: Justin French

content type header for downloading files
133453 by: Dara Dowd
133456 by: Evan Nemerson
133462 by: Dara Dowd
133464 by: Ernest E Vogelsinger

php and sql problem with mysql_query and insert
133454 by: Sunfire
133465 by: Ernest E Vogelsinger

Remembering which option in a SELECT tag the user had chosen
133455 by: Webapprentice
133463 by: Jason Wong

best way to pass variables to 
133457 by: Mantas Kriauciunas
133460 by: Justin French

Functions and arguments
133458 by: Blaine von Roeder
133459 by: Jason Wong

using custom "button" instead of standard "submit" form element
133466 by: Durwood Gafford
133469 by: Justin French
133471 by: Ernest E Vogelsinger

Using custom "button" form element instead of standard "submit"?
133467 by: Durwood Gafford

[ANN] TemplateTamer - release candidate
133468 by: rush

Re: Found a PHP bug!
133470 by: Alexander Skwar

Re: Masive mail Advice
133472 by: Alexander Skwar

Last error: how to get?
133473 by: Jean-Christian Imbeault

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Depending on whether you're using GET or POST, try

If($_GET['id'] == 1)
or
if($_POST['id'] == 1)

Check out http://www.php.net/manual/en/print/reserved.variables.php



   

  "Kiswa"  

  <[EMAIL PROTECTED]>To:   [EMAIL PROTECTED] 

   cc: 

  01/28/2003 02:41 Subject:  [PHP] register_globals

  PM   

   

   





I know its stupid but i´ve been writing a site for a register_globals = on
enviroment
now i need to convert all the code to an off setting

the page is built by sending a whole lot off vars to diferent pages.
as you can see below the hyperlink sends the id var to the same page and
then echos the code.
can anyone help humpty dumpty?




Finansiering
Leasing
 Räntefri
avbet.
 Studentlån";
};
?>



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






--- End Message ---
--- Begin Message ---
on 29/01/03 6:41 AM, Kiswa ([EMAIL PROTECTED]) wrote:


change If($id==1){ to If($_GET['id']==1){

or put this line near the top of your script:

$id = $_GET['id'];

or, a little more anal:

if(isset($_GET['id'])) { $id = $_GET['id']; }


Justin




> Finansiering
>  If($id==1){
> echo " color=\"#00\">Leasing
> Räntefri
> avbet.
>  color=\"#00\">Studentlån";
> };
> ?>
> 
> 


--- End Message ---
--- Begin Message ---
On Thu, 23 Jan 2003 00:14:07 +0800, Jason Wong wrote:

either use PHP to parse out the entirety of 
the output or make your command pipe its
output to other commands such as sed & awk
before it gets to PHP.

> w | tail +3 | awk '{print $1,$3,$5}'

Jeff


> On Thursday 23 January 2003 00:10, Greg Chagnon wrote:
>> Does anyone know how to get certain parts of the output from an exec of
>> a certain command?  For example...if I run "w" I get this output:
>>
>> [root@Lunar]:~> w
>>  11:02am  up 56 days, 17:39,  1 user,  load average: 0.07, 0.02, 0.00
>> USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU  WHAT
>> root pts/0brpt-sh6-port214 11:01am  0.00s  0.27s  0.06s  w
>>
>> Now what if I just want the infor on the 3rd li

php-general Digest 31 Jan 2003 11:51:40 -0000 Issue 1855

2003-01-31 Thread php-general-digest-help

php-general Digest 31 Jan 2003 11:51:40 - Issue 1855

Topics (messages 133706 through 133756):

php question - query string
133706 by: Anthony Ritter
133708 by: Philip Hallstrom
133709 by: Lowell Allen

php as shell script
133707 by: David H
133710 by: Khalid El-Kary

PHP Compile Error
133711 by: Robert Fitzpatrick
133716 by: Johannes Schlueter

Re: Context
133712 by: Justin French

Re: mysq_connect()
133713 by: Khalid El-Kary
133721 by: Philip Olson

Re: XML PHP question
133714 by: Chris McCluskey

POST without a form
133715 by: arthur.chereau

iCal parser and importing iCal to database
133717 by: Reuben D. Budiardja
133719 by: Dan Harrington
133724 by: Richard Baskett

Re: [PHP-WIN] Register globals on and off
133718 by: Davy Obdam
133726 by: Tom Rogers
133740 by: Jason Wong
133741 by: Jason Wong

Re: Adding HTTP URL Code
133720 by: Tom Rogers

Re: Encryption using MMCrypt - whats the point?
133722 by: Jason Sheets

Re: PHP - mysql_info question
133723 by: John W. Holmes

Change MySQL from Socket to TCP
133725 by: Stephen
133735 by: Chris Shiflett

Re:[PHP] POST without a form
133727 by: Daniel Leighton

Introduction
133728 by: Julie Williams

Money format
133729 by: Ben Edwards
133731 by: V Dub
133734 by: Ben Edwards

Trying to understand an error
133730 by: Lynn
133738 by: Jason Wong

Re: Money format--concatenate?
133732 by: Leonard Burton

Sending plain text data in a table with mail()
133733 by: Leonard Burton

Using CVS through PHP
133736 by: Weston Houghton

How to check for refresh in PHP
133737 by: Pag
133739 by: Justin French
133756 by: adrian murphy.2020tourism.com

.php extensions versus .html
133742 by: Guru Geek
133746 by: Justin French

need some guidance
133743 by: Seth Hopkins
133744 by: Timothy Hitchens \(HiTCHO\)
133747 by: Justin French

LOGOUT - Reset Session
133745 by: Keith Spiller
133750 by: Jason Wong

rename failes if file name contains single quotes
133748 by: $B%X!<%s(B $B%H!<%^%9(B
133749 by: Jason Wong
133751 by: Ernest E Vogelsinger

Re: PHP & Apache
133752 by: Aaron Stephan William Boeren
133753 by: Justin French

query on indexserver via php ado
133754 by: Florian Grabke

reading attachmentsl
133755 by: Bartosz Matosiuk

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
The following script is from Kevin Yank's book on page 59-60.  (Sitepoint)

I'd like to get some clarification about the line: (almost next to last line
in the script)

...
echo("Add a Joke!");



He has a link called "Add a Joke!".

When the user clicks on the link, the same page loads - with the form this
time - and the query string passes the value -1 - to the variable $addjoke.

Am I on the right track?

If so, why does 1 - as opposed to 2 or something else - have to be the
name/value pair if the user is adding another joke?

Thank you.
TR
..



 The Internet Joke Database 





Type your joke here:




Unable to connect to the " .
"database server at this time." );
  exit();
}

// Select the jokes database
if (! @mysql_select_db("jokes") ) {
  echo( "Unable to locate the joke " .
"database at this time." );
  exit();
}

// If a joke has been submitted,
// add it to the database.
if ($submitjoke == "SUBMIT") {
  $sql = "INSERT INTO Jokes SET
  JokeText='$joketext',
  JokeDate=CURDATE()";
  if (@mysql_query($sql)) {
echo("Your joke has been added.");
  } else {
echo("Error adding submitted joke: " .
 mysql_error() . "");
  }
}

echo(" Here are all the jokes in our database: ");

// Request the text of all the jokes
$result = @mysql_query("SELECT JokeText FROM Jokes");
if (!$result) {
  echo("Error performing query: " . mysql_error() . "");
  exit();
}

// Display the text of each joke in a paragraph
while ( $row = mysql_fetch_array($result) ) {
  echo("" . $row["JokeText"] . "");
}

// When clicked, this link will load this page
// with the joke submission form displayed.
echo("Add a Joke!");

  endif;

?>



--





--- End Message ---
--- Begin Message ---
You've got it right... look at the man page for parse_str() for more info
on the QUERY_STRING stuff as well as the register_globals configura

php-general Digest 1 Feb 2003 12:21:46 -0000 Issue 1857

2003-02-01 Thread php-general-digest-help

php-general Digest 1 Feb 2003 12:21:46 - Issue 1857

Topics (messages 133843 through 133865):

Re: Delete files via PHP
133843 by: Jason Wong

Re: another problem with 4.3.0 :  imagecreatefromjpeg undefined
133844 by: Jason Wong

4.3 Install on Solaris
133845 by: Weston Houghton
133857 by: Philip Olson

I would like to display a list of the same products only if productPublic = staff or 
members.
133846 by: Philip J. Newman
133847 by: Tom Rogers

Screen Size detect??
133848 by: Dade Register
133850 by: Maxim Maletsky
133851 by: Maxim Maletsky
133856 by: Sean Malloy

Bug?
133849 by: Todd Barr
133854 by: Jason Sheets
133855 by: Sean Malloy

fputs / fwrites ?
133852 by: Lee Herron
133853 by: Maxim Maletsky

Re: Unable to upload multiple files
133858 by: Antti

Re: Introduction
133859 by: SLanger.spirit21.de
133860 by: Jason Wong

Re: Strange_session-problem_with_php-file_in_
--- Begin Message ---
On Saturday 01 February 2003 03:23, Miguel Brás wrote:
> Hey, thx for your speech
>
> In a matter of fact, I have 2 books about  PHP and all they say about the
> unlink function (I use it in my upload system) is that it is suposed to
> force the delete of the temporary file that it is created during the upload
> process.
>
> So, i was never thinking that the unlink fuction was able to do it.

Could you tell us which books they are? They seem to be giving very poor 
advice. Uploaded files are _automatically_ deleted when the script ends. 
There is no need to force deletion of those temporary files.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The best laid plans of mice and men are held up in the legal department.
*/


--- End Message ---
--- Begin Message ---
On Friday 31 January 2003 23:22, Robert Mena wrote:
> Hello again,
>
> another problem with 4.3.0. I have gd support but
> after the upgrade my scripts started complaing :
>
> Fatal error: Call to undefined function:
> imagecreatefromjpeg()
>
> My ./configure (the same used for ages).
>
> './configure' '--with-apxs' '--with-ttf' '--with-xml'
> '--with-gd' '--with-ftp' '--enable-session'
> '--enable-trans-sid' '--with-zlib'
> '--enable-inline-optimization' '--with-mcrypt'
> '--enable-sigchild' '--with-config-file-path=/etc' '--with-freetype'

You probably need to add "--with-jpeg-dir" as well (and make sure you really 
do have libjpeg installed).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
To love is good, love being difficult.
*/


--- End Message ---
--- Begin Message ---

All,

I seem to be getting a silly error on Solaris when trying to do a PHP  
4.3 make. I get an error that looks to me like the liner arguments are  
just too long. to be honest, I'm a bit stupified as to why this is  
happening or how to fix it. FWIW, I have compiled 4.23 just fine on  
that box.

Thanks,
Wes


p.s. here's the last bit of the error:

/bin/sh libtool --silent --mode=link gcc -export-dynamic -g -O2   
-avoid-version -module -L/usr/ucblib  
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1  
-L/export/home/oracle/OraHome/lib  -R /usr/ucblib -R  
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 -R  
/export/home/oracle/OraHome/lib ext/ctype/ctype.lo ext/ftp/php_ftp.lo  
ext/ftp/ftp.lo ext/mysql/php_mysql.lo ext/mysql/libmysql/libmysql.lo  
ext/mysql/libmysql/errmsg.lo ext/mysql/libmysql/net.lo  
ext/mysql/libmysql/violite.lo ext/mysql/libmysql/password.lo  
ext/mysql/libmysql/my_init.lo ext/mysql/libmysql/my_lib.lo  
ext/mysql/libmysql/my_static.lo ext/mysql/libmysql/my_malloc.lo  
ext/mysql/libmysql/my_realloc.lo ext/mysql/libmysql/my_create.lo  
ext/mysql/libmysql/my_delete.lo ext/mysql/libmysql/my_tempnam.lo  
ext/mysql/libmysql/my_open.lo ext/mysql/libmysql/mf_casecnv.lo  
ext/mysql/libmysql/my_read.lo ext/mysql/libmysql/my_write.lo  
ext/mysql/libmysql/errors.lo ext/mysql/libmysql/my_error.lo  
ext/mysql/libmysql/my_getwd.lo ext/mysql/libmysql/my_div.lo  
ext/mysql/libmysql/mf_pack.lo ext/mysql/libmysql/my_messnc.lo  
ext/mysql/libmysql/mf_dirname.lo ext/mysql/libmysql/mf_fn_ext.lo  
ext/mysql/libmysql/mf_wcomp.lo ext/mysql/libmysql/typelib.lo  
ext/mysql/libmysql/safemalloc.lo ext/mysql/libmysql/my_alloc.lo  
ext/mysql/libmysql/mf_format.lo ext/mysql/libmysql/mf_path.lo  
ext/mysql/libmysql/mf_unixpath.lo ext/mysql/libmysql/my_fope

php-general Digest 2 Feb 2003 13:09:31 -0000 Issue 1859

2003-02-02 Thread php-general-digest-help

php-general Digest 2 Feb 2003 13:09:31 - Issue 1859

Topics (messages 133941 through 133989):

Re: Screen Size detect??
133941 by: Martin

Re: using  tags with php
133942 by: Philip Olson
133956 by: Sunfire
133967 by: David Freeman
133971 by: David Freeman
133982 by: Edwin Boersma

Re: Loading CSV data into MySQL
133943 by: John W. Holmes
133954 by: Jason Sheets
133980 by: Edwin Boersma

emulate callback error for php3
133944 by: electroteque
133962 by: electroteque

Re: Register globals on and off
133945 by: Pat Johnston
133973 by: Philip Olson

Re: Passing Variables
133946 by: Beauford.2002

Re: PHP.ini help on Linux
133947 by: Michael Mauch
133966 by: Nicole
133968 by: Nicole

Re: 4.3 Install on Solaris
133948 by: J Smith
133950 by: Dan Lowe

Base64 Encode
133949 by: Stephen
133970 by: Evan Nemerson

Using SELECT and MULTIPLE in a form
133951 by: James Kaufman
133952 by: John Nichel
133953 by: Tom Rogers

Line Number function?
133955 by: Benjamin Smith
133957 by: Steven Balthazor
133969 by: Michael Sims
133975 by: Philip Olson

Turn off PHP for certain directories?
133958 by: Benjamin Smith
133960 by: Timothy Hitchens \(HiTCHO\)
133985 by: Tom Rogers
133989 by: Ernest E Vogelsinger

php and Mac running 8.6
133959 by: Bobbi-Lea
133961 by: Timothy Hitchens \(HiTCHO\)
133979 by: Justin French

help with script!!!
133963 by: Karl James
133972 by: Hugh Danaher
133974 by: Philip Olson
133976 by: David Freeman
133977 by: Philip Olson

.dat file
133964 by: Karl James

perl regex help
133965 by: Alex

Re: any change to see php source?
133978 by: qt
133983 by: Edwin Boersma

Trouble with Exec
133981 by: Nicole

Re: help needed building query string based on which form fields that are filled.
133984 by: Edwin Boersma

Retrieving field name of Database
133986 by: Davy Obdam

processing form with unknown number of checkboxes, each with a unknown name.
133987 by: anders thoresson
133988 by: Tim Ward

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
you can create a form with hidden fields like this

 

document.screendata.height.value=screen.height;
document.screendata.width.value=screen.width;
screendata.submit();







bye

"Nigel Powell" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On a slight side note to this, how can you pass javascript variables to
> PHP via POST?
>
> Newbie Powell
>
> On Saturday, February 1, 2003, at 12:21 PM,
> [EMAIL PROTECTED] wrote:
>
> > From: "Sean Malloy" <[EMAIL PROTECTED]>
> > Date: Sat Feb 1, 2003  6:48:26 AM Europe/London
> > To: "Dade Register" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > Subject: RE: [PHP] Screen Size detect??
> >
> >
> > Create index.htm;
> >
> > 
> > var width  = screen.width;
> > var height = screen.height;
> > window.location = 'index.php?width=' + width + '&height=' + height;
> > 
> >
> > and in index.php
> >
> > $width = $_GET['width'];
> > $height = $_GET['height'];
> >
> >
> > etc etc
>



--- End Message ---
--- Begin Message ---
On Sat, 1 Feb 2003, Sunfire wrote:

> hi.. i took your idea...
> i put the error reporting code at the top of the script and ran it as the
> problem was still there to see what would happen.. instead i get 0 messages
> from the reporting system and all i get is the last 7 chars of the print
> line and the }?> at the end of the script... so for instance if i do:
> print(" or any variance of that statement changing around the \" and apostrophes
> around to try different things all i get is the rest of the script starting
> from the \n all the way to the rest of the script where it says }?> at the
> end dont know if this is a bug or not but its getting hard to figure out
> what the problem with my echo or print statements are...
> here is the whole script:
> its supposed to get all fields and then display in input text boxes the
> current values in that certain record  i know i missed some stuff in it with
> the query but at this point was supposed to be a test to see if i could even
> put it in the box in the first place... but here is the code:

Please step back, slow down, and write your question
in a short concise format.  I have no clue what the
above means.

> 
> 
> edit member
> 
> 
> 
> 
> pick some of these:
>  error_reporting(E_ALL);
> mysql_connect("192.4.5.6", "root", "");
> mysql_select_db("wata");
> $result=mysql_query("selec

php-general Digest 3 Feb 2003 13:19:58 -0000 Issue 1861

2003-02-03 Thread php-general-digest-help

php-general Digest 3 Feb 2003 13:19:58 - Issue 1861

Topics (messages 134069 through 134105):

Graphic Pie Charts
134069 by: Vernon
134073 by: Andrew Brampton
134083 by: michael kimsal

Re: Date and time problem
134070 by: Tom Rogers
134074 by: Larry E. Ullman

Re: Text size in image
134071 by: Tom Rogers

Listbox variable
134072 by: Denis L. Menezes
134093 by: Marek Kilimajer

Re: Help with include path
134075 by: John W. Holmes

Re: including files...
134076 by: John W. Holmes

mysql/php query - wrox
134077 by: Anthony Ritter
134078 by: Chris Shiflett

Re: php/mysql connection
134079 by: John W. Holmes

Re: question
134080 by: David Freeman

fread vs fgets
134081 by: Jeff Schwartz

Re: MySQL/PHP Associative Array Insert
134082 by: michael kimsal
134084 by: Chris Shiflett

Delete Related Table
134085 by: Remon Redika

pg_result_seek() weirdness
134086 by: Shot

POST with PHP -- please help !
134087 by: arthur.chereau

Re: POST_with_PHP_--_please_help_!
134088 by: olinux
134096 by: arthur.chereau
134103 by: Marek Kilimajer

mktime with Feb or Jan ..
134089 by: Torsten Rosenberger
134105 by: Maxim Maletsky

file copy
134090 by: Cenk Uysal
134104 by: Maxim Maletsky

relayed mail question
134091 by: WMB
134098 by: Manuel Lemos

Re: + in filenames
134092 by: Marek Kilimajer

Re: Directory size
134094 by: Marek Kilimajer

Re: safe mode problem
134095 by: Marek Kilimajer
134099 by: Chris Hayes

arrays;session variable; empty variable
134097 by: André Rosendaal

Re: how to write clean code.
134100 by: David Eisenhart

exclude some results with mysql
134101 by: Clement Noterdaem
134102 by: Negrea Mihai

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
How do I create a graphic pie chart on the fly with PHP. I have already
figured out how to get the variables from the database and so forth am just
looking to create the graphics.

Thanks



--- End Message ---
--- Begin Message ---
You will have to look up how to use the GD libraries
Look up Image Functions in the manual... Or you could also google for online
tutorials/classes

Andrew
- Original Message -
From: "Vernon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 1:19 AM
Subject: [PHP] Graphic Pie Charts


> How do I create a graphic pie chart on the fly with PHP. I have already
> figured out how to get the variables from the database and so forth am
just
> looking to create the graphics.
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
Vernon wrote:

How do I create a graphic pie chart on the fly with PHP. I have already
figured out how to get the variables from the database and so forth am just
looking to create the graphics.

Thanks





If you have the GD libraries installed, you could use the
jpgraph libraries - google for jpgraph (aditus.nu I think, but
can't remember)

Michael Kimsal
http://www.phpappserver.com
734-480-9961


--- End Message ---
--- Begin Message ---
Hi,

Monday, February 3, 2003, 11:10:36 AM, you wrote:
DLM> Hello friends.

DLM> The follwing code displays the date on my webpage :

DLM> echo date ("l dS of F Y h:i:s A");

DLM> However, I need to add 12 hrs to this date befor displaying on the webpage. Can 
someone please help me to modify the above code?

DLM> Thanks
DLM> Denis


use strtotime to get the timestamp for date like this

echo date ("l dS of F Y h:i:s A", strtotime('+12 hours'));

If this is to compensate for a timezone difference you could also set the
timezone at the top of the page, for example

putenv('TZ=Australia/Brisbane');

Then date by itself will give the desired result

-- 
regards,
Tom


--- End Message ---
--- Begin Message ---
echo date ("l dS of F Y h:i:s A");
However, I need to add 12 hrs to this date befor displaying on the 
webpage. Can someone please help me to modify the above code?

$t = time() + (12 * 60 * 60);
echo date ("l dS of F Y h:i:s A", $t);

Larry


--- End Message ---
--- Begin Message ---
Hi,

Monday, February 3, 2003, 8:24:00 AM, you wrote:
BVB> When creating an image using the image functions how do you control the
BVB> type face size?

If you are using imagestring() the size is determined by the font number (1 - 5)
for internal fonts. If you use true type fonts then the size is set in each call to
imagettftext() as one of the parameters.

-- 
regards,
Tom


--- End Message ---
--- Begin Messa

php-general Digest 4 Feb 2003 13:44:09 -0000 Issue 1863

2003-02-04 Thread php-general-digest-help

php-general Digest 4 Feb 2003 13:44:09 - Issue 1863

Topics (messages 134199 through 134258):

list files in a dictory and its subdirectories
134199 by: Tomas Vorobjov
134202 by: Jason Sheets

Re: Help with classes (oop)
134200 by: Maxim Maletsky

Re: Bi-weekly pay period
134201 by: Jason Sheets
134258 by: bob parker

Re: PHP Sessions Not Saving
134203 by: Greg Donald
134212 by: Jason Wong
134218 by: nick.hostau.net
134236 by: Jonathan Wright

Knowing what page u came from...
134204 by: Mr. BuNgL3
134205 by: Leif K-Brooks

Using 404 instead of mod_rewrite
134206 by: Dennis Gearon
134214 by: Peter Janett
134215 by: Dennis Gearon

Re: php/mysql connection
134207 by: John W. Holmes

exec
134208 by: Nick Kordas  -: Wildthing Communications

Re: Etiquette
134209 by: Philip Olson
134210 by: Luke Woollard
134230 by: Götz Lohmsnn

Delete From Array
134211 by: Remon Redika
134216 by: Remon Redika

Thanks for help with classes
134213 by: Leonard Burton

Which link was selected?
134217 by: Karina S
134219 by: Leonard Burton
134225 by: Götz Lohmsnn
134226 by: Götz Lohmsnn

Socket error connecting to mySQL
134220 by: Bryan Lipscy
134221 by: Jason Wong
134222 by: Nick Kordas  -: Wildthing Communications
134228 by: Götz Lohmsnn

php3 + HTTP_POST_FILES
134223 by: electroteque

Re: POST_with_PHP_--_please_help_!
134224 by: Krzysztof Dziekiewicz

Re: How to compare 2 strings
134227 by: Krzysztof Dziekiewicz

Re: safe mode problem
134229 by: Marek Kilimajer

restricting acces to files
134231 by: Shams
134232 by: Jason Wong
134235 by: Götz Lohmsnn
134240 by: Götz Lohmsnn

Re: Make an MDB File on the Fly
134233 by: hboyce.eab.co.uk

Security question with PHP on Unix / Linux.
134234 by: Ananth Kesari

Re: How to check for refresh in PHP
134237 by: Götz Lohmsnn

Problem with include PHP 4.3.0
134238 by: Jean-Pierre Gallou
134243 by: Götz Lohmsnn
134252 by: Jean-Pierre Gallou
134256 by: Götz Lohmsnn

Variable objects?
134239 by: Leif K-Brooks
134244 by: Götz Lohmsnn

include_path problem on RH 8
134241 by: Paul
134247 by: Götz Lohmsnn
134249 by: Paul
134255 by: Götz Lohmsnn

Converting links in strings
134242 by: Randum Ian
134245 by: Götz Lohmsnn

Getting key of value added to array with []?
134246 by: Leif K-Brooks
134250 by: Götz Lohmsnn
134254 by: John W. Holmes

mail function
134248 by: Dale
134251 by: Götz Lohmsnn

Re: tracking bulk email
134253 by: Lowell Allen

Re: authentication
134257 by: ed.home.homes2see.com

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
hey!

this is the code I'm using to get into array all filenames in a directory:


$mydir = mydir //the directory name
$output_file = fopen($data_file, "w");
$begin = "");
fclose($output_file);

chmod($output_file, 0777); //to preview

echo "the list has been succesfully created";


now, how can I make the script to look into subdirectories of ./$mydir/
and output also those filenames into the same or another array?

thank you

--- End Message ---
--- Begin Message ---
An easy way would be to to convert your code to a function and use
recursion with an is_dir conditional.

Here is a quick example, there are also a few examples in the user notes
at the PHP manual for opendir or readdir.

function lsdir($dir) {
if ($handle = opendir($dir)) {
while false !==($filename = readdir($handle)) {
if (is_dir($dir . '/' . $filename)) {
lsdir($dir . '/' . $filename);
} elseif (is_file($dir . '/' . $filename) && $filename != '.' 
&&
$filename != '..') {
// file display code here
}
}

closedir($dir);
}
}   

I did not run the above code, just typed it for an example so the code
itself may or may not work but the concept will work.

Jason
On Mon, 2003-02-03 at 17:14, Tomas Vorobjov wrote:
> hey!
> 
> this is the code I'm using to get into array all filenames in a directory:
> 
> 
> $mydir = mydir //the directory name
> $output_file = fopen($data_file, "w");
> $begi

php-general Digest 5 Feb 2003 14:06:41 -0000 Issue 1865

2003-02-05 Thread php-general-digest-help

php-general Digest 5 Feb 2003 14:06:41 - Issue 1865

Topics (messages 134364 through 134404):

Re: Array find a element
134364 by: Bobby Patel
134384 by: mattias.ballou.se

Printing
134365 by: Chris Kay
134367 by: Jason Sheets

php problem
134366 by: Aaron Downes
134368 by: Jason Sheets
134369 by: Jason k Larson

Sessions and Cookies
134370 by: acleave
134371 by: Leif K-Brooks
134372 by: Dmitri
134391 by: 1LT John W. Holmes

inserting datas through table
134373 by: kumar

Best way to include multi-lingual support in an application.
134374 by: JJ Harrison
134385 by: mattias.ballou.se
134386 by: rush

Re: Security question with PHP on Unix / Linux.
134375 by: Ananth Kesari
134376 by: Ananth Kesari
134398 by: Maxim Maletsky

Re: Making /something/blah work instead of /something.php/blah
134377 by: Jason Wong

Re: WYSIWYG Content Management system?
134378 by: Jason Wong

fputs / fwrites
134379 by: Lee Herron
134381 by: Jason Wong

Re: Protect Access to a Directory
134380 by: Jason Wong
134383 by: Adrian Portsmouth

Object oriented Programming
134382 by: Sascha Braun

Re: PhpMyADmin Help
134387 by: Simon

restricting acces to files
134388 by: Shams

PHP connecting to MS Access
134389 by: Phil Schwarzmann
134401 by: Maxim Maletsky

Re: Is there a way to retrieve an entire source code from a php file?
134390 by: Chris Hayes

problems with gzuncompress data from fsockopen (data error)
134392 by: akorthaus.web.de

Creating associative array
134393 by: PHP
134394 by: Leif K-Brooks
134396 by: Chris Hayes
134397 by: Jason Wong

Re: Problem with include PHP 4.3.0
134395 by: Jean-Pierre Gallou

writing to the db on close
134399 by: Edward Peloke

getting javascript string values
134400 by: Gilberto Garcia Jr.
134403 by: Chris Hayes

Execute at a defined time
134402 by: Miguel Brás
134404 by: Tom Rogers

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
look at array_key_exists

"Narciso Miguel Rodrigues" <[EMAIL PROTECTED]> wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is possible to do something like
>
>   if ($username in $users) ... or i need to do a foreach($user){...}
>
> Thks
>
> [MsR]
>



--- End Message ---
--- Begin Message ---

You can use in_array (http://www.php.net/function.in_array) for this.

-- 
Mattias

--|-Original Message-
--|From: Narciso Miguel Rodrigues 
--|[mailto:[EMAIL PROTECTED]] 
--|Sent: Wednesday, February 05, 2003 02:03
--|To: [EMAIL PROTECTED]
--|Subject: [PHP] Array find a element
--|
--|
--|Is possible to do something like
--|
--|  if ($username in $users) ... or i need to do a foreach($user){...}
--|
--|Thks
--|
--|[MsR]
--|
--|
--|-- 
--|PHP General Mailing List (http://www.php.net/)
--|To unsubscribe, visit: http://www.php.net/unsub.php
--|
--|


--- End Message ---
--- Begin Message ---

I am thinking of running a print job from one system via the internet to
a network printer, this can be done...

Question 1..  Anyway had experience with a certain printer that would be
goof for this...

Question 2.. Could some one point me to the right place I may learn how
to print to a network printer with php on a RH 8.0 box

Thank you in advance

- 
Chris Kay (Systems Development) 
Techex Communications 
Website: www.techex.com.au Email: [EMAIL PROTECTED] 
Telephone: 1300 88 111 2 - Fax: 1300 882 221 
-  


--- End Message ---
--- Begin Message ---
If you have setup your printer with lpr then you can send print jobs
with PHP via lpr (using command line execution) to the printer.

You should be able to use other print systems that offer command line
printing as well.

Look at the PHP process execution functions for actually executing the
print command.

Jason
On Tue, 2003-02-04 at 21:09, Chris Kay wrote:
> 
> I am thinking of running a print job from one system via the internet to
> a network printer, this can be done...
> 
> Question 1..  Anyway had experience with a certain printer that would be
> goof for this...
> 
> Question 2.. Could some one point me to the right place I may learn how
> to print to a network printer with php on a RH 8.0 box
> 
> Thank you in advance
> 
> - 
> Chris Kay (Systems Development) 
> Techex Communications 
> Website: www.techex.com.au Email: [EMAIL PROTECTED] 
> Telephone: 1300 88 111 2 - Fax: 1300 882 

php-general Digest 7 Feb 2003 14:23:58 -0000 Issue 1869

2003-02-07 Thread php-general-digest-help

php-general Digest 7 Feb 2003 14:23:58 - Issue 1869

Topics (messages 134702 through 134724):

problems with ==?
134702 by: Peter Gumbrell
134703 by: Martin Towell
134710 by: Seraphim

Re: WYSIWYG Content Management system?
134704 by: . Nilaab
134705 by: Luke Woollard

Re: Client Side PHP
134706 by: Justin French

Re: Problem with include PHP 4.3.0 (Fixed)
134707 by: Jean-Pierre Gallou

session lost after window close
134708 by: Libor Bubik

Different dates with lmost same script
134709 by: Miguel Brás

Re: empty variables from a form
134711 by: Ford, Mike   [LSS]

Dynamic input fields in Form
134712 by: fkeessen.planet.nl
134714 by: Jon Haworth

dynamic form input fields
134713 by: fkeessen.planet.nl

Re: Powerpoint presentations?!?
134715 by: Philippe Saladin

looking for php mailing-list in chinese language
134716 by: yang.baozhang.com

Re: empty and isset
134717 by: Ford, Mike   [LSS]

4.0.6 to 4.3.0
134718 by: Brian V Bonini
134719 by: nicos.php.net

Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and 
imagecreatefrompng() id defined? A bug?
134720 by: SED
134721 by: nicos.php.net
134722 by: nicos.php.net
134723 by: SED
134724 by: nicos.php.net

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
In the following code

$view = $HTTP_GET_VARS[view];
print $view;
if ($view == "vendor")
{ code here
}

print $view produces 'vendor'

but the if statement in the next section isn't being triggered. Can anyone
see what is wrong here? I have tried double quotes, single quotes and no
quotes around 'vendor' but none of them work.

Thanks

Peter Gumbrell



--- End Message ---
--- Begin Message ---
check for leading/trailing spaces

if (trim($view) == "vendor")

HTH
Martin

-Original Message-
From: Peter Gumbrell [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 3:07 PM
To: Php-General
Subject: [PHP] problems with ==?


In the following code

$view = $HTTP_GET_VARS[view];
print $view;
if ($view == "vendor")
{ code here
}

print $view produces 'vendor'

but the if statement in the next section isn't being triggered. Can anyone
see what is wrong here? I have tried double quotes, single quotes and no
quotes around 'vendor' but none of them work.

Thanks

Peter Gumbrell



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

--- End Message ---
--- Begin Message ---
Peter Gumbrell wrote:
> In the following code
>
> $view = $HTTP_GET_VARS[view];
> print $view;
> if ($view == "vendor")
> { code here
> }
>
> print $view produces 'vendor'
>
> but the if statement in the next section isn't being triggered. Can
> anyone see what is wrong here? I have tried double quotes, single
> quotes and no quotes around 'vendor' but none of them work.

You forgot the qoutes around the array argument:
$HTTP_GET_VARS[view] should be $HTTP_GET_VARS['view'].

-Peter



--- End Message ---
--- Begin Message ---
Why don't you two gather up a few more developers, decide on what is needed
and what the goals are, then assign parts to build for the new CMS. Once
finished, you can maybe present it to PHP.net and see if they will allow it
to be developed and documented in the future by other developers. A CMS is a
very important and popular prog, so it might get the same attention as basic
templates get, like SMARTY. Who knows, maybe it can even be integrated with
SMARTY too, and/or other PHP programs still out there. This might yield one
of the best CMS out there in the PHP world, which can constantly be
developed. There's my two cents, good luck...



> -Original Message-
> From: Sascha Braun [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 05, 2003 7:01 PM
> To: PHP General list; Hardik Doshi
> Subject: Re: [PHP] WYSIWYG Content Management system?
>
>
> I am working on such a CMS right yet.
>
> I want to implement infinitly Language Support and an Wordpad
> like HTML Editor which allows you to chose basic design tem-
> plates and lets you upload some images.
>
> I want to build an extraordinary Usermanagement, where you can
> write parts of an Text while somebody else is writing on another
> Part of the same text maybe in different language at the same Time.
>
> When you wrote a text you can chose between your mates for
> let them make the translation based on userprofiles every web-
> content admin has to fill out.
>
> And a lota more things, but right now i dont have very much time,
> I have to build a small shop inbetween. But the Multilanguage sup-
> port ist basically finished.
>

php-general Digest 8 Feb 2003 15:01:27 -0000 Issue 1871

2003-02-08 Thread php-general-digest-help

php-general Digest 8 Feb 2003 15:01:27 - Issue 1871

Topics (messages 134845 through 134872):

Re: delete query doesnt work
134845 by: Hardik Doshi

Re: strip slashes from variable content
134846 by: Hardik Doshi

Re: mail() vs sockets
134847 by: Jason Wong
134852 by: Jeff Busby

PHP 4.3.0 safe_mode
134848 by: Devin

Re: delete query doesnt work (fixed)
134849 by: Chris Shiflett

Array sorting
134850 by: Zydox
134856 by: Philip Hallstrom

Re: Strings and regular expression?
134851 by: John W. Holmes

Re: ImageJPEG?
134853 by: Jason Wong

Permenant Page Generation
134854 by: Mecca
134855 by: Mecca
134857 by: John W. Holmes

Re: Need To Find A php Person
134858 by: Jean-Christian Imbeault

Re: mysql auto increment question
134859 by: Justin Garrett

Re: GD Chinese support - php4.3
134860 by: Eddy-Das

Re: Dynamic input fields in Form
134861 by: Frank Keessen

Re: Multi-User phpMyAdmin
134862 by: MIKE YRABEDRA

Re: Vars in URL
134863 by: Justin French

How to remove only the last character?
134864 by: Douglas Douglas
134865 by: Ian Packer
134867 by: nicos.php.net
134869 by: Douglas Douglas

config.ini question
134866 by: RoyW

Globals off and passing data
134868 by: Paul
134871 by: Jason Wong
134872 by: Paul

pg_connect $B$,;H$($J$$(B
134870 by: $BNS(B $B7C72(B

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hi,

I think you are facing problem with variable delete.
Make sure your Php.ini settings for global off. Check
value of variable is coming on the form or not.

In case of your update, i think you forget to put
where part. For example: 

mysql_query("update table_name set
varible_name='$variable_name' WHERE key_name =
'$key_variable') or die(mysql_error());

May be it will help u

Hardik
--- Sunfire <[EMAIL PROTECTED]> wrote:
> i have a delete query:
> mysql_query("delete from members where
> company='$delete');
> 
> it doesnt work should i change it to :
> mysql_query("delete from members where company like
> '$delete'");??
> 
> the first one worked in mysql client but it doesnt
> work in php script for
> some reason...
> 
> 
> also having problems with update... if nothing on
> the form changes and it
> gets submitted anyways all the records in the db
> gets changed to the same
> thing that one record  has in it...
> 
> 
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system
> (http://www.grisoft.com).
> Version: 6.0.443 / Virus Database: 248 - Release
> Date: 1/10/2003
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--- End Message ---
--- Begin Message ---
Ok i got your problem.

First of all check php.ini settings for
magic_gpc_quotes. If it is on then turn it off. I
guess that the only problem you have. If you want to
make it turn it on then you have to use stripslashes
function.

thanks

Hardik
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> On Saturday 08 February 2003 09:51, Sunfire wrote:
> > hi..
> > i have a hidden variable and when its submitted to
> another script it has
> > the value of "\\\... anybody know how to get the \
> out of it?
> 
> Search www.php.net for "strip slash".
> 
> -- 
> Jason Wong -> Gremlins Associates ->
> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet
> Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> "The first rule of magic is simple.  Don't waste
> your time waving your
> hands and hoping when a rock or a club will do."
>   -- McCloctnik the Lucid
> */
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--- End Message ---
--- Begin Message ---
On Saturday 08 February 2003 06:39, Jeff Busby wrote:
> Sorry, every time I posted I got an auto reply saying it had an attatchment
> and it wasn't sent...and I had to post again.  The only way it worked was
> for me to reply to another post and change the subject and message.  Didn't
> mean to annoy anyone with multiple posts.

1) Don't attach attachments, mos

php-general Digest 9 Feb 2003 03:04:49 -0000 Issue 1872

2003-02-08 Thread php-general-digest-help

php-general Digest 9 Feb 2003 03:04:49 - Issue 1872

Topics (messages 134873 through 134932):

Re: Globals off and passing data
134873 by: Jason Wong

Single vs. Multiple DBs || Which way to go?
134874 by: CF High
134875 by: John W. Holmes
134876 by: CF High

need help with preg_match
134877 by: joe
134895 by: Chris Hayes
134902 by: joe
134908 by: John W. Holmes

Permenant Page Generation
134878 by: Mecca
134880 by: Mecca
134882 by: Jason Sheets
134910 by: John W. Holmes

Problems with SQL queries in PHP script
134879 by: Mike Hilty
134881 by: Justin Garrett

Attaining NTLM information from IE browsers.
134883 by: Marriner, Bruce W.
134888 by: Danny Shepherd

Downloading File rather then Executing
134884 by: Stephen Craton
134886 by: Jason Wong
134887 by: Stephen Craton

html tags
134885 by: Erich C. Beyrent

problems with 'exec' in 4.3
134889 by: Gav

Another Prob: MySQL Passwords
134890 by: Stephen Craton

Alternating Row Colors in PHP
134891 by: CF High
134892 by: olinux
134893 by: Chris Hayes
134896 by: CF High
134919 by: Brian V Bonini

Problem When Linking Array Element To Itself
134894 by: Guru Geek
134897 by: Chris Hayes

Output mmdd formatted date || 20030131 to FridayJanuary 31, 2003
134898 by: CF High
134899 by: Michael Geier
134900 by: CF High
134909 by: John W. Holmes
134917 by: CF High
134922 by: John W. Holmes

returning results of cURL POST
134901 by: Lowell Allen
134904 by: Lowell Allen

Re: 3 tier web development
134903 by: Jonathan Chum

any windows php developers out here?
134905 by: Victor
134906 by: John W. Holmes
134907 by: Jason Sheets
134915 by: Victor
134916 by: Victor
134920 by: Adolfo Bello
134926 by: Victor
134929 by: Adolfo Bello
134930 by: John W. Holmes

question about quote and double-quoted strings
134911 by: Duncan
134913 by: Justin Garrett

Test
134912 by: John Nichel

MIME Decoding Class
134914 by: Jonathan Chum
134918 by: Hatem Ben

Why does this happen?
134921 by: CF High
134927 by: Victor
134928 by: John W. Holmes

How to uncompress PHP
134923 by: $BNS(B $B7C72(B
134924 by: Victor
134925 by: Adolfo Bello

Re: How to remove only the last character?
134931 by: Kevin Waterson

fopen problem
134932 by: Jeff Schwartz

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
On Sunday 09 February 2003 07:59, Paul wrote:
> I'm opening a socket to the remote machine and using post to send the data.
> But please enlighten me, what is the usual method of accessing a remote
> database?

One usually use stuff like mysql_connect() and friends to connect to 
databases. If you're using 'post' (as in HTTP POST) then aren't you in fact 
accessing a webserver which returns data from a database as opposed to 
accessing the database directly?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
If it heals good, say it.
*/


--- End Message ---
--- Begin Message ---
Hey all.

I'm attempting to organize a sport report site into working order.

We've got approximately 100 tables, and I'm unsure whether to break the info
up by sport (i.e. baseball, basketball, hockey, etc.) or to lump all the
tables in one db and prefix tables by their sport name (e.g. bk_scoring =
basketball scoring table).

On the surface, it would seem easier to use multiple dbs, but then again,
common tables, such as schools and coach_info would have to be duplicated in
each db.

Any ideas/suggestions much appreciated,

--Noah

--




--- End Message ---
--- Begin Message ---
> I'm attempting to organize a sport report site into working order.
> 
> We've got approximately 100 tables, and I'm unsure whether to break
the
> info
> up by sport (i.e. baseball, basketball, hockey, etc.) or to lump all
the
> tables in one db and prefix tables by their sport name (e.g.
bk_scoring =
> basketball scoring table).

How about just a "scoring" table that has a column on whether it's
Basketball, Hockey, Basket-Weaving, etc? How similar are the scoring
tables between sports? If the tables for each sport are the same, the

php-general Digest 9 Feb 2003 15:07:01 -0000 Issue 1873

2003-02-09 Thread php-general-digest-help

php-general Digest 9 Feb 2003 15:07:01 - Issue 1873

Topics (messages 134933 through 134947):

Class Interfaces
134933 by: Laborda
134940 by: Justin Garrett
134947 by: rush

Re: How to uncompress PHP
134934 by: David T-G

Data Structures
134935 by: Laborda
134938 by: Justin Garrett
134946 by: Ernest E Vogelsinger

Re: Why does this happen?
134936 by: Jason k Larson
134945 by: Ernest E Vogelsinger

how to move database from one server to another
134937 by: Sunfire
134939 by: Kevin Waterson

incromenting $counter in a whloop
134941 by: Sunfire
134942 by: Jason Wong
134943 by: John W. Holmes

multiple file upload, yet again
134944 by: David T-G

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hello,

I have a question.. Does PHP have support for Class Interfaces declaration?
What in Java would be:

public interface MyInterface {
final String aString = "Str";
final String oString = "String";
void aFunction(String inter, double face);
}

? If not, how can I do this?.. Thanks a lot.

Laborda.-


--- End Message ---
--- Begin Message ---
Nope.  You're stuck with straight single inheritance for now.

Justin Garrett

"Laborda" <[EMAIL PROTECTED]> wrote in message
005201c2cfe9$47c704b0$ad629c40@galaxy">news:005201c2cfe9$47c704b0$ad629c40@galaxy...
>
> Hello,
>
> I have a question.. Does PHP have support for Class Interfaces
declaration?
> What in Java would be:
>
> public interface MyInterface {
> final String aString = "Str";
> final String oString = "String";
> void aFunction(String inter, double face);
> }
>
> ? If not, how can I do this?.. Thanks a lot.
>
> Laborda.-
>



--- End Message ---
--- Begin Message ---
"Laborda" <[EMAIL PROTECTED]> wrote in message
005201c2cfe9$47c704b0$ad629c40@galaxy">news:005201c2cfe9$47c704b0$ad629c40@galaxy...
>
> Hello,
>
> I have a question.. Does PHP have support for Class Interfaces
declaration?
> What in Java would be:
>
> ? If not, how can I do this?.. Thanks a lot.

Well, interfaces are needed in Java since it is a statically typed language.
For dynamically typed language like php there is no need for it. If you
would like to do it just for the documentation sake, than write abstract
class like:

class pehro_interface {
function a1() {}
function a2() {}
function a3() {}
}


rush
--
http://www.templatetamer.com/




--- End Message ---
--- Begin Message ---
Lin --

...and then ?$BNS?(B ?$B7C72?(B said...
% 
% Hi, I am Lin.

Hello!


% 
% When I execute a command
% 
% gzip -d php-4_3_0_tar.gz
% 
% on the linux. The system show the following error.
% 
% gzip: php-4_3_0_tar.gz: not in gzip format
% 
% How can I uncompress this file.

Sounds like it isn't compressed, no matter what the extension says.  What
does

  file php-4_3_0_tar.gz

tell you?  And what if you just run tar on it, without any z flag?


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg96295/pgp0.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Hello,

Does anyone know where can I find information about data structures
implemented in PHP. I need to find something about Linked Lists, implemented
in PHP.. If anyone has any info, I'd appreciate it. I've tried to google it
out but I can't find anything. Thanks.

Laborda.-


--- End Message ---
--- Begin Message ---
You'd create a linked list in PHP just like you would in most languages,
however IMHO it's best just to stick with PHP arrays.  They grow dynamically
and are so easy to work with.

There is an ADT extension scheduled for PHP5
http://www.php.net/~sterling/adt/

Justin Garrett

"Laborda" <[EMAIL PROTECTED]> wrote in message
007501c2cfed$777f1090$ad629c40@galaxy">news:007501c2cfed$777f1090$ad629c40@galaxy...
> Hello,
>
> Does anyone know where can I find information about data structures
> implemented in PHP. I need to find something about Linked Lists,
implemented
> in PHP.. If anyone has any info, I'd appreciate it. I've tried to google
it
> out but I can't find anything. Thanks.
>
> Laborda.-
>



--- End Message ---
--- Begin Message ---
At 04:43 09.02.2003, Laborda said:
[snip]
>Does anyone know where can I find information about data structures
>implemented in PHP. I need to find something about Linked Lists, implemented
>in PHP.. If anyone has any info, I'd appreciate it. I've tried to google it
>out but I can't find anything. Thanks.
---

php-general Digest 10 Feb 2003 06:30:22 -0000 Issue 1874

2003-02-09 Thread php-general-digest-help

php-general Digest 10 Feb 2003 06:30:22 - Issue 1874

Topics (messages 134948 through 135013):

Re: any windows php developers out here?
134948 by: rush
134960 by: Victor
134972 by: Victor
134990 by: Lee W

Re: Alternating Row Colors in PHP
134949 by: rush

Re: incromenting $counter in a whloop
134950 by: Sunfire

MySQL Username and Passwords
134951 by: Stephen Craton
134952 by: John Nichel
134953 by: Stephen Craton
134989 by: Thomas Seifert
134992 by: Stephen Craton

Re: jumping between php and html or using echo for printing html-tags.
134954 by: Askengren

Re: Why does this happen?
134955 by: CF High
134978 by: CF High

Re: Output mmdd formatted date || 20030131 to FridayJanuary 31, 2003
134956 by: CF High

Beginners question
134957 by: Martin Purdy
134958 by: Leif K-Brooks
134966 by: Martin Purdy
134967 by: Paul Roberts
134968 by: Leif K-Brooks

Files upload
134959 by: Max 'AMiGo' Gashkov
134962 by: Andrew Brampton

Confirmation e-mail
134961 by: Davy Obdam

Object In a class
134963 by: Justin Mazzi
134971 by: John Wells

encoding problems
134964 by: adam muller
134980 by: Gurhan Ozen

Re: [PHP-DB] Confirmation e-mail
134965 by: Ruprecht Helms

PHP and Serach Engines...
134969 by: Steven Kallstrom
134970 by: Chris Hayes

Static functions
134973 by: Leo Spalteholz
134976 by: Chris Hayes
134977 by: David Eisenhart
134979 by: Chris Hayes
134983 by: David Eisenhart
134993 by: Leo Spalteholz
134996 by: Leo Spalteholz
135000 by: David Eisenhart

Shopping Cart
134974 by: Chris Cook

Re: File upload problem
134975 by: Gurhan Ozen
134985 by: David Rice
135003 by: Jason Wong

Printing
134981 by: Chris Kay

Re: multiple file upload, yet again
134982 by: Gurhan Ozen
135002 by: David T-G
135005 by: Jason Wong

appending file with new line first
134984 by: Guru Geek
134986 by: Chris Kay

Returning to a Previous Page
134987 by: Nelson Goforth

Re: Static functions (java/php)
134988 by: Chris Hayes
134997 by: Joshua Moore-Oliva
134998 by: David Eisenhart
134999 by: David Eisenhart
135001 by: Robert Cummings
135004 by: Joshua Moore-Oliva
135006 by: Jason Wong

Re: html tags
134991 by: Lee W

imap_open
134994 by: Bartosz Matosiuk

Drop in replacement for session_decode() ?
134995 by: Uchendu Nwachukwu

Testing..
135007 by: Troy May
135008 by: Paul Marinas

Mysql Select
135009 by: andraskende.kende.com
135010 by: andraskende.kende.com
135011 by: Nicola Delbono

Trouble with resizing image!!
135012 by: Geckodeep

Controlling browser windows with php?
135013 by: Geoff Lists

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
It works reliably. I have used Abria Merlin form abria soft to install
apache, php, mysql, and various utils on my machine. It is single install
that installs without problems. The php version inside is a bit dated, but
you can later on easily replace it once everything is connected and working
properly.

rush
--
http://www.templatetamer.com/




--- End Message ---
--- Begin Message ---
Kk, I got it to work in apache 2.X on redhat 8.0 all I had to do is
start apache from the directory it resides in and then it work sfine,
but I will try your notes also and get it working on windows too.
Thanks, I'll see if I have more problems...

-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 08, 2003 8:58 PM
To: 'Victor'; [EMAIL PROTECTED]
Subject: RE: [PHP] any windows php developers out here?

> So I guess I al looking to finding out what I need to configure IIS to
> to get the ISAPI module to work, etc.

1. Unzip the php .zip file to C:\php\

2. Copy c:\php\sapi\php4isapi.dll to c:\php\php4isapi.dll

3. Ensure the user IIS runs as, generally IUSR_, has read
permissions to C:\php\ and all subdirectories.

4. Follow directions as in the manual

5. Shut down IIS (net stop iisadmin)

6. Open up IIS control panel

7. Add ISAPI filter pointing to c:\php\php4isapi.dll

8. Add application mapping pointing to c:\php\php4isapi.dll

9. Start up IIS (net start w3svc)

That's it...

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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

php-general Digest 11 Feb 2003 18:55:28 -0000 Issue 1877

2003-02-11 Thread php-general-digest-help

php-general Digest 11 Feb 2003 18:55:28 - Issue 1877

Topics (messages 135167 through 135223):

Regex Help
135167 by: Lord Loh.
135171 by: Ernest E Vogelsinger
135173 by: Chris Hayes
135183 by: Kevin Waterson

Re: Why use XML?
135168 by: Ilya Nemihin

Re: " and ' giving problems
135169 by: Michiel van Heusden

Re: How to use fopen() with protected directory (i.e .htaccess)
135170 by: Ernest E Vogelsinger

Re: Newbie recursive directory
135172 by: Chris Hayes

Objects: Cant set object variables with refrences ...
135174 by: James
135187 by: michael kimsal
135189 by: James

File upload???
135175 by: Kenneth Suralta
135176 by: Francesco Leonetti

Q: File not rewritable - why? Help needed.
135177 by: user.domain.invalid

How to check acces to modeuls files and dirs
135178 by: Konference

Re: several buttons in form - which one was clicked
135179 by: James

Session into class
135180 by: ZioBudda

Q. on ereg_replace
135181 by: Michiel van Heusden
135186 by: Michiel van Heusden

If no record in MySQL how to?
135182 by: Steve Jackson
135184 by: Marek Kilimajer
135185 by: Steve Jackson

Re: mac os 9 - file upload problems
135188 by: Lowell Allen
135195 by: Step Schwarz

Re: sorting multi-dimensional array where array elements are structs [simple class]
135190 by: Erin Fry

help me
135191 by: Cavallaro, Vito
135219 by: Ray Hunter
135220 by: Cavallaro, Vito
135221 by: Ray Hunter

Image processing: tolerance of damaged files
135192 by: Geoff Caplan

Problem with FTP and fopen
135193 by: Chris Boget
135194 by: Adam Voigt
135196 by: Robin Mordasiewicz

Re: Directory size
135197 by: Jeff Pauls

PHP can create, but not delete
135198 by: Greg

Search Results - Web Page has Expired after Viewing Results
135199 by: Vernon
135201 by: Marek Kilimajer
135208 by: Vernon
135209 by: Chris Shiflett
135210 by: Marek Kilimajer
135213 by: Vernon

Alternative to PDFlib with PDI
135200 by: Michael E. Barker

RSA implementation
135202 by: José León Serna
135215 by: Chris Hewitt

array_fill error
135203 by: Erin Fry
135205 by: Barajas, Arturo
135207 by: Jason Wong

Help With Form Mail
135204 by: WAW
135211 by: Marek Kilimajer

PHP 4.3.0 + MSSQL database authentication problem?
135206 by: Alan Murrell
135216 by: Alan Murrell

Date check
135212 by: Fredrik
135214 by: Jon Haworth

Show the info to update depending on the selection
135217 by: Miguel Brás

mail() and php.ini  (Any Luck???)
135218 by: Scott Fletcher
135222 by: Jason Wong

PHP FTP  a security risk?
135223 by: Christopher Ditty

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
I am new to regex and broke my head on it the other day...in vain...

Can any one tell me a place to get a step by step tutorial on it or help me
out on how to work it out ?

I am trying to make a link collector.

after opening the desired page, I want to get all the hyperlinks on it...

Thank You!
==
~ Lord Loh ~
==



--- End Message ---
--- Begin Message ---
At 07:47 11.02.2003, Lord Loh. said:
[snip]
>I am new to regex and broke my head on it the other day...in vain...
>
>Can any one tell me a place to get a step by step tutorial on it or help me
>out on how to work it out ?

http://www.php.net/manual/en/ref.pcre.php
http://www.perldoc.com/perl5.6/pod/perlre.html


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



--- End Message ---
--- Begin Message ---
At 07:47 11-2-2003, you wrote:

I am new to regex and broke my head on it the other day...in vain...

Can any one tell me a place to get a step by step tutorial on it or help me
out on how to work it out ?


Some tutorials:
http://codewalkers.com/tutorials/30/3/  Codewalkers - Using PCRE
http://samuelfullman.com/team/php/working/regex.php PCRE - Samuel Fullman
 http://www.yapf.net/faq.php?cmd=viewitem&itemid=113  How can i 
replace text between two tags
http://www.yapf.net/faq.php?cmd=viewitem&itemid=152 Counting words
http://www.phpbuilder.com/columns/dario19990616.php3  Learning to use 
Regular Expressions by example
 http://www.phpbuilder.com/columns/dario19990616.php3?page=3 email addresses



I am trying to make a link collector.

after opening the desired page, I want to get all the hyperlinks on it...




--- End Message ---
--- Begin Message

php-general Digest 12 Feb 2003 07:00:41 -0000 Issue 1878

2003-02-11 Thread php-general-digest-help

php-general Digest 12 Feb 2003 07:00:41 - Issue 1878

Topics (messages 135224 through 135274):

passing array as a form variable
135224 by: Edward Peloke
135225 by: Leif K-Brooks
135226 by: Jason Wong

Re: mail() and php.ini  (Any Luck???)
135227 by: Scott Fletcher
135231 by: Reuben D. Budiardja
135232 by: Jason Wong
135233 by: Scott Fletcher
135244 by: Scott Fletcher

Re: PHP FTP  a security risk?
135228 by: Jason Wong
135229 by: Reuben D. Budiardja
135230 by: Christopher Ditty
135234 by: Chris Wesley
135239 by: Chris Wesley
135240 by: Christopher Ditty
135241 by: Chris Shiflett
135248 by: James E Hicks III
135256 by: Chris Wesley
135269 by: Jason Wong
135271 by: Chris Wesley
135272 by: Jason Wong
135274 by: Chris Wesley

Newbie php.ini
135235 by: Val Schmidt

passing a query string to a popup window problems
135236 by: Brad Esclavon
135237 by: John Nichel
135238 by: Kevin Stone

newbie-php user tracker prob
135242 by: Fireborn Silvaranth
135243 by: Chris Shiflett
135255 by: Fireborn Silvaranth

OO newb questionquery results from a class
135245 by: Cory Hicks
135247 by: Chris Boget

Re: setcookie() in various browsers.. 3rd followup.. anyone?
135246 by: Chad Day
135268 by: Jason Wong
135273 by: Peter Janett

Re: File not rewritable - why? Help needed.
135249 by: Bobby Patel

Re: Why use XML?
135250 by: David Eisenhart

Re: [PHP-DEV] include() and sessions
135251 by: Chris Shiflett

possible mail() bug
135252 by: Matt Phillips

grief with printf(), padding and alignment of text
135253 by: Robert E. Harvey, M.D.
135263 by: Matt

concurrent fopen fwrite fclose
135254 by: Frederick L. Steinkopf

Re: File upload???
135257 by: Kenneth Suralta
135265 by: David Freeman

php & javascript drop down menu???
135258 by: Jeff Bluemel

Re: sorting multi-dimensional array where array elements are structs [simple class]
135259 by: Michael Sims

Re: PHP-based SMS solution
135260 by: YC Nyon

Classes, global objects, and pointers
135261 by: John Hughes

default php sessions in a database
135262 by: Robin Mordasiewicz
135264 by: Tom Rogers

Re: Need To Find A php Person
135266 by: rija

Issue saving php that includes constant---
135267 by: Shawn McKenzie

msession users
135270 by: Robin Mordasiewicz

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Can I take the select array

Ex.
$myrow=mysql_fetch_array($result);


and pass this as a form variable to another page?




Thanks,
Eddie

--- End Message ---
--- Begin Message ---
www.php.net/serialize
www.php.net/unserialize

Edward Peloke wrote:


Can I take the select array

Ex.
$myrow=mysql_fetch_array($result);


and pass this as a form variable to another page?




Thanks,
Eddie

 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




--- End Message ---
--- Begin Message ---
On Wednesday 12 February 2003 02:56, Edward Peloke wrote:
> Can I take the select array
>
> Ex.
> $myrow=mysql_fetch_array($result);
>
>
> and pass this as a form variable to another page?
>
> 

archives > passing array

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Dow's Law:
In a hierarchical organization, the higher the level,
the greater the confusion.
*/


--- End Message ---
--- Begin Message ---
Someone send me an email to take a look at this
URLhttp://www.php.net/manual/fi/ref.imap.php .

The send mail on Unix is too basic, not like MS-Exchange...  I need things
like file attachment, Bcc, cc, etc  Also, it is too slow because the
machine have problem with DNS while many Windows doesn't have this problem.

Thanks for the link to www.phpclasses.org .  Will look into it.

Scott F.

"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Wednesday 12 February 2003 02:12, Scott Fletcher wrote:
>
> > The webserver is a Unix machine.  I don't want to send the email from
the
> > Unix machine, I want to do that from Window.  So, if I configure hte
> > php.ini to find the MS-Exchange on

php-general Digest 13 Feb 2003 08:07:17 -0000 Issue 1880

2003-02-13 Thread php-general-digest-help

php-general Digest 13 Feb 2003 08:07:17 - Issue 1880

Topics (messages 135350 through 135395):

Re: Passing PostgreSQL resource
135350 by: Joshua Moore-Oliva
135351 by: Joshua Moore-Oliva

Re: php & javascript drop down menu???
135352 by: Jeff Bluemel

Re: setcookie on PHP??
135353 by: Daniel Masson

string to array
135354 by: Kevin Waterson
135356 by: Leif K-Brooks
135357 by: Steve Werby

Announcement: Smarty template engine 2.4.2 released
135355 by: Monte Ohrt

How do you... get a text stream into IMAP parsing...
135358 by: Les Barstow

when is OOP a good choice?
135359 by: anders thoresson
135369 by: Le Yang
135371 by: Vladimir Galkov
135388 by: php.errorcode.com

Re: PHP & JavaScript
135360 by: Greg

Re: Failed opening
135361 by: Ernest E Vogelsinger

PGP and PHP together???
135362 by: MIKE YRABEDRA
135384 by: David T-G
135385 by: Jason Sheets
135386 by: David T-G

undefined function - crypt()
135363 by: Anthony Ritter
135364 by: Greg
135365 by: Barajas, Arturo
135367 by: Anthony Ritter

Re: restricting access to files using PHP
135366 by: Ernest E Vogelsinger

Re: MySQL Login Setup not working with PHP
135368 by: Ernest E Vogelsinger

Re: Learning PHP
135370 by: Ernest E Vogelsinger

IS PEAR Secure?
135372 by: MIKE YRABEDRA

Re: var_export() strips slashes
135373 by: Shawn McKenzie

Database problem - works in Windows - not Linux
135374 by: Lee P. Reilly
135378 by: Chris Hewitt
135392 by: Mike Mannakee

ftp_get()
135375 by: Muti
135376 by: Barajas, Arturo
135389 by: Tom Rogers

Pspell
135377 by: John Nichel

Output Compression stops working after a while
135379 by: Zavier Sheran

$$ Variable?
135380 by: jtx.hatesville.com
135381 by: Philip Hallstrom
135382 by: jtx.hatesville.com
135383 by: Ernest E Vogelsinger

Re: File not rewritable - why? Help needed.
135387 by: Paul Dunkel

IIS
135390 by: Joe Njeru

GD and 4.3
135391 by: Joseph Bannon
135393 by: Kevin Waterson

Q: file writing problem - help desperately needed
135394 by: Paul Dunkel

cookie problem
135395 by: Terry Lau

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
There's really no other way to do it...

You can't serialize a connection or resultset since they are both resources...

If you really wanted you could turn a recordset into an array and store that 
as a serialised object and pass it around...  but

a) Depending on how much data a recordset returned it could be quite a 
slowdown on page viewing.
b) It could be a security breach in case there was data int he recordset you 
never show to the public btu you need for calculations.
c) Changes made to the database since the last retrieval would not display.

A server is meant to store and serve data..  There really is no other way 
about it =).

Josh.

On February 12, 2003 01:52 pm, Lucas Lain wrote:
> i will use it for the moment but i was thinking in a "light" solution
> ... i dont like the idea of creating a temp table for each page...
>

--- End Message ---
--- Begin Message ---
Oh btw, you will have to remove those isString and isint functions..  they are 
other parts of my library that just check the type of a variable...

and log a message through an error handling system I've set up..  I'd have the 
library up now but it's not that well commented..

Josh.

On February 12, 2003 01:30 pm, Joshua Moore-Oliva wrote:
> Try this function...  it's one part of a php class I've been thinking about
> making open-source.  Give it any sql statement and a page (0 based for the
> page) and a number of records for a page and you are set.
>
> I've only tested this on postgresql.
>
> function pageSql( $sql, $page, $recs_per_page ) {
>
>   $this->isString( '$sql', $sql );
>   $this->isInt( '$page', $page );
>   $this->isInt( '$recs_per_page', $recs_per_page );
>
>   $sql = trim( $sql );
>   $sql = substr( $sql, strlen( "SELECT" ) );
>
>   if ( $sql[strlen($sql)-1] != ";" ) {
>   $sql .= ";";
>   }
>
>   $sql = sprintf( "CREATE TEMP SEQUENCE temp_sequence;\n"
> . "CREATE TEMP TABLE temp_table AS\n"
> . "SELECT nextval( 'temp_sequence' ) AS temporary_idASDF,
> %s\n"
>   . "SELECT ( SELECT COUNT(*) 
>FROM temp_table\n"
> . "  
> WHERE temporary_idASDF > %d ) AS recs_remaining, \n"
> . "   

php-general Digest 14 Feb 2003 08:12:29 -0000 Issue 1882

2003-02-14 Thread php-general-digest-help

php-general Digest 14 Feb 2003 08:12:29 - Issue 1882

Topics (messages 135511 through 135562):

Re: problems with cookies and PHP
135511 by: Rick Emery
135514 by: Bryan Lipscy

sososoosos
135512 by: Luis A
135513 by: Leif K-Brooks
135516 by: Tim Thorburn

What's the scoop on PHP 5?
135515 by: Leif K-Brooks
135528 by: Danny Shepherd

By reference
135517 by: Chris Boget
135523 by: Chris Wesley

Re: GD and 4.3
135518 by: Joseph Bannon
135547 by: Jason Wong

Enable CLI on Mac OS X
135519 by: Dan Tappin

Add a record and recover it's ID in one operation
135520 by: Daniel Page
135521 by: Leif K-Brooks
135525 by: Daniel Page
135529 by: Chris Kay
135530 by: Chris Shiflett

Simple PHP script
135522 by: Poon, Kelvin (Infomart)
135524 by: John Nichel
135526 by: Poon, Kelvin (Infomart)
135527 by: janet.valade.com

Use GnuPG with PHP?
135531 by: MIKE YRABEDRA

Sorting multidimensional arrays
135532 by: Sean Brown
135540 by: Chris Wesley

Templates
135533 by: Darren Young
135534 by: Justin French
135535 by: Justin French
135537 by: Darren Young
135539 by: Justin French
135545 by: php.errorcode.com

Calculating U.S. Taxes (regional)
135536 by: [-^-!-%-

Error compiling php
135538 by: Adam Plocher

Reading File Name
135541 by: PR
135546 by: Jason Wong

I need examples of WRITING to XML wth PHP
135542 by: Daevid Vincent
135551 by: Manuel Lemos

programming question
135543 by: Thomas Moore
135550 by: olinux

Re: Login system using PHP/MySql
135544 by: YC Nyon
135549 by: olinux

Re: crypt()
135548 by: Jason Wong
135558 by: SLanger.spirit21.de

encrypt passwords on URL
135552 by: Petre Agenbag

upgrading from 4.1.2 to 4.3.0 - can anyone point me to a list of MUST DO'S
135553 by: Brian Tully

Re: Process array after form submission problem
135554 by: Steve Jackson

image creation error
13 by: Michael P. Carel
135556 by: Kevin Waterson
135557 by: Michael P. Carel
135562 by: Michael P. Carel

Re: PHP-based SMS solution
135559 by: Mika Tuupola

Include() problems
135560 by: Leo Spalteholz

Re: Include() problems IGNORE PARENT
135561 by: Leo Spalteholz

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
In your  code, it appears you are attempting to determine the value of the cookie 
immediately upon
setting.  The value of the cookie is NOT available at this point; a new page must be 
opened.

Why are you setting time to 0?  If you want cookie to disappear at end of the session, 
use NULL.

Are you certain that $_COOKIE[] is available to you?  have you tried 
$HTTP_COOKIE_VARS[]?

Your code ends with two braces ( } ); why?  It should end with a single brace.
- Original Message -
From: "Joshua Chapman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 12:57 PM
Subject: [PHP] problems with cookies and PHP


This is driving me nuts... it won't set or reset the cookie
no errors no nothing...
I've learned quite a bit about cookies and PHP thus far but something important must 
still be
eluding me. I've read the manual entry on it, is there any other tutorial out there 
that's better?
what am I doing wrong?




--- End Message ---
--- Begin Message ---
I have been playing with this at home.

Perhaps this makes it a bit easier.

boolean setcookie ( string name [, string value [, int expire [, string
path [, string domain [, int secure])
boolean setcookie (name, value, expire, path, domain, secure)



Fwiw, a solution from another project:



--- End Message ---
--- Begin Message ---
HI EVERY BODY=20


I HAVE THE FOLLOWING TROUBLE INSTALING PHP


GUYS I NEED THE INFO HOW CAN I INATALL PHP MODULE IN WINDOWS USING =
APACHE
VERSION


 apache_1.3.26-win32-x86-no_src.msi


I BEEN TRIED THE VERSIONapache_1.3.26-win32-x86-no_src.exe  BUT HE =
SEND
IT TO ME A ERROR ON THE SYSTEM AND HE DOES NOT WORKING WHAT DU U SUBGEST
??





--- End Message ---
--- Begin Message ---
Do you know how many internet etiquette rules you're breaking by typing 
in all caps like that?  Well you're breaking one.  Don't type in all caps.
--Strong Bad

Anyway, download the .zip from http://www.php.net/downloads.php and read 
the installation instructions included with it.

Luis A wrote:

HI EVERY BODY=20


I HAVE THE FOLLOWING TROUBLE INSTALING PHP


GUYS I NEED THE INFO HOW CAN I INATALL PHP MODULE IN WINDOWS USING =
APACHE
VERSION


apache_1.3.26-win32-x8

php-general Digest 14 Feb 2003 20:31:09 -0000 Issue 1883

2003-02-14 Thread php-general-digest-help

php-general Digest 14 Feb 2003 20:31:09 - Issue 1883

Topics (messages 135563 through 135599):

What's the proper way to open a file? File access permissions?
135563 by: Dunkel
135594 by: Jason Wong

php4ts.dll
135564 by: Kristyna Tuckova
135580 by: Philip Olson

How do I set the timezone on redhat via PHP? Ie. How to convert GMT to symbolic link?
135565 by: Daevid Vincent

Re: Templates
135566 by: rush
135584 by: David Eisenhart

Re: programming question
135567 by: David T-G

Re: Use GnuPG with PHP?
135568 by: David T-G

Threads in PHP? URL call from PHp?
135569 by: Steve Vernon

basic question
135570 by: Tyler Durdin

class problem
135571 by: Jurek Mizgiert

Anyway to interface to myob
135572 by: JJ Harrison

geek fishing stuff
135573 by: Anthony Ritter
135592 by: Jason Wong
135596 by: Anthony Ritter
135597 by: John Nichel

Re: Delivery Status Notification (Failure)]
135574 by: John Nichel
135576 by: Lucas Lain

XML
135575 by: Jono Bacon

Problems sending mail
135577 by: Jono Bacon

Keeping site metrics
135578 by: Daniel Guerrier
135579 by: olinux

snmp problems
135581 by: Razvan Cosma

Re: Login system using PHP/MySql
135582 by: David Eisenhart

HTML Mail problem
135583 by: Mark McCulligh

How does PHP transforms an integer on a string? like "3" onto "three"
135585 by: Francisco
135586 by: Leif K-Brooks

text to image
135587 by: Alex Shi
135589 by: Hugh Danaher

Images
135588 by: Lucas Lain
135591 by: Jason Wong
135593 by: Lucas Lain

Re: image creation error
135590 by: Jason Wong

calculating kilobytes
135595 by: joe
135598 by: Jason Wong

need apostrophe solution
135599 by: drparker

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Hello all!

How do I ensure that all file access permissions are allowed? What is 
the proper way to do it?

- I tried to 'fopen' an existing text file but got "Permission denied" 
error.
- I tried different parameters, same error
- I tried to use 'chmode', same thing

Same thing with different servers so I'm obviously doing something 
wrong. Everything else works fine but the writing doesn't.

The (writing)code is very basic
(the textfile.txt exists before this):

   

   $filename = "textfile.txt";
   $somecontent = "the text to add\n";
   $handle = fopen($filename, 'a+w');
   fwrite($handle, $somecontent);
   fclose($handle);

   ?>

So, what should I do to get it work?


Yours,

Paul Dunkel
--
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
On Friday 14 February 2003 16:36, Dunkel wrote:

> How do I ensure that all file access permissions are allowed? What is
> the proper way to do it?
>
> - I tried to 'fopen' an existing text file but got "Permission denied"
> error.
> - I tried different parameters, same error
> - I tried to use 'chmode', same thing
>
> Same thing with different servers so I'm obviously doing something
> wrong. Everything else works fine but the writing doesn't.
>
> The (writing)code is very basic
> (the textfile.txt exists before this):
>
> 
> $filename = "textfile.txt";
> $somecontent = "the text to add\n";
> $handle = fopen($filename, 'a+w');
> fwrite($handle, $somecontent);
> fclose($handle);
>
> ?>
>
> So, what should I do to get it work?

Try using the /fullpath/to/the/file. If you're in doubt about the permissions 
try writing to the system temp directory (/tmp for example).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Whatever occurs from love is always beyond good and evil.
-- Friedrich Nietzsche
*/


--- End Message ---
--- Begin Message ---

__
> Od: Gabor Hojtsy <[EMAIL PROTECTED]>
> Komu: Kristyna Tuckova <[EMAIL PROTECTED]>
> CC: [EMAIL PROTECTED]
> Datum: Thu, 13 Feb 2003 23:24:18 +0100
> Předmět: Re: php4ts.dll
>
> Please direct such questions to [EMAIL PROTECTED]
> 
> Goba [one [EMAIL PROTECTED]]
> 
> Kristyna Tuckova wrote:
> > Hi.
> > 
> > I use php and apache and now I have a problem. If I try to open 
some 
> > file with php script, it says to me:
> > 
> > File php4ts.dll is conected to not existig export OLEAUT32.DLL:77
> > 
>

php-general Digest 15 Feb 2003 08:32:44 -0000 Issue 1884

2003-02-15 Thread php-general-digest-help

php-general Digest 15 Feb 2003 08:32:44 - Issue 1884

Topics (messages 135600 through 135633):

Re: calculating kilobytes
135600 by: Kevin Stone
135606 by: joe
135607 by: Greg Donald
135633 by: joe

http://www.act.com---CRM
135601 by: Leonard Burton

Re: need apostrophe solution
135602 by: Chris Shiflett

Re: text to image
135603 by: Alex Shi
135605 by: Alex Shi
135630 by: Jason Wong
135632 by: Hugh Danaher

browser identification problem
135604 by: chip.wiegand.simrad.com
135612 by: Chris Shiflett
135629 by: Jason Wong

Urgent Help Needed removing \n\r
135608 by: Daniel Negron/KBE
135610 by: Ernest E Vogelsinger

imap_append
135609 by: Jeff Schwartz

problem with importing fields.
135611 by: Webmaster MBT

function problem
135613 by: Peter Gumbrell
135615 by: Kevin Stone
135617 by: Peter Gumbrell
135621 by: Nicholas Wieland

xslt_process problem
135614 by: Chris

slideshow/flush
135616 by: Bryan Koschmann - GKT

Re: HTML Mail problem
135618 by: Manuel Lemos
135627 by: Mark McCulligh

recursion?
135619 by: Alex Davis
135620 by: Bas Jobsen
135631 by: David Freeman

Re: How does PHP transforms an integer on a string? like "3" onto "three"
135622 by: Tom Rogers

redirect
135623 by: Alex Davis
135625 by: Greg Donald

SQL Query
135624 by: Zydox
135626 by: Dennis Cole

PHP ODBC Problem
135628 by: Mike

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Joe, you might try something like this instead of a slow PHP function.  I
based it off of a user example on the PHP site.  This is tested and I use it
often for various purposes.  I think it may be ideal for you becuase it is
extremely fast.  Requires Linux though I'm certain there's an equivilant
command in Windows.

---
$dir="/path/to/home/directory/";
$out = `find $dir -depth -type f`;
$files = explode("\n", $out);
$numfiles = count($files);

for ($i=0; $i<$numfiles; $i++)
{
 $filelist .= $files[$i]."";
 if (false != ($size = @filesize($files[$i])));
 {
  $totalfilesize += $size;
 }
}

echo $numfiles." files";
echo $totalfilesize." kilobytes total";
echo $filelist;


Let me know how that works for you.

- Kevin


- Original Message -
From: "joe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 12:17 PM
Subject: [PHP] calculating kilobytes


> hi
> first of all i think this is a great community here :)
>
> now to the point...
> i need a script. it should work on safe mode php so it should be as simple
> as possible.
> it should calculate all the file sizes in the directory that it is in and
in
> the subdirectories also (only 1 level subdirectories). it should echo the
> total size of the uploaded files.
> then it should take the filesize and substract it from 25 megabytes. that
is
> the limit on this server. then it should echo the result (the maximum
number
> of kilobytes that can still fit on this account).
> unfortunately i have insuffitient knowlege to do it miself.
> i just want to thank anyone who can help me.
> if you want to send it to my email then its [EMAIL PROTECTED] . or you can
> just write it here.
>
> thank you :)
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--- End Message ---
--- Begin Message ---

"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Saturday 15 February 2003 03:17, joe wrote:
>
> > now to the point...
> > i need a script. it should work on safe mode php so it should be as
simple
> > as possible.
> > it should calculate all the file sizes in the directory that it is in
and
> > in the subdirectories also (only 1 level subdirectories). it should echo
> > the total size of the uploaded files.
> > then it should take the filesize and substract it from 25 megabytes.
that
> > is the limit on this server. then it should echo the result (the maximum
> > number of kilobytes that can still fit on this account).
> > unfortunately i have insuffitient knowlege to do it miself.
> > i just want to thank anyone who can help me.
>
> Most of the functions that you need to accomplish this can be found in
> chapters 'Directory functions' & 'Filesystem functions'.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before

php-general Digest 16 Feb 2003 10:40:57 -0000 Issue 1886

2003-02-16 Thread php-general-digest-help

php-general Digest 16 Feb 2003 10:40:57 - Issue 1886

Topics (messages 135707 through 135730):

Re: Variables from the Form wouldn't transfer to my process page
135707 by: Jason Wong
135714 by: Geckodeep
135724 by: Jason Wong

processing status page
135708 by: Brendon
135710 by: Ray Hunter
135712 by: Brendon
135713 by: Ray Hunter

Re: Compiling php 4.3.0 and oracle
135709 by: Bradley C. Goldsmith

changing table  column height in xml
135711 by: Sunfire

Re: Delivery Status Notification (Failure)]
135715 by: Geckodeep

Re: permissions to work with fopen
135716 by: Nicholas Wieland

Re: Block direct image loads but allow them in PHP
135717 by: Justin French

forking sendmail
135718 by: Brendon
135719 by: Manuel Lemos

Re: HTML Mail problem
135720 by: Manuel Lemos

Forms Help (continued)
135721 by: Beauford.2002
135722 by: Kevin Waterson
135725 by: Ray Hunter
135726 by: Beauford.2002
135727 by: Kevin Waterson

PHP error messages
135723 by: Brad Esclavon

Duh uuh ?
135728 by: John Taylor-Johnston
135729 by: Manuel Lemos

call a website from a php script
135730 by: christian tischler

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
On Sunday 16 February 2003 03:37, Geckodeep wrote:
> I have these forms with one having pull down menu having data coming from a
> table which is working and I have set two variables one for ID and the
> other for the TEXT.
> The problem that I am facing is that when the form is submitted the ID
> variable is well taken into consideration and can see the value on the
> process page which is then inserted into the table. The TEXT variable which
> I set apparently for some reason it wouldn't show up.

Which is the TEXT variable that you're referring to? And where does 
$rubriqueid come from? 

[snip]

> Her is the part of the code from the first Form submit page
>  action="../form_pro.php">
> 
> Please choose your category
>  while ($row = mysql_fetch_array($result_cat)){
>  $catid = $row["cat_id"];
>  $catname = $row["cat_text"];
>  echo("$catname\n");
> }
> ?>
> 
> html code
>
> 
> 
> 
> 
>
> code on the Form process page
>
> Catagory 

Have you looked at the HTML source to see whether it looks OK?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I don't have any solution but I certainly admire the problem.
-- Ashleigh Brilliant
*/


--- End Message ---
--- Begin Message ---
hi Jason
The TEXT variable is $catname and the $rubriqueid is a mistake it is
actually $catid but it is not that giving the problem. It is an error from
my part when I posted it.

My html looks ok.

I should tell you though that this page is on the admin section which is
under a login session script I use, which was recommended by some one on the
forum.

The script is in the include folder and the file is called access.php and I
include this file in every Php files found in the admin folder.

So if I have to think of using the session for my problem in passing the
variables, can I use session_register("$catid") in the forum page to
register and start new session or should I include it in the login script
where there is already password, userid and the user name registered.

Is it possible to start a new session for these two form pages and register
the variables, will it co-habit with the existing session? I am pretty
confused with session; I've checked the Php manual and couldn't really get
the gist of it.



Thanks for any help in advance.

gd



"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Sunday 16 February 2003 03:37, Geckodeep wrote:
> > I have these forms with one having pull down menu having data coming
from a
> > table which is working and I have set two variables one for ID and the
> > other for the TEXT.
> > The problem that I am facing is that when the form is submitted the ID
> > variable is well taken into consideration and can see the value on the
> > process page which is then inserted into the table. The TEXT variable
which
> > I set apparently for some reason it wouldn't show up.
>
> Which is the TEXT variable that you're referring to? And where does
> $rubriqueid come from?
>
> [snip]
>
> > Her is the part of the code from the first Form submit page
> >  > action="../form_pro.php">
> > 
> > P

php-general Digest 16 Feb 2003 22:46:33 -0000 Issue 1887

2003-02-16 Thread php-general-digest-help

php-general Digest 16 Feb 2003 22:46:33 - Issue 1887

Topics (messages 135731 through 135785):

Re: call a website from a php script
135731 by: Ernest E Vogelsinger

htDig on PHP pages
135732 by: David McInnis

Re: [PHP-DEV] how to call a website from within a php script
135733 by: Sebastian Bergmann

Re: [PHP-DEV] database select
135734 by: Sebastian Bergmann

Re: permissions to work with fopen
135735 by: qt

date calculation
135736 by: qt
135741 by: Fred Merritt
135742 by: Kevin Waterson
135745 by: qt
135748 by: Stephen Willcock
135751 by: qt
135755 by: olinux
135779 by: Stephen Willcock
135780 by: qt

database selection
135737 by: H Prins
135739 by: H Prins
135740 by: Kevin Waterson
135743 by: Thomas Seifert
135746 by: H Prins

Re: Variables from the Form wouldn't transfer to my process page
135738 by: Geckodeep

Re: Help Needed for Beginners trying to configure Correctly
135744 by: D'habi Arabians

Re: Block direct image loads but allow them in PHP
135747 by: Michael Mulligan

Re: Forms Help (continued)
135749 by: Beauford.2002

colorizing output in bash
135750 by: Ali Chahvand

ereg usage
135752 by: Peter Gumbrell
135760 by: Ernest E Vogelsinger
135771 by: Rick Emery

copy *.* troubles
135753 by: Malcolm
135758 by: Jason Wong
135762 by: Malcolm

What happened to phpEdit???
135754 by: Al

Inserting records in a particular way in MySQL
135756 by: Phillip S. Baker
135761 by: Miles Thompson
135775 by: Willie G
135776 by: Willie G

List problem
135757 by: Beauford.2002
135759 by: Jason Wong
135767 by: Ernest E Vogelsinger

Re: .htpasswd and PayPal generated passwords
135763 by: David Duong
135764 by: David Duong

How do I set UID and GID to files.
135765 by: David Duong
135769 by: Jason Sheets

Checkbox related...
135766 by: Dhaval Desai
135768 by: Ernest E Vogelsinger
135770 by: Dhaval Desai
135773 by: Ernest E Vogelsinger

multiple select problem
135772 by: Thomas Moore

loading same page
135774 by: Edward Peloke

Sax-like : accessing form fields elements
135777 by: Robert Mena

Re: Result in the same page
135778 by: Cal Evans

long running PHP application
135781 by: Ilja Polvanovas

URL of calling page
135782 by: acleave
135783 by: Ernest E Vogelsinger
135784 by: Kevin Waterson
135785 by: Justin French

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
At 11:40 16.02.2003, christian tischler said:
[snip]
>can anybody tell me please how to "call" a website from a php script.
>
>meaning
>if (something happens) {goto www.google.com} else {goto www.yahoo.com}
[snip] 

I believe you mean to redirect the browser to a website?

header('Location: http://www.google.com/');

Or to "incorporate" (speak steal) the website?

readfile('http://www.google.com');

Or to fetch the site to analyze it?

$hf = fopen('http://www.google.com/') or die('Cannot open google');
$buffer = null;
while ($chunk = fread($hf, 4096))
$buffer .= $chunk;
fclose($hf);
// analyze and process buffer

Enjoy :)


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



--- End Message ---
--- Begin Message ---
Most of the content on my site is generated dynamically by PHP out of a
MySQL database.  This is causing me problems when indexing the site.
Since pages are created dynamically htDig records the current date as
the date the document was created.  I need the create date to be the
create date from the date recorded in the database when the document /
record was added and NOT the date/time that PHP generates the document.

I am hoping that I can pass a date / timestamp in the header.

Any ideas?  Or did I confuse everyone.

David McInnis



--- End Message ---
--- Begin Message ---
christian tischler wrote:
> Can anybody tell me how to call a website from within a php script.

  Please ask user questions on the [EMAIL PROTECTED] list.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

--- End Message ---
--- Begin Message ---
Hans Prins wrote:
> [...]

  Please ask user questions on the [EMAIL PROTECTED] list.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ h

php-general Digest 17 Feb 2003 11:01:29 -0000 Issue 1888

2003-02-17 Thread php-general-digest-help

php-general Digest 17 Feb 2003 11:01:29 - Issue 1888

Topics (messages 135786 through 135814):

Re: List problem
135786 by: David T-G

Re: recursion?
135787 by: David T-G

Re: Inserting records in a particular way in MySQL
135788 by: Miles Thompson

Converting a large number of passwords to MD5 at once.
135789 by: Vernon
135799 by: Lord Loh.
135800 by: Jason Wong

Convert my old cookies to session variable(s)
135790 by: Øystein Håland

anyone know what ical and outlook are programmed in?
135791 by: Kevin Myrick
135793 by: Luke Woollard
135794 by: Kevin Myrick

Re: What happened to phpEdit???
135792 by: Bryan Lipscy

Re: URL of calling page
135795 by: Brendon
135798 by: Luke Woollard

Re: long running PHP application
135796 by: Robert Cummings

Future compatibility
135797 by: Lord Loh.

Re: PHP error messages
135801 by: Lord Loh.

Re: loading same page
135802 by: Lord Loh.

Re: call a website from a php script
135803 by: Uttam

Free PHP?
135804 by: Bjarke Walling Petersen
135805 by: Alan Murrell

Re: What's the proper way to open a file? File access permissions?
135806 by: Dunkel
135807 by: Dunkel

Re: RSA implementation
135808 by: José León Serna
135809 by: José León Serna

Default argument values
135810 by: neko
135811 by: Stephen Willcock

Re: forking sendmail
135812 by: Brendon
135813 by: Manuel Lemos

Search engine PHP
135814 by: Andrian Ivanov

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Beauford --

...and then Beauford.2002 said...
% 
% Does anyone else get bounced messages saying they can't send email to
% [EMAIL PROTECTED] when sending email to the list? Every email I send to

Yep.  Looks like that person was subscribed to this list and died but the
list hasn't yet kicked out the address.

Just flush 'em when you get 'em.


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg97171/pgp0.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Fred, et al --

...and then Fred Merritt said...
% 
...
% The benefit of checking in javascript(which I suspect is enabled in most 

Not me!  Not me!  Not me!

It is by no means ubiquitous.  Anyone who even moderately considers
security will have it turned off.


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg97171/pgp1.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---

If you are not using them as foreign keys, how does it matter? They are 
simply identifiers for a particular record. If you need to know the number 
of records a select count(*) does that quickly enough, gaps are irrelevant.

Miles


At 03:38 PM 2/16/2003 -0500, Willie G wrote:
Miles,

I never use auto increment.  Not because of gaps, but in case I need to
reload the table.  They do have meaning if they are foreign keys to another
table.

- Larry


-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 16, 2003 1:14 PM
To: Phillip S. Baker; PHP Email List
Subject: Re: [PHP] Inserting records in a particular way in MySQL



Phillip,

It doesn't matter, obviously you're not using the autoincrement ID for a
foreign key. All this does is identify a record.

If you did a SELECT and found a missing sequence number, what's to say that
value would not be inserted by another user before your INSERT? If you have
not set up the table with a MyISAM, MySQL will eventually use the missing
numbers.

These are only identifying tags, with no intrinsic meaning.

Miles


At 09:37 AM 2/16/2003 -0800, Phillip S. Baker wrote:
>Greetings all,
>
>I have some PHP code that is inserting records into a DB.
>Most of this is auto increment.
>
>However I know there is allot of breaks in the sequencing.
>
>I am wondering if there is some way to write the SQL code to search
>through the existing records in the DB and to find where the next
>available ID is instead of just inserting the next sequence.
>
>So for example if the ID's are.
>
>20453
>20454
>20458
>20459
>
>It would let me know that 20455 is available for use and use the ID number
>instea

php-general Digest 18 Feb 2003 11:24:19 -0000 Issue 1890

2003-02-18 Thread php-general-digest-help

php-general Digest 18 Feb 2003 11:24:19 - Issue 1890

Topics (messages 135917 through 135978):

Re: Protecting files
135917 by: Luke Woollard
135918 by: Bryan Lipscy
135919 by: Bryan Lipscy
135920 by: Luke Woollard
135921 by: Ray Hunter
135927 by: Justin French
135950 by: Peter Janett
135956 by: Nate
135957 by: Bryan Lipscy
135958 by: Nate

Re: What happened to phpEdit???
135922 by: Al
135923 by: Chase Urich
135926 by: John Nichel
135928 by: John Wells
135959 by: Ernest E Vogelsinger

Re: pro-rated date
135924 by: Tom Rogers

Re: session cookie that never expires
135925 by: Jason Sheets
135933 by: Justin French
135936 by: Jason Sheets
135938 by: Justin French

Re: MD5 Password Login Driving me Crazy
135929 by: Justin French

Counter has gremlins
135930 by: Brian V Bonini
135932 by: Jason Sheets
135934 by: Andrew Brampton

Re: MD5 Passwords (How it works?)
135931 by: Justin French
135935 by: Jason Sheets
135937 by: Justin French
135952 by: Jason Wong

Getting around the LOAD DATA LOCAL with MySQL 3.23.49 + using PHP?
135939 by: Peter Janett

file-upload.errors
135940 by: Nate
135942 by: Marco Tabini
135946 by: Jason Wong
135949 by: Nate

Re: image creation error
135941 by: Michael P. Carel
135944 by: Jason Wong
135953 by: Hugh Danaher

Sessions and phplib.
135943 by: Vincent M.
135948 by: Jason Sheets

invalid argument supplied for  foreach()
135945 by: Lynn
135947 by: Jason Wong
135960 by: Ernest E Vogelsinger

Re: browser identification problem
135951 by: Jason Wong
135961 by: Ernest E Vogelsinger

Re: mail function - using remote smtp in php.ini
135954 by: Jason Wong

vni -> unicode
135955 by: Jimmy Brake

Array not working
135962 by: Chris Blake
135965 by: Ernest E Vogelsinger

Re: [PHP-DOC] Urgentplz]
135963 by: didou.keliglia.com
135966 by: Ernest E Vogelsinger

Problem with array variables in forms
135964 by: Chris Pudney

Re: Text data truncated after first blank character in  form fields
135967 by: rentAweek support
135968 by: rentAweek support
135973 by: Ernest E Vogelsinger

diksha's problem
135969 by: DIKSHA  NEEL

inserting 
135970 by: Michael P. Carel
135972 by: Kevin Waterson
135974 by: Ernest E Vogelsinger

$_SESSIONS and printing off..
135971 by: Frank Keessen
135976 by: Rich Gray

Re: safe mode
135975 by: Nenad Djordjevic

What are the functions to copy a directory structure & then renam e?
135977 by: Rea_David.emc.com

is "http://username:[EMAIL PROTECTED]/secure_area/"; secure ?
135978 by: Shams

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
If you want to hide the content of an .inc or other file that contains PHP
code simply rename it with a .php

ie: config.inc becomes config.inc.php

the server will parse the file as PHP now and not allow users to download
it...

Alternatively you can protect a directory with a .htaccess file if you are
using apache.

See: http://httpd.apache.org/docs/howto/htaccess.html



-Original Message-
From: PR [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 18 February 2003 8:18 AM
To:
Subject: [PHP] Protecting files


Hello,

How can I protect my php files among other files like templates
(.inc) and mysql config  (config.inc) files being copied/read/imported
(front
page)/used by other applications other than my
site...

can this be done by htaccess? is so , could anyone point me into right
direction?

--
Thank you,
 Paul



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




--- End Message ---
--- Begin Message ---

>How can I protect my php files among other files like templates
>(.inc) and mysql config  (config.inc) files being copied/read/imported 
>(front page)/used by other applications other than my site...
>can this be done by htaccess? is so , could anyone point me into right 
>direction?


I have renamed my sensitive (those containing l/p for mail and mysql)
files to .php and constructed them to render a blank page if ever
directly called.  

Something like this:





I do not think that -r to everyone would work in that Apache still needs
to read the file when included by another script.

Still looking for a better way.  What concerns me the most is if a code
disclosure bug is later discovered in 4.3.0 or another version.  

Bryan



--- End Message -

php-general Digest 21 Feb 2003 12:26:50 -0000 Issue 1896

2003-02-21 Thread php-general-digest-help

php-general Digest 21 Feb 2003 12:26:50 - Issue 1896

Topics (messages 136431 through 136482):

Re: string manipulation
136431 by: Leif K-Brooks
136432 by: Kelly Protsko
136433 by: Joachim Krebs

LDAP next prev howto
136434 by: Roger Thomas

Re: Class VS Functions
136435 by: Tom Rogers

Re: Cannot add header information
136436 by: John W. Holmes

Computer Authorization
136437 by: Chris Cook
136438 by: Ray Hunter
136440 by: John W. Holmes
136442 by: Chris Cook
136446 by: Chris Cook
136447 by: Chris Knipe
136448 by: Ernest E Vogelsinger

Re: simple ereg question
136439 by: John W. Holmes

Re: Smarty and FAI
136441 by: John W. Holmes

Re: Calling a COM object
136443 by: YC Nyon

Re: smarty vs. patTemplate vs. includes - newbie q
136444 by: John W. Holmes

Re: AUTH (.htaccess style)
136445 by: Sebastian

Re: sessions
136449 by: Justin French

MAC address user recognition?
136450 by: Leo Spalteholz
136451 by: Ray Hunter
136452 by: Jason Sheets
136455 by: Chris Cook
136456 by: Leo Spalteholz
136465 by: Ernest E Vogelsinger
136470 by: Ernest E Vogelsinger

php_mcrypt.dll
136453 by: Daniel Guerrier
136457 by: Bob Irwin
136466 by: W. Enserink

Regarding cache problem  (fwd)
136454 by: J.F.Kishor

Re: Forms and MySql date
136458 by: Frank Keessen
136473 by: v0idnull
136474 by: v0idnull

mysql_fetch problem
136459 by: Alec Solway

Database Persistance Layer
136460 by: Joe Njeru

Re: RSA implementation
136461 by: José León Serna

button not seen
136462 by: DIKSHA  NEEL
136467 by: Hugh Danaher
136468 by: RIVES Sergio SOFRECOM
136469 by: Jason Wong
136472 by: Hugh Danaher
136479 by: Mincu Alexandru

button not opening
136463 by: DIKSHA  NEEL
136471 by: Jason Wong

php code arranging program
136464 by: mashar

PHP 4.2.1 vs. 4.2.3
136475 by: Rob

selection in form-field
136476 by: Michiel van Heusden
136477 by: Awlad Hussain

ZIP extension
136478 by: Torakiki

mr. jason wong kind attention
136480 by: DIKSHA  NEEL

test
136481 by: Guram Mosashvili

LDAP charset problem
136482 by: rage_against.gmx.at

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---
Try this (untested):
print preg_replace('|<[^<]*$|','$1',$text);

Gregory Heinrichs wrote:


little help please, looking for correct functions to use to search for the
last occurrence of a character in a string and truncate everything in
front of it including the searched for character.<



 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




--- End Message ---
--- Begin Message ---
Use strrpos() which will find the last occurrence of something in a
string then  just use substr() to pull everything from that point on in
the string.

Kelly
-Original Message-
From: Gregory Heinrichs [mailto:[EMAIL PROTECTED]] 
Sent: February 20, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] string manipulation

little help please, looking for correct functions to use to search for
the
last occurrence of a character in a string and truncate everything in
front of it including the searched for character.<



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




--- End Message ---
--- Begin Message ---
This is the best method

echo substr(strrchr($string, $char), 1);


On 21 February 2003 at 00:13:02, Gregory Heinrichs wrote:
> little help please, looking for correct functions to use to search for the
> last occurrence of a character in a string and truncate everything in
> front of it including the searched for character.<



--- End Message ---
--- Begin Message ---
is it possible to retrieve a bunch of records from an ldap tree and do a
next-prev navigation on those records ? example script pls.

--
roger



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

--- End Message ---
--- Begin Message ---
Hi,

Friday, February 21, 2003, 9:41:46 AM, you wrote:
CF> Hi.

CF> I'm newbie in php (i'm in php about 1 year +/-), and after i read a lots of
CF> docs showing the possibilities in php coding with Class's but the true is
CF> that the "reability" of the code with Class's i steal can make the same with
CF> normal functions.

CF> I ask for the ppl, to give me examples (theoric

php-general Digest 22 Feb 2003 13:05:48 -0000 Issue 1898

2003-02-22 Thread php-general-digest-help

php-general Digest 22 Feb 2003 13:05:48 - Issue 1898

Topics (messages 136577 through 136619):

ssi problem
136577 by: Hans Prins

Re: ob_gzhandler problems under 4.3.0???
136578 by: Gerard Samuel

Re: including in shtml
136579 by: Tom Rogers
136581 by: Hans Prins
136588 by: Matt Honeycutt
136590 by: Tom Rogers
136600 by: John W. Holmes
136602 by: Matt Honeycutt
136604 by: John W. Holmes

Re: Convert *.PST Files to Something Else (LDAP...)
136580 by: David T-G

Re: Logging Referer
136582 by: Justin French
136585 by: Matt Honeycutt
136594 by: Tom Rogers

preg_match question: locating unmatched HTML tags
136583 by: Andy Crain
136603 by: John W. Holmes
136615 by: Ernest E Vogelsinger

Re: Mysql DB connect failure
136584 by: Tom Rogers

Re: user registration system
136586 by: olinux

Array instead of Switch
136587 by: Chris
136593 by: David T-G
136596 by: David Otton
136598 by: John W. Holmes
136614 by: Markas

PHP Job Opening
136589 by: Chris

PHP running on Win 2000 and IIS
136591 by: Denis L. Menezes
136599 by: John W. Holmes
136612 by: Leo Spalteholz

Utah PHP User
136592 by: Ray Hunter

Re: "Constants" for dummies, please?
136595 by: Philip Olson

Re: passing variables to flash
136597 by: Lord Loh.

Re: MAC address user recognition?
136601 by: Larry Brown

Re: session expiration
136605 by: John W. Holmes

Re: Memory used by script...
136606 by: John W. Holmes

Re: selection in form-field
136607 by: John W. Holmes

cookie problem..
136608 by: Terry Lau
136616 by: Lord Loh.

dynamic website screenshot/screen capture
136609 by: olinux
136610 by: Justin French

MSSQL Stored procedure return values
136611 by: Leo Spalteholz

Re: Getting a Multiple Select Form Field's Value
136613 by: Markas

is_writable for a dir?
136617 by: David T-G

Problem with Arrays?
136618 by: Patrick Teague
136619 by: Ernest E Vogelsinger

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
Could anyone please shed some light on the following issue?

I have a problem with including a "test.php" into a "test.shtml" and passing
a variable to the "test.shtml" which should be available and processed in
the "test.php"

the "test.php" document includes the following:
---





";
}

?>

the "test.shtml" document includes the following:
-



poll






I've also tried using the POST method but I got an error stating that post
is not a valid method in shtml.

I have also considered a session variable but since a session needs to
initiated or continued before anything is output to the browser that wont
work (I think).

does anyone have a solution to get this to work?

thanks,
Hans


--- End Message ---
--- Begin Message ---
Thanks.  Worked like a charm...

Jason Sheets wrote:

PHP is starting output buffering automatically for you and then you are
starting it in your script as well, that is why you are receiving the
message ob_gzhandler can not be used twice.
Use ob_get_level to check if output buffering is not already started.


You may want additional logic that checks to see if the output buffer
hander is ob_gzhandler.
Jsaon
 

--
Gerard Samuel
http://www.trini0.org:81/
http://test1.trini0.org:81/

--- End Message ---
--- Begin Message ---
Hi,

Saturday, February 22, 2003, 8:22:44 AM, you wrote:
HP> anyone?

HP> "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht
HP> news:[EMAIL PROTECTED]
>> Hello,
>>
>> I have a problem with including a "test.php" into a "test.shtml" and
HP> passing
>> a variable to the "test.shtml" which should be processed in the "test.php"
>>
>> the "test.php" document includes the following:
>> ---
>>
>> >
>> if ($HTTP_GET_VARS['theValue']) {
>> print $HTTP_GET_VARS['theValue'];
>> } else {
>> print"
>> 
>> 
>> 
>> 
>> ";
>> }
>>
>> ?>
>>
>> the "test.shtml" document includes the following:
>> -
>>
>> 
>> 
>> poll
>> 
>> 
>> 
>> 
>> 
>>
>> I've also tried using the POST method but I got an error stating that post
>> is not a valid method in shtml.
>>
>> I have also considered a session variable but since a session needs to
>> initiated or continued before anything is output to the browser that wont
>> work (I think).
>>
>> does anyone have a solution to get this to wo

php-general Digest 23 Feb 2003 14:02:18 -0000 Issue 1900

2003-02-23 Thread php-general-digest-help

php-general Digest 23 Feb 2003 14:02:18 - Issue 1900

Topics (messages 136692 through 136722):

Writing to COM-Port with PHP 4.3.0 on OS/2 with Apache 2.0.44
136692 by: Thorolf Godawa

Re: Question about str_replace()
136693 by: Hans Prins

Re: upgrade to 4.3.0 nearly doubled execution time
136694 by: Rasmus Lerdorf

Re: Sitewide Header & Footer Includes || Trouble with Relative Paths..
136695 by: Tom Rogers

Permission Denied
136696 by: Stephen Craton
136697 by: Stephen Craton
136703 by: John Taylor-Johnston
136708 by: Joel Colombo

Re: flashing text possible on PDA?
136698 by: John W. Holmes

Re: preg_match question: locating unmatched HTML tags
136699 by: Tom Rogers
136701 by: Tom Rogers

Re: Printer Friendly page
136700 by: Justin French

University researcher's question
136702 by: John Taylor-Johnston
136715 by: Chris Hayes

Re: Question about replacing \r\n with 
136704 by: John Taylor-Johnston

Re: sending results by email
136705 by: John Taylor-Johnston

Re: Help with Multiple Checkboxes
136706 by: John Taylor-Johnston
136707 by: Matt Honeycutt
136711 by: John Taylor-Johnston

Re: cookie problem..
136709 by: Joel Colombo

Re: Why use persistent connections? || Data driven site
136710 by: John Taylor-Johnston

Editors
136712 by: Karl James
136713 by: Pierre Vaudrey

using function()[subscript] directly
136714 by: David T-G

PHP not supporting method overloading.
136716 by: Jun

Re: preg_replace question
136717 by: Phil Roberts

Dynamic combobox in Flash with PHP
136718 by: pei_world

Re: OOP and object references, not copies - how to do?
136719 by: Phil Roberts

Re: Tutorials on OOP
136720 by: Phil Roberts

Re: Constant Arrays Possible?
136721 by: Ernest E Vogelsinger

Downloading files
136722 by: Anthony Rodriguez

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
Hi,

how can I write to a COM-Port on OS/2 using PHP 4.3.0 with Apache 2.0.44?

With

$fp = fopen ("COM1", "w+");
$string = chr($OutCmd) . chr($Platine) . chr($OutData) . chr($OutPruef);
fputs ($fp, $string );
fclose ($fp);
it seems not to work ($fp returns "Resource id #2"), and

$fp = fopen ("COM1:", "w+");
...
..
.
creates an error: "Warning: fopen(COM1:) [function.fopen]: failed to 
create stream: No such file or directory in x:\htdocs\test.php on line 
3" :-(

The same functionality with Rexx is working!

Thanks a lot,

Thorolf

--- End Message ---
--- Begin Message ---
Assuming that you do want to replace "[p]" with "", the code you posted
worked for me. The following printed: "leadingtexttrailingtext" to the
screen

');
$text = "leadingtext[p]trailingtext";
$words = str_replace ($find, $replace, $text);
print $words;
?>

"Al" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> I have a simple str_replace function that obviously has a syntax
> problem.  The [p] in the $find array ignores the brackets.  Every "p" in
> my text is replaced by a .  Just for the heck of it, I've tried "
> instead of ', and preg_replace(), etc.
>
> $find= array('& ','W&OD', '"&"', chr(146), '[p]');
> $replace= array("& ","W&OD", '"&"', "'", '');
>
> $words= str_replace ($find, $replace, $text);
>
> Thanks.
>


--- End Message ---
--- Begin Message ---
Yes, I have noticed some performance issues as well, but we need to nail
it down better before we can start really going after this.  Could we call
on the collective masses of php-general users to run some benchmark tests?

Just build yourselves a libphp4.so for both 4.2.x and 4.3.x and switch the
LoadModule line back and forth to benchmark the two versions.  Then use
something like http_load (http://www.acme.com/software/http_load/) to
check various simple scripts.  We need to figure out if this is an
across-the-board performance problem or if it is one particular aspect
which has slowed down.

-Rasmus

On Sat, 22 Feb 2003, Jason k Larson wrote:

> I'm betting this is related...
>
> I upgraded to 4.3.0 on my production linux servers and began to have
> serious socket connection issues.  Rolling back to 4.2.3 cleared
> everything up.  I also saw an increase in script execution times with
> 4.3.0, which became much better using 4.2.3.  I noticed some very
> strange behavior which leads me to believe 4.3.0 is not stable, and
> shouldn't be used in a production environment.
>
> So, all I can suggest for now is to determine what it is you need, and
> if a newer version of PHP will suit, go for it.  But stay away from
> 4.3.0 and 4.3.1 (which I've read up on and hasn't addressed any of these
>   

php-general Digest 25 Feb 2003 14:37:45 -0000 Issue 1904

2003-02-25 Thread php-general-digest-help

php-general Digest 25 Feb 2003 14:37:45 - Issue 1904

Topics (messages 137026 through 137068):

Re: Passing emails to database
137026 by: Justin French

Re: PHP Script
137027 by: Leo Spalteholz
137029 by: Stephen Craton

Re: PHP_SELF syntax
137028 by: Justin French

derive function that called a function?
137030 by: Shawn McKenzie

Re: preg_replace with /e modifier
137031 by: John W. Holmes

Re:  and 
137032 by: John W. Holmes
137034 by: Sunfire

Re: Live chat screen
137033 by: Jason Sheets
137059 by: Sascha Braun

having php auto load a page
137035 by: Antoine
137036 by: Matt Honeycutt

dummy variable
137037 by: Sebastian
137038 by: John W. Holmes

explode(" ", $pizza)
137039 by: John Taylor-Johnston
137056 by: Sascha Braun
137057 by: Tim

Re: Memory used by script...
137040 by: Lord Loh.

Re: Page per page
137041 by: Adriaan Nel

Using a PHP mime email attachment
137042 by: Steve Jackson

Re: cookie problemes
137043 by: kale

array_filter
137044 by: David Otton

.NET to PHP+NuSOAP
137045 by: Hilmi Hilmiev

Re: cookie problemes (solved with javascript)
137046 by: kale
137049 by: Awlad Hussain

reminder mail when date is within a month of today.
137047 by: Petre Agenbag
137050 by: Sunfire
137060 by: Petre Agenbag

reminder mail cont.
137048 by: Petre Agenbag

Newbie Security Questions...
137051 by: Miguel Angelo
137054 by: Justin French

How to get tree structure into an array?
137052 by: Konference
137055 by: Chris Hayes
137061 by: Chris Hayes

Re: phpmyadmin duplication of sql
137053 by: David Eisenhart

Re: Zend Encoder
137058 by: Brad Young

Re: creating flat versions of php pages
137062 by: Mark Cubitt

FormatDateTime in PHP
137063 by: Skyhawk
137064 by: Chris Hayes
137065 by: Adrian Portsmouth
137068 by: Skyhawk

PHP PDF attachment
137066 by: Steve Jackson

Fputs including php syntax?
137067 by: MIKE YRABEDRA

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
Please keep the emails on-list, so that others can learn, and search the
answers in the archive -- that's the whole point of the list.


on 25/02/03 12:14 AM, Alberto Brea ([EMAIL PROTECTED]) wrote:

> Justin,
> Thanks for your answer
> The only real problem seems to be how to capture the different parts of an
> incoming email (from, date, message, etc) somehow into PHP variables.

Did you even read the IMAP page on php.net?
http://www.php.net/manual/en/ref.imap.php

I doubt it, because it clearly shows a list of imap functions, including
imap_body(), imap_subject(), etc etc.

Please at least do SOME research before asking questions.


> Then you "INSERT" them into the (e.g.MySQL) database or do anything else with
> them.
> Is there an easy way to do this? I have never used IMAP functions, but I can
> learn if this is the way.

I doubt you've got imap functions installed at the moment... it requires
extra components, so that may be your first issue.


> As to your comment, my PHP is installed as an Apache module (on Windows), not
> as CGI.

Well then that rules out one of the two options (using .forward to pass the
emails to a PHP script).  You'll need either PHP as CGI, OR the IMAP
functions AFAIK -- your choice.


Justin

--- End Message ---
--- Begin Message ---
Hm.  Looks pretty nice.  Cool page and the demos are pretty slick.  
But I can't really see what it would be useful for.  Maybe I missed 
something but it seems to be a sort of InstallShield for php scripts.  
While this sounds like a good idea, its actually quite useless.  What 
is normally involved in "installing" a php script?  If its simple you 
just upload it to the server and if its complex you upload it and 
then do some script specific configuration.
So what exactly does this installer of yours do?  Apparently it just 
runs through a few screens, yet does nothing constructive, and then 
starts the main script.  So you set some variables but where are 
these used?  The only configuration a php script may need will be so 
specific that a general interface cannot handle it.

Leo

PS: Microsoft copyrighted images. Commercial app. Bad idea. Seriously.

On February 24, 2003 12:05 pm, Stephen Craton wrote:
> It may do some good to give you the URL to the website, won't it?
> Sorry...
>
> http://piw.melchior.us
>
> Thanks,
> Stephen Craton
> http://www.melchior.us
>
>
> - Original Message -
> From: "Stephen Craton" <[EMAIL PROTECTED]>
> To: "PHP List" <[EMAIL PROTECTED]>
> Sent: Monday, Februa

php-general Digest 27 Feb 2003 15:24:05 -0000 Issue 1908

2003-02-27 Thread php-general-digest-help

php-general Digest 27 Feb 2003 15:24:05 - Issue 1908

Topics (messages 137335 through 137399):

mysqldump
137335 by: John Taylor-Johnston
137336 by: Joseph Szobody
137337 by: Joseph Szobody
137355 by: John Taylor-Johnston
137370 by: Sunfire
137371 by: Niels Andersen

Re: session_start
137338 by: John W. Holmes

Re: resizing .jpg file in php
137339 by: Jason Sheets

Re: problem in writing into an html text file
137340 by: John W. Holmes
137341 by: Jason Sheets
137351 by: Michael P. Carel
137383 by: Alejandro Trujillo J.

Re: non transmitted cookie
137342 by: Jason Sheets
137362 by: Dennis Gearon

Re: mcrypt as shared module
137343 by: Jason Sheets

multiple line text area
137344 by: Gregory Chagnon
137345 by: Gregory Chagnon
137346 by: John W. Holmes
137347 by: Gregory Chagnon
137348 by: John W. Holmes
137349 by: Gregory Chagnon

Re: Mail (), BBC: recipients not receiving my Newsletter
137350 by: Manuel Lemos
137389 by: Ricardo Fitzgerald

Is PHP Reinstall required?
137352 by: Patrick LOK
137353 by: Rasmus Lerdorf
137356 by: Patrick LOK

Re: using php to rotate ad banners
137354 by: Manuel Lemos

One more string question
137357 by: Gregory Chagnon
137358 by: John Taylor-Johnston
137360 by: Matt Honeycutt

php_flag session.auto_start 0  not working
137359 by: Gary

Re: Emacs?
137361 by: Matt Giddings
137393 by: Larry Brown

exec & mysqldump
137363 by: John Taylor-Johnston
137364 by: John Taylor-Johnston

Using mod_rewrite and PHP
137365 by: Dan Phiffer
137366 by: Dan Phiffer
137367 by: Peter Janett

global value (php.ini) settings override with local (virtualhost) value
137368 by: Davide Giunchi

Re: date, "first of next month"?
137369 by: Jon Haworth

How to phpize?
137372 by: Niels Andersen

Re: imagecreate()
137373 by: Marek Kilimajer

including db content as part of script
137374 by: Dennis Heuer
137376 by: Niklas Lampén

PHPed 3.0.0  debug problem. Plz help
137375 by: Kristijan Marin

Escape Characters
137377 by: Sysadmin.saginawcontrol.com
137379 by: John W. Holmes

Re: PHP list problems?
137378 by: David T-G
137381 by: Sebastian
137382 by: Sebastian

classes and functions in include files
137380 by: Sunfire
137385 by: John W. Holmes
137390 by: rush
137396 by: David Eisenhart

File upload problem - permission denied
137384 by: Frans Bakker
137386 by: Niklas Lampén
137387 by: Frans Bakker
137388 by: Niklas Lampén
137392 by: John W. Holmes

Reading files
137391 by: Chris Blake
137394 by: Ferhat Can
137395 by: John W. Holmes

post xml
137397 by: Diana Castillo

How do I display the script file name?
137398 by: Stephen Ford
137399 by: Mark Harwood

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
Anyone do MySQLDump using PHP ?

http://www.mysql.com/doc/en/mysqldump.html

My code is:
mysqldump -u ** -p ** -A > /home/mybackups/dump_all.sql

I would like to pull it off using PHP, remotely.

$date = date ("Ymd");
$to_path = "/home/MyBackups/$date/dump_all.sql";

mysqldump -u ** -p ** -A > $to_path;

mysqldump is not PHP?!

John

--- End Message ---
--- Begin Message ---
You need to use exec, system, etc. Here is a script that I recently put together. It 
backs up the database, and pushes it as a download to the user.



Hope this helps,

Joseph

"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Anyone do MySQLDump using PHP ?
> 
> http://www.mysql.com/doc/en/mysqldump.html
> 
> My code is:
> mysqldump -u ** -p ** -A > /home/mybackups/dump_all.sql
> 
> I would like to pull it off using PHP, remotely.
> 
> $date = date ("Ymd");
> $to_path = "/home/MyBackups/$date/dump_all.sql";
> 
> mysqldump -u ** -p ** -A > $to_path;
> 
> mysqldump is not PHP?!
> 
> John
> 

--- End Message ---
--- Begin Message ---
u. that should read:

exec("mysqldump -c -q database -u user -ppassword", $sql);


--- End Message ---
--- Begin Message ---
Thanks!

> exec("mysqldump -c -q database -u user -ppassword", $sql);

Why is there no space between the -p and password?

>-ppassword

Am I wrong?

Thanks,
John

--- End Message ---
--- Begin Message ---
just make a php file with system calls in it to do mysqldump

how secure that is is a different question


- Original Message - 
From: "John Taylor-Jo

php-general Digest 1 Mar 2003 16:29:34 -0000 Issue 1912

2003-03-01 Thread php-general-digest-help

php-general Digest 1 Mar 2003 16:29:34 - Issue 1912

Topics (messages 137664 through 137694):

Checking for HTTP:// at the start of a string and more 
137664 by: Philip J. Newman
137665 by: Rasmus Lerdorf
137688 by: Ernest E Vogelsinger

IS there a way.
137666 by: Philip J. Newman
137667 by: Leif K-Brooks
137668 by: Rasmus Lerdorf
137689 by: Ernest E Vogelsinger

Re: Post method
137669 by: Alex Shi

Re: SORT_NUMERIC
137670 by: Jason Wong

Re: testing for < 0
137671 by: Leo Spalteholz
137686 by: Niels Andersen

Re: IMAP error while compiling PHP-4.3.0
137672 by: Jason Wong

Re: JP Graph
137673 by: Uttam

Re: Mysql Date got prob!
137674 by: Uttam

Re: Help!! with array's Please
137675 by: Tom Rogers

mysql replication + mysql_pconnect
137676 by: electroteque

Re: Is it multi-byte safe?
137677 by: Jean-Christian Imbeault
137692 by: Daniel Guerrier

Random not working?
137678 by: Frank Keessen

mail function and Bcc restriction?
137679 by: Mirza Muharemagic

Re: [PHP-I18N] addslashes(): Is it multi-byte safe?
137680 by: Moriyoshi Koizumi
137681 by: Jean-Christian Imbeault
137682 by: Moriyoshi Koizumi

V_OPEN() causes crash?
137683 by: Niels Andersen

Re: php.ini
137684 by: Niels Andersen

Re: session help
137685 by: Niels Andersen

authentication headers
137687 by: Sunfire

Re: [PHP-DB] Random not working?
137690 by: Doug Thompson

Re: Get variable from PHP before submit
137691 by: Chris Hayes

email pipe
137693 by: qt

Constants and "Here Document" Interpolation
137694 by: Daniel R. Hansen

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
I would like to check for HTTP:// at the start of a string and for at least
1 . and a / at the end of a string.

I have tried ereg, but the documentation is not too clear how to format.




--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]

+64 (9) 576 9491
+64 021-048-3999

--
Friends are like stars
You can't allways see them,
but they are always there.

--
Websites:

PhilipNZ.com - Design.
http://www.philipnz.com/
[EMAIL PROTECTED]

Philip's Domain // Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]

Vital Kiwi / NEWMAN.NET.NZ.
http://www.newman.net.nz/
[EMAIL PROTECTED]

--
Quote:

"God gave men both a penis and a brain,
but unfortunately not enough blood supply
to run both at the same time."

- Robin Williams
(Commenting on the Clinton/Lewinsky affair).


--- End Message ---
--- Begin Message ---
You don't need a regular expression.  Look at the substr() function.

-Rasmus

On Sat, 1 Mar 2003, Philip J. Newman wrote:

> I would like to check for HTTP:// at the start of a string and for at least
> 1 . and a / at the end of a string.
>
> I have tried ereg, but the documentation is not too clear how to format.
>
>
>
>
> --
> Philip J. Newman.
> Head Developer
> [EMAIL PROTECTED]
>
> +64 (9) 576 9491
> +64 021-048-3999
>
> --
> Friends are like stars
> You can't allways see them,
> but they are always there.
>
> --
> Websites:
>
> PhilipNZ.com - Design.
> http://www.philipnz.com/
> [EMAIL PROTECTED]
>
> Philip's Domain // Internet Project.
> http://www.philipsdomain.com/
> [EMAIL PROTECTED]
>
> Vital Kiwi / NEWMAN.NET.NZ.
> http://www.newman.net.nz/
> [EMAIL PROTECTED]
>
> --
> Quote:
>
> "God gave men both a penis and a brain,
> but unfortunately not enough blood supply
> to run both at the same time."
>
> - Robin Williams
> (Commenting on the Clinton/Lewinsky affair).
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
At 05:09 01.03.2003, Philip J. Newman said:
[snip]
>I would like to check for HTTP:// at the start of a string and for at least
>1 . and a / at the end of a string.
>
>I have tried ereg, but the documentation is not too clear how to format.
[snip] 

Untested:

if (preg_match('/^http:\/\/[^\.\s]+\.[^\s]+\/$/i', $string))
// valid string
else
// invalid string

Should match a string beginning with 'http://', followed by one or more
characters that are no dots or whitespace, followed by a dot, followed by
one or more characters that are not whitespace, and terminated with a
slash. The terminating 'i' makes the search case insensitive.


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/


--- End Message ---
--- Begin Message ---
  Is there a way to PING a URL and check if it

php-general Digest 2 Mar 2003 04:34:21 -0000 Issue 1913

2003-03-01 Thread php-general-digest-help

php-general Digest 2 Mar 2003 04:34:21 - Issue 1913

Topics (messages 137695 through 137752):

Re: Constants and "Here Document" Interpolation
137695 by: Danny Shepherd
137707 by: Ernest E Vogelsinger
137708 by: Daniel R. Hansen
137722 by: Ernest E Vogelsinger

Re: email pipe
137696 by: Michael Sims

Re: Get variable from PHP before submit
137697 by: Rich Gray

Re: Creating MySQL Entry Forms
137698 by: Bobby Patel

Re: Parse exec output
137699 by: Rich Gray

Re: php.ini
137700 by: Rich Gray
137727 by: Anthony Ritter
137728 by: Anthony Ritter
137732 by: Rich Gray

Re: mysql replication + mysql_pconnect
137701 by: Rich Gray

Re: Random not working?
137702 by: Rich Gray

Re: [PHP-DB] RE: [PHP] Random not working?
137703 by: Frank Keessen
137704 by: Dennis Cole

Re: [PHP-DB] Making Join
137705 by: Daniel Harik
137706 by: Daniel Harik

Re: Mysql Date got prob!
137709 by: Dhaval Desai

Checking Access to a directory Via a PHP/MYSQL Databace.
137710 by: Philip J. Newman
137723 by: Ernest E Vogelsinger

Re: .htpasswd and PayPal generated passwords
137711 by: Boaz Yahav

Using PHP to convert to JPEG
137712 by: Jason Paschal

Re: Restate: using php to rotate ad banners
137713 by: Joseph Bannon
137714 by: Joseph Bannon
137715 by: Joseph Bannon

2 questions !
137716 by: Vincent M.
137719 by: Greg Beaver

Stream file content to the web (possibly OT)
137717 by: Reuben D. Budiardja

Downloading via FTP in parts
137718 by: Siddharth

Upper and lower case.
137720 by: Philip J. Newman
137721 by: Philip J. Newman
137738 by: John W. Holmes

Calendar
137724 by: Jason D. Williard
137726 by: Darren Young

More Apache than PHP
137725 by: Timothy Hitchens \(HiTCHO\)
137748 by: Jason Sheets

A few questions...
137729 by: The Head Sage
137730 by: Ernest E Vogelsinger

Re: Checking for HTTP:// at the start of a string and more 
137731 by: Kris Jones
137734 by: Ernest E Vogelsinger

stripslashes()
137733 by: Dade Register
137735 by: Ernest E Vogelsinger
137736 by: Dade Register
137737 by: Ernest E Vogelsinger
137743 by: Dade Register
137745 by: Ernest E Vogelsinger
137746 by: Dade Register
137747 by: Ernest E Vogelsinger

Re: PHP Project for a newbie (me) or for hire?
137739 by: David T-G

Garbage at beginning of uploaded Text File
137740 by: Monty
137741 by: John W. Holmes
137744 by: Monty

Fusebox & PHP 4.3.1 on AIX
137742 by: CDitty

A JS problem
137749 by: Dade Register
137750 by: John W. Holmes

PHP scripts and the GPL/other licenses
137751 by: Jeff Lewis
137752 by: Leif K-Brooks

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
Hello,

It doesn't look like it - a note in the constants manual entry reads:

"PHP has no way of recognizing the constant from any other string of
characters within the heredoc block"

Danny.

-Original Message-
From: Daniel R. Hansen [mailto:[EMAIL PROTECTED] 
Sent: 01 March 2003 15:57
To: [EMAIL PROTECTED]

Can anyone tell me if it is possible (and how) to use defined constants
within "here document" content?  I've not been successful finding anything
on this in the online docs.

Thanks!

Dan



--- End Message ---
--- Begin Message ---
At 16:56 01.03.2003, Daniel R. Hansen said:
[snip]
>Can anyone tell me if it is possible (and how) to use defined constants
>within "here document" content?  I've not been successful finding anything
>on this in the online docs.
[snip] 

You simply could have tried it - it's trivial.

The answer: no, you cannot have a constant within a string, be it heredoc
or quoted. A constant must always reside on "native code level".

However you can easily concatenate strings and heredocs - both of the
examples below work correctly:

define('A_CONSTANT', 1);
$text1 = <<$text2";

Output:
This heredoc text contains the constant A_CONSTANT (1) outside the heredoc
construct...
This quoted text contains the constant A_CONSTANT (1) outside the string
quotes...


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/


--- End Message ---
--- Begin Message ---
Actually I did try it and couldn't think of a way to work around the matter.
Thanks for the suggestion.

-Original Message-
From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]
Sent: Saturda

php-general Digest 2 Mar 2003 16:43:34 -0000 Issue 1914

2003-03-02 Thread php-general-digest-help

php-general Digest 2 Mar 2003 16:43:34 - Issue 1914

Topics (messages 137753 through 137785):

Re: PHP scripts and the GPL/other licenses
137753 by: Jason Sheets
137754 by: Jeff Lewis
137756 by: Leif K-Brooks

Re: php.ini
137755 by: Anthony Ritter

Date question
137757 by: Sebastian
137759 by: John W. Holmes
137762 by: Sebastian
137764 by: Tom Rogers

Re: 2 questions !
137758 by: Vincent M.

What ?
137760 by: Vincent M.

authentication question...
137761 by: Sunfire
137771 by: Ernest E Vogelsinger

Re: [PHP-I18N] addslashes(): Is it multi-byte safe?
137763 by: Jean-Christian Imbeault

File problem - PHP Quest
137765 by: Monil Chheda

PHP SQL Code
137766 by: Philip J. Newman
137770 by: Tim Ward
137783 by: John W. Holmes

Just to ask knowledgable ppl
137767 by: Jason Paschal
137782 by: John W. Holmes

Re: mysql replication + mysql_pconnect
137768 by: Dan Rossi
137769 by: Dan Rossi

browser uploading
137772 by: joe
137773 by: Ernest E Vogelsinger

Re: IMAP error while compiling PHP-4.3.0
137774 by: Patrick Teague

Where to publish extension?
137775 by: Niels Andersen
137776 by: Adrian Portsmouth

Arrays and MySQL
13 by: Beauford.2002
137778 by: Marek Kilimajer
137785 by: Beauford.2002

html parsing question
137779 by: Jos Elkink

Php and JavaScript
137780 by: Valentin
137781 by: Vincent M.

Php and JScript
137784 by: Valentin

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
I generally use the BSD license for my code and PHP scripts, in some
cases I have used the GPL but IMHO the GPL is too restricting so I live
what I preach and release my code under the BSD License.

As far as people stealing code and renaming it I've seen several
commercial programs that are simply an open source or free software app
with spyware renamed, not a whole lot you can do without taking legal
action.

Jason
On Sat, 2003-03-01 at 21:26, Jeff Lewis wrote:
> I am wondering if anyone out there has some really good references in
> regards to scripts distributed as open source using the GPL. In the last
> three years that I have worked on open source projects I have seen several
> people "steal" a program, change the name and then try to distribute it as
> something else.
> 
> So I am wondering what people here prefer to use for a license, is there
> anyway to combat these kinds of people, etc.
> 
> Why do I ask now? Because it has happened again, only this time, the person
> is actively marketing this "new" script.
> 
> Jeff
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
And they aren't, that is our main issue...

So with the GPL, someone can change say...10 lines and rename the scripts
and distribute it as their own?

Jeff
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 01, 2003 11:33 PM
Subject: Re: [PHP] PHP scripts and the GPL/other licenses


> They're doing nothing wrong as long as they distribute the source under
> the GPL.
>
> Jeff Lewis wrote:
>
> >I am wondering if anyone out there has some really good references in
> >regards to scripts distributed as open source using the GPL. In the last
> >three years that I have worked on open source projects I have seen
several
> >people "steal" a program, change the name and then try to distribute it
as
> >something else.
> >
> >So I am wondering what people here prefer to use for a license, is there
> >anyway to combat these kinds of people, etc.
> >
> >Why do I ask now? Because it has happened again, only this time, the
person
> >is actively marketing this "new" script.
> >
> >Jeff
> >
> >
> >
> >
> >
>
> --
> The above message is encrypted with double rot13 encoding.  Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>


--- End Message ---
--- Begin Message ---
Yes.  Just look at Linux, and its many distributions.  Most have changed 
more than 10 lines, but I don't believe the GPL says how much must be 
changed.

Jeff Lewis wrote:

So with the GPL, someone can change say...10 lines and rename the scripts
and distribute it as their own?
--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


--- End 

  1   2   3   4   5   6   7   8   9   10   >