RE: [PHP] easy quickie..

2002-01-02 Thread Seb Frost

I've never understood why people do this?  My browser has a back button.  I
know how to use it.  It's only a centimetre of mouse travel away from the
page I'm looking at, why do I need a duplicate?

- seb


-Original Message-
From: Kelly Meeks [mailto:[EMAIL PROTECTED]]


Happy New Year,

Does php set a variable that tells you the url of the page that a user has
just come from?  So if I wanted to create my own 'Back' button in a pop up
window, for instance?

Thanks in advance,

Kelly
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.307 / Virus Database: 168 - Release Date: 11/12/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]




[PHP] PMA worry

2001-12-17 Thread Seb Frost

Just got this.  Never had it before.  Am I being hacked?

Warning: Too many connections in /htdocs/PMA/lib.inc.php3 on line 305

Warning: MySQL Connection Failed: Too many connections in
/htdocs/PMA/lib.inc.php3 on line 305
Error
MySQL said: Too many connections
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.307 / Virus Database: 168 - Release Date: 11/12/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]




RE: [PHP] Form Question

2001-10-21 Thread Seb Frost

well all of the entries are passed via post or get to your form handler
(obviously).  So just pass them back when you re-call the form.

then put in

input type=text name=firstname value=?=$firstname? in the form

or something like that anyway.

- seb

-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: 21 October 2001 20:49
To: [EMAIL PROTECTED]
Subject: [PHP] Form Question


I got a form that a user fills out.  When they hit submit they are
transfered to a PHP page that verifies their data.  If a problem is found
(They forgot to enter an e-mail address) the PHP sends them back to the
original form with the field they forgot to fill out highlighted in red.
Unfortunately all there entries are wiped out and they have to re-enter
everything.  Any easy way to keep there original entries?




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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/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]




[PHP] Dividing too integers...

2001-10-19 Thread Seb Frost

Sorry for the stupid question...

I want to do 

$this=$foo/$bar;  (All are integers.)

where this is always rounded up.

I tried the obvious

$this = ceil($foo/$bar) but I just always get 0.


cheers,

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/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]




RE: [PHP] Dividing too integers...

2001-10-19 Thread Seb Frost

Cheers Rich!

I had $numrows instead of $num_rows - Doh!

I said too instead of two - double Doh!

- seb

-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: 19 October 2001 11:30
To: Seb Frost; PHP General
Subject: Re: [PHP] Dividing too integers...


I don't see why that doesnt work...  I would echo your values first to make
sure the values you want in $foo and $bar are the right ones...  It looks to
me that your expression is correct...

Rick

 Sorry for the stupid question...

 I want to do

 $this=$foo/$bar;  (All are integers.)

 where this is always rounded up.

 I tried the obvious

 $this = ceil($foo/$bar) but I just always get 0.


 cheers,

 - seb
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/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]




RE: [PHP] Getting screen resolution and color depth

2001-09-16 Thread Seb Frost

But you could then re-submit the page with this data somehow, couldn't you?

- seb

-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: 16 September 2001 21:04
To: 'Salty Marine'; [EMAIL PROTECTED]
Subject: RE: [PHP] Getting screen resolution and color depth



Can't be done...

1) Browser sends request
2) PHP page is compiled and executed
3) PHP output is sent to browser
4) Browser displays page/executes javascript/etc.


-Original Message-
From: Salty Marine [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, September 16, 2001 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting screen resolution and color depth


Greetings to You:

How do I get the user's screen resolution and color depth?  Here's how
it is done in Javascript.  I want to do it and put the results into a
PHP varibal.

Scriptdocument.write(screen.width +  x  + screen.height)/script
Scriptdocument.write(screen.colorDepth +  bit)/script

Regards,
Salty


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/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]




[PHP] URL security...?

2001-09-13 Thread Seb Frost

ok I know if I have a URL like /images/$fileName then someone could be
malicious by using .. to get to the root directory.

What I want to know is, if a URL absolutely starts with /images/ on my
website, is there someway that someone can modify the remainder of the path
such that it actually goes to a different website?  Do you see what I'm
saying?

cheers,

- seb frost

-Original Message-
From: GaM3R [mailto:[EMAIL PROTECTED]]
Sent: 13 September 2001 09:39
To: [EMAIL PROTECTED]
Subject: [PHP] help!!!


Cannot load /usr/local/apache_adserv/libexec/libphp4.so into server:
/usr/local/apache_adserv/libexec/libphp4.so: Undefined symbol mpz_add_ui

. . . configure line of

./configure '--with-apxs=/usr/local/apache_adserv/bin/apxs'
'--with-mysql=/usr/local' '--enable-versioning'
'--enable-inline-optimization' '--with-gd=/usr/local'
'--with-pgsql=/usr/local/pgsql' --enable-apc --with-gmp --with-config-file-p
ath=/usr/local/apache_adserv/php.ini


Cameron
outworld.cx

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/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]




[PHP] Other lists

2001-09-11 Thread Seb Frost

I've found this list so helpful - can anyone recommend a similar thing for
javascript/html/etc?

cheers,

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/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]




RE: [PHP] hi

2001-09-10 Thread Seb Frost

Fixed:

?php

echo a href=\show_source('source.php')\view
source/abr/br/;

?

- seb

-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 10:25
To: [EMAIL PROTECTED]
Subject: [PHP] hi


Hi, what z wrong in this code??




?php

echo a href=\?php show_source('source.php')?\view
source/abr/br/;

 ?



I am getting the following error

Forbidden
You don't have permission to access / on this server.

---
-

Apache/1.3.20 Server at ankem.wipro.com Port 80


How to rectify this thing??

Thanks in advance
Regards
-Balaji




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/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]




RE: [PHP] hi

2001-09-10 Thread Seb Frost

Well you can't just have a link to this function.  Make a page like so:

showsource.php
**
?php

$file=source.php;

show_source($file);

?

yourfile.php
**

?php

echo a href=\showsource.php\view source/a;

?



- seb


-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 10:25
To: [EMAIL PROTECTED]
Subject: [PHP] hi


Hi, what z wrong in this code??




?php

echo a href=\?php show_source('source.php')?\view
source/abr/br/;

 ?



I am getting the following error

Forbidden
You don't have permission to access / on this server.

---
-

Apache/1.3.20 Server at ankem.wipro.com Port 80


How to rectify this thing??

Thanks in advance
Regards
-Balaji




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/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]




RE: [PHP] Anagram Solution in PHP

2001-09-10 Thread Seb Frost

Sounds like you know exactly what you want to do :-)

1)  Obtain a text file, csv or whatever of a dictionary (easy enough -
www.google.com).
2)  Find the ascii values for a-z or A-Z, your choice.
3)  Read in a word at a time.
4)  Convert to upper or lower case to reflect part (2)
5)  Create a simple formula that converts the ascii codes into the range
1-26.
Something like ascii code of z - ascii code of letter + 1 should do the
trick.
6) add them all up.

simple.

- seb

-Original Message-
From: Ralph Guzman [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 09:26
To: PHP General Mailing List
Subject: [PHP] Anagram Solution in PHP


Im trying to figue out the following anagram using PHP. Here is the problem:

Using letters of the alphabet represented by a number, I have to come up
with words that add up to exactly 100.

Numbers are in reverse where A=26 and Z=1, so for example:

A  B  C...X  Y  Z
26 25 24..3  2  1

So let's say the word 'acronym'

A  + C  + R + 0  + N  + Y + M
26 + 24 + 9 + 12 + 13 + 2 + 14  = 100

My thoughts were to download a list of words in the dictionary, then read
the file and somehow replace each letter by its number, then add each letter
for each word and see which words would equal to 100.

So I am emailing this list for any suggestions or examples of code that I
can use to accomplish this. Any help?

Thanks much.




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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/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]




[PHP] How do I find out what version of GD I'm running?

2001-09-07 Thread Seb Frost

with phpinfo it just says GD 1.6 or above.  This is on a webhoster.  How do
I find out what version they're actually running?  I tried asking but
they're useless...

- seb

-Original Message-
From: Sebastian Wenleder [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 16:36
To: Joseph Bannon; PHP (E-mail)
Subject: Re: [PHP] GD


At 10:06 Uhr -0500 07.09.2001, Joseph Bannon wrote:
I just installed PHP 4.0.6.

1) Do I have to down load GD (graphics library) and install it sperately or
is it in 4.0.6 already?
2) Do I have to run anything special during configuration?
3) Do I have to completely re-install PHP and Apache?

Thanks,

Joseph

Hi Joseph,

You have to download GD from http://www.boutell.com/gd/
make sure you have zlib, libjpeg, libpng, and (if you need it) freetype
if not compile and install them all...
then configure php with
#./configure your options \
--with-gd=your dir \
--with-zlib=your dir \
--with-jpeg-dir=your dir \
--with-png-dir=your dir \
--with-tiff-dir=your dir \
--with-freetype-dir=your dir
#make
#make install

then you will have to restart apache

Best regards, Sebastian Wenleder

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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] Error handling and the usage of @

2001-09-07 Thread Seb Frost

Could someone give me an example of the sort of error handling you put in
your php scripts?  Cheers.  Should I be preceding every command with @?
Anything where this would be harmful?  Just looking for some pointers really
:-)

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] Re: Error handling and the usage of @

2001-09-07 Thread Seb Frost

So I should chuck it on all mysql functions?  Done.  Don't ya just love
search and replacing a whole directory of scripts :-)  Still works fine
too - bonus!

- seb

-Original Message-
From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 20:32
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Error handling and the usage of @



Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Could someone give me an example of the sort of error handling you put in
 your php scripts?  Cheers.  Should I be preceding every command with @?
 Anything where this would be harmful?  Just looking for some pointers
really

In general, stuff that (a) might fail in normal
use and (b) prints an unwanted error message.

This usually deals with calls to external
programs, stuff that sometimes be down.
In my case, this is pretty much restricted to
mail() and the mysql_xx functions.




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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] Refreshing form with submittd data

2001-09-06 Thread Seb Frost

I have 3 radio buttons, and I want the one selected by the user to show as
selected when the page reloads.  The form uses POST and points to itself.

here's what I have:

if ($thumbs==faster)
{
echo input type=\radio\ checked value=\faster\ name=\thumbs\Faster
loading;
echo input type=\radio\ value=\normal\ name=\thumbs\Normal
thumbnails;
echo input type=\radio\ value=\larger\ name=\thumbs\Higher
quality;
}
elseif ($thumbs==larger)
{
echo input type=\radio\ value=\faster\ name=\thumbs\Faster
loading;
echo input type=\radio\ value=\normal\ name=\thumbs\Normal
thumbnails;
echo input type=\radio\ checked value=\larger\ name=\thumbs\Higher
quality;
}
else
{
echo input type=\radio\ value=\faster\ name=\thumbs\Faster
loading;
echo input type=\radio\ checked value=\normal\ name=\thumbs\Normal
thumbnails;
echo input type=\radio\ value=\larger\ name=\thumbs\Higher
quality;
}


