[PHP] asking about upload file

2002-05-02 Thread wong
please help me how upload 5 file gif or jpeg together with php. RiZaL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] asking about .exe file

2002-04-07 Thread wong
Can php execute .exe file under dos and view result on the browser ? Rizal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] asking about exe file

2002-04-07 Thread wong
Can php execute .exe file ( compile from BorlandC) and view result on the browser ? PLease Help Me Rizal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FULLTEXT: It worked?? Why?

2002-11-24 Thread Jason Wong
,AU,ST,SD,SC,BT,BD,BC,AT,AD,AC) > ) TYPE=MyISAM COMMENT='CCL Bibliography - Bibliographie ECC'; This has nowt to do with PHP, please ask on the MySQL list. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hos

Re: [PHP] Re: security of stand alone script

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 02:10, gamin wrote: > i guess i can use $remote_addr to see if the user has an IP. > > But still out of curosity - any way of knowing the user that called the > script ? Use phpinfo(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Op

Re: [PHP] Stripslashes through an array.........

2002-11-24 Thread Jason Wong
> //-->< something here would be nice > } Usually, it's not necessary to use stripslashes() on data retrieved from a db. But if you insist ... foreach ($data as $key => $value) { $data[$key] = stripslashes($value); } ... should work. -- Jason Wong -> Gremlins

Re: [PHP] Secureing PHP.

2002-11-24 Thread Jason Wong
explain ina little more detail? If there are tutorials on this type of stuff then google would know -- just go and ask it nicely. And of course there's always the chapter in the manual which deals with "Security", some good stuff there. -- Jason Wong -> Gremlins Associate

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Jason Wong
it's best answered with five minutes on the PC, than a msg to the list ... ad infinitum -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Who's on fi

Re: [PHP] Passing Variables

2002-11-24 Thread Jason Wong
good code from a reliable source with the same results. Any idea > on this. It happens on multiple systems. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] FULLTEXT: It worked?? Why?

2002-11-24 Thread Jason Wong
han the people on the PHP-General list). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* knowledge, n.: Things you believe. */ -- PHP General Mailing Li

Re: [PHP] Re: BBCode?

2002-11-24 Thread Jason Wong
On Monday 25 November 2002 14:20, Kyle Gibson wrote: > Leif K-Brooks wrote: > > I'm working on adding simple BBCode to my site. I'm currently using the > > [i] tag for testing, with the following code: > > > > > function bbcode($text){ > > $text = ereg_replace('\\[i\\](.{1,})\\[/i\\]','\\1',$text

Re: [PHP] Dumb POST Array question

2002-11-25 Thread Jason Wong
doubt, print it out (TM): print_r($_POST); The best way to do it (IMHO) is to: foreach ($_POST['Consultants'] as $key => value) { print "$key: $value"; } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrat

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Jason Wong
ch requires (to my horror) Register_Globals=On. > > Short of two Apache/PHP servers, what is a logical way to structure things > so that the 'wiki' runs 'insecure' but other/'my' PHP work runs more > securely? Set it on a per directory basis. If using Apache som

Re: [PHP] PHP.net spam protection

2002-11-25 Thread Jason Wong
by something called ezmlm. It is something that runs in conjunction with qmail. Google for more details. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I h

Re: [PHP] Re: BBCode?

2002-11-25 Thread Jason Wong
in a single operation: $text = '[i]This[/i] is a [i]test[/i].'; $search_for_tags = array("/\[i\]/", "/\[\/i\]/"); $replace_with_tags = array("", ""); $text = preg_replace($search_for_tags, $replace_with_tags, $text); print $text; -- Jas

Re: [PHP] imagecopyresized

2002-11-25 Thread Jason Wong
sponse if you actually copy and paste the error message or whatever. If that's not possible at least give a brief description as to what the problem is. Having to make people go through extra steps to help you is not a very good idea. -- Jason Wong -> Gremlins Associates -> w

Re: [PHP] imap

2002-11-25 Thread Jason Wong
r something along the lines of "create mail account using php". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I'm going to live forever,

Re: [PHP] Re: BBCode?

2002-11-25 Thread Jason Wong
On Tuesday 26 November 2002 04:42, Kyle Gibson wrote: > > Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] > > tag, for example). > > Nested tags? Do you mean [ib] ? Or [i[b]]? I think he means: "[i]A sentence in italics, with a word in [b]b

