Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Kenneth Sande
Ashley Sheridan wrote: On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W:\Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL table. Can I

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-10 Thread Kenneth Sande
Ashley Sheridan wrote: On Mon, 2010-01-11 at 02:52 +0200, Kaya Saman wrote: Hi, I am hoping someone can help me?? I currently run Fedora 11 on an Apple PowerMac G4 and recently performed an upgrade to it which rendered my site completely unsee able for a while but then after re-saving

[PHP] getting base domain and sub domains from url?

2006-09-16 Thread Kenneth Andresen
Hello all, I am trying to extract base domains and sub domains from url's, and expect there to exist something to do this already. I used the parse_url($url) to get the host variable. My thought is to use $domain_elements[]=array_reverse(explode('.',$url)); then simply check $domain_element[0]

Re: [PHP] getting base domain and sub domains from url?

2006-09-16 Thread Kenneth Andresen
, but the link you gave me is good enough for what I needed it for. Again thank you! Stut wrote: Kenneth Andresen wrote: What I would like to know is if there are some lists of all these base domains, or maybe some function already doing what I would like to do? A full list of gTLDs

[PHP] Re: Problems getting the nodeName with DomDocument

2005-12-23 Thread Kenneth Andresen
Thanks Rob, that solved the problem for me! Rob Richards wrote: Kenneth Andresen wrote: I am having problems with the following functions where my return simply is #text Joe #text Smith #text unknown, it should have read firstname Joe lastname Smith address unknown What am I doing wrong

[PHP] Problems getting the nodeName with DomDocument

2005-12-22 Thread Kenneth Andresen
I am having problems with the following functions where my return simply is #text Joe #text Smith #text unknown, it should have read firstname Joe lastname Smith address unknown What am I doing wrong? ?php $xmlstring =

Re: [PHP] utf-8 in mysql but not outputting as utf-8 on web

2005-12-22 Thread Kenneth Andresen
Hello, why not simply convert the text to html mb_convert_encoding($string, 'html', 'utf-8'); Best regards, Kenneth jonathan wrote: I'm inserting some info into a mysql table which has the charset set to utf-8. When I do a select via the command-line from mysql, it looks like

Re[3]: [PHP] utf-8 in mysql but not outputting as utf-8 on web

2005-12-22 Thread Kenneth Andresen
Hello Jonathan, You probably don't have php5 compiled with mbstrings enabled, if you have complied php5 with iconv instead you can try iconv('utf-8' , 'html', $string); I don't know what to recommend if you don't have any of these complied into php5. Best regards, Kenneth -- jonathan

[PHP] Curl Content-Encoding header?

2005-12-08 Thread Kenneth Andresen
Hello all, I have been trying to get the Content-Encoding header from Curl, but have yet to manage. Using curl from command line I have no problems simply using: curl --compress page_to_get -o local_page_copy -D dumpheader.txt The data gets compressed and uncompressed also in PHP, I am just

[PHP] OS/PHP Picnic -- Wilmington, NC

2004-05-22 Thread Kenneth Schwartz
questions/comments/etc. Thanks! Kenneth Schwartz -- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Search MySQL and Match Whole Words

2004-04-22 Thread Kenneth Dombrowski
On 04-04-22 19:48 -0400, Matt Palermo wrote: That will work if there is only one word in the column I'm searching, but the columns I'm searching are in paragraph form, so the = will not work there if I want to just match one word from the whole paragraph...

[PHP] how to convert array into integer

2004-03-13 Thread Kenneth
To all, I have an Array ( [0] = 2 [1] = . [2] = 2 [3] = 0 [4] = 8 ) but i want to convert it into integer 2.208 in order to use it to plot graphhow can i convert it? thx, Kenneth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting message from file

2004-03-09 Thread Kenneth
. I've tried to use fgets() and then convert them from string back into array...but it seems doesn't work~ Thanks, Kenneth Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Monday 08 March 2004 09:04, Kenneth wrote: I have a problem on getting content from a data file

[PHP] PHP support C++?

2004-03-08 Thread Kenneth
Hi all, Does PHP support C++ language? If yes, how can it be converted? The case is, I've use C++ to make a function (to get data from file and convert it from char type to int type), how can i import the function/variables and use it in PHP? Thanks, Kenneth -- PHP General Mailing List (http

[PHP] Image creation

2004-03-07 Thread Kenneth
Dear all, Thanks Kilimajer's help and I can finally build-in the GD library. But when i use the imagecreate function for jpeg, don't know why there are some unknown wordings appears. Sth like the following: 1oACEEEO¡ÑOUUaaceeeno Don't know what's happening, I just use simple

[PHP] getting message from file