How can I make this better?  With a text field I can just do input
type=\text\ name=\foo\ value=\$bar\ but I can't figure out how to do
that sort of thing with radio buttons..


- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] Refreshing form with submittd data

2001-09-06 Thread Seb Frost

Thank you thank you thank you.  Sheer genius :-)

-Original Message-
From: David Otton [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2001 22:18
To: Seb Frost
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Refreshing form with submittd data


On Thu, 6 Sep 2001 13:46:59 +0100, you wrote:

I have 3 radio buttons, and I want the one selected by the user to show as
selected when the page reloads.  The form uses POST and points to itself.

How can I make this better?  With a text field I can just do input
type=\text\ name=\foo\ value=\$bar\ but I can't figure out how to do
that sort of thing with radio buttons..

?
function sel($what) {
global $thumbs;
return($thumbs==$what?'checked':'');
}
?

form method=post action=?=$PHP_SELF?
pinput type=radio value=fas name=thumbs ?=sel('fas')?
Faster/p
pinput type=radio value=nor name=thumbs ?=sel('nor')?
Normal/p
pinput type=radio value=lar name=thumbs ?=sel('lar')?
Larger/p
pinput type=submit name=go value=Change/p
/form

djo


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] HTML table creation software

2001-09-06 Thread Seb Frost

I expect I'll get flamed for being off topic but never mind.

I'm fine with creating simple tables and stuff - even nested a couple of
levels.  But there's so many sites these days with super-complex table
layouts.  How are these created?  Is it just some super-talented table guru
who codes the lot in notepad, or is there a bit of software (like Frontpage
but obviously NOT frontpage) that aids their creation significantly?
Frontpage is poo.

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] 304 Not Modified

2001-09-05 Thread Seb Frost

You don't think your missing  might have soemthing to do with it?  Or maybe
it's not that simple at all.

- seb

-Original Message-
From: Ouster [mailto:[EMAIL PROTECTED]]
Sent: 05 September 2001 20:23
To: [EMAIL PROTECTED]
Subject: [PHP] 304 Not Modified


I'm making a sort of cache system. I fell to this problem: I leave a cookie
with the timestamp of the last access, and when the user reconnect, I
compare the timestamp of the last change with the timestamp sent me with the
cookie. Then I leave a new cookie.

So:
if($last_modified = $last_access)
{
header(304 Not Modified);
exit;
}
else
{
/* code genertating the new page */
}

Whether the If is TRUE, I get a blank page, else I see a new page (correct
behaviour).
Why I always get a blank page and not the cached page?
This always happen with PWS and IIS, and sometimes with Apache.
Thanks.



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] negative infinity is unreachable

2001-09-05 Thread Seb Frost

if ($high_distance==INF)
{
unset($high_distance);
}
if ($low_distance==INF) 
{
unset($high_distance);
}  



Shouldn't this be:



if ($high_distance==INF)
{
unset($high_distance);
}
if ($low_distance==INF) 
{
unset($low_distance);
}



- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] GOOD web hosting

2001-09-04 Thread Seb Frost

I thought I had good web hosting, but I don't.  They're often very slow and
frequently (I'd say at least an hour every day) my site is inaccessable.
Today I've barely been able to get on it at all.

So I'm moving.

I'm in the UK.  Is it stupid for me to go with a US hoster?  And either way
who do you recommend?  Obviously I want php and mysql support, and a few
hundred megs of space, and NOT paying through the roof.  $20/month tops.

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] Am I right or wrong?

2001-09-03 Thread Seb Frost

My ISP has a limit on my site of 10,000MB of data transfer per month.

4 days into september and I'm already at 2,500MB.  It would seem they're
including requests by their own PHP server.

I have a folder of ~80kb images that are dynamically resized using PHP into
~1.4kb thumbnails.  Now for each one the PHP server sends an HTTP request
for the 80kb image, and this is being counted against my 10,000MB.

Should it?  Am I in the right in thinking that it shouldn't?

regards,

- seb frost
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] Thankyou, whoever

2001-09-03 Thread Seb Frost

Someone on this list yesterday exposed a large hole on one of my php
scripts.  Dunno who you are but thankyou.  I could have lost sales in that
loophole :-)

I know it was off of this list because that's the only place I made that
link public.  Some lucky guy on BT openworld - wish I could get that here!

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] Am I right or wrong?

2001-09-03 Thread Seb Frost

Hmmm, I suppose the files and the php server may be on different machines -
hadn't thought of that :-)  I guess I need to make a compromise on my script
then.

- seb

-Original Message-
From: Chris Wesley [mailto:[EMAIL PROTECTED]]On Behalf Of
Christopher William Wesley
Sent: 04 September 2001 01:59
To: Seb Frost
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Am I right or wrong?


On Tue, 4 Sep 2001, Seb Frost wrote:

 I have a folder of ~80kb images that are dynamically resized using PHP
into
 ~1.4kb thumbnails.  Now for each one the PHP server sends an HTTP request
 for the 80kb image, and this is being counted against my 10,000MB.

 Should it?  Am I in the right in thinking that it shouldn't?
So, your PHP scripts are on one server, and your big images are on a
separate server?  If so, you are generating traffic between the two
servers ... at which point you need to consult your service contract.
Your contract should tell you for what traffic (including between which
servers, across which networks) you will be billed.  It's kind of strict
to charge for traffic across a local network ... I wish you luck fighting
your ISP if the contract doesn't define for which traffic you'll be
billed.

Aside from the ISP issue ... dynamically resizing 80K images on the fly is
frightful thing.  Creating thumbnails [once/at regular intervals] would be
a wise step to take.  It takes the load off the web server and will cut
your network traffic.  The tradeoff is disk space usage ... but you can
store 57 1.4KB thumbnails in the same space as one 80KB image :)  Good
trade!

~Chris   /\
 \ / Pine Ribbon Campaign
Microsoft Security Specialist X  Against Outlook
The moron in Oxymoron.   / \ http://www.thebackrow.net

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] Is modem compression consistent?

2001-09-02 Thread Seb Frost

Off-topic I know but hey, it's quiet on the list, and you guys are SO
helpful :-)

I have an HTML file that is 82kb in size.  BUT on my 56k dialup it downloads
at 20k/s ~ 4 seconds.  This is obviously due to compression.

Winzip compresses it down to 6kb.

Anyway, my question:

Do all modems compress data as well as mine would appear to, or will this be
an insanely slow download for most?

If you want to try it the page is

http://www.raceshoot.com/photos2.php4?shootID=7

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] PHP Security

2001-08-31 Thread Seb Frost

Great question - I'd love to know too.

I can give you one hint.  Make sure that you validate any variables passed
in the url.  I had a script that should take an integer, and realised if
someone put in a fraction or text then the script output errors to the html
page showing file and directory names that I wanted hidden.

To solve this I used:

function SecureInt($var,$default)
{
if (($var!=0)  ($var*1!=0)  is_int($var*1))
{
$var=$var*1;
//echo is int;
}
else
{
$var=$default;
//echo is not int;
}
return($var);
}

$intvar = SecureInt($intvar,1);


- seb

-Original Message-
From: Alfredeen, Johan [mailto:[EMAIL PROTECTED]]
Sent: 31 August 2001 15:54
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Security


I am looking for a good, practical tutorial on what I should be doing as a
developer to create a secure web site (PHP related). I have looked in my PHP
text and searched the web, but haven't found anything real useful. I am not
interested in Apache or OS security, as this is -hopefully- taken care of by
my webhost. So if you know of a good guide, online or off, please
contribute.

Thanks,

Johan
PongWorld.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]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: Re: [PHP] Sorry, i need HTML help

2001-08-29 Thread Seb Frost

And let's face it.  Compare IE5.5/6 with NS6.  MS owns the market for a damn
good reason.  I hear Netscape's pulling out anyway to concentrate on
iplanets instead or something.

- seb

-Original Message-
From: Erik H. Mathy [mailto:[EMAIL PROTECTED]]
Sent: 29 August 2001 15:27
To: [EMAIL PROTECTED]
Subject: RE: Re: [PHP] Sorry, i need HTML help


 or should I say that IE  NS don't agree on standards.

Not to be too blunt, but what does that matter? IE owns damn near 90% of the
market nowadays. Even if AOL starts uses Navigator, that isn't going to
change much.

Don't get me wrong. Unless specified otherwise by a client I make all my
code as browser independent as possible. It's just that it's no longer as
large of a concern as it once was.

All IMHO, o' course...
- Erik


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] foo? bar? wtf?

2001-08-29 Thread Seb Frost

Why is it that every example uses foo and bar.  In my head I put these
together to get FUBAR, the meaning of which I won't spell out for Kyle's
benefit.

Is this what foo and bar refer to?  And WHY are they used so extensively?

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] What does PHP stand for?

2001-08-28 Thread Seb Frost

Stands for PHP: Hypertext Pre-processor.

I guess they didn't like the sound of just HP.

- seb

-Original Message-
From: Adi Wibowo [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 11:54
To: Niklas Lampén
Cc: Php-General
Subject: Re: [PHP] What does PHP stand for?



On Tue, 28 Aug 2001, [iso-8859-1] Niklas Lampén wrote:
 It just crossed my mind: I don't know what PHP stands for...so anyone? :)

PHP stands for ... PHP.

Adi Wibowo -- http://dewey.petra.ac.id
* Work matter: [EMAIL PROTECTED]
* Private matter : [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]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] How can I Get Text as it Set

2001-08-28 Thread Seb Frost

can't you just explode the string with \n as the separator?  Look up
explode function at php.net.

- seb

-Original Message-
From: Alawi Albaity [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 14:06
To: [EMAIL PROTECTED]
Subject: [PHP] How can I Get Text as it Set


when a person write in a text area

i want to get it string and format it as it set

for example

when he write

---

how are all world
i do not see you

---

i want to store it as it set in my database

i not want it to be


how are all world i do not see you
---


Thanks

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

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] concatenate?

2001-08-28 Thread Seb Frost

$string0 = hello;
$string1 = goodbye;

$string2 = $string0 .  and  . $string1;

result:$string2 = hello and goodbye

- seb


-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 16:28
To: [EMAIL PROTECTED]
Subject: [PHP] concatenate?