Re: [PHP] implode()

2002-11-25 Thread Jason Wong
t a bad parameter message on the line with the call to the Implode > function. implode() expects an array as the second argument. You're passing a string. In fact with the code you have above I don't see why you don't just tack the comma on the end in the first place: if($

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Jason Wong
ways be FALSE. $linefour = "" does not evaluate to TRUE thus the whole expression to be FALSE! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /*

Re: [PHP] implode()

2002-11-26 Thread Jason Wong
ment about implode expecting an array helps out. Thanks. Yes, but as you're building up the SQL statement manually you just leave out the comma off the last line! Using implode() is appropriate if you're programatically (sp?) building an SQL statement using an array. -- Jason Wong -> Greml

Re: [PHP] FTP and security

2002-11-26 Thread Jason Wong
t user and password passed to ftp_login()) on port > 21 without worrying about getting hacked? Well, if you're going to be using ftp-over-ssh, I don't see why you're not using scp directly instead. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source

Re: [PHP] implode()

2002-11-26 Thread Jason Wong
ink you mean "Array". Because $sqlUpdate is an array you can't simply print it out (you'll just get 'Array' printed). > What am I doing > wrong? You didn't use implode(), which after all is the subject of this thread ;-) -- Jason Wong -> Gremlins Asso

Re: [PHP] Decrypt Password

2002-11-26 Thread Jason Wong
) Please do not use HTML mail when posting to mailing lists. 2) Try to give more information about your problem -- what database are you using? Read this thread: http://marc.theaimsgroup.com/?l=php-general&m=102797825404282&w=2 -- Jason Wong -> Gremlins Associates -> www.gre

Re: [PHP] php version of majordomo?

2002-11-26 Thread Jason Wong
ill receive > a copy. > But in the same time to be able to access the message archive via the web. google -> mailing list manager software -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] Multiple page form

2002-11-26 Thread Jason Wong
t; permanent place? > > I have never done this before, but maybe someone else has? Any tips on how > to do this, what "type(s)" of DB tables are required to do this and can you > give me an url to help me research it further? Search the documentation of your db of choice for

Re: [PHP] php version of majordomo?

2002-11-26 Thread Jason Wong
On Wednesday 27 November 2002 05:56, The Gabster wrote: > Thanks Jason... > > I went through those but so far nothing in php... :-( > > google -> mailing list manager software Try adding 'php' to the list of search terms above. -- Jason Wong -> Gremlins Asso

Re: [PHP] Changing SERVER's IP ADDRESS

2002-11-26 Thread Jason Wong
ries to contact > > the old IP address. > > How can I make the client point to the new IP address of the same > server? Have your php output a meta refresh tag. > I can show the code also. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Jason Wong
ssions to delete it > > when done ... Use chmod() to make the file(s) rw by 'others'. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Beware of

Re: [PHP] max file size on uploading files

2002-11-27 Thread Jason Wong
On Thursday 28 November 2002 02:02, Nick Wilson wrote: > Hi all, > > I must be missunderstanding something here, I have this in an php 'upload > form': > > > > So why won't it upload a 1.5MB file? manual -> Handling File Uploads -- Jason Wong ->

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Jason Wong
Works for me :) Maybe you're using safe mode? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* If you see an onion ring -- answer it! */ -- PHP General

Re: [PHP] IPs comparing

