[PHP] Day of the Week

2001-03-04 Thread Chris Anderson

Is there a function to return the day of the week? Or at least a number that I can use 
to determine this?

Thanks



[PHP] Zend?

2001-03-16 Thread Chris Anderson

I've heard alot about the Zend Encoder. Using it can I encode I file so that php still 
executes it, but a person cannot read my source by looking at the file? I'm 
programming components for people and would prefer if they could use it, but not see 
my source. Does it require any extra server settings etc?



[PHP] Anyone good with Java??

2001-03-17 Thread Chris Anderson

I know php can't do this but I hoped somehere would know how. I have a page with many 
select boxes(drop downs). I want it so that if someone selects a value, it is removed 
from all the others. And if they change it, the old value is returned to the other 
boxes. Any help would be appreciated



[PHP] Re: Anyone good with Java??

2001-03-18 Thread Chris Anderson

Close, But I meant this:
drop downs have Dogcatfish
if I select Dog from the first box the rest contain
catfish
but if I chnage it to fish the others would have
dogcat
- Original Message -
From: "Dennis Gearon" [EMAIL PROTECTED]
To: "Chris Anderson" [EMAIL PROTECTED]; "PHP"
[EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 10:41 PM
Subject: RE: Anyone good with Java??


 I know php can't do this but I hoped somehere would know how. I have a
page
 with many select boxes(drop downs). I want it so that if someone selects
a
 value, it is removed from all the others. And if they change it, the old
 value is returned to the other boxes. Any help would be appreciatedI
think you need Javascript?
 
 And I'd love s similar thing, select one and it changes other to
appropriate sub menus.

 So,
 so selecting pets would get you dogscatsetc in the next pull down
 over.
 selelecting dogs would get you bysizebyfunction in the next pull
 down over.
 and selecting one of those would get the categories below that, etc, in
 the next pull down over.

 Pets
Dogs
 bysize
   Poodles
   Pekinese
   Minatures
   small
   medium
   large
   huge
 byfunction
   indoor pet
   rodent catching
   hunting small animals
   hunting birds
   hunting big animals
   shepharding
   guard dogs
Cats
etc
 --
 
 Sites by friends of mine: http://www.myhiddentreasures.com/
 
 WARNING personal propaganda signature
 TAKE WHAT YOU LIKE AND LEAVE THE REST

 SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US!
 Imagine ** yourself ** and your kids now an endangered species
 1Inflate automobile tires to near maximum in summer, -2psi in winter
 2add insulation to house and hot water heater, and refrigerator,
 3combine trips in cars, make less of them 4buy cars, sports
 vehicles and recreational vehicles with good if not best mileage
 4put awnings over windows is summer, remove in winter. 5 add
 solar hot water heating. 6Push for energy recycling clothes
 dryers 7 walk more, play outside with your kids! 8 let your
 grass grow to 3-4 inches, chokes weeds, saves water and energy,
 keeps house cooler 9 Put WHITE or REFLECTIVE materials on
 roofs to send energy back into space. 10 Vote for burial of
 logging slash onsite in logging areas for better watersheds
 and less burned vegetation. 11 compost your leaves and grass,
 bury in flower beds, lawns, gardens, or give away. 12 VOTE
 for energy and CO2 ratings on ALL products and foods. KNOW how
 much damage your purchases do to the climate. 13 Give your kids
 less stuff and more of you. 14 recycle everything you can 15
 limit your children to an average 1 per adult between all your
 marriages. (Only REPLACE yourself, not expand the population)



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




[PHP] Source Protection

2001-03-18 Thread Chris Anderson

After realizing that The Zend Encoder is 2000$ I've decided that wont work for a 
college student(me). Is there any other way to protect source in my components?



[PHP] Valid Cookie Problems

2001-03-23 Thread Chris Anderson

I have a script that sets cookies for validation. The problem is that on some 
servers(wwws) it works fine, but on another when submitted it gives a 404 error. I can 
send the code to someone if they like, but this is driving me insane. It's just too 
long to add here
Thanks



Re: [PHP] [php] Varible declaration

2001-03-23 Thread Chris Anderson

thats good, in the future a code snippet helps
- Original Message -
From: "Chris Doyle" [EMAIL PROTECTED]
To: "PHP List" [EMAIL PROTECTED]
Sent: Friday, March 23, 2001 11:12 PM
Subject: Re: [PHP] [php] Varible declaration


 no problem i have got it now..
 needed to declare it global.

 - Original Message -
 From: "Chris Anderson" [EMAIL PROTECTED]
 To: "Chris Doyle" [EMAIL PROTECTED]; "PHP List"
 [EMAIL PROTECTED]
 Sent: Friday, March 23, 2001 6:40 AM
 Subject: Re: [PHP] [php] Varible declaration


  Remove the '' around the 1.
  - Original Message -
  From: "Chris Doyle" [EMAIL PROTECTED]
  To: "PHP List" [EMAIL PROTECTED]
  Sent: Friday, March 23, 2001 9:44 PM
  Subject: [PHP] [php] Varible declaration
 
 
  Hi,
 
  when I declare the varible $cid like this
 "http://myserver/index.php?cid=1"
  it works fine, but when i declare it in the code like this
  $cid = '1';
 
  it doesn't work... is this maybe because of the level i declare the
 varible?
  how to i declare it the same as  "http://myserver/index.php?cid=1"  but
in
  my php code...
 
  PS.
  I use this varible in a function that is called by a function wich is
  included and so on... it is rather far down.
 
  Thanks
  Gaur
  ___
 
  This email may contain confidential and/or privileged information for
the
  sole use of the intended recipient. Any review or distribution by others
 is
  strictly prohibited. If you have received this email in error, please
  contact the sender and delete all copies. Opinions, conclusions or other
  information expressed or contained in this email are not given or
endorsed
  by the sender unless otherwise affirmed independently by the sender.
 
  _
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




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




Re: [PHP] Sendmail

2001-03-25 Thread Chris Anderson

it would help if you showed a snippet of your mail code
- Original Message -
From: "Atet Sugiharto" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 24, 2001 1:49 AM
Subject: [PHP] Sendmail


 Hi ,

 I'm at a lossI've searched throught the knowledgebase, archives, docs,
 etc but I can't figure out what's going on.  The problem is when using the
 mail() function nothing gets send and I don't get any error messages
either.
 It's like the message gets eaten by a black hole.

 I already put "-t -i" in the path, but still doesn't work ..
 Anybody can help me ?

 Regards,

 Atet Sugiharto


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




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




[PHP] Decrypt Function?

2001-03-25 Thread Chris Anderson

Is there any way to decrypt dat encrypted using the crypt function? If not, then what 
purpose does that function have?



Re: [PHP] Decrypt Function?

2001-03-25 Thread Chris Anderson

A, I see. Thank youthat is actually a great idea. Why didn't I think of
that?
/me hits himself in the head
- Original Message -
From: "Opec Kemp ( Ozemail )" [EMAIL PROTECTED]
To: "PHP List" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 25, 2001 6:57 PM
Subject: RE: [PHP] Decrypt Function?


 Unix "Crypt" function is a one way encrypytion algorithm therefore you
 can not technically decrupted as such. The way that you can check to
 see if the given uncrypted value is equals to its crypted value is to

 1) Crypt the string with the same "salt"
 2) Compare this with the crypted version

 If these 2 are the same then you assume that the 2 strings are equal.
 If you really want to "decrypt" the string i.e. turn the encrypted
 version into its original readable text then you'll have to use
 Mcrypt() functions in PHP instead (if you have PHP 4 and above ).
 There are also other Encrytion functions available, check in the
 manual:

 http://www.php.net/manual/en/ref.mcrypt.php


  -Original Message-
  From: Chris Anderson [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, March 24, 2001 8:44 AM
  To: PHP
  Subject: [PHP] Decrypt Function?
 
 
  Is there any way to decrypt dat encrypted using the crypt
  function? If not, then what purpose does that function have?
 


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




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




[PHP] MySQL Processes Inifinitely in PHP

2001-07-30 Thread Chris Anderson

I've been using PHP 4.0.4p1 WIN32, Apache 1.3.19 WIN32 and the latest MySQL WIN32 
build for almost 6 months without a problem. But now if I try and run a php file using 
MySQL functions it just processes forever. There is no output and I can stop with the 
browser's stop button. I have tried removing and reinstalling php, apache and MySQL to 
no luck. Does anyone know how I can get MySQL to work with PHP again? Also MySQL 
independently believes it is working correctly. Thanks



[PHP] Failure Configuring 4.0.6 on SuSE 7.1

2001-07-31 Thread Chris Anderson

When I try and configure php 4.0.6 I get the following msg:

checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root ... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up

can anyone help?

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




[PHP] Weirdest error I've ever had....

2001-05-08 Thread Chris Anderson

Alright I have a simple file writing script. Nothing special. in one
part I use this code:
$data[$x] = str_replace(br,\n, $data[$x]);
to replace break tags with page breaks. Problem is that for some
reason it is adding wierd br  / tags to the file. It only does this
on that server. What is that?

Chris Anderson   aka Null

PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com



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




Re: [PHP] Weirdest error I've ever had....

2001-05-09 Thread Chris Anderson

too simple :)
doesnt fix it anyway, it was a xhtml compliancy problem

Chris Anderson   aka Null

PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 2:26 AM
Subject: Re: [PHP] Weirdest error I've ever had


At 06.05.01  12:00, you wrote:
Alright I have a simple file writing script. Nothing special. in one
part I use this code:
 $data[$x] = str_replace(br,\n, $data[$x]);
to replace break tags with page breaks. Problem is that for some
reason it is adding wierd br  / tags to the file. It only does this
on that server. What is that?
why don´t you use $data[$x]=nl2br($data[$x]);
smart n easy
HTH Oliver


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





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




[PHP] Sessions vs Cookies?

2001-06-21 Thread Chris Anderson



I am about to write a new admin system for a 
website I do and it will have many different logins. I was wondering overall 
which most of you thought would be better for such a thing? Wants really a pro 
about sessions over cookies?


[PHP] MySQL Dump In PHP

2001-06-22 Thread Chris Anderson



I've been reading through the MySQL manual about 
backing up my database using mysql dump. I tried passing it as a Query in PHP 
but that doesn't seem to work. Does anyone know how to do this? Also does the 
dump back up the files into a directory I specify? I am on a virtual host and 
need to create the files in my own directories. Any help would be 
appreciated


[PHP] Time out Errors?

2001-06-30 Thread Chris Anderson

I have mayn scripts on a website that use MySQL connections for various tasks. 
Strangely sometimes a task will hit the timeout (30 sec), then work perfectly when I 
refresh. Or even work perfectly other times. I'm using Apache on Windows 98 and I'd 
never had this bug before. Would it be because I connect to MySQL so much? Should I 
use mysql_pconnect instead of normal connect to alleviate this? Any help would be 
appreciated



Re: [PHP] accessing files not in www root directory.

2001-06-30 Thread Chris Anderson

you may want to send this as a NON-reply, because many people view mail by
grouped threads, and thus would miss your question