Hello,

I was just wondering if there was a simple function like str_con or
something like that to concatenate strings?


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




[PHP] HEAD instead of GET??

2001-08-28 Thread Seb Frost

I'm just having my first ever look at my website raw log file and found
this:  Almost every entry is a GET somefile HTTP/1.0, but one IP address
sent about 200 HEAD requests instead of GET.  No one else has done this,
just this one IP address.



For example:

HEAD /contact.php4 HTTP/1.0

instead of

GET /contact.php4 HTTP/1.0




What does it mean?

cheers,

- seb
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] is_numeric for php3

2001-08-28 Thread Seb Frost

if (($var!=0)  ($var*1!=0)  is_int($var*1))
{
echo is int;
$var=$var*1;
}
else
{
echo is not int;
$var=1;
}

Works for me because I need an integer greater than 0.  Try it out and let
me know any problems with it.

- seb

-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 22:44
To: [EMAIL PROTECTED]
Subject: [PHP] is_numeric for php3


hi friends,

Can someone post here the most efficient method to validate a variable
as numeric?  I see a ton of hacks/ways in the manual user comments under
is_int, is_integer and is_numeric and would like to see just one or two
good solid ones.  And please, no regular expressions :)

Regards,
Philip




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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/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]




RE: [PHP] What is it with _vti?

2001-08-27 Thread Seb Frost

The only FP work I do is open it up, lay out a form (for example) and then
cut and paste the html into my php doc in textpad.

Have deleted all and everything.  All seems ok.

- seb

-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]]
Sent: 27 August 2001 15:27
To: [EMAIL PROTECTED]
Subject: RE: [PHP] What is it with _vti?


Before you drop them, noodle around a little bit and learn how much extra
crap and duplication of your site FP drops on you. It's like a bloody
seagull!

Miles

BTW - Don't drop them on the Windows machine where you do your FP work, the
poor program won't be able to function without all its redundancies.
Horrible thing! /mt

At 08:48 AM 8/27/01 -0500, Mark Roedel wrote:
  -Original Message-
  From: Seb Frost [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, August 26, 2001 6:49 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] What is it with _vti?
 
 
  I have these _vti_pvt _vti_cnf directories on my website.
  Why?  I never put them there... can I delete them?
 
  I tried searching for this but it's impossible to search for
  since it seems a lot of website have these directories and it
  just comes up with them :-)

FrontPage droppings.  *grin*

And yes, assuming you're not doing anything FrontPage-specific, you can
safely remove them.  (They will, of course, be recreated if you publish
your site again using FrontPage.)


---
Mark Roedel   | Blessed is he who has learned to laugh
Systems Programmer|  at himself, for he shall never cease
LeTourneau University |  to be entertained.
Longview, Texas, USA  |  -- John Powell

--
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] Reading php source code?

2001-08-27 Thread Seb Frost

How hard is it for someone to somehow read the source code out of my php
files on my isp hosted website.  They use linux  apache  php 4.0.6.

I ask because in my logfile it seems someone accessed a uniquely named
not-guessable folder in my web root.  It is mentioned in my source code.  I
use imagecreatefromjpeg on files in this directory.  How can someone see my
folders if not by viewing my source code?

- seb


-- 
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 create thumbnails?

2001-08-26 Thread Seb Frost

?php
Header(Content-type: image/jpeg);

$src_img = imagecreatefromjpeg($fileURL);

$aspect=imagesy($src_img)/imagesx($src_img);

$new_w = $thumbSize;
$new_h = $new_w * $aspect;

$dst_img = imagecreate($new_w,$new_h);


imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img),i
magesy($src_img));

imagejpeg($dst_img,'',$quality);
?

All you need to go is set up $fileURL and $thumbSize and this *should* work
flawlessly.  When you get it working try using Resampled instead of
Resized - but you need gd 2.0.1 for that to work, and even then it has
issues it would seem.

- seb

-Original Message-
From: Jan [mailto:[EMAIL PROTECTED]]
Sent: 26 August 2001 18:22
To: [EMAIL PROTECTED]
Subject: [PHP] How to create thumbnails?


For thumbnail creation I would need to know how I scale a loaded image or
better:
How do I copy a scaled version of an image created with imagecreatefromjpeg
onto a background I have previously created?

Jan


-- 
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: What is it with _vti?

2001-08-26 Thread Seb Frost

Same with _private and _derive?

I admit it, I use frontpage when I can't remember how to code html in
textpad :-)

- seb

-Original Message-
From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
Sent: 27 August 2001 01:07
To: [EMAIL PROTECTED]
Subject: [PHP] Re: What is it with _vti?



Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have these _vti_pvt _vti_cnf directories on my website.  Why?  I never
put
 them there... can I delete them?

 I tried searching for this but it's impossible to search for since it
seems
 a lot of website have these directories and it just comes up with them :-)

Those directories are for Frontpage extensions.  If you don't use Frontpage,
it should be safe to take an axe to them.



--
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] Convert to int...?

2001-08-22 Thread Seb Frost

I didn't think php was this fussy, but the following code seems to not work
because the numbers are floats.  round() doesn't seem to help either:

$siz=(72/160)*GetImageWidth($fileID);
$offx=(8/160)*GetImageWidth($fileID);
$offy=(1/2)*GetImageHeight($fileID);

ImageTTFText ($im, $siz, 0, $offx, $offy, $red, cour.ttf,PROOF);

Works fine if I just put $siz=72; etc

- seb

-Original Message-
From: Tribun [mailto:[EMAIL PROTECTED]]
Sent: 16 August 2001 08:30
To: [EMAIL PROTECTED]
Subject: [PHP] .htaccess username


...hmmm, I would guess there is a way, but I dont know why...

Can I read out the active username, which has just logged in through a
.htaccess authentication???

Like the access data..
user: patrick
pass: linux

can PHP reads out the usersname patrick ??

(and if ,... how? ;)

10x 4 U'r time.

Patrick




--
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] Any point in learning ASP/JSP etc?

2001-08-22 Thread Seb Frost

Or is PHP the be-all and end all?  

I know its strong points, but what are the WEAK points of PHP?

- seb

-- 
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] Any point in learning ASP/JSP etc?

2001-08-22 Thread Seb Frost

Ah ha, but am I better off becoming a PHP guru or a
jackofalltrades-notverygoodatanyofthem kind of person ;-)

Well I've never used scripting of any sort before PHP, just c++ really.
I'll stick to php i guess (for now).

- seb

-Original Message-
From: John Meyer [mailto:[EMAIL PROTECTED]]
Sent: 23 August 2001 02:13
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Any point in learning ASP/JSP etc?


At 01:10 AM 8/23/01 +0100, you wrote:
Or is PHP the be-all and end all?

I know its strong points, but what are the WEAK points of PHP?

- seb


PHP isn't default on Microsoft systems
You have to learn a new language for PHP: ASP is basically either VBScript
or JScript around some objects.
To answer the question in your subject line, I think that if you were
interested in programming, you should want to learn any new technology that
you could.  Plus, the more languages, the more employable, I would think.


--
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] Email this page to a friend

2001-08-22 Thread Seb Frost

How can I implement this in php?

-seb

-- 
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] GET method and forms....

2001-08-22 Thread Seb Frost

how do I prevent getting submit=shop%21 in the url window?

form method=GET action=page.php4
  pEmail address: input type=text name=email size=20
input type=submit value=Shop! name=submit
/form

- seb

-- 
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] GET method and forms....

2001-08-22 Thread Seb Frost

But I have good reason to use get, I want all the other variables to become
part of the url.

- seb

-Original Message-
From: ERISEN, Mehmet Kamil [mailto:[EMAIL PROTECTED]]
Sent: 23 August 2001 03:10
To: Seb Frost; [EMAIL PROTECTED]
Subject: Re: [PHP] GET method and forms


instead of method=GET  use method=POST
--- Seb Frost [EMAIL PROTECTED] wrote:
 how do I prevent getting submit=shop%21 in the url
 window?

 form method=GET action=page.php4
   pEmail address: input type=text name=email
 size=20
 input type=submit value=Shop!
 name=submit
 /form

 - seb

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



=
Mehmet Erisen
http://www.erisen.com

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


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




[PHP] Resizing jpegs

2001-08-21 Thread Seb Frost

How can I do this?  Say I have a 320x240 file but I only want to show a
160x120 thumbnail.  I'm looking to decrease download speeds.

cheers,

- seb


-- 
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] List of files?

2001-08-21 Thread Seb Frost

OK so I'vebeen reading about reading and writing to/from files, but what I
want to do is (I think) simpler than this.

Basically I want to look at a directory and be able to get a list of all
subdirectories and then a list of the files in each directory.  Can someone
give me a hint?

cheers

- seb


-- 
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] Detecting empty query result?

2001-08-21 Thread Seb Frost

Basically I want to check to see if $fileDir is already in my database.  I
do this as:

$result = mysql_query(SELECT fileDir FROM shoots WHERE
(fileDir='$fileDir'));

How do I check the result?  I normally use

mysql_result($result, $row, $field)

to read my result, but if I try that I get an error:

if(mysql_result($result, $row, $field))

gives me:

Warning: Unable to jump to row 0 on MySQL result index 3


cheers,

- seb


-- 
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] Detecting empty query result?

2001-08-21 Thread Seb Frost

just use mysql_num_rows($result) dummy :-)

doh.

sorry to bother y'all.

-Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]]
Sent: 21 August 2001 14:55
To: [EMAIL PROTECTED]
Subject: [PHP] Detecting empty query result?


Basically I want to check to see if $fileDir is already in my database.  I
do this as:

$result = mysql_query(SELECT fileDir FROM shoots WHERE
(fileDir='$fileDir'));

How do I check the result?  I normally use

mysql_result($result, $row, $field)

to read my result, but if I try that I get an error:

if(mysql_result($result, $row, $field))

gives me:

Warning: Unable to jump to row 0 on MySQL result index 3


cheers,

- seb


-- 
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] Listing files from a directory

2001-08-21 Thread Seb Frost

store all the names in an array and then sort that using an inbuilt php
function,  maybe.

- seb

-Original Message-
From: Martin E. Koss [mailto:[EMAIL PROTECTED]]
Sent: 21 August 2001 16:43
To: [EMAIL PROTECTED]
Subject: [PHP] Listing files from a directory


I am trying to find a way to list files alphabetically.

?
// list images in a drop down list
$Dir = ../Prod-Images/Thumbnails;
$mydirectory = opendir($Dir);