2002-11-27 Thread Jason Wong
ething like: if (strstr($USER_IP, '192.168.0.')) { do_something(); ... -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* A memorandum i

Re: [PHP] FTP and security

2002-11-27 Thread Jason Wong
ave set up known_hosts and authorized_keys. But the above > is the result when I run scp as user 'apache'. Here's what I've used before and it works for me: In the HOME directory of the apache user I have the usual .ssh/known_hosts file. Then in php, simply: shell_exec(&

Re: [PHP] max file size on uploading files

2002-11-27 Thread Jason Wong
On Thursday 28 November 2002 02:40, Nick Wilson wrote: > * and then Jason Wong declared > > > On Thursday 28 November 2002 02:02, Nick Wilson wrote: > > > Hi all, > > > > > > I must be missunderstanding something here, I have this in an php > > >

Re: [PHP] Test links?

2002-11-29 Thread Jason Wong
ds I've tried, so would > like to see if anyone has a proven method for doing this. Why don't you briefly summarise what methods you have tried? That way people won't reply with methods that you already know of. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz

Re: [PHP] Upload wont work, OS X

2002-11-29 Thread Jason Wong
On Saturday 30 November 2002 06:42, magnus nilsson wrote: > It works, partially. I can upload the file, but it's named "array". print_r($_FILES) to see what it contains and how you can use it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Soft

Re: [PHP] Quota function

2002-11-30 Thread Jason Wong
"; } IOW please elaborate on what you're trying to do. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Writing about music is like dancing

Re: [PHP] Test links?

2002-11-30 Thread Jason Wong
use of file(). It should be the most reliable indicator of whether or not a link is valid. Using ping on it's own doesn't really help much. A server may be configured to ignore ping requests. And even if a server responds to a ping request it doesn't mean the webserver is up and runnin

Re: [PHP] Test links?

2002-11-30 Thread Jason Wong
sure you have error reporting set to an appropriately high level). file() implicitly opens and closes the file for you so no need for fclose(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intrane

Re: [PHP] Function passed as argument to function

2002-11-30 Thread Jason Wong
. I > want to the output of list_writings() to be an argument for std_layout(). Hmm, what's the problem then? Functions take any valid expressions as arguments. If list_writings() returns a valid expression then you should have no problems at all. -- Jason Wong -> Gremlins Associates -&

Re: [PHP] Function passed as argument to function

2002-11-30 Thread Jason Wong
s. 2) How did you conclude that? Did you check that list_writings(poetry)/list_writings($poetry) gives the correct result? IE echo list_writings(poetry)/list_writings($poetry) ? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * We

Re: [PHP] Test links?

2002-12-01 Thread Jason Wong
s by adding an * before the result variable > > *$fp = fopen($linkdata['linkurl'],"r"); I think you mean '@': $fp = @fopen($linkdata['linkurl'],"r"); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software S

Re: [PHP] Guestbook

2002-12-01 Thread Jason Wong
of: $count = 0; while ($row(mysql_fetch_array($result_id))) { $count++; echo "Entry $count"; ... ... } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applicat

Re: [PHP] Going Mad

2002-12-01 Thread Jason Wong
the "DocumentRoot" line in httpd.conf. You did not say exectly > > what error you were getting, I'd assumed that you were just seeing the > > source of your file and that the only problem was php not parsing it. > > Presumably you were getting "Document not found

Re: [PHP] strange parse error at EOF

2002-12-01 Thread Jason Wong
error as when I visit the page, and I can't find any error looking > through the file ("/,/; etc.). Check for matching ',", {, (, [ and missing ; -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting

Re: [PHP] How do I include specific files?

2002-12-02 Thread Jason Wong
e using: ini_set("include_path", "/new/path"); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Pardon me while I laugh. */ -- PHP Gene

Re: [PHP] re: ini_set() / Jason Wong / dynamically setting this?

2002-12-02 Thread Jason Wong
On Tuesday 03 December 2002 01:20, Matt Babineau wrote: > Hi everyone: > > > > I just read the reply from Jason Wong pretty much just about my > question. Using the ini_set() command at the top of all my pages I think > would work out ok, but when I upload my pages to

Re: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Jason Wong
On Tuesday 03 December 2002 02:34, Jonathan Sharp wrote: > also take a look at hord-imap (http://www.hord.org) That's horde with an 'e' on the end, it's silent but it's still there ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softwar

Re: [PHP] Need advice on downloading files and databases

2002-12-02 Thread Jason Wong
link to a file > on a remote server if the file isn't in the root directory? Yes. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* ... My pants just we

Re: [PHP] hiding php

2002-12-02 Thread Jason Wong
sponse to your original question, yes you can run asp on apache. google -> "asp apache" would have told you the answer is less than 1 second. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Interne

Re: [PHP] Date problem

2002-12-03 Thread Jason Wong
e is easy, use the BETWEEN clause in your SELECT statement. Consult manual for details. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Intuition, however ill

Re: [PHP] mail with CC and BCC

2002-12-03 Thread Jason Wong
: . CC: [EMAIL PROTECTED] BCC: [EMAIL PROTECTED]" Headers need to be separated by "\r\n". But it is much more convenient to use a ready-made class instead ... > I try severals classes I have found (PHP Classes), no good result ! ... try phpmailer (www.phpc

Re: [PHP] MySQL Server

2002-12-03 Thread Jason Wong
rver with IIS > 5, PHP4, and MySQLmax 3.23.53. I am by no means experienced in setting > up any of these items, but my simple question is, how do I determine the > name of the MySQL server so I can get PHP to connect to it? If they're all on the same server use 'localhost'

Re: [PHP] There Has to be an easier way (Multidimensional Array_

2002-12-03 Thread Jason Wong
ot;Address: {$value['address']} State: {$value['state']} Zip: {$value['zip']}"; } For a single address use: NAME="address[address]" NAME="address[state]" NAME="address[zip]" And no need to loop, just use the values

Re: [PHP] Help with session variables

2002-12-03 Thread Jason Wong
using: unset($_SESSION['step']) If register_globals is enabled THEN you use the session_register(), session_unregister() functions. In which case in your examples above, the use of extract($_SESSION) is meaningless, and you need to session_register('step'), then $step = 2.

Re: [PHP] Re: Show Folder Contents in Form

2002-12-03 Thread Jason Wong
while (list(,$filearr) = each($files)) > { > echo " value=\"".$filearr["file"]."\">".$filearr["file"]."".$filearr["time"]; > } > echo ""; > } >?> It's all very well

Re: [PHP] formating numbers & date

2002-12-03 Thread Jason Wong
On Wednesday 04 December 2002 08:29, Jeff Bluemel wrote: > ... but the date format doesn't seem to > allow me to pass it a date. Your code? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting

Re: [PHP] Prevent storing data when reload

2002-12-03 Thread Jason Wong
In stupid browsers like IE and Mozilla it _forces_ you to repost the data. IOW the back button doesn't really go back, to the previous state, like what the specs say it should do. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * We

Re: [PHP] fopen over a network

2002-12-04 Thread Jason Wong
n't know about "file://". If the file is on your webserver then just specify the absolute path to the file. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Appli

Re: [PHP] ini function like ini_set and ini_alter

2002-12-04 Thread Jason Wong
auto_prepend_file', $path.'systemVariables.php')) You can't set the auto_prepend_file value at runtime -- auto_prepend has (should have) already taken place by the time your script is run! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] Creating dynamic names for images

2002-12-04 Thread Jason Wong
te names for the images and dont ever have to worry about if this > name exists and with out having to got to the trouble of asking the user > to change tha name of the file. > > So dose some one have a nice litle solution for this problem. uniqid() -- Jason Wong -> Gremlins Ass

Re: [PHP] Re: Ping on Win32

2002-12-04 Thread Jason Wong
On Thursday 05 December 2002 04:08, Christopher J. Crane wrote: > This is the output I get and you can see that on the lines where the loss > is 0% it still says 100% > > if($Results2 = "100% loss") { print " Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * W

Re: [PHP] Send PHP results in email

2002-12-04 Thread Jason Wong
;tseem to figure out how to mail it. I > know I need to make all of this a variable to pass to my mail script, but > how ? My mail script work fine if I define $body and send that but I can't > seem to do that with this code. In your while loop, instead of (or as well as) using echo

Re: [PHP] Struggling with code

2002-12-04 Thread Jason Wong
quot;UPDATE $table_name > SET > name = \"$name\", > lname = \"$lname\", > mobil = \"$mobil\", > email = \"$email\", > url = \"$url\", > WHERE id= \"$id\" > "; > > $resul

Re: [PHP] Max File Size

2002-12-04 Thread Jason Wong
to reset upload_max_filesize to greater > than 2M. You mean you set it in php.ini and phpinfo() reports something different? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

Re: [PHP] Struggling with code

2002-12-05 Thread Jason Wong
() after each of your mysql_*() functions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Experience is not what happens to you; it is w

Re: [PHP] How to create user in mySQL ?

2002-12-05 Thread Jason Wong
ection - if try with old user and password - can > get connected > > what's wrong ? Why do people insist on asking MySQL questions on a PHP list? search for "flush privileges" on the MySQL website. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Soft

Re: [PHP] Struggling with code

2002-12-05 Thread Jason Wong
sy but works. Messy indeed ;) Why not $url = addslashes($url) beforehand THEN use it to construct the query? > Oh, and stripslashes on the output too. No need for stripslashes() when _retrieving_ from the db. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] ini function like ini_set and ini_alter