Original Message -
From: Sterling Anderson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 12:05 AM
Subject: [PHP] accessing files not in www root directory.


 Hi,
 I am trying to write a page that will perform a select on a DB and get the
 path and file name of an image. Then display the image.
 The DB part if fine but I am having difficulty figuring out how to get the
 images to display. For example:

 result from select:
 $file_path = /home/pics/friends/
 $file_name = bob.jpg

 Now, say my web root directory is /etc/http/wwwroot

 How do I create a link to my file /home/pics/friends/bob.jpg?
 I tried symlink() but the link created appears to hang around after it is
no
 longer needed.

 By the way, this is a Linux server running Apache.

 Any ideas?

 Thanks,

 Sterling Anderson
 [EMAIL PROTECTED]


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



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




Re: [PHP] question about forms.

2001-07-01 Thread Chris Anderson

Don't post the question in a reply and someone will see your question
- Original Message -
From: Jason brashear [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 5:34 PM
Subject: [PHP] question about forms.


 I have a question. I am using  PHP MySQL.
 I am able to quary to DB and edit post delete through forms.
 Problem.  I need to be able to also send out emails when something is
posted
 to the databas as well as send the information that was submitted like a
 recipt.

 Any ideas?
 Please help.
 -Jason



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




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




Re: [PHP] Quicky, I forgot a Varible ):

2001-07-01 Thread Chris Anderson

Maybe he means $PHP_SELF?
Then again he just kindof rambled
- Original Message - 
From: Jason Murray [EMAIL PROTECTED]
To: 'ReDucTor' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 02, 2001 12:37 AM
Subject: RE: [PHP] Quicky, I forgot a Varible ):


  Hey, I Forgot the Variable that has the current 
  Document/script or Folder of the Docment/script
 
 Look at the output from phpInfo(), then - you'll find it there.
 
 I didn't answer you because I can't figure out precisely which
 variable you want based on your question.
 
 Jason
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




Re: [PHP] How can i read php from browser??

2001-07-02 Thread Chris Anderson

You need to open your httpd.conf and add the extension lines to make it
parse php. Mine looked like this:

ServerRoot C:/Dev/Apache Group/Apache
ScriptAlias /php4/ C:/php/
Action application/x-httpd-php4 /php4/php.exe
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3

But also this is on my windows box. Yours will look a bit different
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 02, 2001 7:30 AM
Subject: [PHP] How can i read php from browser??


 Hello,
 i have apache 1.3.19 configured with php 4.
 i think is configured ok because /usr/local/apache/logs/error_log says:

Apache/1.3.19 (Unix) PHP/4.0.6 configured -- resuming normal
operations

 When i connect to machine via web, the browser (netscape) don't show me
 the text and open a window to download the page.

 Somebody can help me??
 Thanx, c-ya and regrets from Spain...;-


 +-++-+
 |   /\ mailto:[EMAIL PROTECTED] |
 |   \ / ASCII Ribbon Campaign|
 |X  best view with Lynx  Pine   |
 |   / \ http://www.thebackrow.net|
 ++

 ---
 Mensaje enviado desde e-milio.com.
 Create una cuenta de correo gratuita en www.e-milio.com



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



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




Re: [PHP] Re: mailing list php-general@lists.php.netµÄ×Ô¶¯»ØÐÅ

2001-07-02 Thread Chris Anderson

You guys have some serious problems. I recommend getting help
- Original Message -
From: Justin Farnsworth [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 02, 2001 8:42 AM
Subject: [PHP] Re: mailing list [EMAIL PROTECTED]µÄ×Ô¶¯»ØÐÅ


 What is going on in this sub-culture?  Now I see this
 as a row of penguins.  Is this a kind of Kilroy Was Here
 phenomenon -- like Linux Was Here or something?

 Somebody please enlighten me on this new
 er, ASCII art, social phenomenon.




 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] wrote:
 
 ºÜ¸ßÐËÊÕµ½ÄãµÄÓʼþ£¡
 
  ===
  Ãâ·Ñµç×ÓÓÊÏä http://home.sina.com.cn

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

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



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




Re: [PHP] password sanity checker

2001-07-03 Thread Chris Anderson

Getting the size is easy, and if you had a small dictionary you could see if
the password existed in that by looping through it. Not sure about checking
if it is LIKE the username
- Original Message -
From: Charles Sprickman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 12:18 PM
Subject: [PHP] password sanity checker


 Hi,

 I've been digging around for a function to do a sanity check on
 user-supplied passwords when creating a new account.  Haven't found
 anything yet...  Any pointers appreciated.

 Ideally it should:

 -check for a min number of numerals
 -check for similarity against username (?)
 -check at least a small dictionary

 Although anything that could provide a starting point would be great.

 Thanks,

 Charles

 | Charles Sprickman  | Internet Channel
 | INCH System Administration Team| (212)243-5200
 | [EMAIL PROTECTED] | [EMAIL PROTECTED]


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




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




Re: [PHP] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues

2001-07-03 Thread Chris Anderson