while($entryName = readdir($mydirectory)) {
if ($entryName[0] != .  $entryName != .  $entryName != .. 
$entryName != WS_FTP.LOG  $entryName != NA.gif  $entryName !=
NA.jpg) {
PRINT option value=\$entryName\ . $entryName/option\n;
}
}
closedir($mydirectory);
?

I've looked through old messages on the subject but even though on Win32 it
lists in the right way but not on the Apache Webserver.

Thanks.
Martin.


--
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] hacks we should know about

2001-08-21 Thread Seb Frost

I don't host my own site so how can I put include files outside of the web
root?  I log on ftp and my top level IS the web root (htdocs), I can't go
any higher.

- seb

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: 17 August 2001 05:01
To: Bob
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] hacks we should know about


 hi i found it very helpful to know about hacks such as the below list
 and was wondering if anyone had any more dumb mistakes they could tell
 us before we make them.

 1. http://www.somesite.com/source.php3?url=/etc/passwd
 2. http://www.somesite.com?page=../../../../etc/passwd
 3. not setting .inc files to be parsed by php

This is the wrong solution to securing include files.  The correct
solution is to block any direct access to .inc files by either putting
them outside your document root or by using an Apache deny rule.

-Rasmus


--
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] To jump or not to jump?

2001-08-21 Thread Seb Frost

Is it good practice (sp?) to jump in and out of php whenever you've got some
plain html to write, or should one write an entire file in php?  I'm leaning
towards the latter, unless there's a huge chunk of html code.

opinions?

- seb


-- 
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] Picking random numbers

2001-08-20 Thread Seb Frost

OK I want to pick 5 random numbers from 1 to 200.  Easy.  They must all be
different.  Not so easy.

And I don't want to use shuffle because of the comments on php.net about it.

- seb


-- 
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 substrings?

2001-08-19 Thread Seb Frost

This is thew sort of thing I want:

SELECT * FROM table ORDER BY substr(field,5,6)

but I don't know the correct function, if there is one, or how to implement
it.

cheers,

- seb

-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2001 12:51
To: [EMAIL PROTECTED]
Subject: [PHP] Re: transaction


Nafiseh Saberi wrote:

 hi.
 in large database with php,postgres
 and when in each time come many request ,
 how do we implement transactions??

 nafiseh.

If you are wanting to run several queries in the one script though the
one transaction -
you'll need to send a begin(as a query) and execute it - then to the
same connection send all your other queries as normal, and follow it up
with a commit.

--
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] MySQL substrings?

2001-08-19 Thread Seb Frost

This doesn't work:

$result = mysql_query(SELECT * FROM $table ORDER BY SUBSTRING(date,5,2))

Any idea why?

- seb

-- 
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] Passing variables to a file

2001-08-19 Thread Seb Frost

OK I know this can be done like so:

file.php4?foo=bar

but what if I want to keep the value of foo secret from the user?

- seb

-- 
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] Overlaying text on jpegs

2001-08-18 Thread Seb Frost

I hear this is achievable via php.  My GD information is:

GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
GIF Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

So could someone show me an example of how to overlay hello2 onto file
test.jpg.

thanks,


- seb


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

2001-08-18 Thread Seb Frost

well you've got that unmatched  at the end...

- seb