2004-03-07 Thread Kenneth
Dear All, I have a problem on getting content from a data file (data.txt). I have many numbers in the file...all of them are about 2.XXX, and I need them to plot a graph. But I just can't read them out as a integer. I've used C++ program to read them before, but i don't know how to import C++

[PHP] Image

2004-03-03 Thread Kenneth
Hi everyone, I would like to use the function 'image' in php~I know that I have to install GD before using itI've downloaded the zlib and lpng files...but how can I install them?? and may it ask for a simple testing function to test if the GD works? Thanks, Kenneth -- PHP General Mailing

[PHP] Image

2004-03-03 Thread Kenneth
To all, I have a problem on using the function image. I've downloaded the zlib and lpng files...but i don't know how to install them. Also, I've heard that for latter version PHP, there is already GD library, what i have to do is just to uncomment the linephp_gd2.dll, i've followed this but the

[PHP] function 'image'

2004-03-03 Thread Kenneth
dear all, I have a problem on using image function. I've download the zlib and lpng file as it was told, but i still can't use the image function. How can I install these files into php?? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] about image

2004-03-03 Thread Kenneth
dear all, additional to the previous post, I was told that for later version of php, there is already GD with it, and what should i do is just uncomment the php_gd2.dll line...i've tried this also, but it still doesn't work, how can i solve this and use the function imagethanks -- PHP

[PHP] Image

2004-03-03 Thread Kenneth
hello everyone, I've some question about using image function. I've followed the instruction and downloaded the zlib and libjepeg-6b, but how can i install them?? Some said that for new version of php, what i need to do is just uncommend the ini-file, but i just find it still doesn't work. Thanks,

[PHP] Include files

2003-02-25 Thread Kenneth Suralta
How do I include external library files in PHP??? I would like to put the lines that are repeated in each php files, in a separate file. e.g. ?php $db_host = localhost; $db_port = 3306; $db_name = test; ... ? Kenneth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] File handling

2003-02-13 Thread Kenneth Suralta
How do i delete all file in a directory??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload???

2003-02-11 Thread Kenneth Suralta
Hello everyone! =) Can anybody help me with file uploading with PHP??? i tried uploading a file through... form action=save_upload.php method=post input type=file name=userfile input type=submit /form but, in save_upload.php, there is no $HTTP_POST_VARS['userfile'], or

Re: [PHP] File upload???

2003-02-11 Thread Kenneth Suralta
Can anybody help me with file uploading, again... I tried uploading a file through... form enctype=multipart/form-data action=project_save.php method=post input name=project_file type=file input type=submit value=ok /form but, on project_save.php, the $HTTP_POST_FILES[project_file][size] is

[PHP] PHP 4.3.0 - Apache 2 Problem - Missing phpinfo() Info

2003-01-25 Thread Kenneth Lerman
configuration? What, if anything, am I doing wrong? Thanks, Ken Kenneth Lerman[EMAIL PROTECTED] Systems Essentials Limited Fax: (203)426-9138 55 Main Street Voice: (203)426-4430 Newtown, CT 06470

[PHP] $_POST vars problem

2003-01-20 Thread Kenneth Brill
I just changed my server to SSL, everything worked before that. now if I have a form with an input box (named searchstring for example) with a value of TEST, when that form is posted (submitted) I get the following: foreach($_POST as $key = $value) { echo [POST]Key: '$key'; Value: '$value'br\n;

Re: [PHP] $_POST vars problem

2003-01-20 Thread Kenneth Brill
perfectly, HOWEVER if I just enter data and hit return then it messes up. That make no sence to me but maybe someone out there can put it together. thanks Chris Shiflett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... --- Kenneth Brill [EMAIL PROTECTED] wrot

Re: [PHP] Getting https-page

2003-01-20 Thread Kenneth Brill
I would just read up on the CURL functions and either use them or get CURL and use it externally. Chris Shiflett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... --- Martin Thoma [EMAIL PROTECTED] wrote: How can I get an https-page? I have never tested this

Re: [PHP] where's waldo

2002-09-28 Thread Kenneth Love
ng about people's honesty and so forth... I just wanted to say that validating (anything) on the client side is not normally a good (and reliable) idea. Of course, as always mentioned, validation on the server side is always better. - E Kenneth Love [EMAIL PROTECTED] wrote in message new

[PHP] where's waldo

2002-09-25 Thread Kenneth Love
hi all. i'm interested in creating a php game that generates a page of random (ish) images, one of which is waldo (or the like). when the player clicks on waldo, they're taken to the next, slightly harder level. anyone think that sounds fun? any pointers, tips, advice, criticisms? -- --

[PHP] session garbage collection save path

2002-03-04 Thread Kenneth Chau
way to change this (within a script, not php.ini - i have no rights to do that!) Thanks a bunch, Ken -- Kenneth Chau Web Developer http://www.gizzar.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL Query

2002-03-04 Thread Kenneth Chau
Jason Whitaker wrote: OK, I need to know is there a place where i can find out how to pull information(TEXT) from a MySQL DB table and print where i place a variable in a php page? I have NO idea what your question is did you just want to echo something from your MySQL db table inside a PHP

[PHP] Re: session garbage collection save path

2002-03-04 Thread Kenneth Chau
STOOPID me !! I forgot to chmod the save path That's why it didn't work! bah! Let this be a lesson for all - chmod everything correctly :) Best regards! -Ken Kenneth Chau wrote: So, it says in the manual that gc doesn't occur if the save path depth is more than 2 This is true in the manual