btw, that error looks more like a mysql setup / runtime problem. IE..is the
server running?
- Original Message -
From: Paul Burney [EMAIL PROTECTED]
To: andreas (@work) [EMAIL PROTECTED]
Cc: php mailing list 2 [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 11:51 AM
Subject: [PHP] Re: [PHP-DB] PhpMyAdmin phpPgAdmin Security Issues


 on 7/3/01 5:47 AM, andreas (@work) ([EMAIL PROTECTED]) wrote:

  ive got 3 servers (dedicated) with mysql 3.22.32 and above and
phpMyAdmin
  2.1.0 but i cant reproduce the vulnerability

  i use advanced uthentication

 
http://ip/phpMyAdmin/sql.php?server=000cfgServers[000][host]=hellobtnDrop=N
  ogoto=/etc/passwd

 If that URL is copied correctly, it might be because there's no 
between
 the server=000 and the cfgServers[000][host].

 If not, maybe your particular configuration isn't vulnerable.

 If you use a Apache Auth for access to the folder and normal auth in
 phpmyadmin, you are not vulnerable to outsiders but *you* can still view a
 server's sensitive files which can be really dangerous in a shared server
 environment.

 Sincerely,

 Paul Burney

 +-+-+
 | Paul Burney | P: 310.825.8365 |
 | Webmaster  Programmer | E: [EMAIL PROTECTED]   |
 | UCLA - GSEIS - ETU   | W: http://www.gseis.ucla.edu/ |
 +-+-+


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




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




Re: [PHP] Basic multi-dimensional array help

2001-07-03 Thread Chris Anderson

When I wanted multi-dimensional with forms, I think I had to do this:
INPUT NAME=var[0][]
- Original Message -
From: Wieger Uffink [EMAIL PROTECTED]
To: Jeff Gannaway [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 8:32 AM
Subject: Re: [PHP] Basic multi-dimensional array help


 Hi Jeff,

 There probably are several ways of doing this.

 One is you copy $info[0] ( an array itself ) into a dummy variable, and
 get the values with $dummy[0] etc.
 Or use brackets in your variable syntax, which youll have to experiment
 with cause, I can never seem to remeber the right syntax :)

 something like ${$info[0]}[0] I think... correct me if Im wrong.

 Hope this helps,
 Wieger

 Jeff Gannaway wrote:
 
  I've got input fields in a form that look like:
  INPUT TYPE=HIDDEN NAME=Person[0] VALUE=Jeff
  INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Apples
  INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Oranges
  INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Peaches
  INPUT TYPE=CHECKBOX NAME=Info[0][] VALUE=Pears
 
  INPUT TYPE=HIDDEN NAME=Person[1] VALUE=Carolyn
  INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Apples
  INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Oranges
  INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Peaches
  INPUT TYPE=CHECKBOX NAME=Info[1][] VALUE=Pears
 
  The next script processes all this into a database. Here are the results
I
  get from various commands:
 
  sizeof($Info): 2
  sizeof($Info[0]): 4
  print $Info[0][0]: Array[0]
 
  Any help?
  Jeff Gannaway
 
  ___
 
  SUMMER ART PRINT SALE at www.PopStreet.com
  Save an additional 10% off art print orders of $50 or more.
  Type in coupon code jemc when checking out.
  ___
 
  Find the right art print for your home.
  * Search by artist, color, art style and subject.
  * Preview the art prints against your wall color.
  * Specializing in contemporary, abstract and African
American art.
  * Every day discounts on thousands of fine art prints.
 
  PopStreet.com is your avenue to art.
 
  http://www.popstreet.com
  ___
  Coupon may be redeemed from June 27 through July 31, 2001.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --
 Wieger Uffink
 tel: +31 20 428 6868
 fax: +31 20 470 6905
 web: http://www.usmedia.nl

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




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




Re: [PHP] PHP for NetWare?

2001-07-03 Thread Chris Anderson

Ugh Netware. I believe that is Windows oriented/based so try the windows
distrobutions
- Original Message -
From: Tony Gettig [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 7:49 AM
Subject: [PHP] PHP for NetWare?


Hi there,

Is PHP available for NetWare? I've looked high and low and find no reference
to such a beast. I prefer PHP on my Linux box, but I need to explore being
able to put it on a NetWare server running Netscape Enterprise. TIA for any
pointers in the right direction.


Tony Gettig
Network Administrator
Kalamazoo Public Schools




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




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




Re: [PHP] Compiling on Windows

2001-07-03 Thread Chris Anderson

Manual helps
- Original Message -
From: Daniel Reichenbach [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 5:02 AM
Subject: [PHP] Compiling on Windows


 Hy,

 is there any guide available, how to compile the Windows version of
PHP4.0.6
 with all available modules like GD/Freetype, IMAP, curl, etc.


 Daniel


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




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




Re: [PHP] Help Meeeeeeeeeee!!!!!!

2001-07-03 Thread Chris Anderson

A Visual Basic and MySQL project. Ouch, not exactly made to work together.
Plus Commercial + Open source, although that doesn't mean much. Really if
you make them work together, I'd LOVE to know how. VB is one of my best real
App programs. Next to C++ of course =)
- Original Message -
From: Veerappan Rajendrakumar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 10:30 PM
Subject: [PHP] Help Meee!!





 Hi,

 I am working on a banking project.

 we are planning to take our tour into vb/mysql combination.

 Please help me sending your comments.

 Thank you,

 V.Rajendrakumar.


 
 Buy Feng Shui Package for Rs. 151/- only, at
http://shopping.rediff.com/shopping/fengshui_mailer.htm




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




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




Re: [PHP] writing a query that returns similar numbers

2001-07-04 Thread Chris Anderson

Try the LIKE wording in your statement. That should workI think
- Original Message -
From: [EMAIL PROTECTED]
To: PHP Mailingliste [EMAIL PROTECTED]
Sent: Wednesday, July 04, 1979 12:48 PM
Subject: [PHP] writing a query that returns similar numbers


 I have a database with numbers in one of the tables I'd like to ask mysql
to
 renturn all numbers with say 10 of mynumber

 Sort of like this:

 $sql = SELECT rowid FROM numbers WHERE (mynumer is within 10 of number);


 but I've gotten stuck do I have to do this:


 $sql = SELECT rowid FROM numbers WHERE (((mynumer+10)  number) AND
 (mynumer-10)  number) );

 it seems kinda wordy ...

 Susan


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



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




Re: [PHP] PHP for NetWare?

2001-07-05 Thread Chris Anderson

I agree, I've had it at work and I hated it. I love my SuSE box at home.
What more security do you need than Linux?
- Original Message -
From: Jesse S. Williams [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 04, 2001 3:30 AM
Subject: RE: [PHP] PHP for NetWare?


 Actually, Netware isn't specifically a direct competitor of Microsloth.
 Netware is strictly a NOS (network operating System), where as Windows is
a
 network, server and client OS.  Now, this certainly isn't meant to make it
 look as if I like M$, but I used to work on my company's General Motors
 account, and GM has (literally) the world's largest NDS Tree/Novell
Network.
 Frankly, it's not all that great.  Whether Wind-woes 2000 and AD will be
 better has yet to be seen, but NW isn't too great either.

 At any rate, no, there is currently no (supported/official) port of PHP to
 Netware, and frankly I doubt there's much, if any, work being done on such
a
 project.  At the rate NW is losing it's customer base, there may be more
 client's with OS/2 then servers with NW soon.


 Jesse Williams





 -Original Message-
 From: Tony Gettig [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 1:10 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP for NetWare?


 Actually, NetWare is a very different operating system than Windows. It's
a
 direct competitor to M$. Way more stable than windows. If PHP is available
 for NetWare, someone must have ported to the platform to run either as an
 NLM or with the JVM.

 There's a queston: is there perhaps a java executable version of PHP? If
so,
 it could feasibly run on NetWare.

 The Netscape Enterprise server for NetWare supports ASP, which is not
 preferable to PHP. I'd really like to stick with PHP.


 Tony Gettig
 Network Administrator
 Kalamazoo Public Schools



  Chris Anderson [EMAIL PROTECTED] 07/03/01 12:44PM 
 Ugh Netware. I believe that is Windows oriented/based so try the windows
 distrobutions
 - Original Message -
 From: Tony Gettig [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, July 03, 2001 7:49 AM
 Subject: [PHP] PHP for NetWare?


 Hi there,

 Is PHP available for NetWare? I've looked high and low and find no
reference
 to such a beast. I prefer PHP on my Linux box, but I need to explore being
 able to put it on a NetWare server running Netscape Enterprise. TIA for
any
 pointers in the right direction.


 Tony Gettig
 Network Administrator
 Kalamazoo Public Schools




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




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



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



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




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




Re: [PHP] Submiting Data with an '

2001-07-05 Thread Chris Anderson

On the same subject, can I make it automatically addslahes to my variables?
Or should I just make my own mysql class?
- Original Message -
From: Matthew Loff [EMAIL PROTECTED]
To: 'Mike Mike' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 3:29 PM
Subject: RE: [PHP] Submiting Data with an '



 Use the addslashes() call to automatically escape characters like that.

 MySQL will not add the slashes into the table cell, so no need to
 stripslashes() after you SELECT it back out.


 -Original Message-
 From: Mike Mike [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 05, 2001 3:19 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Submiting Data with an '


 Hello everyone,
 I'm having a problem of submiting an ' into a mysql
 database.  When I have a ' it doesn't update or submit
 the data.  but if I use \' it works fine.  Does anyone
 know of a way around this.
 Thanks
   --Mike

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/

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


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




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




Re: [PHP] Re: changing to a different file in browser

2001-07-05 Thread Chris Anderson

If you use Header after ANY page output, even a space, it will not work
- Original Message -
From: Brad Wright [EMAIL PROTECTED]
To: PHP General List [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 10:25 PM
Subject: Re: [PHP] Re: changing to a different file in browser


tried it, but it didn't work... still getting the same message in IE. Am I
missing something? Can I actually use the headr() function to redirect to a
different page while using sesions and session variables??

 From: ..s.c.o.t.t.. [EMAIL PROTECTED]
 Date: Thu, 5 Jul 2001 22:32:22 -0700
 To: Php-General [EMAIL PROTECTED]
 Subject: RE: [PHP] Re: changing to a different file in browser

 put Location before the URL:

 header(Location: http://server.com/file.php;);
 or
 header(Location: ./file.php);


 -Original Message-
 From: Brad Wright [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 05, 2001 18:54
 To: PHP General List
 Subject: Re: [PHP] Re: changing to a different file in browser


 ihave tried the header() function as Julio suggested. But I get an error
 message in the browser. I am also using session variables in all these
pages
 (only 2).

 My code :
 if (!mysql_numrows($result) ) {
 die ( username/password not valid);
 }
 else{


 header(Menu.php);
 }





 the error message in IE:
 Warning: Cannot add header information - headers already sent by (output
 started at /home/e-smith/files/ibays/bigpool1/html/login.php:1) in
 /home/e-smith/files/ibays/bigpool1/html/login.php on line 1


 Thanks in advance,
 brad


 From: Inércia Sensorial [EMAIL PROTECTED]
 Date: Thu, 5 Jul 2001 22:26:24 -0300
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: changing to a different file in browser

 header (http://www.example.com;); // Goes to example.com.

 --


 Julio Nobrega.

 A hora está chegando:
 http://sourceforge.net/projects/toca

 Brad Wright [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi all,
 I know this is probably the most stupid question you'll see on this
list
 for
 a while, but anyway,
 In an 'if..else' statement, I want to (if a condition is met) change to
a
 totally new php page in the browser window. I know this is simple (in
fact
 i
 had it working last night but have now forgotten how i did it).

 ie (no the following is NOT actual PHPsheesh :)

 If  a=1
 go to required_page.php
 else
 do nothing

 Thanks in advance,
 Brad






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



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



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



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




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




Re: [PHP] testing

2001-07-06 Thread Chris Anderson

You mean I'm not here?
- Original Message -
From: Don Read [EMAIL PROTECTED]
To: McShen [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 2:32 AM
Subject: RE: [PHP] testing



 On 06-Jul-01 McShen wrote:
  where are u guys?

 I'm sorry, I've gone insane, please leave your message and number at the
tone.
 I will return your call as soon as i get back.

  ... BEEP!
 --
 Don Read   [EMAIL PROTECTED]
 -- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.

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



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




Re: [PHP] Bibliography Profiles Directory - Looking for Existing GPL Apps

2001-07-06 Thread Chris Anderson

profiles?
- Original Message -
From: Mike Gifford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 2:06 AM
Subject: [PHP] Bibliography  Profiles Directory - Looking for Existing GPL
Apps


 Hello,

 I'm looking to see if someone out there has already developed a php/mysql
 bibilography.  I haven't been able to find one online.

 I'm also looking for a profiles directory.  Rather vague definition here,
sorry.

 Ultimately it will be i18n compliant..

 Mike
 --
 Mike Gifford, OpenConcept Consulting, http://openconcept.ca
 Offering everything your organization needs for an effective web site.
 Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
 It is a miracle that curiosity survives formal education. - A Einstein


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



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




Re: [PHP] -help

2001-07-06 Thread Chris Anderson

Question?
- Original Message - 
From: Peter Mead [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 9:52 AM
Subject: [PHP] -help


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


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




Re: [PHP] Bibliography Profiles Directory - Looking for Existing GPL Apps

2001-07-06 Thread Chris Anderson

Ahh, dunno about that at all
- Original Message -
From: Mike Gifford [EMAIL PROTECTED]
To: Chris Anderson [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 9:41 AM
Subject: Re: [PHP] Bibliography  Profiles Directory - Looking for Existing
GPL Apps


 Sorry for being so vague in my last message.

 Let's say you want to hilight 100 people (say best atheletes, coders, what
have
 you).  You want a brief profile of this person.  Name, location,
languages,
 picture, areas of interest, etc..

 Something so that you can get a sense of who these folks are.

 Mike

 Chris Anderson wrote:

  profiles?
  - Original Message -
  From: Mike Gifford [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, July 06, 2001 2:06 AM
  Subject: [PHP] Bibliography  Profiles Directory - Looking for Existing
GPL
  Apps
 
 
 
 Hello,
 
 I'm looking to see if someone out there has already developed a
php/mysql
 bibilography.  I haven't been able to find one online.
 
 I'm also looking for a profiles directory.  Rather vague definition
here,
 
  sorry.
 
 Ultimately it will be i18n compliant..
 
 Mike
 --
 Mike Gifford, OpenConcept Consulting, http://openconcept.ca
 Offering everything your organization needs for an effective web site.
 Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
 It is a miracle that curiosity survives formal education. - A Einstein
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 



 --
 Mike Gifford, OpenConcept Consulting, http://openconcept.ca
 Offering everything your organization needs for an effective web site.
 Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
 It is a miracle that curiosity survives formal education. - A Einstein




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




Re: [PHP] Re : Recommendation for - FREE Yellow Page entry

2001-07-06 Thread Chris Anderson

no, go away
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 9:18 AM
Subject: [PHP] Re : Recommendation for - FREE Yellow Page entry


 Hi,

 Reference : May we have your permission ?

 A visitor to one of our 60 Topical sites has recommended
 we contact you, to include your business in the Only-Yellow-Pages
Directory.

 The information they have provided is :

 Email: [EMAIL PROTECTED]
 URL  : e-gineer.com
 Category : Florida

 Do you feel this would be appropriate and if so, may  we
 have permission to give your site a FREE listing ?

 Only-Yellow-Pages is the first online GLOBAL Yellow Pages
 Directory covering over 700 cities in over 120 countries,
 EACH with it's own domain and directory.

 Entries are displayed on almost 3000 topical and regional web sites
 currently getting over 2 MILLION visitors per month.

 We receive numerous submissions like this but will not
 activate ANY without the owner's consent.

 May we have your permission to list your site ?

 There is no charge.

 If you want it listed, please go to :

 http://www.only-yellow-pages.com

 to choose the design, and enter your information.

 Thanking you in anticipation..



 Sincerely,

 Tony Alkin
 Director

 mailto:[EMAIL PROTECTED]




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



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




Re: [PHP] Problem writting to file...

2001-07-06 Thread Chris Anderson

I don't see anything wrong with the code. Does this work:
?php
$fp = fopen(./data.txt, w+);
$counter = 0;
for($counter = 0; $counter 6; $counter++)
{
fwrite($fp, $counter . \n);
}
fclose ($fp);
?

- Original Message -
From: James Bartlett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 2:15 PM
Subject: [PHP] Problem writting to file...


Hi,

I'm trying to write data to a file but for some reason it will not store
numbers in the file...Here's the code I'm using...(as an example)

?php
$fp = fopen(./data.txt, w+);
$counter = 0;
while ($counter 6)
{
fwrite($fp, $counter . \n);
$counter = $counter +1;
}
fclose ($fp);
?

Thanks for any help...

James



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




Re: [PHP] Missing first record in PHP/Mysql query

2001-07-06 Thread Chris Anderson

here may be why:
//Right here you grab a row
$query_data = mysql_fetch_row($result);
//but you don't use it and you move on
 while($query_data = mysql_fetch_array($result)) {
- Original Message - 
From: Rory O'Connor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 3:11 PM
Subject: [PHP] Missing first record in PHP/Mysql query


 Excuse me if this is too newbie...but I'm writing a simple script to
 query a database and loop through the reuslts, echoing them on the page.
  When I enter the query at the mysql command line, I get the correct
 results.  But the same query run through PHP renders all results except
 the first one.  Any idea why?  I've included the code snippet below:
 
 //the query to select the data
 $query = SELECT firstname,email,optin from contact where
 interest='rory';
 $result = mysql_query($query);
 if(!$result) error_message(sql_error());
 
 $query_data = mysql_fetch_row($result);
 
 while($query_data = mysql_fetch_array($result)) {
 $firstname = $query_data[firstname];
 $email = $query_data[email];
 $optin = $query_data[optin];
 
 echo BR\n;
 echo $firstname;$email;$optin\n;
 
 } //end while loop 
 
 also, what would be the code to output the reuslts to a text file
 instead of (or in addition to) the screen?
 
 thanks,
 
 rory
 
 providing the finest in midget technology
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




[PHP] Creating a Variable with the Name of a string

2001-07-06 Thread Chris Anderson

I know this has been discussed before, but I've searched the manual and didn't see it 
under Variable functions, or any of my searches. 
I have varible $temp, how can I create a variable whose name is the string stored in 
$temp? Thanks in advance



Re: [PHP] Creating a Variable with the Name of a string

2001-07-06 Thread Chris Anderson

Thanks

- Original Message -
From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 4:27 PM
Subject: RE: [PHP] Creating a Variable with the Name of a string


 try using assoc. arrays also...
 they're much nicer to deal with ;)


  -Original Message-
  From: James Atkinson [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 06, 2001 4:20 PM
  To: Chris Anderson; [EMAIL PROTECTED]
  Subject: RE: [PHP] Creating a Variable with the Name of a string
 
 
  $temp = myvar;
  $$temp = My value;
 
  echo $myvar;
 
  output:
  My value
 
  - James
 
   -Original Message-
   From: Chris Anderson [mailto:[EMAIL PROTECTED]]
   Sent: July 6, 2001 1:17 PM
   To: [EMAIL PROTECTED]
   Subject: [PHP] Creating a Variable with the Name of a string
  
  
   I know this has been discussed before, but I've searched the manual
and
   didn't see it under Variable functions, or any of my searches.
   I have varible $temp, how can I create a variable whose name is the
   string stored in $temp? Thanks in advance
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

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




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




[PHP] How to apply something to every variable

2001-07-06 Thread Chris Anderson

I was playing around trying to find a way to addslashes() to all my variables, and I 
came up with this snippet. Hope it helps someone

 $keys = array_keys($HTTP_POST_VARS);
 $post_size = sizeof($keys);
 for($x = 0; $x  $post_size; $x++)
 {
  $temp = $keys[$x];
//you can replace addslashes with whatever you want to use
  ${$temp} = addslashes($HTTP_POST_VARS[$temp]);
 }



Re: [PHP] How to apply something to every variable

2001-07-06 Thread Chris Anderson

Fine, just outdo me =)
- Original Message - 
From: Chadwick, Russell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 6:10 PM
Subject: RE: [PHP] How to apply something to every variable


 
 while (list($key, $val) = each ($HTTP_POST_VARS)) {
 ${$key} = addslashes($val);
 }
 
 - Russ
 
 -Original Message-
 From: Chris Anderson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 06, 2001 3:07 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] How to apply something to every variable
 
 
 I was playing around trying to find a way to addslashes() to all my
 variables, and I came up with this snippet. Hope it helps someone
 
  $keys = array_keys($HTTP_POST_VARS);
  $post_size = sizeof($keys);
  for($x = 0; $x  $post_size; $x++)
  {
   $temp = $keys[$x];
 //you can replace addslashes with whatever you want to use
   ${$temp} = addslashes($HTTP_POST_VARS[$temp]);
  }
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] Post a form within a running php-script

2001-07-06 Thread Chris Anderson

Put the variables in the url ie:
script.php?username=joebobpassword=joepassword
- Original Message - 
From: SED [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 6:30 PM
Subject: [PHP] Post a form within a running php-script


 For a special purpose I want to post a form within a running script, is
 it possible? I don't need the feedback, only post it to a http-path. (To
 clarify, I'm not asking about Submitting a form via button.)
 
 Regards,
 Sumarlidi Einar Dadason
 
 SED - Graphic Design
 
 --
 Phone:   (+354) 4615501
 Mobile:  (+354) 8960376
 Fax: (+354) 4615503
 E-mail:  [EMAIL PROTECTED]
 Homepage:www.sed.is
 --
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




[PHP] Printing a root link into HTML

2001-07-06 Thread Chris Anderson

I need to give a link to a file in a previous directory, but HTML doesn't understand 
../ links. Any idea how I can do this?



Re: [PHP] Post a form within a running php-script

2001-07-06 Thread Chris Anderson

Yes, replace spaces with + signs
- Original Message -
From: SED [EMAIL PROTECTED]
To: 'Chris Anderson' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, July 06, 2001 7:24 PM
Subject: RE: [PHP] Post a form within a running php-script


I thought that at first but I need to post long variables (some
containing many words) and many, is that okay?

-Original Message-
From: Chris Anderson [mailto:[EMAIL PROTECTED]]
Sent: 6. júlí 2001 23:08
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Post a form within a running php-script


Put the variables in the url ie:
script.php?username=joebobpassword=joepassword
- Original Message -
From: SED [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 6:30 PM
Subject: [PHP] Post a form within a running php-script


 For a special purpose I want to post a form within a running script,
 is it possible? I don't need the feedback, only post it to a
 http-path. (To clarify, I'm not asking about Submitting a form via
 button.)

 Regards,
 Sumarlidi Einar Dadason

 SED - Graphic Design

 --
 Phone:   (+354) 4615501
 Mobile:  (+354) 8960376
 Fax: (+354) 4615503
 E-mail:  [EMAIL PROTECTED]
 Homepage:www.sed.is
 --


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



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




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




Re: [PHP] Real Estate Catalog

2001-07-07 Thread Chris Anderson

Don't say steal, say learn from
: )
- Original Message -
From: [EMAIL PROTECTED]
To: Joe Smith [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, July 07, 1979 2:44 AM
Subject: Re: [PHP] Real Estate Catalog


 on 7/7/01 2:43 AM, Joe  Smith at [EMAIL PROTECTED] wrote:

  If you'd rather I bore everyone with the details, let me know and I'll
post
  my questions to this thread for all to see and chime in on.


 If your questions are clear, and if you don't post too much code people
here
 seem to be very nice. It helps if the question is general enough that
other
 people can use the answer too.

 I'm new at all this too when I get stuck, I try google or one of these
sites
 for help before posting ...

 http://www.php.net
 tells how to use most functions

 http://www.webmonkey.com
 Great tutorials, but only for easy stuff

 http://www.mysql.com
 a bit confusing, but in theory all the functions are here...

 http://www.phpbuilder.com
 lots of posts, often I find that someone else has had the same question as
 me, also some great tutorials.

 http://www.devshed.com
 lots of great scripts to steal


 Good Books:

 O'Riley PHP pocket reference
 MySQL by Paul DuBois and Michael Widenius
 O'Riley MySQL and mSQL

 Hope that helps!




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




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




Re: [PHP] Something weird

2001-07-07 Thread Chris Anderson

So how is that weird?
- Original Message - 
From: David OBrien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 2:02 PM
Subject: [PHP] Something weird


 I just installed a fresh RH 7.1 server with compiled apache and php 4.0.6
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




[PHP] Restoring a Dump File With PHP

2001-07-07 Thread Chris Anderson

I created a MySQL dump file (.sql) and I wanted to use it to restore my database. 
Unfortunately the manual (MySQL) only shows the command line method:
mysql database  file.sql
I tried this in PHP and it didn't work. Does anyone know how to load the .sql file 
into the database through PHP? Thanks



Re: [PHP] Convert MP3s using PHP ?

2001-07-07 Thread Chris Anderson

Try looking for BladeEnc. It is a freeware encoding dll/runtime that works
in windows and unix and is completely command line
- Original Message -
From: Tom Carter [EMAIL PROTECTED]
To: Michel 'ZioBudda' Morelli [EMAIL PROTECTED]; Micha Ober
[EMAIL PROTECTED]
Cc: php [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 8:12 AM
Subject: Re: [PHP] Convert MP3s using PHP ?


  hi,
  is it possible to convert a mp3 file (for example
  190kbps) to a mp3 file with 128kbps or less ?
 
  exec()
  system()

 To expand upon that previous answer.. sort of. PHP can't, but if you can
 find a command line utility to perform the conversion (sorry, I don't know
 any of hand) then PHP can save the file to the syatem, run the utility by
 exec() and then read in the resulting file.

 HTH


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



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




Re: [PHP] require_once(); questions

2001-07-07 Thread Chris Anderson

Actually this does work:
//First_File.php
?
$test = I am the test variable;
?

//Second_File.php
?
echo $test;
?

//Active file
?
require First_File.php;
require Second_File.php;
?

That would produce the output of :
  I am the test variable

An include or require just places the files' contents at the line you
include it. So after the includes(requires) my parsed code was:
?
$test = I am the test variable;
echo $test;
?

Hope this helps

- Original Message -
From: Inércia Sensorial [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 5:59 PM
Subject: [PHP] require_once(); questions


   Hi All,

   I have a function that includes files based on some SQL queries. On one
of
 the first loaded files, I want to define a function and use it on another
 included file. Something like:

 includes file:
 first_file.inc.php
 This file has: $test = Show me!;

 Then include file:
 second_file.php
 This file has: echo $test;

   But doesn't show nothing, so I guess it is not possible to do. Am I
right?
 If so, what's the best alternative?

   Also, another question since it is a function that includes the
files,
 the contents of these files are not available outside the function scope..
 what's the best way to use it outside the function?

   Thanks a lot

 --


   Julio Nobrega.

 A hora está chegando:
 http://sourceforge.net/projects/toca




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



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




Re: [PHP] How to apply something to every variable

2001-07-07 Thread Chris Anderson

The true point of that snippet was to apply something to all my variables.
Plus, not all servers have that option on :
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 7:49 AM
Subject: Re: [PHP] How to apply something to every variable


 Hi Chris!
 On Fri, 06 Jul 2001, Chris Anderson wrote:

  I was playing around trying to find a way to addslashes() to all my
  variables, and I came up with this snippet. Hope it helps someone
 
 why don't you turn on magic_quotes_gpc then?

   $keys = array_keys($HTTP_POST_VARS);
   $post_size = sizeof($keys);
   for($x = 0; $x  $post_size; $x++)
   {
$temp = $keys[$x];
  //you can replace addslashes with whatever you want to use
${$temp} = addslashes($HTTP_POST_VARS[$temp]);
   }
 -- teodor

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



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




Re: [PHP] How to apply something to every variable

2001-07-07 Thread Chris Anderson

btw, thanks. Before now I had always sized out my arrays and looped through
them. I never noticed how easy a foreach could emulate that.
- Original Message -
From: PHPBeginner.com [EMAIL PROTECTED]
To: Chadwick, Russell [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 1:09 AM
Subject: RE: [PHP] How to apply something to every variable




 foreach($HTTP_POST_VARS as $k=$v) {
 $$k = addslashes($v);
 }



 - Maxim Maletsky

 PS: no, not trying to win over, just trying to suggest my way ;-)



 -Original Message-
 From: Chadwick, Russell [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, July 07, 2001 7:11 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: [PHP] How to apply something to every variable



 while (list($key, $val) = each ($HTTP_POST_VARS)) {
 ${$key} = addslashes($val);
 }

 - Russ

 -Original Message-
 From: Chris Anderson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 06, 2001 3:07 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] How to apply something to every variable


 I was playing around trying to find a way to addslashes() to all my
 variables, and I came up with this snippet. Hope it helps someone

  $keys = array_keys($HTTP_POST_VARS);
  $post_size = sizeof($keys);
  for($x = 0; $x  $post_size; $x++)
  {
   $temp = $keys[$x];
 //you can replace addslashes with whatever you want to use
   ${$temp} = addslashes($HTTP_POST_VARS[$temp]);
  }

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



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



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




Re: [PHP] foreach loop

2001-07-07 Thread Chris Anderson

Good call
- Original Message -
From: John Monfort [EMAIL PROTECTED]
To: PHPBeginner.com [EMAIL PROTECTED]
Cc: John Meyer [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 6:27 PM
Subject: RE: [PHP] foreach loop



  If we didn't have Microsoft, we'd have to blame ourselves for all of
our
  programs crashing

  If we didn't have microsoft, 'Crashing Programs' wouldn't be part of our
  daily vocabulary  :)



 __John Monfort_
 _+---+_
  P E P I E  D E S I G N S
www.pepiedesigns.com
 The world is waiting, are you ready?
 -+___+-

 On Sun, 8 Jul 2001, PHPBeginner.com wrote:

 
 
  If we didn't have Microsoft, we'd have to blame ourselves for all of
our
  programs crashing
 
 
  I really don't think so
  :-)
 
  -maxim maletsky
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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



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




Re: [PHP] require_once(); questions

2001-07-07 Thread Chris Anderson

Try putting GLOBAL infront of the var to give it the greater scope
- Original Message -
From: Chris Anderson [EMAIL PROTECTED]
To: Inércia Sensorial [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 8:50 PM
Subject: Re: [PHP] require_once(); questions


 Actually this does work:
 //First_File.php
 ?
 $test = I am the test variable;
 ?

 //Second_File.php
 ?
 echo $test;
 ?

 //Active file
 ?
 require First_File.php;
 require Second_File.php;
 ?

 That would produce the output of :
   I am the test variable

 An include or require just places the files' contents at the line you
 include it. So after the includes(requires) my parsed code was:
 ?
 $test = I am the test variable;
 echo $test;
 ?

 Hope this helps

 - Original Message -
 From: Inércia Sensorial [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, July 07, 2001 5:59 PM
 Subject: [PHP] require_once(); questions


Hi All,
 
I have a function that includes files based on some SQL queries. On
one
 of
  the first loaded files, I want to define a function and use it on
another
  included file. Something like:
 
  includes file:
  first_file.inc.php
  This file has: $test = Show me!;
 
  Then include file:
  second_file.php
  This file has: echo $test;
 
But doesn't show nothing, so I guess it is not possible to do. Am I
 right?
  If so, what's the best alternative?
 
Also, another question since it is a function that includes the
 files,
  the contents of these files are not available outside the function
scope..
  what's the best way to use it outside the function?
 
Thanks a lot
 
  --
 
 
Julio Nobrega.
 
  A hora está chegando:
  http://sourceforge.net/projects/toca
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




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




Re: [PHP] watermarks

2001-07-07 Thread Chris Anderson

a watermark is not something ON an image. A watermark is the same as a
digital signature so you know who created the piece
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 11:38 PM
Subject: Re: [PHP] watermarks


 on 7/7/01 11:27 PM, Chris Lambert - WhiteCrown Networks at
 [EMAIL PROTECTED] wrote:

  I am afraid I am completely stupid in the way that watermarks
  work(researching now).  however I need to know quickly if I can
dynamically
  apply a watermark to an image using PHP.  Any one know?


 Just use
  imagestring (int im, int font, int x, int y, string s, int col)

 that is if you have the GD lib installed.

 Susan


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




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




Re: [PHP] Mcrypt Part2

2001-07-08 Thread Chris Anderson

the lib directories you specify for apache in the httpd.conf are incorrect.
- Original Message -
From: Power Programmer [EMAIL PROTECTED]
To: Ben Bleything [EMAIL PROTECTED]; 'Power Programmer'
[EMAIL PROTECTED]; [EMAIL PROTECTED]; 'Keyser Soze'
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, July 08, 2001 5:16 PM
Subject: [PHP] Mcrypt Part2


 What causes this error when apache is starting?


 # ./apachectl startssl
 Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/libphp4.so into server:
 libmcrypt.so.4: cannot open shared object file: No such file or directory
 ./apachectl startssl: httpd could not be started


 Libphp4.so does exist.


 Thanks

 Randy



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



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




Re: [PHP] ? include (http://www.myserver.de/page2.php); ?

2001-07-08 Thread Chris Anderson

You could try fopen()ing the contents that way. maybe exec() them?
- Original Message - 
From: Dieter Stolpmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 08, 2001 3:18 PM
Subject: [PHP] ? include (http://www.myserver.de/page2.php;); ?


 Hi,
 
 does anyone know, how to get the following line working
 an windows?
 
 ? include (http://www.myserver.de/page2.php;); ?
 
 I know, this way to access a remote file works on UNIX.
 I simply can't get it to work on window. Is there a patch/trick
 out, wich enables this?
 
 I tried it on windows with IIS and APACHE. Both attempts
 have failed.
 
 I need it, because I do develop most of my pages on a Win2k
 system, later, the pages gets published on a LINUX server.
 
 Thanks for your help
 Dieter
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] a recent 2600 article about PHP/CGI vulnerabilities

2001-07-09 Thread Chris Anderson

/me unsubscribes : )
- Original Message - 
From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 11:40 AM
Subject: [PHP] a recent 2600 article about PHP/CGI vulnerabilities


 i just read an article in 2600 yesterday about supposed
 PHP/CGI vulnerabilities.  anyone else catch it?
 
 personally, when i read the article, i started chuckling,
 becuase the supposed vulnerability is not with PHP or
 any particular language, but with shoddy secure 
 programming practises (which are a problem with any
 language), so i was a little let down that i wasn't
 going to get some info on actual PHP vulnerabilities.
 
 the authour described the supposedly common practise of
 passing around a plaintext variable denoting whether or
 not the page was supposed to authorize a user or not:
   http://server.com/this.php?mode=insecure
   http://server.com/this.php?mode=secure
 
 the article went on to explain how incredibly easy it 
 is to exploit this type of website by simply changing
 mode=secure to mode=insecure and effectively skipping
 the need to authenticate yourself.  the article also
 urged all readers to develop more secure PHP code and
 avoid the practise of being lazy about authentication.
 
 (if you dont bother to write good security code, it's
 usually worse than having no security at all, becuase
 having bad security will prompt people to break it
 just to prove that it's worthless)
 
 just figured i'd paraphrase the article and suggest that
 you all pick up an issue 2600 - it's a great read... and
 in the most recent issue, there's an article about PHP/perl
 based mailing lists and ways that they can be exploited
 to mail-bomb people.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




Re: [PHP] Parsing a message

2001-07-09 Thread Chris Anderson

Why just not use seperate fields that you fill from individual form
elements?
- Original Message -
From: James Greene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 7:35 PM
Subject: [PHP] Parsing a message


 Hi All,
 I am creating a page which a user enters an e-mail message in, then
the
 message is stored in a field of a database.  I need to parse some
 information from that message first, like the To line and such.  Anyone
got
 any snippet of code for doing this ?  Thanks
 JG


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




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




Re: [PHP] Fatal error: Call to undefined function:mysql_pconnect() in ...

2001-07-11 Thread Chris Anderson

Is php compiled with mysql support?
- Original Message -
From: Tom Beidler [EMAIL PROTECTED]
To: Matthew Loff [EMAIL PROTECTED]; php list
[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 5:22 PM
Subject: Re: [PHP] Fatal error: Call to undefined function:mysql_pconnect()
in ...


 I have tried mysql_connect() with the same result Fatal error: Call to
 undefined function: mysql_connect()...




  From: Matthew Loff [EMAIL PROTECTED]
  Organization: Willetts Systems
  Date: Wed, 11 Jul 2001 16:01:13 -0400
  To: 'Tom Beidler' [EMAIL PROTECTED], 'php list'
  [EMAIL PROTECTED]
  Subject: RE: [PHP] Fatal error: Call to undefined function:
mysql_pconnect()
  in ...
 
 
  Have you tried a non-persistant connection?  Does that work?
 
  mysql_connect()?


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



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




Re: [PHP] how to hide dbconnect file if its in published directo

2001-07-13 Thread Chris Anderson

how can you hate foo.inc?
- Original Message -
From: Don Read [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 13, 2001 10:39 PM
Subject: Re: [PHP] how to hide dbconnect file if its in published directo



 On 14-Jul-01 hassan el forkani wrote:
  there should not be any problem if your web server is configured to
parse
  .inc extentions as PHP, in wich case, even if the file is called
  separately, the server will strip php tags and send normal html output.
 

 Enough already.
  Whom should we flog and keel-haul for starting this include(foo.inc) crap
?!?

 --
 Don Read   [EMAIL PROTECTED]
 -- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.

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



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




[PHP] MySQL Connect Timing out?

2001-07-15 Thread Chris Anderson

I have an include file that includes my mysql connect information. Its sole purpose is 
to login to mysql. Strangely on my Win9x development system with apache, sometimes, 
almost randomly, the connection will time out. Then if I press refresh it works 
prefectly. I am only connecting once per page and am closing my connections when done. 
Does this sound like a MySQL or Apache onfiguration problem? Or is there something I'm 
missing. Thanks 



Re: [PHP] how can i creat a file and write a string to it!

2001-07-15 Thread Chris Anderson

Try looking under Filesystem functions in the manual.
- Original Message - 
From: sunny AT wde [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Sunday, July 15, 2001 1:27 PM
Subject: [PHP] how can i creat a file and write a string to it!


 i've been looking for an adequate answer all morning in the archives,
 but can't find one, neithr can i understand the manual.
 
 all i want to do is for php to take the strong sent to it through a
 form, and create a new file with a name 2.html for example, and
 write the string to it.
 
 how can i quickly do this please?
 
 i got this so far but that gives me some filehandler problem. i'm
 running off a unix system btw.
 
   $lastid = mysql_insert_id() ; 
   $root = /home/articles/;
   $file = $root . $lastid . .html;
 
   fwrite($file, $articletext);
 
 tia!!
 
 /sunny
 
 
 Do You Yahoo!?
 Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
 or your free @yahoo.ie address at http://mail.yahoo.ie
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




Re: [PHP] Re: I want to learn this!

2001-07-15 Thread Chris Anderson

Zona is right, if you avoid the manual you will experience many problems.
Never avoid the documentation
- Original Message -
From: CC Zona [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 15, 2001 5:06 PM
Subject: [PHP] Re: I want to learn this!


 In article [EMAIL PROTECTED],
  [EMAIL PROTECTED] (Minardi Boy) wrote:

  I've downloaded the manual at
  php.net but this wasn't very satisfying as I really don't like reading
lots
  of complicated stuff on the screen of my laptop.

 Then print it.  No kidding.  I'm all for conserving paper, but this is no
 waste.  The PHP manual--*with annotations*--is a very good introduction to
 PHP.  IMO, far too many people try to get by w/o reading the manual, then
 end up spending hours or days struggling with something that would have
 taken them seconds or minutes if they'd read the manual through.

 A printout gives you get the best of both worlds: scribble notes all over
 the printout, while doing copy/pastes of the code snippets of the user
 annotations from the online version.

  Are there any books you guys/gals could recommend? Are there (non
  university/school) classes (satisfactory)?

 Julie Meloni has two good intro-level books.  Many people seem to like the
 Wrox book as well.  PHP.net has a list of other books (I believe there's a
 link from http://php.net/support.php).  Pick whichever one you're most
 comfortable with.

 As to courses, any generalized intro-to-programming should be helpful for
 understanding concepts  terminology common to PHP and every other
 programming language.

 You mention an interest in databases.  If you're using MySQL (which you
 should, at least while you're learning, since virtually every PHP tutorial
 for databases uses MySQL as its DBMS), the essential MySQL
 tutorial/reference book IMO is Paul DuBois' MySQL from New Riders.  It
 even has a chapter devoted to using MySQL with PHP.

 Caveat: do not expect to learn databases from any PHP reference.
 Database concepts, the SQL language, and the peculiarities (features,
 functions, syntax) of your DBMS are all big, important topics requiring a
 dedicated text of their own.

 My recommendations:
 The PHP.net manual, plus any online or printed PHP tutorial of your
choice.
 If you're planning to work with databases, add any standard intro to
 database concepts and SQL, plus the manual for your chosen DBMS.

 Good luck!

 --
 CC

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




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




Re: [PHP]OT I know, but WTF...

2001-07-15 Thread Chris Anderson

I've actually had an MS representative tell me not to use the IE6 beta.
What's that tell you?
- Original Message -
From: Chris Cocuzzo [EMAIL PROTECTED]
To: PHP General List (E-mail) [EMAIL PROTECTED]
Sent: Sunday, July 15, 2001 12:08 PM
Subject: [PHP]OT I know, but WTF...


 hey-

 I know this is off topic, but I figured i'd ask to see if other people
were
 experiencing similar problems. I'm having trouble accessing web
sites/pages
 that are secure(https...obviously). I tried changing everything around in
IE
 6, but so far nothing is working...any ideas?

 the error is the normal, annoying, page can't be found or dns error bull.

 chris


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




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




Re: [PHP]OT I know, but WTF...

2001-07-15 Thread Chris Anderson

: )

- Original Message -
From: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 15, 2001 7:10 PM
Subject: Re: [PHP]OT I know, but WTF...


 That the IE6 beta is a beta.

 /* Chris Lambert, CTO - [EMAIL PROTECTED]
 WhiteCrown Networks - More Than White Hats
 Web Application Security - www.whitecrown.net
 */

 - Original Message -
 From: Chris Anderson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; PHP General List (E-mail)
 [EMAIL PROTECTED]
 Sent: Sunday, July 15, 2001 5:35 PM
 Subject: Re: [PHP]OT I know, but WTF...


 | I've actually had an MS representative tell me not to use the IE6 beta.
 | What's that tell you?
 | - Original Message -
 | From: Chris Cocuzzo [EMAIL PROTECTED]
 | To: PHP General List (E-mail) [EMAIL PROTECTED]
 | Sent: Sunday, July 15, 2001 12:08 PM
 | Subject: [PHP]OT I know, but WTF...
 |
 |
 |  hey-
 | 
 |  I know this is off topic, but I figured i'd ask to see if other people
 | were
 |  experiencing similar problems. I'm having trouble accessing web
 | sites/pages
 |  that are secure(https...obviously). I tried changing everything around
 in
 | IE
 |  6, but so far nothing is working...any ideas?
 | 
 |  the error is the normal, annoying, page can't be found or dns error
 bull.
 | 
 |  chris
 | 
 | 
 |  --
 |  PHP General Mailing List (http://www.php.net/)
 |  To unsubscribe, e-mail: [EMAIL PROTECTED]
 |  For additional commands, e-mail: [EMAIL PROTECTED]
 |  To contact the list administrators, e-mail:
[EMAIL PROTECTED]
 | 
 | 
 |
 |
 | --
 | PHP General Mailing List (http://www.php.net/)
 | To unsubscribe, e-mail: [EMAIL PROTECTED]
 | For additional commands, e-mail: [EMAIL PROTECTED]
 | To contact the list administrators, e-mail: [EMAIL PROTECTED]
 |
 |
 |


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



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




Re: [PHP] true type fonts

2001-07-16 Thread Chris Anderson

Many special fonts don't have all the characters besides letters and
numbers. Perhaps thats the problem?
- Original Message -
From: Jon Yaggie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 16, 2001 2:11 PM
Subject: [PHP] true type fonts


i am creating images using true type fonts.  i have uploaded all my fonts
into one directory on the server(/fonts)

some fonts like arial.ttf work.  however other show up as boxes.  they are
beautiful but not quit the desired effect.  what is the problem any idea?
it cant be a scriptproblem can it? it has to be the files or maybe server
set up?   i have done this before with no problem so i am stumped at what
the difference here is and why some work.


idea?




Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

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

101 little bugs in the code . . .'

And it continued until they reached 0





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




Re: [PHP] Problems with Mail

2001-02-20 Thread Chris Anderson

true, here it is. Have fun...sorry ^_^

?php
include "Nav.inc";
?

img src=images/feedback.jpg

?php
if(isSet($send)  ($send == 1))
{

  error_reporting(0);
  $Address = "[EMAIL PROTECTED]";
  $Subject = "Feedback From NullTechnology.com";
  $Message = str_replace("\n","br",$Message);
  $Mail = mail($Address, $Subject, "$Message \n From: $Return");
  if($Mail == 1)
  {
   echo("brbrcenterbfont size=+1 face=verdanaYour Mail Was
   Succesfully Sent!/b/center");

   exit;
  }
  else
  {
   echo("brbrcenterbfont size=+1 face=verdanaThere Was An
   Error While Processing Your Email/b/center");

   exit;
  }


}
else
{

 if(IsSet($Message))
 {

  $Message = str_replace("\n","br",$Message);
  $Message = str_replace(" ","nbsp;",$Message);
  echo("centertabletdnbsp;nbsp;nbsp;
  nbsp;nbsp;nbsp;bMessage:/bbr$Messagebrnbsp;nbsp;nbsp;
  bReturn Address:/b $ReturnbrIf this is correct click on 'Send
Feedback'
   to send the email, if not you can edit the message
below/td/table/center");
  $Message = str_replace("br","\n",$Message);
  $Message = str_replace("nbsp;"," ",$Message);
 }
}
?

table align=center
td
form action=

   ?php
if(IsSet($Message))
 echo("feedback.php");
else
 echo("feedback.php");
   ?

method=post
Type Your Message Here:br
textarea name=Message cols=50 rows=10 wrap=yes?php
if(IsSet($Message))
 echo($Message);
else
 echo("Type your message in this box");
   ?/textarea

brIf You Want a Reply Type Your Email Address Here:  nbsp; nbsp;
input name=Return value=

   ?php
if(IsSet($Return))
 echo("'$Return'");
else
 echo("");
   ?

input type=hidden name=send value=

   ?php
if(IsSet($Message))
 echo("'1'");
else
 echo("'0'");
   ?

brbrcenter
input type=submit  value="Send Feedback!"center
/form
/td
/table
/body
/html
- Original Message -
From: "David Robley" [EMAIL PROTECTED]
To: "Chris Anderson" [EMAIL PROTECTED]; "Chris Anderson"
[EMAIL PROTECTED]; "PHP" [EMAIL PROTECTED]
Sent: Tuesday, February 20, 2001 9:24 PM
Subject: Re: [PHP] Problems with Mail


 On Sat, 17 Feb 2001 05:40, Chris Anderson wrote:

   I use the php mail function in this file, but it only sends the first
  line of the text. Any ideas? I attached the file


 The mailing list stripped your attachment - perhaps you could paste it
 into your message?

 --
 David Robley| WEBMASTER  Mail List Admin
 RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
 AusEinet| http://auseinet.flinders.edu.au/
 Flinders University, ADELAIDE, SOUTH AUSTRALIA



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




Re: [PHP] Problems with Mail

2001-02-21 Thread Chris Anderson

thanks ill try that
- Original Message -
From: "David Robley" [EMAIL PROTECTED]
To: "Chris Anderson" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001 12:39 AM
Subject: Re: [PHP] Problems with Mail


 On Sat, 17 Feb 2001 08:31, Chris Anderson wrote:

 Oy - your version of Windows appears to be lagging a few days behind the
 real world :=)

  true, here it is. Have fun...sorry ^_^
 
  ?php
  include "Nav.inc";
  ?
 
  img src=images/feedback.jpg
 
  ?php
  if(isSet($send)  ($send == 1))

 Isn't this redundant? Your test is really if send = 1 do something,
 otherwise do something else.

  {
 
error_reporting(0);
$Address = "[EMAIL PROTECTED]";
$Subject = "Feedback From NullTechnology.com";
$Message = str_replace("\n","br",$Message);
$Mail = mail($Address, $Subject, "$Message \n From: $Return");

 This is wrong  The additional stuff needs to go in the fourth
 parameter if you want it to show up in the From field,; as you have it,
 it will be tacked on the end of the message body.

 $from = "From: $Return";
 $Mail = mail($Address, $Subject, $Message, $Return);

 I wonder if you need to do some text wrapping? Although Outlook generally
 doesn't seem to care about such things, maybe something in the mail chain
 might.

if($Mail == 1)

 and I think this will always be true once PHP has offloaded the mail to
 the MTA, even if the MTA drops it on the floor.

 SNIP more code

 Failing that, you might need to look carefully at the actual content of
 the message - not getting any unexpected characters or somesusch???

 --
 David Robley| WEBMASTER  Mail List Admin
 RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
 AusEinet| http://auseinet.flinders.edu.au/
 Flinders University, ADELAIDE, SOUTH AUSTRALIA

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




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




[PHP] Directory(parent) Structure

2001-04-05 Thread Chris Anderson

I know using ../ in a path moves to the parent directory. But is there a way to move 
back farther then that?



Re: [PHP] How can I make this smaller

2001-04-05 Thread Chris Anderson

Cool, not my thread, but i never knew about the list function. /me needs to
read up an arrays more i guess
- Original Message -
From: "Matt McClanahan" [EMAIL PROTECTED]
To: "Richard Kurth" [EMAIL PROTECTED]
Cc: "PHP" [EMAIL PROTECTED]
Sent: Thursday, April 05, 2001 6:56 PM
Subject: Re: [PHP] How can I make this smaller


 On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote:

  Is there another way to write this I would like to make it smaller
  also How would I write it so it is a function and I would be able to use
all
  the data throughout the  whole program every time I try the rest of the
  program does not see the data

   $domain=$data[0];
   $tld=$data[1];
$firstname=$data[2];
   $lastname=$data[3];
   $userid=$data[4];
   $passw=$data[5];this part  would like to make smaller
$email=$data[6];
   $package=$data[7];
   $frontpage=$data[8];
   $mysql=$data[9];
   $userdatabase=$data[10];
   $newuser =$data[11];
  $newuserpass =$data[12];

 Use list()

 list($domain,$tld,$firstname,$lastname,$userid,.) = $data;

 If you want to put it in a function, declare them all globals beforehand.

 function myfunc()
 {
global $domain,$tld,$firstname,$lastname,$userid...;

 Matt

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




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




Re: [PHP] Directory(parent) Structure

2001-04-05 Thread Chris Anderson

funny thing is, I thought to try it, but thought it looked too strange to
work ^_^
- Original Message -
From: "Jack Dempsey" [EMAIL PROTECTED]
To: "Chris Anderson" [EMAIL PROTECTED]
Cc: "PHP" [EMAIL PROTECTED]
Sent: Thursday, April 05, 2001 7:06 PM
Subject: Re: [PHP] Directory(parent) Structure


 Sure

 .. = parent
 ../.. = parent of that
 etc...

 / = root

 you can get to any directory on your server by using a combination of ..
 and directory names, or, and this is often a good idea, you can just
 specify the location from root, for example

 /path/to/my/file

 that way if you move the file with .. in it, it'll still find your file
 correctly....

 jack

 Chris Anderson wrote:
 
  I know using ../ in a path moves to the parent directory. But is there a
way to move back farther then that?

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



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




[PHP] PHP Magazines?

2001-04-06 Thread Chris Anderson

Are there any PHP magazines stateside? I see all kinds of ASP mags, but none for PHP



[PHP] Wrapping Text

2001-04-07 Thread Chris Anderson

I've been having large problems with this so I decided to ask you guys(and gals ^_^). 
I have a textarea where you can type your text and it is saved to a file. Then another 
script includes that. Unfortunately I can't find a way for the textarea to wrap the 
text, or make it so it shows it they way they typed it in. Any help would be 
appreciated



[PHP] Array Sort?

2001-04-09 Thread Chris Anderson

Currently I am using the sort() command to sort an array. Unfortunately it uses the 
ascii number so all words starting with uppercase are before lowercase. Is there a 
case insensitive alphabetical sort that I don't know of? Thanks in advance ^_^



Re: [PHP] Array Sort?

2001-04-09 Thread Chris Anderson

heh, sounds fun. Oh well Thanks
- Original Message -
From: "David Robley" [EMAIL PROTECTED]
To: "Chris Anderson" [EMAIL PROTECTED]; "Chris Anderson"
[EMAIL PROTECTED]; "PHP" [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 8:47 PM
Subject: Re: [PHP] Array Sort?


 On Fri,  6 Apr 2001 18:33, Chris Anderson wrote:
  Currently I am using the sort() command to sort an array. Unfortunately
  it uses the ascii number so all words starting with uppercase are
  before lowercase. Is there a case insensitive alphabetical sort that I
  don't know of? Thanks in advance ^_^

 You might have to use usort and build a little case-insensitive sort
 routine yourself. Remember that ASCII A + 32 = ASCII a and so forth.
 --
 David Robley| WEBMASTER  Mail List Admin
 RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
 AusEinet| http://auseinet.flinders.edu.au/
 Flinders University, ADELAIDE, SOUTH AUSTRALIA



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




Re: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Chris Anderson

/me counts to himself
Yep 3 times, thats as bad as those people who sign up the lottery ads to
this list
- Original Message -
From: "Jon Haworth" [EMAIL PROTECTED]
To: "'Jeffrey Greer'" [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 12:52 PM
Subject: RE: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___


 Yes, we know, you've told us three times now.


 -Original Message-
 From: Jeffrey Greer [mailto:[EMAIL PROTECTED]]
 Sent: 10 April 2001 17:45
 To: [EMAIL PROTECTED]
 Subject: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___


 Hello,

 I am offering php hosting with features at a price no one else has, as
 far as I know.  I'm not going to create a giant web hosting service.
 I'm doing this to pay for my web portal.

 snip



 **
 'The information included in this Email is of a confidential nature and is
 intended only for the addressee. If you are not the intended addressee,
 any disclosure, copying or distribution by you is prohibited and may be
 unlawful. Disclosure to any party other than the addressee, whether
 inadvertent or otherwise is not intended to waive privilege or
confidentiality'

 **

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



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




[PHP] Do any of you provide hosting?

2001-04-12 Thread Chris Anderson

I currently am using Thehostpros.com for my hosting, but I can't say its been a 
pleasant experience. I had to have them install PHP because they are more ASP 
oriented. So that cost me more. Then I wanted MySQL and they have spent 3 months 
saying they'll install that. Basicly here's what I need:
Someone who can host my domain (I own the domain already)
Can provide MySQL and PHP. Both up-to-date.
Can give around 60 meg of space (ballpark, less should be fine)
Also a way to set up subdomains without needing to go through the admin (some hosts 
can do his). But this isn't necessary.
Can anyone help with that?




[PHP] Newbie MySQL Table Work

2001-04-12 Thread Chris Anderson

Alright I finally got around to installing MySQL on my cpu, and I sucessfully created 
a database. Now I have a ryyy dumb question. In the manual I see no 
functions for creating tables in a database through code. Maybe I'm just missing the 
function. Can someone help me?



Re: [PHP] Easy News Script

2001-04-12 Thread Chris Anderson

I prefer to write my own
- Original Message -
From: "Zeus" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 10:11 AM
Subject: [PHP] Easy News Script


I'm sure many of you heard of newsphp ? (the newspro-clone).

Somehow I felt attached to it except that it doesn't use databases for its
file storing.

Does anyone know a good similar script (easy to setup) that uses mySQL?




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




Re: [PHP] Do any of you provide hosting?

2001-04-12 Thread Chris Anderson

i'll have to try that. But can they use my current domain. Also do setting
up sub-domains in an hour cost me anything?
- Original Message -
From: "Lindsay Adams" [EMAIL PROTECTED]
To: "PHP" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 1:36 PM
Subject: Re: [PHP] Do any of you provide hosting?


 Check out aitcom.net

 get a resellers account, and go hog wild. you can even edit the httpd.conf
 page for custom liasing of directories, and anything else.

 I wasn't able to get them to compile PHP with some of the extras, at least
 not as an apache module, BUT I was able to compile PHP as a cgi for a few
 custom features.(libpdf.so)

 and setting up new domains is a breeze. Just order it, and wait an hour.

 So, if you are wanting to host other sites (and charge for them) a
 reseller's account with AIT is a great way to go. A couple of paid sites
can
 quickly cover the costs for your own site.

 I am up to 27 virtual hosts on my account

 On 4/12/01 10:28 AM, "Matt McClanahan" [EMAIL PROTECTED] wrote:

  On Thu, Apr 12, 2001 at 10:34:26AM -0400, Chris Anderson wrote:
 
  Someone who can host my domain (I own the domain already)
  Can provide MySQL and PHP. Both up-to-date.
  Can give around 60 meg of space (ballpark, less should be fine)
  Also a way to set up subdomains without needing to go through the admin
(some
  hosts can do his). But this isn't necessary.
  Can anyone help with that?
 
  Handy PHP hosting directory:
 
  http://hosts.php.net
 
  Matt


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




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




[PHP] MySQL Results NULL Error

2001-04-12 Thread Chris Anderson

If I grab values from fields and they contain nothing, and I retrieve them using 
mysql_field_array, it will give an index out of range. Is there a way to prevent the 
error or do I have to keep putting a @ in front of the variable declaration?



[PHP] I know POST Uploads, what about downloads?

2001-04-13 Thread Chris Anderson

I have a large script set that allows people I host to manage their files on my server 
until they have a FTP account setup. Unfortunately the only way they can save an 
uploaded file is to r-click on the link in the managers listing and choose "Save link 
target". This obviously doesn't work for PHP or ASP(ugh) because the browser parses 
them THEN sends it to the client. Is there anyway to allow the client to download the 
actual unparsed file? Any help would be appreciated ^_^



[PHP] peter.johansson@era.ericsson.se PLEASE UNSUBSCRIBE!!!

2001-04-13 Thread Chris Anderson

I am so tired of receivng multiple error emails when I post



[PHP] What's XML's Purpose??

2001-04-14 Thread Chris Anderson

Alright I'll start this out by saying I have a subscription to "Visual Basic 
Programmers Journal". Before I converted and realized that I loved PHP so much I used 
ASP. Well it seems that in this magazine that XML is a hot topic in the MS world. I 
know XML can be used by PHP, but is there a point? I only know 2 things about it:
1) You can make your own tags:
mytag/mytag
2) It's supposedly good for databasing?

If its for databasing, why not just use MySQL( or a variation). Am I missing something 
here?



Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Chris Anderson

thanks that helped
I stll think it sounds like its more geared for the MS crowd
- Original Message - 
From: "Brian Clark" [EMAIL PROTECTED]
To: "PHP is not a drug." [EMAIL PROTECTED]
Sent: Saturday, April 14, 2001 3:29 PM
Subject: Re: [PHP] What's XML's Purpose??


 Hi Chris,
 
 @ 12:01:45 AM on 4/14/2001, Chris Anderson wrote:
 
  Am I missing something here?
 
 This has been discussed many times. There was an extremely long thread
 last year about XML, but I can't find it in the archives.
 
 Here's a good start:
 
 http://marc.theaimsgroup.com/?l=php-generalm=97969195010857w=2
 
 Use the 'next in thread' link to follow the thread.
 
 -Brian
 --
  PGP is spoken here: 0xE4D0C7C8
  Please, DO NOT carbon copy me on list replies.
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




[PHP] Sorry :(

2001-04-14 Thread Chris Anderson

I realized that'll that I don't do much to help this community. I rarely reply to 
people's questions. Mainly because I have 56.6 and when I get mail people answered 
already. I also ask alot of questions. Just saying thanks for putting up with me.
Chris, The 17 yr Old Php Coder



Re: [PHP] Sorry :(

2001-04-14 Thread Chris Anderson

Well thanks everyone, don't feel like I'm "leeching" from the community
anymore. Now when it comes to me and napster, thats another story
- Original Message -
From: "Brian Clark" [EMAIL PROTECTED]
To: "PHP is not a drug." [EMAIL PROTECTED]
Sent: Saturday, April 14, 2001 7:47 PM
Subject: Re: [PHP] Sorry :(


 Hi Chris,

 @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote:

  I realized that'll that I don't do much to help this community. I
  rarely reply to people's questions. Mainly because I have 56.6 and
  when I get mail people answered already. I also ask alot of
  questions. Just saying thanks for putting up with me. Chris, The 17
  yr Old Php Coder

 As far as I'm concerned, you don't have a thing to be sorry about.

 There isn't a thing wrong with asking questions here. In fact, if you
 have a good book and this list to get help from, you're far more
 likely to become successful with PHP.

 -Brian
 --
  PGP is spoken here: 0xE4D0C7C8
  Please, DO NOT carbon copy me on list replies.



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



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




Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson

Have you checked the following things:
A) if the file is actually there?
B)Is it an include error
C)Do you have the required permissions for write access and for including
from that directory?
- Original Message -
From: "CC Zona" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 5:34 PM
Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


 Suggestions so far have focused on parts of the function other than
fwrite,
 so I'm trying again with a stripped-down example.  After spending many
 hours trying to make this very simple function work again, I'm beginning
to
 think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it
 was working fine before...).  Before filing a bug report, would a few
 people test whether this fails to write on their system too? Thank you!


 function build_file()
{
$fp=fopen("/path/to/directory/test.inc","w") or die("ERROR on fopen" .
 $php_errormsg);
fwrite($fp,"pHi, I'm some test content/p",1) or die("ERROR:
 fwrite " . $php_errormsg);
fclose($fp) or die("ERROR: fclose" . $php_errormsg);
}

 build_file(); //no errors and file modification date is updated

 echo "pBegin include...p"; //ok
 include("/path/to/directory/test.inc"); //NOTHING!
 echo "p...End includep"; //ok

 (Checking from the commandline, the file is definitely being set to empty.
 It's writing an empty string to the file instead of writing the specified
 content.)

 --
 CC

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



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




Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson

come to think of it, why are you passing 3 arguements to fwrite()?
- Original Message -
From: "CC Zona" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 5:34 PM
Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


 Suggestions so far have focused on parts of the function other than
fwrite,
 so I'm trying again with a stripped-down example.  After spending many
 hours trying to make this very simple function work again, I'm beginning
to
 think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it
 was working fine before...).  Before filing a bug report, would a few
 people test whether this fails to write on their system too? Thank you!


 function build_file()
{
$fp=fopen("/path/to/directory/test.inc","w") or die("ERROR on fopen" .
 $php_errormsg);
fwrite($fp,"pHi, I'm some test content/p",1) or die("ERROR:
 fwrite " . $php_errormsg);
fclose($fp) or die("ERROR: fclose" . $php_errormsg);
}

 build_file(); //no errors and file modification date is updated

 echo "pBegin include...p"; //ok
 include("/path/to/directory/test.inc"); //NOTHING!
 echo "p...End includep"; //ok

 (Checking from the commandline, the file is definitely being set to empty.
 It's writing an empty string to the file instead of writing the specified
 content.)

 --
 CC

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



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




Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread Chris Anderson

alright try removing the byte length identifier
- Original Message -
From: "Chris Anderson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 1:20 PM
Subject: Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


 come to think of it, why are you passing 3 arguements to fwrite()?
 - Original Message -
 From: "CC Zona" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 16, 2001 5:34 PM
 Subject: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
 Apache/1.3.14


  Suggestions so far have focused on parts of the function other than
 fwrite,
  so I'm trying again with a stripped-down example.  After spending many
  hours trying to make this very simple function work again, I'm beginning
 to
  think fwrite in broken--either in 4.0.4pl1 (?!) or in my build of it (it
  was working fine before...).  Before filing a bug report, would a few
  people test whether this fails to write on their system too? Thank you!
 
 
  function build_file()
 {
 $fp=fopen("/path/to/directory/test.inc","w") or die("ERROR on fopen"
.
  $php_errormsg);
 fwrite($fp,"pHi, I'm some test content/p",1) or
die("ERROR:
  fwrite " . $php_errormsg);
 fclose($fp) or die("ERROR: fclose" . $php_errormsg);
 }
 
  build_file(); //no errors and file modification date is updated
 
  echo "pBegin include...p"; //ok
  include("/path/to/directory/test.inc"); //NOTHING!
  echo "p...End includep"; //ok
 
  (Checking from the commandline, the file is definitely being set to
empty.
  It's writing an empty string to the file instead of writing the
specified
  content.)
 
  --
  CC
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


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




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




Re: [PHP] siimple cookie problem

2001-04-16 Thread Chris Anderson

Each time you change the value you need to re-set the cookie using
SetCookie() again
- Original Message -
From: "kmurrah" [EMAIL PROTECTED]
To: "PHP-GENERAL" [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 3:15 PM
Subject: [PHP] siimple cookie problem


 Can someone help me with an elementary cookie problem?

 I want to capture a variable, write to a cookie, and be able to access it
 from other pages.

 I've done that, and it works well

 BUT, if I capture the same variable a second time (with a different
value),
 it still remembers the first value, not the second.  The only way I can
get
 it to understand the second value is to exit my browser and start over.

 What am I doing wrong?

 Thanks in advance,

 KennM



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



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




Re: [PHP] siimple cookie problem

2001-04-16 Thread Chris Anderson

Also, try deleting the cookie:
Setcookie("name")
then setting it again. Some browsers all have cookie problems I've heard
also. Have you hit refresh?
- Original Message -
From: "kmurrah" [EMAIL PROTECTED]
To: "PHP-GENERAL" [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 3:15 PM
Subject: [PHP] siimple cookie problem


 Can someone help me with an elementary cookie problem?

 I want to capture a variable, write to a cookie, and be able to access it
 from other pages.

 I've done that, and it works well

 BUT, if I capture the same variable a second time (with a different
value),
 it still remembers the first value, not the second.  The only way I can
get
 it to understand the second value is to exit my browser and start over.

 What am I doing wrong?

 Thanks in advance,

 KennM



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



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




Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-17 Thread Chris Anderson

I am using the latest version of Apache and PHP. Sorry I couldn't be of more
help.
- Original Message -
From: "CC Zona" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 17, 2001 3:01 AM
Subject: Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1,
Apache/1.3.14


 In article 012101c0c69b$b01b8d00$8b1412d1@null,
  [EMAIL PROTECTED] ("Chris Anderson") wrote:

  I tried it, even with the byte length identifer it worked perfectly for
me.
  As a last ditch effort try changing the w to w+. If not then it sounds
like
  a configuration issue for the webserver or php. Dunno what settings
though,
  sorry couldn't be of more help.

 Thanks for testing.  Was that with v4.0.4pl?  I'd sure like to know
whether
 there's any possbility it's bug.  Seems unlikely, but then again so does
 the stubborness of frwite() in choosing its own content to write in place
 of mine.  I've pored over phpinfo and php.ini trying to find a config
 setting that might be causing this weirdness, but so far nothing seems
 obvious.

 --
 CC

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



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




Re: [PHP] Sending Email via PHP on Win2K

2001-04-17 Thread Chris Anderson

Check out the mail() function in the php manual. There is literally tons of
info on this function.
- Original Message -
From: "Boaz Yahav" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 17, 2001 4:54 PM
Subject: [PHP] Sending Email via PHP on Win2K


 Hi

 Has anyone done this?
 Does PHP interact with the SMTP service on the machine?
 Does anyone have a script that does this?

 thanks

 Sincerely

   berber

 Visit http://www.weberdev.com Today!!!
 To see where PHP might take you tomorrow.


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




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




Re: [PHP] Advanced Help Needed

2001-04-19 Thread Chris Anderson

I have seen this before. For me it was a problem with the post operation.I'd
give specifics, but frankly I can't remember...sorry :(
- Original Message -
From: "Marc Davenport" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 19, 2001 6:19 PM
Subject: [PHP] Advanced Help Needed


I need some help figuring something out that my host denies is his problem.

I have a suspicion that only someone who has run into this problem once
before has the answer.

I have this form which posts to a PHP file.  Sometimes I pass a file along.
This was info for a database and a picture along with it.   This worked fine
for the longest time.  Now it does not.
when I post a file in the form I recieve an "Cannot Find Server".  When
there isnt a file posted then the form works fine.  I dont understand
because I recieve no PHP generated error messages, but rather a problem
finding the site entirely.

Has anyone ever seen this?

Help would be much
Marc Davenport



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




Re: [PHP] Printing

2001-04-22 Thread Chris Anderson

try the javascript print() command
- Original Message - 
From: "Dmitry" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 22, 2001 10:11 PM
Subject: [PHP] Printing


 Hello, all!
 
 Do you know, can I print some page using PHP or
 JavaScript?
 
   Dmitry.
  [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


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




Re: [PHP] Lines

2001-04-24 Thread Chris Anderson

$Data = file(data.dat);
$Total = count($data);

That would get the lines from the file and give $total the number of lines.
- Original Message -
From: Rafael Faria [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 4:03 PM
Subject: Re: [PHP] Lines


 But how can i put into a var $total the total lines that i have into the
file?

 Rafael

 f you use the file() function to open up the file, it will put each line
 of the file into an array.  At that point you can say:
 
 for($i=5;$i11;$i++){
 
 print $myFile[$i];
 
 }
 
 
 Michael
 
 
 Rafael Faria wrote:
 
 
 
 Hey Guys,
 it's my first post on this list, and my doubt is...
 
 how can i take a file.txt and
 
 1 - know how many lines i have in this text
 2 - print line 5 until 10
 
 ?
 
 can someone help me?
 
 
 
 
 
 ---
 
 [ r a f a e l   f a r i a] _
 [EMAIL PROTECTED]
 WebMaster Universo Online - http://www.uol.com.br
 Phone # +55 11 3038-8665
 
 
 
 

 ---

 [ r a f a e l   f a r i a] _
 [EMAIL PROTECTED]
 WebMaster Universo Online - http://www.uol.com.br
 Phone # +55 11 3038-8665


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



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




Re: [PHP] Autoupdate of page

2001-04-24 Thread Chris Anderson

Hitting refresh would do it, you cant do anything client wise because the
box is being filled by the server code
- Original Message -
From: Martin Skjöldebrand [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 3:53 PM
Subject: [PHP] Autoupdate of page


 IS there a standard way of auto-updateing the contents of a page after a
 databas insert or edit? Do a SELECT updates the contents I can update
 tables I've noticed. Contents in select boxes (as in

  while ($row = mysql_fetch_row($secquery_res)) {
 print option$row[0]/option;
   }
 )

 is not automatically updated to match edits or inserts done on the same
 page. You have to initialize the select box again. Or is there another
way?

 M.

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




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




  1   2   >