RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Jon Farmer
If you are on a unix box you might want to use the tail command... if you use exec() the output will be in an array... -- Jon Farmer Õ?Õ? Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Jon
Hmm although the answer was "Personal Home Page Tools" and is now "Hypertext Preprocessor" when people ask me, I say "Pre-Hypertext Processor" Its the same meaning, and puts the letters in the correct order, so as not to confuse people. -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Jon Farmer
Well I guess Rasmus is the guy who knows but as I understand it, it was originally Personal Home Pages and became PHP Hypertext Preprocessor later Regards jon -- Jon Farmer Õ¿Õ¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Jon Haworth
PHP Hypertext Preprocessor (yes, it's recursive) HTH Jon -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 28 August 2001 11:38 To: Php-General Subject: [PHP] What does PHP stand for? It just crossed my mind: I don't know what PHP stands for..

RE: [PHP] POST to port 443 (SSL)

2001-08-28 Thread Jon Farmer
Ermm you are missing SSL encryption. You can't just try and talk to port 443! You have to use something that talks SSL to talk to port 443. fsockopen() does not talk SSL. Regards -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PG

RE: [PHP] Shell or http?

2001-08-27 Thread Jon Farmer
Shell PHP scripts will start with the line #!/path/to/php -q Regards Jon -- Jon Farmer O?O¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: George E. Papadakis

RE: [PHP] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Jon Farmer
I dont think you read the original post correctly. Obviously you would use SSL to get the info form the browser to server. What the poster was asking was how does he securely get the information from the server to the people using the PDQ machine. Regards -- Jon Farmer O?O? Systems Programmer

RE: [PHP] redirect

2001-08-24 Thread Jon Farmer
header("location: redirect.php"); -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: 24 August 200

RE: [PHP] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Jon Farmer
and randseed files are readable by the apache user. 4. Have fun I have successfully got this working and if you need any help let me know Regards jon -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL

RE: [PHP] PHP & sendmail

2001-08-24 Thread Jon Haworth
Yup, try qmail: www.qmail.org You need to adjust the setting in your php.ini as well. HTH Jon -Original Message- From: Juraj Hasko [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 14:19 To: [EMAIL PROTECTED] Subject: [PHP] PHP & sendmail Hi, I would like to know if PHP on

RE: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Jon Haworth
t be surprised, knowing PHP :-), but you could definitely do something like: $start = mktime(); $sql = "SELECT foo FROM bar ORDER BY xyzzy"; $result = mysql_query ($sql); // do something with the result if you want that timed as well $end = mktime(); $total = $end - $start; echo $total;

RE: [PHP] php query for mysql table

2001-08-20 Thread Jon Haworth
You can use the SQL keyword "LIKE" for this. Have a look at the MySQL docs for full info, but the idea is you'd do something like: $query = "SELECT * FROM table WHERE question LIKE '%". $search_phrase. "%'"; HTH Jon -Original Message- From

RE: [PHP] Re: PHP based authentification -----------

2001-08-20 Thread Jon Farmer
gout. If the cookie is not present when they go back to the page that needs login then it presents a login box to a realm that contains the current date and time in it. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, se

RE: [PHP] XHTML compatible error messages

2001-08-17 Thread Jon Haworth
I think Jan meant that when PHP spits out "Error in line x", it has a in there which causes the page to be invalid. My question would be "why are you trying to validate pages with errors in anyway?" Cheers Jon -Original Message- From: Tyler Longren [mailto:[EMAIL

RE: Re[2]: [PHP] Dnsquery

2001-08-17 Thread Jon Haworth
t; Use system instead. Well, don't trust everything you read :-) These lines: $httpd = exec("ps -e | grep -c httpd"); $mysqld = exec("ps -e | grep -c mysqld"); fill $httpd and $mysqld with the current number of daemons running. Works fine on my Slackware box with PHP 4.0.

RE: [PHP] Dnsquery

2001-08-17 Thread Jon Haworth
I think you need to assign it to a variable and then echo that: $dnsquery = exec("dnsquery -h domain.net"); echo $dnsquery; HTH Jon -Original Message- From: J.Mueller, pro.vider.de GmbH [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 09:29 To: '[EMAIL PROTECTED]

RE: [PHP] PHP within .html files

2001-08-16 Thread Jon Haworth
-httpd-php .php .html You can put as many extensions as you like in there, for example: AddType application/x-httpd-php .php .php3 .php4 .html .phtml .foo .bar .baz .xyzzy Although this is probably overkill :-) HTH Jon -Original Message- From: Paul S. [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] Sort a an array?

2001-08-16 Thread Jon Haworth
The best way to do this, which is conveniently also the easiest, is to do it within your SQL query. $table = "tablename"; $field = "fieldname"; $query = "select * from $table order by $field"; or, for descending sort: $query = "select * from $tab

RE: [PHP] Creating a javascript array from database data

2001-08-15 Thread Jon Farmer
-- while you are looping through the date jump in and out of php like this to populate the javascript array

[PHP] HTTP Authentication

2001-08-15 Thread Jon Farmer
are passed to the script. How do I get the client to forget the previous login details? Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] Select

2001-08-14 Thread Jon Farmer
Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: 14 August 2001 15:53 To: [EMAIL PROTECTED] Subject: [PHP] Select Hi

RE: [PHP] Select

2001-08-14 Thread Jon Farmer
thats because mysql_fetch_row only returns one row. to get all the rows do while ($row = mysql_fetch_array($result) { //processing code here } This will run through all the rows putting the colums into the array $row[] Regards Jon -- Jon Farmer Systems Programmer, Entanet

RE: [PHP] MySQL

2001-08-13 Thread Jon Farmer
if you mean how do you get mysqld to startup automatically then you need to call mysql.server start at bootup Regards Jon Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -Original Message- From: Roman [mailto:[EMAIL PROTECTED

RE: [PHP] Re: Socket problem

2001-08-13 Thread Jon Farmer
Hmm well I has this problem on a FreeBSD box and as soon as I moved it to a RedHat7 box it worked. Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 12 August

RE: [PHP] Copy function usage ?

2001-08-09 Thread Jon Farmer
You need to make sure that what ever user the webserver/php runs under has permissions to read from the source folder/file and write permission for the destination folder/file. Common users for apache/php are "nobody" or "apache" regards Jon Jon Farmer Systems Programmer E

RE: [PHP] selecting words

2001-08-08 Thread Jon Farmer
as requested. To do this you would need to find the 100th space in the string and use everything before that. I would probably explode the string and loop through the first one hundred elements to reconstruct the string with the first one hundred words. Regards Jon Jon Farmer Systems Progra

RE: [PHP] Upper or Lower Case

2001-08-07 Thread Jon Farmer
le? >Bjorn's method is much better, and you're better off getting into good >practice early. Who mentioned anything about typing? In the example given it was a hardcoded string. Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175

RE: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Jon Farmer
>How can i take a dump of first database (which is about 1MB) and restore >that dump on the second one? If you have Telnet access use the mysqldump and mysql clients to export then import. Regards Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Problem with inserts to mysql

2001-08-07 Thread Jon Farmer
the script in case you want to check it out.. Any ideas anyone? Thanks Jon #!/usr/local/bin/php -q subject; $from = $thisheader->from; $name = $from[0]->personal; $fromaddr = sprintf("%s@%s",$from[0]->mailbox,$from[0]->host); //echo $sub

[PHP] system()

2001-08-07 Thread Jon Yaggie
how can i find out what kind of error i am recieving when i call a command thru system()?

Re: [PHP] Re: Any good gif/jpg processing tool for PHP??

2001-08-06 Thread Jon Yaggie
how do you feel about the speed of imagemagick? fastwr? slower than gd functions? - Original Message - From: "Girish Nath" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 07, 2001 1:56 PM Subject: Re: [PHP] Re: Any good gif/jpg processing tool for PHP?? > Hi > > I've

Re: [PHP] Text area ...

2001-08-06 Thread Jon Yaggie
i take it you input this into a hence the subject try this this should carry over the formatting into the cariable or how ever your store it Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, co

[PHP] age

2001-08-05 Thread Jon Yaggie
ry 12, 1944"); $test2 = strtotime ("January 9, 1954"); $oneyear = 3600 * 24 * 365; $diff = $test2 - $test; $ans = $diff/$oneyear; echo $ans; Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the cod

RE: [PHP] Light bulbs (was attitude of ....)

2001-08-03 Thread Jon Haworth
n file. http://www.tuxedo.org/~esr/jargon/html/entry/Godwin's-Law.html Cheers Jon -- PHP General Mailing List (http://www.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] Q: Hiding Folder Directories from public while still...

2001-08-03 Thread Jon Yaggie
ll... > if you're using apache, there's a *much* easier/secure way > of doing this. > > setup an .htaccess file to restrict access to certain > username/passwords. > > check out both: > man htaccess > man htpasswd > > > > -Original Message- > &g

Re: [PHP] Spot the difference?

2001-08-03 Thread Jon Yaggie
isnt this fact a good enough reason to believe it worthless??? - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 03, 2001 6:34 AM Subject: [PHP] Spot the difference? Whats the difference between ASP and PHP cause ASP has gotta have

Re: [PHP] Q: Hiding Folder Directories from public while still...

2001-08-03 Thread Jon Yaggie
i dont know if this is elagant but ti works. but a fake index.htmlin your directory for browsers to default to. . .. - Original Message - From: "Marcus James Christian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 03, 2001 12:30 AM Subject: [PHP] Q: Hiding Folder D

[PHP] Fw: detecting mysql

2001-08-01 Thread Jon Yaggie
- Original Message - From: "sarahana" <[EMAIL PROTECTED]> To: "Jon Yaggie" <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 6:26 PM Subject: detecting mysql > Does anybody here know how to detect with php whether mysql is installed or > not.

Re: [PHP] Re: HTTP_SESSION_VARS

2001-08-01 Thread Jon Yaggie
Actually after an hours nap i found the problem. It is not something anyone could have helped me with since i didnt give complete enough code. the very simple solution was stupidly i used it in a function without declaring ir global. all is good now. - Original Message - From: "Richa

Re: [PHP] HTTP_SESSION_VARS

2001-08-01 Thread Jon Yaggie
SORRY i just coppied it wrong the actual code is capitalized while(list($k, $v) = each($HTTP_SESSION_VARS)) - Original Message - From: "Faisal Nasim" <[EMAIL PROTECTED]> To: "Jon Yaggie" <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 12:23 AM Subj

[PHP] HTTP_SESSION_VARS

2001-08-01 Thread Jon Yaggie
. . is there soemthing i can do to make this work? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it conti

Re: [PHP] env var

2001-08-01 Thread Jon Yaggie
Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Jon Yaggie" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, August 01, 2001 11:36 PM Subject: Re: [PHP] env var > See : > > http://www.php.net/manual/en/ref.session.php > > N

RE: [PHP] Re: FAQ

2001-08-01 Thread Jon Haworth
ans) PHP = PHP Hypertext Preprocessor Damn, where's Rasmus when you need him? He *wrote* it Cheers Jon -- PHP General Mailing List (http://www.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] env var

2001-08-01 Thread Jon Yaggie
is there not an array that saves all session variables? I just got done looking for it and though i am sure there is a list of all these variable i am not sure where (it is not in my info file).thanks btw if you are the RTM (RTF(antastic)M) guy no need reply. Thank You, Jon

RE: [PHP] PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Jon Haworth
Well, any text editor will do. Here are some links: file://c:\windows\notepad.exe http://www.editplus.com http://www.ultraedit.com Enjoy HTH Jon -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: 01 August 2001 20:09 To: [EMAIL PROTECTED] Subject: [PHP] PHP EDITOR 4

RE: [PHP] Zip mulitple files for download

2001-07-31 Thread Jon Haworth
> GlacierHello, > I need to zip multiple files into 1 zip file for download. > Which function do I use to accomplish this? > Thanks! http://www.php.net/exec HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

RE: [PHP]REPOST: DB logic help...

2001-07-31 Thread Jon Haworth
?> It's untested, and fairly inelegant in that you get an empty row at the bottom, so you could count the rows for each set beforehand as part of the SQL instead of using $data as I have - but it may be a good starting point. HTH Jon -Original Message- From: Chris Cocuzzo [mailto:

RE: [PHP] disable?

2001-07-31 Thread Jon Haworth
use a safe web browser such as the one at samspade.org - use IE's view-source: feature etc If it's on the web, people can copy it. You have to live with that, I'm afraid. Cheers Jon -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: 31 July 2001 1

RE: [PHP] PHP_SELF

2001-07-31 Thread Jon Haworth
; form it outputs 'NO' (Good). If I enter a value into the age field and > submit, it outputs 'NO' (Not Good). You are assigning these values, not comparing them $post = "1"// puts "1" in the variable $post $post == "1" // compares $post to &

[PHP] Banner Exchange Schema ??

2001-07-30 Thread Jon Shoberg
In creating a banner exchange, anyone have thoughts on how the big boys use their javascript and server side coding to do the banner rotations? I've look at a lto of examples but some concurrency issues arrise. Anyone have thoughts on or seen 'research' on how the major networks get the job do

RE: [PHP] Need for dox...

2001-07-30 Thread Jon Haworth
You've already checked the php.net site before asking this, I take it. Oh wait... http://www.php.net/manual/en/ref.session.php Maybe not :-) Cheers Jon -Original Message- From: Gabriele Biondo [mailto:[EMAIL PROTECTED]] Sent: 30 July 2001 12:25 To: PHP Subject: [PHP] Need fo

[PHP] mail() a list favorite

2001-07-28 Thread Jon Yaggie
ok please ignore my rather ongoing stupidity. I briefly scanned my manual and didnt find this. so figured since everyone here should be experts on this function with so many questions asked. . Does this require a specific mail server e.g. sendmail? Thank You, Jon Yaggie www.design

[PHP] search engines

2001-07-28 Thread Jon Yaggie
how do i get the info back and process it? should i be using cURL? something else sockets?(shiver) Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the

RE: [PHP] installing php as cgi on linux

2001-07-27 Thread Jon Snell
This is a long shot, but... MSIE has a nasty habit of saving the mime type of a page. If you attempted to load the URL before PHP was set up properly, it won't load until after you closed IE and reopened. -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Friday, J

Re: [PHP] successful error?

2001-07-27 Thread Jon Yaggie
elements for a reason .. . Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0

[PHP] successful error?

2001-07-27 Thread Jon Yaggie
okay i just got this error. what doe sit mean Warning: file("") - Success in /var/www/html/login/login.php on line 45 the lines of code involved are $filename = "log/userdb.txt". $list = file($filename); Thank You, Jon Yaggie www.design-monster.com A

Re: [PHP] Re: Stripping HTML

2001-07-26 Thread Jon Yaggie
hmm i think there is a function specificlly for html. but i am not sure have you tried strip_tags() it will remove html and php tags from a string . . . Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix on

[PHP] hosting

2001-07-26 Thread Jon Yaggie
would be nice so we could easily integrate it in the rest of the site. Any one able to point me in the right direction? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bu

RE: [PHP] HTTP_REFERRER Problem

2001-07-26 Thread Jon Haworth
Try $HTTP_REFERER instead of $HTTP_REFERRER (yes, I know it's spelt wrong, but try it :-) Cheers Jon -Original Message- From: Shrout, Ryan [mailto:[EMAIL PROTECTED]] Sent: 26 July 2001 14:53 To: '[EMAIL PROTECTED]' Subject: [PHP] HTTP_REFERRER Problem Here is the code

RE: [PHP] How to display values in HTML form by retriving from database through PHP

2001-07-26 Thread Jon Haworth
> // Connect to MySQL > > mysql_connect( 'localhost', 'balaji', 'pingpong' ) > or die ( 'Unable to connect to server.' ); ...and you'll be changing your password right about now, I suppose :-) Cheers Jon -- PHP General

Re: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Jon Yaggie
hmmm i think you need to always have quotes around string regardless of if they are variables . . . $result = mysql_query("SELECT shootID FROM shoots WHERE (location='$location')"); - Original Message - From: "Seb Frost" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Thu

RE: [PHP] new problem

2001-07-25 Thread Jon Haworth
On which OS? For example, on a Linux box, I imagine you could do something like exec("mv old.directory.name new.directory.name"); Cheers Jon -Original Message- From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 15:07 To: [EMAIL PROTECTED] Cc: [EMAIL

RE: [PHP] php

2001-07-25 Thread Jon Haworth
Yes it is - have a look at www.php.net/exec to see how you can run commands from your PHP scripts. HTH Jon -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

[PHP] include ("foo.php") not working

2001-07-25 Thread Jon Hubbard
with my SUSE Linux 7.1 box which is also running PHP, Apache and MySQL. I did compile and make the PHP from the source. Your help and advice would be much appreciated. TIA Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] .htaccess

2001-07-24 Thread jon
If I have a directory protected with an .htaccess file that requires users to log in, is there anyway to determine what username they used in my PHP scripts? --Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[PHP] magic quotes

2001-07-22 Thread Jon Yaggie
how do i get around this?i have a script works great for me, but the clients php config has this set magic_quotes_gpc on. isnt there a varible i can change to eliminate this for my script? if so how do you use it? Thank You, Jon Yaggie www.design-monster.com And they were singing

Re: [PHP] oop thingie

2001-07-20 Thread Jon Yaggie
pets->dog->weekcount($newpets); so i guess if the array prints find just before the function yet it still shows an empty array i am baffle where else the problem could be the rest of the code doesnt really even come near these values or function Thank You, Jon Yaggie www.

[PHP] oop thingie

2001-07-20 Thread Jon Yaggie
eve maybe i just cant do it. or maybe there is soemthing stupid i am missing? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little

Re: [PHP] whatever.php

2001-07-18 Thread Jon Yaggie
is whatever.php file encloded in php tags? sounds like it is interupting it as texted. i didnt test this theory so dont kill me if i am wrong. but it is a guess - Original Message - From: "Jeremy Morano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:53 A

Re: [PHP] set var in PHP clarified

2001-07-18 Thread Jon Yaggie
- Original Message - From: "jessica lee tishmack" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 10:50 PM Subject: [PHP] set var in PHP clarified > Thanks for the prompt replies...but I think I should clarify... > > In regular html, I would do this: > >

Re: [PHP] set var in PHP

2001-07-18 Thread Jon Yaggie
i was wondering this too what happen to some title here reminds me of MIVA script or one of the build in things maybe (gulp) a front page thing? anyways i suspect that $TITLE = "some text here"; is what you want - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: <[EMA

Re: [PHP] How to add a new color to JPEG

2001-07-17 Thread Jon Yaggie
has this problem check the annoted manual on php.net. i believe there is a work arround posted on imagecolorallocate() and i reposted the same thing under imagecreatefromjpeg. basically you create and image, allocate colors, and then copy your jpeg on it. Thank You, Jon Yaggie www.design

Re: [PHP] true type fonts

2001-07-16 Thread Jon Yaggie
nope. the fonts are normalenough when i i open them. and in fact i guess i get slight different "boxes" for different fonts. but all of them are alpha-numeric fonts Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code

[PHP] true type fonts

2001-07-16 Thread Jon Yaggie
can it? it has to be the files or maybe server set up? i have done this before with no problem so i am stumped at what the difference here is and why some work. idea? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bu

Re: [PHP] sessions . . . .

2001-07-16 Thread Jon Yaggie
. i do register more variables on this page but i never reregister $directory Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the

[PHP] sessions . . . .

2001-07-16 Thread Jon Yaggie
quot;); fputs($handle, $pg_info); fclose($handle); as you can see in the error $directory appears not to be there. i didnt unregister it. i didnt change it. where did it go? and what might have cause this?? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . &#x

Re: [PHP] lack of error

2001-07-15 Thread Jon Yaggie
wonderful i hope ti is the only problem left:) Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it conti

[PHP] lack of error

2001-07-15 Thread Jon Yaggie
url you can try it. http://www.hvacsites.com/SiteBuilder/logo.php?tmpcolor=_dred&logo_text=sdfdsdfasfd&logo_style=1 Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 10

RE: [PHP] deletion of temp files

2001-07-10 Thread Jon Snell
One way to do this is to create a special directory in htdocs reserved only for temporary files. Add the following line to crontab or a user with permissions to delete: 0 * * * * find /usr/local/apache/sitename/htdocs/specialdir/ -cmin +1440 -exec -rm -f {} Every hour this script will delete al

Re: [PHP] flat file db

2001-07-10 Thread Jon Yaggie
re outside the document root, as long as your apache isn't > "jailed" php can read your flat file wherever you put it, as long as its > owned by the webserver user - Russ > > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Sent: Tuesday,

[PHP] flat file db

2001-07-10 Thread Jon Yaggie
way to protect the db other than htaccess? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it

Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie
cna refresh it without the query string? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued

Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie
i have nothing to do with the popup stuff :) - Original Message - From: "Ben Bleything" <[EMAIL PROTECTED]> To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:37 AM Subject: RE: [PHP] url wit

Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie
needs to be exact. so the query string needs to be stripped some how? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the

[PHP] url without a query string?

2001-07-08 Thread Jon Yaggie
i do this? can i do this? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0

Re: [PHP] watermarks

2001-07-07 Thread Jon Yaggie
Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - Fr

[PHP] watermarks

2001-07-07 Thread Jon Yaggie
I am afraid I am completely stupid in the way that watermarks work(researching now). however I need to know quickly if I can dynamically apply a watermark to an image using PHP. Any one know? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little

Re: [PHP] caching

2001-07-04 Thread Jon Yaggie
the images saved. I placed the headers at the top of mypage.php. where else could i put them? and my browser still caches unless i conpletely turn off caching. What am i doing wrong? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs i

RE: [PHP] Security of PHP code

2001-07-04 Thread Jon Haworth
Yes, I would have thought this would do it: if (strstr($file, "/usr/local/apache/htdocs/") { show_source($file); } else { echo "File must be in /usr/local/apache/htdocs!"; } Modify as appropriate. Have I missed anything, or will this do the trick? Cheers

[PHP] mySQL reset auto_increment

2001-07-02 Thread Jon Shoberg
Is there an SQL query for resetting the autoincrement field of a table ? I know myisamchk will do this but the system I am on will not let me us it. I can get console level access but that is all. I simply want to reindex my data back to the start of 1. Thanks -- PHP General Mailing List (

Re: [PHP] Cookie ?

2001-06-30 Thread Jon Yaggie
have worked with two alternatives here. one set another cookie that holds a timestamp of the time you want the other cookie to expire and then compare server time and the expiration cookie. or do the same thing basically b ut use a variable set in a session. Thank You, Jon Yaggie www.design

[PHP] caching

2001-06-30 Thread Jon Yaggie
it wrongly? is there another method i can clear the browser cache? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the

RE: [PHP] Website dealing with PHP image generation?

2001-06-30 Thread Jon Yaggie
opy($image, $himage, 400, 20, 1, 1, 60, 60) Imagepng($image, "signature.png"); ImageDestroy($image); Am I using ImageCopy incorrectly? It doesn't put anything in the new image. Jeff Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in

Re: [PHP] Telnet and PHP

2001-06-30 Thread jon
Instead of performing a send for each stroke, the user code type in a whole string in a text box, and then submit that string. I have found this code at http://www.phpbuilder.com/mail/php-general/2001051/1479.php: sock = fsockopen($host,$port); socket_set_timeout($this->sock,2,0);

[PHP] Telnet and PHP

2001-06-30 Thread jon
I was doing some research on creating a webbased telnet client and I am unsatisfied with Java applets. I would like to create a server side telnet client, so the user side is only required to have a working web browser that supports HTML. Thus, I turned to PHP. I found one example, but it does

[PHP] images

2001-06-26 Thread Jon Yaggie
agecolorallocate($im, 0, 0, 255); break;   } $sizex = imagesx($im);$sizey = imagesy($im);$fontlen = imagefontwidth(3);$strlen = strlen($text) * $fontlen;$xvalue =  ($sizex - $strlen)/2;$yvalue = $sizey * .40;   imagestring($im, 3, $xvalue, $yvalue, $text, $o);       imagejpeg($im);   ?>  

[PHP] MIME type

2001-06-26 Thread Jon Yaggie
is there a function to get the mime of a given file?  if so what?         Thank You, Jon Yaggiewww.design-monster.com And they were singing . . .  '100 little bugs in the code100 bugs in the codefix one bug, compile it again101 little bugs in the code 101 little bugs in the code . . .

Re: [PHP] newbie algorithm help!!!!

2001-06-23 Thread Jon Yaggie
mysql table with approx. 30 entries.>> I wanna get them(i know how to do that) and list them in a 2-column table.I> have been trying to use a loop to do it. But it will only produce a1-column> table. it's like>> entry 1> entey 2> entry 3> entry 4> etc>&

[PHP] SubDomain Redirect

2001-06-22 Thread Jon Shoberg
Using Apache ... Any thoughts no how I can create a link: http://cars.mydomain.com and have it redirect to http://www.mydomain.com/index.php?id=cars and http://www.mydomain.com/cars and have it redirect to http://www.mydomain.com/jump.php?id=cars without mess

[PHP] re: time

2001-06-20 Thread Jon Yaggie
.      Thank You, Jon Yaggiewww.design-monster.com And they were singing . . .  '100 little bugs in the code100 bugs in the codefix one bug, compile it again101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0    

<    4   5   6   7   8   9   10   11   12   >