2002-12-05 Thread Jason Wong
case, the correct way to specify php options in a .htaccess file is: php_value auto_prepend_file "C:OPENFEDRA\Apache\xxx\xxx\xxx.php" NB there should not be an '='. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] Looping Addition

2002-12-05 Thread Jason Wong
han to ask? BTW make sure that none of $num is zero. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The longest part of the journey is said to be the p

Re: [PHP] Need Redirection Trick...

2002-12-05 Thread Jason Wong
recting, why output anything at all? or 2) Use the output buffering functions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Do not drink coffee

Re: [PHP] md5 question

2002-12-06 Thread Jason Wong
(practically) any size of string as input and returns a 32 char string. So you give it a 1MB string and in return you get a 32 byte string -- how on earth are you going to reverse this process and get your original 1MB string from your measly 32 byte string? -- Jason Wong -> Grem

Re: [PHP] ezmlm

2002-12-06 Thread Jason Wong
On Friday 06 December 2002 18:18, Randum Ian wrote: > Sorry to be off-topic but has anyone got any good resources on setting up > exmlm? google has -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] $_FILES associative array

2002-12-06 Thread Jason Wong
me'] The temporary filename of the file in which > the uploaded file was stored on the server Hmm, just print_r() the damn thing and see what it contains ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting *

Re: [PHP] Updating int4 field with multiple values

2002-12-06 Thread Jason Wong
; > Any suggestions will be greatly appreciated. Am I missing something or are you really trying to insert non-digits into an INTEGER field? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] Installation of PHP with gd support

2002-12-06 Thread Jason Wong
On Friday 06 December 2002 23:18, [EMAIL PROTECTED] wrote: > Hi list, > > anybody here who knows a HowTo of installing PHP with gd support? If gd libraries was installed in /usr/lib then use "--with-gd=/usr". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Ope

Re: [PHP] String to an Array

2002-12-06 Thread Jason Wong
u can actually treat $str "like" an array so > > $str[0] > > would be "i". This isn't officially endorsed anymore. You should use $str{0} instead. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Des

Re: [PHP] Cookies help please

2002-12-06 Thread Jason Wong
er want to log on, or have a session or cookie allready > if(isset($_SESSION['ssun']) || isset($_COKKIE["ssun"]) || -^ Shouldn't that be $_COOKIE?? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] mail() problems...

2002-12-06 Thread Jason Wong
ing on the same machine as your webserver. Otherwise try using whatever SMTP server you're using to send mail from your mail client. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Int

Re: [PHP] redirect URL

2002-12-06 Thread Jason Wong
On Saturday 07 December 2002 04:26, 1LT John W. Holmes wrote: > >I don't can redirect my page to new url > >please help me > > > >Carlos Alberto Pinto Hurtado > > I posted the answer on my web page. Can you redirect the answer to the list so we can all see

Re: [PHP] Date again

2002-12-06 Thread Jason Wong
y for a > same position, on the same day and during the "shift" of the first one that > applied? Check the archives, there was a thread in the last couple of days about "Checking for Overlapping Dates". The same principles should apply so it may be useful reading. -- Jaso

Re: [PHP] mail() problems...

2002-12-06 Thread Jason Wong
usion was. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Reply hazy, ask again later. */ -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] save file from outside url

2002-12-07 Thread Jason Wong
e script creates a file containing only > "427" on the server. Any ideas why or what I can do to correct this? Hmm, I don't see how the above code can make the remote image *display* your browser. The code itself looks OK, are there some parts of the code that you haven't

Re: [PHP] save file from outside url