[PHP] #!interpreterDirective and Setting cookies

2001-07-25 Thread Kenneth R. Martinek
Hello all, I'm having a problem setting cookies, when running code using the explicit interpreter directive (#!\php\php.exe). The problem is that PHP cant set cookies because bytes are sent back to the client before the setcookie() (presumably \n or \r 's), but only when the interpreter

[PHP] Can a WHILE be done inside an array?

2001-03-31 Thread Kenneth R Zink II
onIsuzuoptionOldsmobile','text'), Can someone please give me some pointers. =) Thanks. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 Chevy S-10 Blazer (FireStorm) .

[PHP] fopen to validate a URL

2001-03-15 Thread Kenneth R Zink II
How would I use FOPEN to validate a URL? here is what I already have and it's not working properly. $url=$row[url]; echo "Old URL = ".$url."br"; $fp = @fopen($url,"r"); if ($fp){ echo "Valid URLbr"; }else{ echo "URL IS NOT VALID"; $url="

[PHP] e-mail varification problems.

2001-03-14 Thread Kenneth R Zink II
a look at the results, check out http://www2.ripcon.net/members/datacopy.php I'm stumped. Can someone shed light on this? Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!! http://www.s-series.org/htm/windstorm/proj

[PHP] exist?

2001-03-14 Thread Kenneth R Zink II
How would I go about checking to see if a file exist from php? I didn't find anything on php.net when I did a search for exist. basically, I'm trying to accomplish this. if $file exist { do something; }else{ echo "$file doesn't exist"; } thanks in advance. Kenneth R Zink II

[PHP] Problem with apostrophes!!

2001-03-12 Thread Kenneth R Zink II
accepted it. Help!! I need to know A.S.A.P. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!! http://www.s

Re: [PHP] Problem with apostrophes!!

2001-03-12 Thread Kenneth R Zink II
Ok, I'm pretty sure I need to use the "addslashes" function, but I'm not sure how to implement it. The 2 variables that I would need to addslashes are $sire and $dam. can someone please help me, this is new to me. Thanks. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '8

[PHP] Implode?

2001-02-25 Thread Kenneth R Zink II
e old data to the new site. Thanks. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!! http://www.s-seri

[PHP] No result - need advice.

2001-02-20 Thread Kenneth R Zink II
pic2='$pic2' WHERE id=$id"; exec("cp $picture1 /var/www/html/members/images/$pic1"); exec("cp $upicture1 /var/www/html/members/images/$pic2"); echo $pic1."p"; echo $pic2."p"; echo "headmeta HTTP-EQUIV=\"Refresh\" CONTENT=\&

[PHP] How do I limit a file size?

2001-02-20 Thread Kenneth R Zink II
I want to limit uploaded files to $250k. The incoming files should be images, so I also want to limit the files to .gif or .jpg files. How would I go about doing this? Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works

[PHP] how do I do file maintenance with PHP?

2001-02-14 Thread Kenneth R Zink II
r any help. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI DIS !!! http://www.s-series.org/htm

[PHP] MySQL email function

2001-01-25 Thread Kenneth R Zink II
How would I go about pulling e-mail addresses from a database and sending and e-mail using that list? Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 3.4L

[PHP] newbie

2001-01-12 Thread Kenneth R Zink II
Hi everyone, My name's Kenneth Zink and I'm a newbie here. I just started working with PHP on Wednesday, but with the help of John Guynn, I think I'm getting the hang of it pretty quickly. I joined the list so that I have more resources available to me as I continue learning how to program

[PHP] How do I store a pic?

2001-01-12 Thread Kenneth R Zink II
How do I store a jpg within a table? I want for a user to be able to pull a jpg from either their HD and store it in a table with some other information for a classifieds section. That way when the ad is deleted, the picture goes with it instead of remaining on my HD. Kenneth R Zink II