-Original Message-
From: Andonny [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2001 03:28
To: [EMAIL PROTECTED]
Subject: [PHP] Display Image


Hi,
I tried below to display the picture on the webpage. I have in the pcture
column a http address.

echo img src=\$row[picture]\ . $row[description] . 

and I get this:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING'

Your help is very much appreciated.
Andonny



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

2001-08-18 Thread Seb Frost

I always split it up if I'm having errors...

echo img src=\;
echo $row[picture];
echo \;
echo $row[description];

- seb


- Original Message -
From: Chris Schneck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 18, 2001 7:29 PM
Subject: Fw: [PHP] Display Image


 echo img src=\.$row[picture].\ . $row[description] . 


 - Original Message -
 From: Andonny [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, August 18, 2001 7:27 PM
 Subject: [PHP] Display Image


  Hi,
  I tried below to display the picture on the webpage. I have in the
pcture
  column a http address.
 
  echo img src=\$row[picture]\ . $row[description] . 
 
  and I get this:
 
  Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
  `T_NUM_STRING'
 
  Your help is very much appreciated.
  Andonny
 
 
 
  --
  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] Extract email address from string

2001-08-18 Thread Seb Frost

Well you need to search for @

then search forwards and backwards till you get to whitespaces

store those positions

then use the substr function.

- seb

-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2001 03:37
To: [EMAIL PROTECTED]
Subject: [PHP] Extract email address from string


I need to parse a string and extract only the email address.  What is the
best way to do this?

i.e.

$string = Please send all email to [EMAIL PROTECTED] with a subject
line of Test.;

$email_addr would be equal to [EMAIL PROTECTED] .

Thanks.




-- 
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] Is jacascript enabled?

2001-08-16 Thread Seb Frost

What's thee easiest way to check this?

- seb

-- 
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 stop images preloading in netscape?

2001-08-13 Thread Seb Frost

I have a php page which generates a page of thumbnails from a database.  In
internet explorer all of the layout loads first, and the thumbnails appear
one by one as they are downloaded.  Netscape however seems to insist on
downloading all images before displaying the page.  This makes it appear
very slow.  How can I prevent this behaviour?

cheers,

seb



RE: [PHP] html form question

2001-07-26 Thread Seb Frost

Thanks for that!  I was just using the same structure as I found in a code
sample somewhere.

- seb

-Original Message-
From: Lenar [mailto:[EMAIL PROTECTED]]
Sent: 26 July 2001 13:16
To: [EMAIL PROTECTED]
Subject: Re: [PHP] html form question


 Funny you should ask - just done it myself:

Why you use mysql_result function?

This can be done a bit simpler way (and more effective):

?php
mysql_connect(db, $user, $password);
$result = mysql_query( SELECT eventName FROM $table);
while(list($event) = mysql_fetch_row($result))
echo option$event/option\n;
?

Lenar


 ?php
   $table=shoots;
   require (connect.php4);
   $result=MYSQL_QUERY( SELECT eventName FROM $table);
   $num_rows = mysql_num_rows($result);

   for ($i=0;$i$num_rows;$i++)
   {
   echo option;
   echo mysql_result($result,$i,eventName);
   echo /option;
   }


   MYSQL_CLOSE();
 ?

 - seb



--
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] html form question

2001-07-26 Thread Seb Frost

OK so how would that look if I'd done SELECT * instead of SELECT eventName?
I'm guessing I have two nested while loops then?

I'm guessing something like this.?  Or is it not possible and I have to
go back to mysql_result?

?php
mysql_connect(db, $user, $password);
$result = mysql_query( SELECT * FROM $table);

while(list($field) = mysql_fetch_column($result))
{
  while(list($value) = mysql_fetch_row($result))
echo option$value/option\n;
}
?

- seb

-Original Message-
From: Lenar [mailto:[EMAIL PROTECTED]]
Sent: 26 July 2001 13:16
To: [EMAIL PROTECTED]
Subject: Re: [PHP] html form question


 Funny you should ask - just done it myself:

Why you use mysql_result function?

This can be done a bit simpler way (and more effective):

?php
mysql_connect(db, $user, $password);
$result = mysql_query( SELECT eventName FROM $table);
while(list($event) = mysql_fetch_row($result))
echo option$event/option\n;
?

Lenar


 ?php
   $table=shoots;
   require (connect.php4);
   $result=MYSQL_QUERY( SELECT eventName FROM $table);
   $num_rows = mysql_num_rows($result);

   for ($i=0;$i$num_rows;$i++)
   {
   echo option;
   echo mysql_result($result,$i,eventName);
   echo /option;
   }


   MYSQL_CLOSE();
 ?

 - seb



--
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 function to extract EXIF data from JPGs?

2001-07-25 Thread Seb Frost

Let me know if you find anything out about this because it's something I too
would like to use.

- seb


-Original Message-
From: Richard Kitamura - Media Net Link, Inc. [mailto:[EMAIL PROTECTED]]
Sent: 24 July 2001 23:40
To: [EMAIL PROTECTED]
Subject: [PHP] PHP function to extract EXIF data from JPGs?



Does anyone have a PHP function that extracts EXIF data from a JPG image
that they can send or post?  I read about re-compiling with the EXIF flag,
but would rather avoid doing that for a little while.

Thanks,
Richard Kitamura


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

2001-07-25 Thread Seb Frost

Install winzip.  Create new archice.  Drag and drop directory from explorer
or whatevr into it.

Couldn't be easier.

- seb

-Original Message-
From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 12:55
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] php


Hi,
Is it possible to compress an entire directory using an external program
like pkzip? If it is possible, how can I 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] Why doesn't this simple query work?

2001-07-25 Thread Seb Frost

Driving me mad.  Works if I put a string in quote marks instead of the
variable $location.


$result = mysql_query(SELECT shootID FROM shoots WHERE
(location=$location));


This should work shouldn't it?  If it's a problem with the variable being
embedded in the query what's the easiest way to overcome this?

cheers,

seb

-Original Message-
From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 14:50
To: php-general
Subject: Re: [PHP] REGEXP


I am not sure if I am understanding you... but if you just want to return
the boundary try

preg_match(|boundary=\([^\].+)\|Uis, $text, $regs );
$boundary = $regs[1];

I am guessing that you want the boundary from the lines
 to avoid regexp (too lazy) but now I want to use it.  The final result I
 would need is: B42DA66C4EC07C9B572A58FC so that I can search

If you are looking for something else let me know
Sheridan

 -Original Message-
 From: Adrian D'Costa [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, July 14, 2001 2:54 AM
 To: php general list
 Subject: [PHP] REGEXP

 Hi,

 I am trying to capture the Header from a mail for my webmail using php
 and
 pop3.  The header is something like this:
 Content-Type: multipart/mixed;
  boundary=B42DA66C4EC07C9B572A58FC

 When I use preg_split(/[\d;]*/, $buffer), I get
 Content-Type: multipart/mixed;

 What I want is to return the whole line split by the ;.  I usually try
 to avoid regexp (too lazy) but now I want to use it.  The final result I
 would need is: B42DA66C4EC07C9B572A58FC so that I can search
 in the body of the message for the rest of the parts.

 Any pointers would be helpful.

 Adrian


 --
 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] Regular Expression Question

2001-07-25 Thread Seb Frost

since you know exactly which 4 characters you want to keep you can use a
simple string trimming routine.

$newstring = substr($string,1,5);

No need for complicated regular expressions!

- seb

-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 21:47
To: PHP
Subject: [PHP] Regular Expression Question


I want to replace a string like this 1B335-2G with this B335. So for all the
strings I want to remove the first character and the last three characters.
I'm not sure which replace function to use or how to go about it. Thanks.
Jeff Oien

--
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] Regular Expression Question correction

2001-07-25 Thread Seb Frost

$newstring = substr($string,1,4);

FOUR, not FIVE.  Doh.

-Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 22:03
To: [EMAIL PROTECTED]; PHP
Subject: RE: [PHP] Regular Expression Question


since you know exactly which 4 characters you want to keep you can use a
simple string trimming routine.

$newstring = substr($string,1,5);

No need for complicated regular expressions!

- seb

-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 21:47
To: PHP
Subject: [PHP] Regular Expression Question


I want to replace a string like this 1B335-2G with this B335. So for all the
strings I want to remove the first character and the last three characters.
I'm not sure which replace function to use or how to go about it. Thanks.
Jeff Oien

--
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] Regular Expression Question

2001-07-25 Thread Seb Frost

I hope my later message clarifys what I mean.

- seb

-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 22:05
To: PHP
Subject: RE: [PHP] Regular Expression Question


Aren't the trims just for white space?
Jeff Oien

 since you know exactly which 4 characters you want to keep you can use a
 simple string trimming routine.  I forget the name of the function in php
 but it's there and it'll be something like

 trimstring($string,1,5);

 or something like that.  No need for complicated regular expressions
either
 way.

 - seb

 -Original Message-
 From: Jeff Oien [mailto:[EMAIL PROTECTED]]
 Sent: 25 July 2001 21:47
 To: PHP
 Subject: [PHP] Regular Expression Question


 I want to replace a string like this 1B335-2G with this B335. So for all
the
 strings I want to remove the first character and the last three
characters.
 I'm not sure which replace function to use or how to go about it. Thanks.
 Jeff Oien

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

2001-07-25 Thread Seb Frost

OK let's say in variable $search I have the string color (without the
quote marks).

now I want to be able to refer to the variable $color in my code.

How in gods name do I do this.  I guess somehow I have to combine a $ with
the contents of £search or something...?

- seb

-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 22:05
To: PHP
Subject: RE: [PHP] Regular Expression Question


Aren't the trims just for white space?
Jeff Oien

 since you know exactly which 4 characters you want to keep you can use a
 simple string trimming routine.  I forget the name of the function in php
 but it's there and it'll be something like

 trimstring($string,1,5);

 or something like that.  No need for complicated regular expressions
either
 way.

 - seb

 -Original Message-
 From: Jeff Oien [mailto:[EMAIL PROTECTED]]
 Sent: 25 July 2001 21:47
 To: PHP
 Subject: [PHP] Regular Expression Question


 I want to replace a string like this 1B335-2G with this B335. So for all
the
 strings I want to remove the first character and the last three
characters.
 I'm not sure which replace function to use or how to go about it. Thanks.
 Jeff Oien

 --
 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] Window size (not PHP?)

2001-07-25 Thread Seb Frost

I must confess I think this can't be done with PHP because of it being
server-side but hell you seem like a friendly and helpful enough bunch of
guys anyway so I thought I'd ask you knowledgable ones.

So what should I be using?  Javascript?  I want the size of the window, not
the screen resolution.  Also is it possible to change the page layout if the
user resizes his window whilst looking at the page?

Basically I want to create a table of photos from my database.  And I want
there to be enough columns to fill the viewable size.

- seb


-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 23:41
To: 'Seb Frost'; [EMAIL PROTECTED]; 'PHP'
Subject: RE: [PHP] Regular Expression Question



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

string substr (string string, int start [, int length])

Substr returns the portion of string specified by the start and length
parameters.

If start is positive, the returned string will start at the start'th
position in string, counting from zero. For instance, in the string
'abcdef', the character at position 0 is 'a', the character at position
2 is 'c', and so forth.

Examples:
$rest = substr (abcdef, 1);// returns bcdef
$rest = substr (abcdef, 1, 3); // returns bcd


-Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 5:09 PM
To: [EMAIL PROTECTED]; PHP
Subject: RE: [PHP] Regular Expression Question


I hope my later message clarifys what I mean.

- seb

-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 22:05
To: PHP
Subject: RE: [PHP] Regular Expression Question


Aren't the trims just for white space?
Jeff Oien

 since you know exactly which 4 characters you want to keep you can use

 a simple string trimming routine.  I forget the name of the function
 in php but it's there and it'll be something like

 trimstring($string,1,5);

 or something like that.  No need for complicated regular expressions
either
 way.

 - seb

 -Original Message-
 From: Jeff Oien [mailto:[EMAIL PROTECTED]]
 Sent: 25 July 2001 21:47
 To: PHP
 Subject: [PHP] Regular Expression Question


 I want to replace a string like this 1B335-2G with this B335. So for
 all
the
 strings I want to remove the first character and the last three
characters.
 I'm not sure which replace function to use or how to go about it.
 Thanks. Jeff Oien

 --
 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] OT--PHP, MySQL, WML and GPS Tracking

2001-07-25 Thread Seb Frost

Er, surely you need a device with built in GPS recievers?  WHich certainly
won't be every PDA and mobile phone out there...

- seb

-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: 26 July 2001 00:22
To: [EMAIL PROTECTED]
Subject: [PHP] OT--PHP, MySQL, WML and GPS Tracking




 Hello everyone,

 This is slightly off topic, but I'm sure you guys are the best group to
 answer this.

 I have a client who needs a wireless website, that interacts with PHP and
 MySQL. In addition to that, the client wants to be able to track the
 geographical location, of the user--who will access the site with a cell
 phone and/or PDA device. Basically, if someone from, say Los Angeles,
 access the website, we want to be able to (automatically) capture his/her
 location. This is for internal uses, so the PDA device will be uniformed.


 That means, I will need to integrate a GPS system/function in the
 wireless pages. Once the connection is made, I can use php and mysql to
 handle the rest.


 My problem is with the GPS functions. I've never worked with any GPS
system, so I'm  looking for advices, references, and general directions.

1) How do I track a user's PDA device (geographical location)?
  **- I know some of the WAP enabled phones (like the i1000 by Nextel)
  doesn't let you do that**
  **- I think there some legality issues around that, but am not sure.

2) Where can I read up on that?

3) Has anyone work with something on that level? If so, then please help.

 At this point, the PDA device has not been chosen. We are still in the
 research stage.

 As far as I know, Trucking Companies, uses this type of system to track
 their trucks and drivers. And, off course, any car with a Navigation
 System  is using the same concept.

 Where can I get some information on this? Has anyone programmed anything
 related to Global Positioning Systems? If so, then I would appreciate any
 information that you can share.


 Any help would be greatly appreciated.

 Thanks in advance!


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



--
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] html form question

2001-07-25 Thread Seb Frost

Funny you should ask - just done it myself:

?php
$table=shoots;
require (connect.php4);
$result=MYSQL_QUERY( SELECT eventName FROM $table);
$num_rows = mysql_num_rows($result); 

for ($i=0;$i$num_rows;$i++)
{
echo option;
echo mysql_result($result,$i,eventName);
echo /option;
}


MYSQL_CLOSE();
?

- seb

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

2001-07-25 Thread Seb Frost

Whoops meant to delete the old message.  Doh.  Variable variables eh?  A
topic I've always wondered about and never found in a manual for any of the
languages I've used before.  Will go and have a look now, cheers.

- seb

-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: 26 July 2001 02:10
To: Seb Frost; PHP
Subject: Re: [PHP] string concatenation


On Thu, 26 Jul 2001 06:54, Seb Frost wrote:
 OK let's say in variable $search I have the string color (without the
 quote marks).

 now I want to be able to refer to the variable $color in my code.

 How in gods name do I do this.  I guess somehow I have to combine a $
 with the contents of £search or something...?

 - seb

Feel free to trim all the ireelevant stuff from your posts :-)

Try $$search or ${color} depending on exactly what you want to do. You
might want to have another read through the Variable variables section of
the documentation to clarify this.

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

   I tried switching to gum but couldn't keep it lit.

--
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] Referencing file?

2001-07-22 Thread Seb Frost

OK so I have a number of different pages calling header.php4 as required.
How can I set php in header.php4 to reflect the name of the document that
called it?

- seb

-Original Message-
From: Greg Schnippel [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2001 14:48
To: [EMAIL PROTECTED]
Subject: [PHP] Mysterious MYSQL Error..



I'm stumped on this one.. I set up PHP 4.04/Apache/Mysql 3.23
on my Windows 98 box for development purpouses. Its been
working flawlessly for 2-3 years now (using the same
configuration files, etc).

However, as of 3 days ago, i can't get it to execute a simple
select * from table query. Here's the code I'm using:

$query = select * from $this-table where $this-primary_key='$record_id';
$result = mysql_query($this-database, $query);
echo mysql_errno().: .mysql_error().BR;

and the query that it sends to the mysql database is

select * from article where article_id='1';

However, mysql fails to execute the query. Result returns
nothing and the echo command returns:

errno: 0
mysql_error_text: 

??!? I've tried everything to get it to display any more information
as to why its breaking but nothing works. I even uninstalled and
reinstalled all of the packages, thinking it had something to do
with a windows dll file or something annoying like that but no luck.

Any ideas? Anyone encountered a problem like this?

Thanks,

Greg


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

2001-07-21 Thread Seb Frost

quite.  just what I was thinking actually.

-Original Message-
From: ASP [mailto:[EMAIL PROTECTED]]
Sent: 21 July 2001 15:35
To: [EMAIL PROTECTED]
Subject: [PHP] ðÒÉÇÌÁÛÁÅÍ ÎÁ ÒÁÂÏÔÕ É Ë ÓÏÔÒÕÄÎÉÞÅÓÔ×Õ.


÷Ù ÒÁÍÅÝÁÌÉ Ó×ÏÅ ÒÅÚÀÍÅ?
ðòéçìáûáåí ë óïôòõäîéþåóô÷õ é îá òáâïôõ
îÁÛÅ ËÒÅÄÏ v ÄÅÛÅ×ÙÊ É ÎÁÄÅÖÎÙÊ éÎÔÅÒÎÅÔ ÐÏ
×ÙÄÅÌÅÎÎÏÊ ÌÉÎÉÉ ÏÔ 10 Õ.Å. × ÍÅÓÑÃ. ðÏÄÒÏÂÎÏÓÔÉ ÎÁ
ÓÁÊÔÅ www.asp-groups.ru
ïÄÎÉÍ ÉÚ ÎÁÐÒÁ×ÌÅÎÉÊ ÄÅÑÔÅÌØÎÏÓÔÉ ïïï
Láóð-âÅÚÏÐÁÓÎÏÓÔ؁ (ÌÉÃÅÎÚÉÉ íóì 035657-2é É á 016039
 16842 LðÒÅÄÏÓÔÁ×ÌÅÎÉÅ ÕÓÌÕÇ ÔÅÌÅÍÁÔÉÞÅÓËÉÈ ÓÌÕց)
Ñ×ÌÑÅÔÓÑ ÐÏÄËÌÀÞÅÎÉÅ ÖÉÌÙÈ ÄÏÍÏ× É ÕÞÒÅÖÄÅÎÉÊ Ë
ÇÌÏÂÁÌØÎÏÊ ÓÅÔÉ éÎÔÅÒÎÅÔ ÐÏ ×ÙÄÅÌÅÎÎÏÊ ÌÉÎÉÉ.
íÙ ÐÒÏÅËÔÉÒÕÅÍ É ÍÏÎÔÉÒÕÅÍ ÌÏËÁÌØÎÕÀ ÓÅÔØ LÓ ÎÕÌс,
Ó×ÏÉÍÉ ÓÉÌÁÍÉ, ÓÏÇÌÁÓÕÑ ÅÅ ÐÒÏËÌÁÄËÕ ×Ï ×ÓÅÈ ÍÅÓÔÎÙÈ
ÏÒÇÁÎÁÈ ×ÌÁÓÔÉ. ÷ÓÅ, ÞÔÏ ÷ÁÍ ÎÁÄÏ ÓÄÅÌÁÔØ v ÜÔÏ ÐÏÚ×ÏÎÉÔØ
ÎÁÍ ÐÏ ÔÅÌÅÆÏÎÕ ÉÌÉ ÏÓÔÁ×ÉÔØ ÚÁÑ×ËÕ ÐÏ ÜÌÅËÔÒÏÎÎÏÊ
ÐÏÞÔÅ.
÷ÏÚÍÏÖÎÏÓÔÉ, ËÏÔÏÒÙÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÌÏËÁÌØÎÁÑ ÓÅÔØ, ÎÅ
ÏÇÒÁÎÉÞÉ×ÁÀÔÓÑ ÔÏÌØËÏ ×ÙÓÏËÏÓËÏÒÏÓÔÎÙÍ ÄÏÓÔÕÐÏÍ ×
éÎÔÅÒÎÅÔ. ë ÓÅÔÉ ÍÏÖÎÏ ÐÏÄËÌÀÞÉÔØ ÓÉÓÔÅÍÕ ÃÉÆÒÏ×ÏÇÏ
×ÉÄÅÏÎÁÂÌÀÄÅÎÉÑ Ó ×Ù×ÏÄÏÍ ÉÚÏÂÒÁÖÅÎÉÑ ÎÁ ËÁÖÄÙÊ
ÍÏÎÉÔÏÒ É ÓÏÈÒÁÎÅÎÉÅÍ ÉÎÆÏÒÍÁÃÉÉ ÎÁ ÖÅÓÔËÏÍ ÎÏÓÉÔÅÌÅ.
ìÏËÁÌØÎÕÀ ÓÅÔØ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÌÑ ÏÂÍÅÎÁ
ÉÎÆÏÒÍÁÃÉÅÊ ÍÅÖÄÕ ÐÏÌØÚÏ×ÁÔÅÌÑÍÉ × ÒÁÍËÁÈ
ÏÐÒÅÄÅÌÅÎÎÏÇÏ ÒÁÊÏÎÁ ÇÏÒÏÄÁ (ÎÁÐÒÉÍÅÒ, ÐÏÉÇÒÁÔØ Ó
ÓÏÓÅÄÏÍ ÉÌÉ ÓÄÅÌÁÔØ on-line ÚÁËÁÚ × ÓÏÓÅÄÎÅÍ ÍÁÇÁÚÉÎÅ). ë
ÔÏÍÕ ÖÅ, ÎÁÛÉ ËÌÉÅÎÔÙ ÐÏÌÕÞÁÀÔ ÎÅÚÁ×ÉÓÉÍÏÓÔØ ÏÔ
××ÅÄÅÎÉÑ íÏÓËÏ×ÓËÏÊ ÇÏÒÏÄÓËÏÊ ÔÅÌÅÆÏÎÎÏÊ ÓÅÔØÀ
ÐÏ×ÒÅÍÅÎÎÏÊ ÏÐÌÁÔÙ ÇÏÒÏÄÓËÉÈ ÔÅÌÅÆÏÎÎÙÈ ÐÅÒÅÇÏ×ÏÒÏ×

÷ Ó×ÑÚÉ Ó ÒÁÓÛÉÒÅÎÉÅÍ, ÆÉÒÍÁ ïïï Láóð-âÅÚÏÐÁÓÎÏÓÔ؁
ÉÝÅÔ ÕÍÎÙÈ, ÏÔ×ÅÔÓÔ×ÅÎÎÙÈ É ÃÅÌÅÕÓÔÒÅÍÌÅÎÎÙÈ
ÓÏÔÒÕÄÎÉËÏ×. çÌÁ×ÎÏÅ ÎÁÐÒÁ×ÌÅÎÉÅ v ÌÏËÁÌØÎÙÅ
ËÏÍÐØÀÔÅÒÎÙÅ ÓÅÔÉ × ÖÉÌÙÈ ÄÏÍÁÈ. ïÐÙÔ ÒÁÂÏÔÙ, ×ÙÓÛÅÅ
ÏÂÒÁÚÏ×ÁÎÉÅ - ÖÅÌÁÔÅÌØÎÏ, ÎÏ ÎÅ ÏÂÑÚÁÔÅÌØÎÏ;
ÏÂÑÚÁÔÅÌØÎÏ - ×ÌÁÄÅÎÉÅ ËÏÍÐØÀÔÅÒÏÍ, Internet, ÏÇÒÏÍÎÏÅ
ÖÅÌÁÎÉÅ ÒÁÂÏÔÁÔØ. çÏÔÏ×ÎÏÓÔØ ×ÍÅÓÔÅ Ó ÒÕËÏ×ÏÄÓÔ×ÏÍ
ÒÁÚ×É×ÁÔØ É ÓÏ×ÅÒÛÅÎÓÔ×Ï×ÁÔØ ÏÞÅÎØ ÐÅÒÓÐÅËÔÉ×ÎÙÊ
ÂÉÚÎÅÓ. ïËÌÁÄ Ë×ÁÌÉÆÉÃÉÒÏ×ÁÎÎÙÈ ÓÐÅÃÉÁÌÉÓÔÏ×
ÏÂÓÕÖÄÁÅÔÓÑ ÏÔÄÅÌØÎÏ. ðÒÉÇÌÁÛÁÅÍ ÎÁ ÒÁÂÏÔÕ ÓÏÔÒÕÄÎÉËÏ×
ÎÁ ÓÌÅÄÕÀÝÉÅ ×ÁËÁÎÓÉÉ:

1. áÇÅÎÔ/ÍÅÎÅÄÖÅÒ ÐÏ ÐÒÏÄÁÖÁÍ.
çÌÁ×ÎÏÅ ÎÁÐÒÁ×ÌÅÎÉÅ v ÌÏËÁÌØÎÙÅ ËÏÍÐØÀÔÅÒÎÙÅ ÓÅÔÉ ×
ÖÉÌÙÈ ÄÏÍÁÈ É ÏÆÉÓÎÙÈ ÚÄÁÎÉÑÈ. ïÂÑÚÁÎÎÏÓÔÉ: ÒÁÂÏÔÁ Ó
ÚÁÑ×ËÁÍÉ, ÉÓÓÌÅÄÏ×ÁÎÉÅ ÐÅÒÓÐÅËÔÉ×ÎÏÓÔÉ ÏÂßÅËÔÁ,
ÐÒÉ×ÌÅÞÅÎÉÅ ÎÏ×ÙÈ ËÌÉÅÎÔÏ× (ÏÂÝÅÎÉÅ Ó ËÁÖÄÙÍ
ÐÏÔÅÎÃÉÁÌØÎÙÍ ËÌÉÅÎÔÏÍ ÌÉÞÎÏ), ÚÁËÌÀÞÅÎÉÅ ÄÏÇÏ×ÏÒÏ×,
ÄÁÌØÎÅÊÛÅÅ ÓÏÐÒÏ×ÏÖÄÅÎÉÅ ÏÂßÅËÔÁ. ó×ÏÂÏÄÎÏÅ ×ÌÁÄÅÎÉÅ
ÒÕÓÓËÉÍ ÑÚÙËÏÍ ÏÂÑÚÁÔÅÌØÎÏ. ìÉÞÎÙÅ ËÁÞÅÓÔ×Á:
ËÏÍÍÕÎÉËÁÂÅÌØÎÏÓÔØ, ÉÓÐÏÌÎÉÔÅÌØÎÏÓÔØ, ÓÐÏÓÏÂÎÏÓÔØ Ë
ÏÂÕÞÅÎÉÀ, ÂÅÚÕÓÌÏ×ÎÁÑ ÇÒÁÍÏÔÎÏÓÔØ, ×ÎÉÍÁÔÅÌØÎÏÓÔØ.
îÅÎÏÒÍÉÒÏ×ÁÎÎÙÊ ÒÁÂÏÞÉÊ ÄÅÎØ ÉÌÉ Ó×ÏÂÏÄÎÙÊ ÇÒÁÆÉË.
úÁÒÐÌÁÔÁ 100 Õ.Å. ÐÌÀÓ % ÏÔ ÚÁÐÕÓËÁ ÏÂßÅËÔÁ É, ÞÔÏ ÏÞÅÎØ
×ÁÖÎÏ, ÏÔ ÅÇÏ ÜËÓÐÌÕÁÔÁÃÉÉ. óÒÅÄÎÑÑ ÚÁÒÐÌÁÔÁ ÚÁ ÍÅÓÑÃ
300 v 400 Õ.Å.
2. óÉÓÔÅÍÎÙÊ ÉÎÖÅÎÅÒ, ÐÏÍÏÝÎÉË ÓÉÓÔÅÍÎÏÇÏ ÉÎÖÅÎÅÒÁ.
ïÂÑÚÁÎÎÏÓÔÉ: ÐÌÁÎÉÒÏ×ÁÎÉÅ, ÐÒÏËÌÁÄËÁ,
ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÅ ì÷ó. òÅÖÉÍ ÒÁÂÏÔÙ:
ÎÅÎÏÒÍÉÒÏ×ÁÎÎÙÊ ÒÁÂÏÞÉÊ ÄÅÎØ ÉÌÉ Ó×ÏÂÏÄÎÙÊ ÇÒÁÆÉË.
úÁÒÐÌÁÔÁ ÏÔ 100 ÄÏ 600 Õ.Å. ÍÅÓ. éÎÏÇÏÒÏÄÎÉÍ ×ÏÚÍÏÖÎÏ
ÐÒÅÄÏÓÔÁ×ÌÅÎÉÅ ×ÒÅÍÅÎÎÏÇÏ ÖÉÌØÑ.

3. ÷ÁËÁÎÓÉÑ: ÍÏÎÔÁÖÎÉË ì÷ó
ïÂÑÚÁÎÎÏÓÔÉ: ÐÌÁÎÉÒÏ×ÁÎÉÅ, ÐÒÏËÌÁÄËÁ,
ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÅ ì÷ó. éÓÐÙÔÁÔÅÌØÎÙÊ ÓÒÏË v 2 ÎÅÄÅÌÉ.
úÁÒÐÌÁÔÁ ÎÁ ÉÓÐÙÔÁÔÅÌØÎÙÊ ÓÒÏË ÉÚ ÒÁÓÞÅÔÁ ÏÔ 1500
ÒÕÂ./ÍÅÓ. ðÏ ÉÔÏÇÁÍ ÉÓÐÙÔÁÔÅÌØÎÏÇÏ ÓÒÏËÁ ÎÁÚÎÁÞÁÅÔÓÑ
ÏËÌÁÄ ÏÔ 100 Õ.Å. É ÄÏÌÖÎÏÓÔØ ÏÔ ÍÏÎÔÁÖÎÉËÁ ÄÏ ÂÒÉÇÁÄÉÒÁ.
ìÀÂÏÊ ÒÁÚÎÏÒÁÂÏÞÉÊ ÐÒÉ ÖÅÌÁÎÉÉ ÍÏÖÅÔ ÓÔÁÔØ
ÂÒÉÇÁÄÉÒÏÍ! åÓÔØ ×ÏÚÍÏÖÎÏÓÔØ ÄÏÐÏÌÎÉÔÅÌØÎÏÇÏ
ÚÁÒÁÂÏÔËÁ. òÅÖÉÍ ÒÁÂÏÔÙ: ÓËÏÌØÚÑÝÉÊ ÇÒÁÆÉË. úÁÒÐÌÁÔÁ
ÓÄÅÌØÎÁÑ, ÌÉÂÏ ÏËÌÁÄ.

4. ðÒÏÇÒÁÍÍÉÓÔ
ôÒÅÂÕÀÔÓÑ ÐÒÏÇÒÁÍÍÉÓÔÙ, ÓÐÅÃÉÁÌÉÓÔÙ UNIX,
HTML-×ÅÒÓÔÁÌØÝÉËÉ, ÄÉÚÁÊÎÅÒÙ. çÌÁ×ÎÏÅ ÎÁÐÒÁ×ÌÅÎÉÅ v
ÌÏËÁÌØÎÙÅ ËÏÍÐØÀÔÅÒÎÙÅ ÓÅÔÉ × ÖÉÌÙÈ ÄÏÍÁÈ É
×ÉÄÅÏÎÁÂÌÀÄÅÎÉÅ. òÅÖÉÍ ÒÁÂÏÔÙ: ÎÅÎÏÒÍÉÒÏ×ÁÎÎÙÊ
ÒÁÂÏÞÉÊ ÄÅÎØ ÉÌÉ Ó×ÏÂÏÄÎÙÊ ÇÒÁÆÉË. éÓÐÙÔÁÔÅÌØÎÙÊ ÓÒÏË
2 ÎÅÄÅÌÉ, ÌÉÂÏ ÔÅÓÔÏ×ÏÅ ÚÁÄÁÎÉÅ. ðÏÓÌÅ ÉÓÐÙÔÁÔÅÌØÎÏÇÏ
ÓÒÏËÁ ×ÏÚÍÏÖÎÁ ÕÄÁÌÅÎÎÁÑ ÒÁÂÏÔÁ. úÁÒÐÌÁÔÁ ÏÔ 100 ÄÏ 600
Õ.Å.

5. ÷ÁËÁÎÓÉÑ: ÉÎÖÅÎÅÒ-ÜÌÅËÔÒÉË.
úÁÒÐÌÁÔÁ ÎÁ ÐÅÒÉÏÄ ÉÓÐÙÔÁÔÅÌØÎÏÇÏ ÓÒÏËÁ 100 Õ.Å.  äÁÌÅÅ
ÐÏ ÄÏÇÏ×ÏÒÅÎÎÏÓÔÉ. ôÒÅÂÏ×ÁÎÉÑ: ÏÐÙÔ ÒÁÂÏÔÙ, ÖÅÌÁÔÅÌØÎÏ
ÓÅÒÔÉÆÉËÁÔ.

6. ó×ÁÒÝÉË, ÜÌÅËÔÒÏÍÏÎÔÁÖÎÉË, ÒÁÚÎÏÒÁÂÏÞÉÊ
äÌÑ ÜÌÅËÔÒÏÍÏÎÔÁÖÎÉËÏ× ÎÁÞÁÌØÎÁÑ ÚÁÒÐÌÁÔÁ 100$/ÍÅÓ.,
ÄÌÑ Ó×ÁÒÝÉËÏ× ÎÁÞÁÌØÎÁÑ ÚÁÒÐÌÁÔÁ 150$/ÍÅÓÑÃ, ÒÏÓÔ
ÚÁÒÐÌÁÔÙ ÎÅÏÇÒÁÎÉÞÅÎ. òÁÂÏÔÁÔØ ÍÏÖÎÏ ÓÄÅÌØÎÏ ÓÏ
Ó×ÏÂÏÄÎÙÍ ÇÒÁÆÉËÏÍ ÒÁÂÏÔÙ. ïÐÌÁÔÁ ÚÁ ËÁÖÄÙÊ
×ÙÐÏÌÎÅÎÎÙÊ ÏÂßÅËÔ. äÌÑ ÒÁÚÎÏÒÁÂÏÞÉÈ ÚÁÒÐÌÁÔÁ 1500
ÒÕÂ./ÍÅÓÑÃ. ðÏ ÍÅÒÅ ÐÒÉÏÂÒÅÔÅÎÉÑ ÎÅÏÂÈÏÄÉÍÙÈ ÎÁ×ÙËÏ×
ÅÓÔØ ×ÏÚÍÏÖÎÏÓÔØ ÒÁÂÏÔÁÔØ × ÂÒÉÇÁÄÅ Ó ÐÏ×ÙÛÅÎÉÅÍ
ÚÁÒÐÌÁÔÙ.

7.óÅËÒÅÔÁÒØ-ÄÉÓÐÅÔÞÅÒ × ÏÆÉÓ
úÁÒÐÌÁÔÁ 100$

8. ÷ÏÄÉÔÅÌØ ÓÏ Ó×ÏÉÍ Á×ÔÏÍÏÂÉÌÅÍ
úÁÒÐÌÁÔÁ 400$ (ÂÅÎÚÉÎ ÏÐÌÁÞÉ×ÁÅÔÓÑ ÏÔÄÅÌØÎÏ),
ÉÓÐÙÔÁÔÅÌØÎÙÊ ÓÒÏË 1 ÍÅÓÑÃ. úÁÒÐÌÁÔÁ ÎÁ ÐÅÒÉÏÄ
ÉÓÐÙÔÁÔÅÌØÎÏÇÏ ÓÒÏËÁ 200$/

çÏÓÐÏÄÁ ÓÔÕÄÅÎÔÙ É ×ÙÐÕÓËÎÉËÉ ÷õúÏ×! æÉÒÍÁ
Láóð-âÅÚÏÐÁÓÎÏÓÔ؁ [http://www.asp-groups.ru] ÐÒÉÇÌÁÛÁÅÔ
÷ÁÓ ÎÁ ÒÁÂÏÔÕ. çÌÁ×ÎÏÅ ÎÁÐÒÁ×ÌÅÎÉÅ v ÌÏËÁÌØÎÙÅ
ËÏÍÐØÀÔÅÒÎÙÅ ÓÅÔÉ × ÖÉÌÙÈ ÄÏÍÁÈ. òÁÂÏÔÁ ÎÅ ÔÏÌØËÏ
ÇÏÌÏ×ÏÊ, ÎÏ É ÎÏÇÁÍÉ. ïÂÑÚÁÎÎÏÓÔÉ: ÒÁÂÏÔÁ Ó
ÓÕÝÅÓÔ×ÕÀÝÉÍÉ É ÐÏÔÅÎÃÉÁÌØÎÙÍÉ ÏÂßÅËÔÁÍÉ,
ÐÒÉ×ÌÅÞÅÎÉÅ ÎÏ×ÙÈ ËÌÉÅÎÔÏ×, ÚÁËÌÀÞÅÎÉÅ ÄÏÇÏ×ÏÒÏ×,
ÓÏÐÒÏ×ÏÖÄÅÎÉÅ ÇÏÔÏ×ÙÈ ÏÂßÅËÔÏ×. ïÐÙÔ ÒÁÂÏÔÙ -
ÖÅÌÁÔÅÌØÎÏ, ÎÏ ÎÅ ÏÂÑÚÁÔÅÌØÎÏ; ÏÂÑÚÁÔÅÌØÎÏ - ×ÌÁÄÅÎÉÅ
ËÏÍÐØÀÔÅÒÏÍ, Internet, ÏÇÒÏÍÎÏÅ ÖÅÌÁÎÉÅ ÒÁÂÏÔÁÔØ.
áÎÇÌÉÊÓËÉÊ ÑÚÙË 

[PHP] PHP SSI in armony?

2001-07-21 Thread Seb Frost

I want to use both PHP and SSI on the same page.  My server requires that
SSI files are .shtml.  If I set it to also treat .shtml files as php files
(like I have done with .htm) then what will happen?  Will it get parsed
first for php and then for ssi, or the other way round?  Or puke completely?

Or is there a way of doing this that I've overlooked.

- seb


-- 
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] Image color quality problems

2001-07-21 Thread Seb Frost

Not an answer I'm afraid but does PHP has the ability to do this with JPEGs?
Would be VERY useful to me if it does!

- seb

-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 21 July 2001 23:27
To: [EMAIL PROTECTED]
Subject: [PHP] Image color quality problems


I have the following code that takes an existing image, creates a new
one from it and writes some white text on top of that image:

?php
header(Content-type: image/png);

$startingImage = leftphoto_01.png;

$image = imageCreateFromPNG($startingImage);

//$white = imageColorAt($image, 30, 215);

$white = imageColorAllocate($image, 255, 255, 255);

imageTTFText($image, 24, 0, 10, 25, $white, arialbd.ttf, This is a
test);

imagePNG($image);

imagedestroy($image);
?

Problem is, the white text isn't white -- it's a dingy gray color.
From reading around, I thought maybe if I took an existing white pixel
in the image and used that to set white, that might help (hence the
commented out //$white = imageColorAt... line in my code above)  That
didn't help either.  (and the pixel I sampled is exactly the shade of
white I want)

I am almost completely unfamiliar with color pallettes and how to
manipulate them.  Can someone shed some light on how I can get some
clean, bright white text on my image?

Thanks.

--kurt


--
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] Image color quality problems

2001-07-21 Thread Seb Frost

Thanks Kurt.  Unfortunately my server only has gd 1.6.2 (gd 1.8.3 required
aparantly) and I can't change that.  Never mind.

- seb

-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2001 00:26
To: 'Seb Frost'; [EMAIL PROTECTED]
Subject: RE: [PHP] Image color quality problems


Yes, it does, through the use of the GD and freetype libraries. (the
freetype library is required for the imageTTFText function I used below)

www.php.net/imagecreatefromjpeg

 -Original Message-
 From: Seb Frost [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, July 21, 2001 3:59 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] Image color quality problems


 Not an answer I'm afraid but does PHP has the ability to do
 this with JPEGs? Would be VERY useful to me if it does!

 - seb

 -Original Message-
 From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
 Sent: 21 July 2001 23:27
 To: [EMAIL PROTECTED]
 Subject: [PHP] Image color quality problems


 I have the following code that takes an existing image,
 creates a new one from it and writes some white text on top
 of that image:

 ?php
 header(Content-type: image/png);

 $startingImage = leftphoto_01.png;

 $image = imageCreateFromPNG($startingImage);

 //$white = imageColorAt($image, 30, 215);

 $white = imageColorAllocate($image, 255, 255, 255);

 imageTTFText($image, 24, 0, 10, 25, $white, arialbd.ttf,
 This is a test);

 imagePNG($image);

 imagedestroy($image);
 ?

 Problem is, the white text isn't white -- it's a dingy gray
 color. From reading around, I thought maybe if I took an
 existing white pixel in the image and used that to set white,
 that might help (hence the commented out //$white =
 imageColorAt... line in my code above)  That didn't help
 either.  (and the pixel I sampled is exactly the shade of
 white I want)

 I am almost completely unfamiliar with color pallettes and
 how to manipulate them.  Can someone shed some light on how I
 can get some clean, bright white text on my image?

 Thanks.

 --kurt


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



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




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


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




RE: [PHP] please remove me from the mail list

2001-07-20 Thread Seb Frost

Send a message to [EMAIL PROTECTED] to achieve this
danny.

- seb

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
danny brown
Sent: 20 July 2001 16:03
To: [EMAIL PROTECTED]
Subject: [PHP] please remove me from the mail list


thanks


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

2001-07-20 Thread Seb Frost

OK I'm playing around with MySQL on my ISP's server.  Created myself some
forms that create/delete tables and enter/display data in a table.

Is there a simple way to generate a list of all my tables, or even better to
display all of the tables with all of their information?

cheers,

seb


-- 
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] One one webhosting

2001-07-20 Thread Seb Frost

anyone know what the socket for connecting to mysql is with these guys?
Have emailed their support but was wondering if anyone can answer me now.
Am trying to install phpMyAdmin.

cheers,

seb

-Original Message-
From: Steve Werby [mailto:[EMAIL PROTECTED]]
Sent: 20 July 2001 19:51
To: Seb Frost; [EMAIL PROTECTED]
Subject: Re: [PHP] Displaying tables


Seb Frost [EMAIL PROTECTED] wrote:
 OK I'm playing around with MySQL on my ISP's server.  Created myself some
 forms that create/delete tables and enter/display data in a table.

 Is there a simple way to generate a list of all my tables, or even better
to
 display all of the tables with all of their information?

Get phpMyAdmin from http://www.phpwizards.net/.  Or see mysql_list_tables(),
mysql_list_fields(), etc.  See http://www.php.net/manual/en/ref.mysql.php.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


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




[PHP] Basic database questions.

2001-07-19 Thread Seb Frost

Hi everyone, this is my first ever post on the list so please be gentle with
me ;-)

OK I want to put a database on my website.  Up until yesterday my knowledge
of databases was having created a very simple one when I was about 15 for
GCSE IT.  Don't ask how, but I've always avoided them, learning c++ and all
the rest of it instead.  SO, I'm pretty computer literate, but know nothing
about databases.

SO I'm told I should use PHP and MySQL.  Been learning PHP for the last day
or so, seems easy enough (so far!)

But I'm confused.

1) Is MySQL just a set of instructions for querying a database or is it an
actual format for storing a database.  Somehting I read suggested that MySQL
should be used to access Acess DB's - wtf?

2) OK so I can see how the mysql instructions will get data from a database
but how do I create the little bastard in the first place?  SHOULD I be
using something like access?  It makes no sense to me!

Sorry for the dumb questions, but I need soem dumb answers!  It seems
everything about MySQL on the web is directed at people who have used
databases extensively.

thanks everyone,

- seb


-- 
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: Basic database questions.

2001-07-19 Thread Seb Frost

Thanks Steve that's exactly the kind of 100% definate answers I needed :-)
Hadn't seen nor heard of front ends for it, will look into them!

- seb

-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 14:27
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Basic database questions.



Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi everyone, this is my first ever post on the list so please be gentle
with
 me ;-)

 OK I want to put a database on my website.  Up until yesterday my
knowledge
 of databases was having created a very simple one when I was about 15 for
 GCSE IT.  Don't ask how, but I've always avoided them, learning c++ and
all
 the rest of it instead.  SO, I'm pretty computer literate, but know
nothing
 about databases.

 SO I'm told I should use PHP and MySQL.  Been learning PHP for the last
day
 or so, seems easy enough (so far!)

 But I'm confused.

 1) Is MySQL just a set of instructions for querying a database or is it an
 actual format for storing a database.  Somehting I read suggested that
MySQL
 should be used to access Acess DB's - wtf?


mysql is a database management system that is relational to a certain extent
(no flames).
php has an abstraction layer that allows php to interface directly with
mysql (and other 'better' databases such as postgresql) via a port (5432 in
the case of postgresql).
drop access from your mind altogether. you simply don't need to use it if
you use mysql.

 2) OK so I can see how the mysql instructions will get data from a
database
 but how do I create the little bastard in the first place?  SHOULD I be
 using something like access?  It makes no sense to me!


get mysql and install it. then get a front end editor like mysql-front or
pg_admin for mysql.
you can either use the front end to create your database or do it via the
command line using SQL.

 Sorry for the dumb questions, but I need soem dumb answers!  It seems
 everything about MySQL on the web is directed at people who have used
 databases extensively.


to be hones that's true to a certain extent but i always thought of mysql
being the access of open source dbs (just to cnfuse you further!!!) but it
certainly isn't the case. not as robust as postgresql for 100's of
concurrent users but feature rich and easy to use.

time to jump off the micro$oft bandwaggon - you'll never look back !!

Steve
 thanks everyone,

 - seb




--
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: Basic database questions.

2001-07-19 Thread Seb Frost

Im using win2k, but I have no intetntion of serving a webpage off of it, I
only have a 56k modem!  I'll be running the website off of an ISP.  Do I
still need to install IIS and stuff?  What for?

- seb

-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 15:33
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Basic database questions.


you can get mysql font from http://www.anse.de/mysqlfront/

be sure to install mysql first though.
if you're using windows 2000 then get php from http://www.php.net and
install after installing IIS5
then install mysql front.

the  nice thing about it is the installers are superb and you can get away
with installing the three progs and off you go.

let me know if you need any further help.

Steve

Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Thanks Steve that's exactly the kind of 100% definate answers I needed :-)
 Hadn't seen nor heard of front ends for it, will look into them!

 - seb

 -Original Message-
 From: Steve Brett [mailto:[EMAIL PROTECTED]]
 Sent: 19 July 2001 14:27
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Basic database questions.



 Seb Frost [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi everyone, this is my first ever post on the list so please be gentle
 with
  me ;-)
 
  OK I want to put a database on my website.  Up until yesterday my
 knowledge
  of databases was having created a very simple one when I was about 15
for
  GCSE IT.  Don't ask how, but I've always avoided them, learning c++ and
 all
  the rest of it instead.  SO, I'm pretty computer literate, but know
 nothing
  about databases.
 
  SO I'm told I should use PHP and MySQL.  Been learning PHP for the last
 day
  or so, seems easy enough (so far!)
 
  But I'm confused.
 
  1) Is MySQL just a set of instructions for querying a database or is it
an
  actual format for storing a database.  Somehting I read suggested that
 MySQL
  should be used to access Acess DB's - wtf?
 

 mysql is a database management system that is relational to a certain
extent
 (no flames).
 php has an abstraction layer that allows php to interface directly with
 mysql (and other 'better' databases such as postgresql) via a port (5432
in
 the case of postgresql).
 drop access from your mind altogether. you simply don't need to use it if
 you use mysql.

  2) OK so I can see how the mysql instructions will get data from a
 database
  but how do I create the little bastard in the first place?  SHOULD I be
  using something like access?  It makes no sense to me!
 

 get mysql and install it. then get a front end editor like mysql-front or
 pg_admin for mysql.
 you can either use the front end to create your database or do it via the
 command line using SQL.

  Sorry for the dumb questions, but I need soem dumb answers!  It seems
  everything about MySQL on the web is directed at people who have used
  databases extensively.
 

 to be hones that's true to a certain extent but i always thought of mysql
 being the access of open source dbs (just to cnfuse you further!!!) but it
 certainly isn't the case. not as robust as postgresql for 100's of
 concurrent users but feature rich and easy to use.

 time to jump off the micro$oft bandwaggon - you'll never look back !!

 Steve
  thanks everyone,
 
  - seb
 



 --
 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] I AM AT THE START POINT

2001-07-19 Thread Seb Frost

The most general way is to use FTP to upload the page you've just created to
a server that supports PHP.

This is normally done like this in windows:

ftp://username:[EMAIL PROTECTED]

Just fill in the relevant bits.

- seb

-Original Message-
From: Ali YILDIRIM [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 15:34
To: [EMAIL PROTECTED]
Subject: [PHP] I AM AT THE START POINT


Hi;
I am just at the beginning process to php.
My question is:
I type in notepad my php code ok allright but where
will I test this?

I know this is so simple but you know I am new to this
and ...
Please help..


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