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 do

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

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?

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

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

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.

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

[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? $xmlstring = "JoeSmithunknown"; $domdoc = new DomDocument(); $domdoc->loadXML($xmlstring

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

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

2004-05-22 Thread Kenneth Schwartz
if you have any 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... > http://dev.mysql.com/doc/mysql/

[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

[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

[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++ pro

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

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

[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: http://www.php.net/unsub.php

[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 line"php_gd2.dll", i've followed this but the

[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

[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. $db_host = "localhost"; $db_port = "3306"; $db_name = "test"; ... ?> Kenneth -- PHP General Mailing List (http://ww

[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

Re: [PHP] File upload???

2003-02-11 Thread Kenneth Suralta
Can anybody help me with file uploading, again... I tried uploading a file through... but, on project_save.php, the $HTTP_POST_FILES["project_file"]["size"] is zero(0) , and $HTTP_POST_FILES["project_file"]["tmp_name"] is an empty string. i checked, $HTTP_POST_FILES["project_files"]["error"

[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... but, in save_upload.php, there is no $HTTP_POST_VARS['userfile'], or $HTTP_POST_VARS['userfile_name'], etc... Can anybody help me with this... -- PHP General Mailing List (http://

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

2003-01-25 Thread Kenneth Lerman
a bug in my 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 Newto

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 test

Re: [PHP] $_POST vars problem

2003-01-20 Thread Kenneth Brill
works 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

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

Re: [PHP] where's waldo

2002-09-28 Thread Kenneth Love
t really mean to imply anything 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. > >

[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? -- ->-> http:

[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

[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

[PHP] session garbage collection & save path

2002-03-04 Thread Kenneth Chau
Is there any 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] #!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 direc

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

2001-03-31 Thread Kenneth R Zink II
'make' => array('Make','12','keyword','1:30','select','ChevroletGMCIsuzuOldsmobile','text'), Can someone please give me some pointers. =) Thanks. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '

[PHP] Fopen help

2001-03-22 Thread Kenneth R Zink II
So far all I can get it to do is the default response. Can someone point out what I'm doing wrong or tell me how to see what the contents of a resource id is please? Old URL = http://www.s-series.org/htm/firestorm/firestorm.htm urlcheck = Resource id #4 Fopen Did Not Work New URL = http://www.s-

Re: [PHP] fopen to validate a URL

2001-03-15 Thread Kenneth R Zink II
tp://www.warrenbowley.com","r") - Bad file descriptor in /var/www2/html/members/datacopy.php on line 73 fp = URL IS NOT VALID New URL = http:// Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!! http:/

[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.""; $fp = @fopen($url,"r"); if ($fp){ echo "Valid URL"; }else{ echo "URL IS NOT VALID"; $url=&qu

[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. Ken

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

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#

[PHP] Problem with apostrophes!!

2001-03-12 Thread Kenneth R Zink II
d, it just 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

[PHP] Implode?

2001-02-25 Thread Kenneth R Zink II
nd move the 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 !

[PHP] I'm confused about Regular Expressions.

2001-02-21 Thread Kenneth R Zink II
I was just reading at DevShed on how to use Regular Expressions, but now I'm even more confused. Can someone please explain how I would use a REGEX to determine in and uploaded file is a .gif or .jpg file? Thanks. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 2.8L TB

[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

[PHP] No result - need advice.

2001-02-20 Thread Kenneth R Zink II
_array($result); echo "id = ".$id.""; $pic1 = $id.$picture1_name; $pic2 = $id.$upicture1_name; echo "pic1"; if($picture1 == 'none'){ $pic1="na.gif"; } echo $pic1.""; echo "pic2"; if($upicture1 == 'none'){ $pic2=

[PHP] Can PHP execute a refresh to a new page?

2001-02-16 Thread Kenneth R Zink II
Can PHP execute a refresh to a new page? If so, how? Thanks. 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

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

2001-02-14 Thread Kenneth R Zink II
ce for 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

[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 &#x

[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

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