2002-12-08 Thread Jason Wong
gt; if (!$file) { > > > echo "Unable to open remote file.\n"; > > > exit; > > > }else{ > > > while (!feof ($file)) { > > >$line = fread ($file, 1028); > > >fwrite($fc,$line); > > > } > > > } > > &

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Jason Wong
ine 2 > > Here is a copy of the code I am using: > > > $link = mysql_connect("localhos" , "username" , "password") > or die("Couldn't Connect."); > ?> ... assuming that the above really is a typo and you _are_ us

Re: [PHP] Uploading images to MySQL BLOB column

2002-12-09 Thread Jason Wong
want to also every article to has its own > image showed above. I thought that it could be a could to upload the > image to the blob column in database. > Can anyone help how to save uploaded image in blob and how to > retrieve it from the database and show in web page. goog

Re: [PHP] re-compiling php4

2002-12-09 Thread Jason Wong
able-sockets For best results when recompling. Completely remove the old source directory then untar a fresh new copy. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

Re: [PHP] save file from outside url

2002-12-09 Thread Jason Wong
ss the image creation function a variable for the filename it > tells me "invalid filename", although I am echoing it out right before > and it looks perfect. Any thoughts? Could you show the (relevant) parts of your updated code? -- Jason Wong -> Gremlins Associates -> www

Re: Re[2]: [PHP] Output page cut off after 7000 characters

2002-12-09 Thread Jason Wong
Well that's a pretty serious error. Basically, what it means is that httpd process that was running your script dieded (and under normal circumstances it shouldn't happen). If it's a repeatable bug then you should consider filing a bug report --> http://bugs.php.net.

Re: [PHP] How to test php.info from command line

2002-12-09 Thread Jason Wong
p.txt > > Oliver Etzel > > .eu - domain are coming soon > www.t-host.com Or simply #php -i It would be nice if there was a text-only version without all the HTML gunge. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrator

Re: [PHP] update query based on array

2002-12-09 Thread Jason Wong
s values > to the data above as well. Name your rows something along the lines of: Then to process: foreach ($rows as $row) { echo "$row['category'], $row['rank'], $row['rankid']"; } -- Jason Wong -> Gremlins Associates -> www.greml

Re: Fwd: RE: [PHP] Odd Strpos Behavior

2002-12-09 Thread Jason Wong
]' as your delimiters, just change the regex accordingly -- and don't forget that '[', and ']' needs to be escaped. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: Re[2]: [PHP] Script not working from one computer

2002-12-10 Thread Jason Wong
a plain old login script, or is it one which uses javascript to MD5 the password? If the latter, you may want to check you've enabled javascript. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & In

Re: [PHP] Resize an image from URL

2002-12-10 Thread Jason Wong
gif) No. PHP is good, but not *that* good. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Common sense and a sense of humor are the same thing, moving at dif

Re: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Jason Wong
p.net/manual/en/configuration.directives.php#ini.register-glob >a ls > > (php_flag register_globals = ON;) i think. Can't be done at run-time. See table in manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] fwrite()ing predefined variables

2002-12-10 Thread Jason Wong
output I get in the target file is this: > 200212101552localhost#xxx#yyy Because some pre-defined variables aren't pre-defined anymore. Read the variables section of the manual or use phpinfo() to see which really are pre-defined. -- Jason Wong -> Gremlins Associates -> ww

Re: [PHP] Select drop-down box overflow?

2002-12-11 Thread Jason Wong
la, IE, Opera all exhibit this problem (under Windows at least). Can't you split your select box to some manageable proportions? Select state first, then show the list of counties within that state? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syst

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Jason Wong
pass these vars via the mentioned ways. > > What else does PHP offer? Are there any other methods? Can I define these > vars as some kind of "global variables" in any ini-file? Use sessions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] Rename an upload

2002-12-11 Thread Jason Wong
orary] uploaded file? Shouldn't you be renaming the above copied file? In fact you should be able to do it in a single step by copying the uploaded file to its new destination and new filename. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integ

Re: [PHP] Rename an upload

2002-12-11 Thread Jason Wong
'userfile']['tmp_name'])) { copy($HTTP_POST_FILES['userfile']['tmp_name'],"http://www.violasystems.c om/images/$category"); That should do it in a single step. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softw

  1   2   3   4   5   6   7   8   9   10   >