Re: [PHP] Problem w/ reading a txt file.

2005-09-13 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Problem w/ reading a txt file. The error I get is Warning: opendir(/home/pudlz/public_html ): failed to open dir: No such file or directory Here's my code:: $main = file('folders.txt'); $counter = count($main); for($i=0;$i$counter;$i++) { if

Re: [PHP] incrementing in a for loop

2005-09-13 Thread Burhan Khalid
Peppy wrote: I've searched online and am unable to find how to increment by more than one in a for loop. for ($i = 1; $i = 6; $i++) { Is it possible to increment $i by 5? Everyone has responded with the correct answer, but you do realize that this loop will only run twice? It will print 1,

Re: [PHP] Variables not available

2005-09-12 Thread Burhan Khalid
Dotan Cohen wrote: I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get variables are not available in my scripts. For instance, in file.php?foo=bar the variable $foo is empty. Same thing for variables passed in forms (get or post), which is how I came across this. What could

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Burhan Khalid
Nahalingam N. Kanakavel wrote: hi all, If any scripts available to draw a list view. Plz help me, by giving some links or scripts avilable with you. What is a list view? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date/Time Display for recurring monthly event

2005-09-11 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Having a heck of time getting anything to work, can anyone make a suggestion to the following. I need a webpage that displays 5 recurring meeting dates, i.e. the second Wednesday, Thursday, and Friday of each month in five different locations. ?php echo Current

Re: [PHP] Date/Time Display for recurring monthly event

2005-09-11 Thread Burhan Khalid
, Burhan [EMAIL PROTECTED] -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Sunday, September 11, 2005 6:55 AM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Date/Time Display for recurring monthly event [EMAIL PROTECTED] wrote: Having

Re: [PHP] date and time conversion

2005-09-11 Thread Burhan Khalid
babu wrote: Hi, how to convert DD.MM.YYand HH:MM:SS into mysql date( '-MM-DD' ) and time format. I think the time is same as HH:MM:SS. [EMAIL PROTECTED] ~ $ php -r 'echo date(Y-m-d,strtotime(str_replace(.,/,12.12.05))).\n;' 2005-12-12 Hope that helps :) See http://php.net/date

Re: [PHP] Stripping control M character (^M)

2005-09-11 Thread Burhan Khalid
Philip Hallstrom wrote: Hello All, I'm having some issues with carriage returns. Specifically the control M character (^M). I have attempted to clean and validate the file I'm creating. Here's the code. while ($row = mysql_fetch_array($result)){ // assign and clean vars $artist =

Re: [PHP] Socket functions

2005-08-30 Thread Burhan Khalid
Philippe Reynolds wrote: Greetings, When I do an ifconfig in unix, I see the the IP address for the my ethernet. It follows something called inet. Would anyone know who to manipulate the socket functions to be able to extract the inet IP address fromt the eth0 section?? ?php

Re: [PHP] time and timestamp

2005-08-30 Thread Burhan Khalid
Jay Blanchard wrote: [snip] Now I am not worried about the time but I would like to know how to (i) sort the returned rows in order (latest first) add ORDER BY `yourdatefield` DESC to your SQL (ii) be able to extract the individual parts of the date and display them in UK format Have no

Re: [PHP] PHP GD and Unicode

2005-08-25 Thread Burhan Khalid
Louie Miranda wrote: But when i try it on a image, that has been created with GD. It does nothing. I just want to confirm, it what im doing with the fonts possible thru GD/Jpeg? Please help, if this aint possible. I think imight purchase the PDFLib instead to test the unicode support.

Re: [PHP] XML manipulation using PHP

2005-08-25 Thread Burhan Khalid
Anas Mughal wrote: Could someone please share with me sample code for: - Adding an XML node to an existing XML document. http://www.php.net/manual/en/function.domnode-append-child.php http://www.php.net/manual/en/function.dom-domnode-appendchild.php - Modifying the value for a given XML

Re: [PHP] explain to what's going with this piece of code.

2005-08-25 Thread Burhan Khalid
wayne wrote: When I run a script from a package I download, it always bombs out on this section. I think that its getting the wrong parameters when it tries to make the Connection. I use PostgreSQL as my DB.Moodle is the name of the database and the user is moodleuser. I do not have a password

Re: [PHP] Easier way to clean GET Variables ?

2005-08-25 Thread Burhan Khalid
Jasper Bryant-Greene wrote: Robert Cummings wrote: On Wed, 2005-08-24 at 23:12, Jasper Bryant-Greene wrote: Graham Anderson wrote: Is there a way to loop thru all of these GET requests by: putting the GET variables into an array processing the variable strings with trim/striptags/etc in a

Re: [PHP] Easier way to clean GET Variables ?

2005-08-25 Thread Burhan Khalid
Jasper Bryant-Greene wrote: Burhan Khalid wrote: Jasper Bryant-Greene wrote: Robert Cummings wrote: [snip] Still need to check isset() status unless you've disabled E_NOTICE which I don't advise since it's sloppy ;) Yeah, I usually would in a real script. Just slipped my mind when

Re: [PHP] imap_open hangs...

2005-08-22 Thread Burhan Khalid
Michael Baas wrote: Hi, I have a script which works fine for many users, but for some it doesn't. I've been able to narrow it down to the imap_open-Command which just hangs 'forever'. I have verified that the imap-extensions are available, but other than that I have no ideas what's going on

Re: [PHP] Problem between php4.4 and mysql

2005-08-21 Thread Burhan Khalid
Alex Scott wrote: Hi there, I discovered that our website was not working properly today (To my horror). Hosted on redhat enterprise 4. I think that there is a problem with php 4.4 talking to Apache mysql 4.1 as the php pages which do not talk to the DB are working but other php pages are

Re: [PHP] Hardware Detection

2005-08-20 Thread Burhan Khalid
Saenal M wrote: Hi, Can we get information about hardware on client's PC. (e.g. hard disk, processor, keyboard, etc).? And How? anyone knows? please reply back. No, this is not possible with PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Burhan Khalid
Tim Burgan wrote: Can I extend this.. On a live server I have PHP 4.1. If I upgrade to PHP 5, is something likely to stop working? 99% yes. Especially if you really mean 4.1.0 -- that's quite old. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP without php.ini

2005-08-14 Thread Burhan Khalid
Bagus Nugroho wrote: I was uncomment php_mysql.dll and added php_mysqli.dll, put edited php.ini as recommended, also added libmysql.dll on c:\winnt\system32. But it still doesn't work, it still generate cannot load mysql extension, Previously, I was edit system variables(edit Path

Re: [PHP] download snippet

2005-08-09 Thread Burhan Khalid
Roger Thomas wrote: Am looking for code snippet to download file. It should be able to detect mime-types. Thanks. http://www.php.net/manual/en/function.header.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class / app for reading web pages and storing in a mySQL DB

2005-08-09 Thread Burhan Khalid
Alan Milnes wrote: I'm interested in extracting a series of web pages from a Yahoo forum and storing them in a MySQL database so I can generate things like most number of posts etc. I've searched on Google but most of the links seem to be for email harversters! Anyone have any tips for

Re: [PHP] shell_exec(zip.. ?

2005-08-08 Thread Burhan Khalid
Sam Smith wrote: shell_exec(zip -r ddd ddd); // don't work safe_mode off, works from command line php. What could it be? You need to give the full path to zip. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Setting up a new box from scratch?

2005-08-08 Thread Burhan Khalid
Brian Dunning wrote: Hey all - I have an unused Pentium box here, recent, well loaded with RAM and HD. I want to turn it into a LAMP box. Never done that before; is there a preferred one-stop-shop installer CD or anything (easy - knock on wood)? It would be nice to end up with some kind

Re: [PHP] dynamically selecting a function

2005-08-08 Thread Burhan Khalid
Thomas wrote: Hi there, How can I do something like this: [snip - theoretical code] if( isset($step) ) echo step.$step() ) [/snip] $step would be an int (I would check that before) and then I would have all sorts of functions like step1(), step2() . etc. Use call_user_func().

Re: [PHP] mkdir, Shared Hosting?

2005-08-07 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: In a message dated 8/6/2005 10:59:44 P.M. Central Standard Time, [EMAIL PROTECTED] writes: As far as I know, it's not a shared hosting issue, but a permission issue. The site admin has not given the user under which your php scripts run permission to create

Re: [PHP] Can I retrieve a stored php session variable from within a javascript function?

2005-08-06 Thread Burhan Khalid
Mauricio Pellegrini wrote: Hi , I wonder if it's possible to retrieve the value from a php session variable from within a javascript function. Does anyone have any ideas about this? No. You cannot retrieve it, restore it, read it, send it, anything else. You can write it from PHP : echo

Re: [PHP] Average time spent on a page

2005-08-06 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Hi, How can i found out the average time users spent on a page. Anyone know a tutorial? Thanks in advance for your help !!! PLEASE ONLY SEND YOUR MESSAGE ONCE!!! Also, remember that google is your friend. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Sessions Issue

2005-08-01 Thread Burhan Khalid
On Jul 29, 2005, at 8:07 PM, Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or

Re: [PHP] what is this: dirname(__FILE__)?

2005-08-01 Thread Burhan Khalid
On Aug 1, 2005, at 3:18 AM, Robert Cummings wrote: On Sun, 2005-07-31 at 20:04, Sam Smith wrote: I don't recognize this something(__SOMETHING__) format. I know what it's doing but I don't know how it's doing it. Constants of the type __SOMETHING__ are historical constants for retrieving

Re: [PHP] Calendar program like on php.net

2005-08-01 Thread Burhan Khalid
On Aug 1, 2005, at 5:45 AM, Roger Thomas wrote: Quoting Jim Moseby [EMAIL PROTECTED]: I'd repost the link for you, but I've already deleted it. Sorry. Look back through the archives. JM I searched for 'Jim Moseby calendar' in the general and Dev mailing list but no go. Anty clue?

Re: [PHP] Date confusion

2005-08-01 Thread Burhan Khalid
On Jul 28, 2005, at 9:28 AM, Linda H wrote: Hi, I must admit I am surprised at the paucity of date and time functions in PHP. I have a date stored in a MySQL database in field of datatype date. PHP doesn't seem to have a function I can use to format it for print. I tried the following

Re: [PHP] Help needed in changing row color

2005-07-26 Thread Burhan Khalid
suma parakala wrote: Hi I am retrieving data from postgresql and displaying it in form of table in different rows. my problem is when check box is clicked i need to change the color of the row .agai when the check box is unclicked it should hold the old color. Can any one please help me

Re: [PHP] Re: Don't ejecute a sentence if a field is empty

2005-07-24 Thread Burhan Khalid
Jasper Bryant-Greene wrote: Jesús Alain Rodríguez Santos wrote: Hello I'm new: I need to know how can I stop a php sentence if my db is empty, for example I have writed a php sentence, if every fields from mmy db are full, there is no problem, but I delete every values from the all fields in

Re: [PHP] Session has new id on 'some' pages.

2005-07-19 Thread Burhan Khalid
Marek Kilimajer wrote: Andy Pieters wrote: Ok found the solution, seems like one page is on http://server.org.uk and the other on www.server.org.uk even though its the same server it generates a different session id! set the domain of the cookie to 'server.org.uk', it's the fifth

Re: [PHP] PHP from CLI with SAPI

2005-07-19 Thread Burhan Khalid
Fredrik Tolf wrote: Hi! I've begun to be more and more displeased with Apache lately, so I've been thinking of writing my own HTTP server instead. I still want PHP support, but writing a new SAPI for PHP seems like overkill. What's so bad about Apache? Therefore, is it possible to use PHP

Re: [PHP] Tracking a mobile phone

2005-07-19 Thread Burhan Khalid
Please add OT to the subject if the topic has nothing to do with PHP. OT = Off Topic. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-19 Thread Burhan Khalid
Rasmus Lerdorf wrote: Daevid Vincent wrote: Is there a way to get the name of a variable as a string? For example... Nope, not possible. Well ob_start(); echo '$var'; $contents = ob_get_contents(); ob_end_clean(); echo 'Variable Name is : '.substr($contents,strpos($contents,'$')+1);

Re: [PHP] Re: re-order a sql result

2005-07-18 Thread Burhan Khalid
Mark Rees wrote: Ross [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a query $query = SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%' Simply requery the database for each search. For example, this orders the results by surname from a-z $query = SELECT * FROM

Re: [PHP] not sure why form submission gives me error

2005-07-16 Thread Burhan Khalid
Edward Vermillion wrote: Bruce Gilbert wrote: Hello, I have a form on my site http://www.inspired-evolution.com/Contact.php produces this error on submission Parse error: parse error, unexpected T_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line 35 Well..

Re: [PHP] getimagesize not working on images from MYSQL

2005-07-16 Thread Burhan Khalid
timothy johnson wrote: $id = $_GET['id']; $query = SELECT * FROM myPhotos WHERE photoId='$id'; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $im = imagecreatefromstring($row[photoData]); $size = getimagesize($im);

Re: [PHP] connecting to MySQL from a Mac

2005-07-13 Thread Burhan Khalid
Bruce Gilbert wrote: Hello, I am trying to add a PHP search to my site and the read me file says to: 2. In the server, create a database in MySQL to hold Sphider data. a) at command prompt type (to log into MySQL): mysql -u your username -p Enter your password when prompted. b) in MySQL,

Re: [PHP] Two websites need to share part of onedatabase,suggestions please

2005-07-12 Thread Burhan Khalid
Chris W. Parker wrote: Robert Cummings mailto:[EMAIL PROTECTED] on Friday, July 08, 2005 5:25 PM said: Thus siteMask should have one of the following values: (1 1) == 2 // only site1 can use the product. (1 2) == 4 // only site2 can use the

Re: [PHP] file function

2005-07-11 Thread Burhan Khalid
Joseph Lee wrote: Hi, I tried file() in the following lines: ?php $authFile = file(/tmp/authenticate.txt); print authFile = $authFile; ? However, it only gave me authFile = Array What's wrong with this file function? I tried single quotes, but got the same answer, too. Nothing. You

Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler posted data...

2005-07-11 Thread Burhan Khalid
Rasmus Lerdorf wrote: [ snip ] A better option may be to just use mod_rewrite. Something along the lines of: RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)\.html$ $1.php [T=application/x-httpd-php,L] You should verify this with the mod_rewrite docs, but this should only rewrite a

Re: [PHP] constructors in PHP

2005-07-11 Thread Burhan Khalid
Alessandro Rosa wrote: Thanks to all for clear responses! So just a question now, why have not multiple constructors been implemented? Are there some security issues related to them ? As far as I know, its not a security issue, but a structure/design issue. -- PHP General Mailing List

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-10 Thread Burhan Khalid
Brian Dunning wrote: I am cross-posting this to the PHP and the MySQL lists because I'm not sure in which technology my solution will lie. I have a pretty busy PHP/MySQL site that executes the following query a lot: select count(*) as `count` from terms; My MySQL account was disabled by

Re: [PHP] imageconvolution

2005-07-06 Thread Burhan Khalid
xfedex wrote: Hi, Has anybody use this function? http://www.php.net/manual/en/function.imageconvolution.php I dont know what a matrix3x3 array is. This means three columns and three rows: x x x x x x x x x ^ Like that. And so, if someone has experience on random image generation, it would

Re: [PHP] Re: Templating engines

2005-07-03 Thread Burhan Khalid
Jay Blanchard wrote: [snip] and box of bending straws. [/snip] Nice. LMAO -- and now, back to the show. For those that really were looking for a xml-based templating enging, IBM's DW has one that you can download the source to. Its not PHP, but hey, its a start. Google for

Re: [PHP] Re: Templating engines

2005-07-03 Thread Burhan Khalid
Robert Cummings wrote: On Fri, 2005-04-29 at 23:55, Rasmus Lerdorf wrote: Robert Cummings wrote: I don't think that templates have a dependency between the number of pages using the template and an increase in the number of functions. In fact depending on the template, and the template

Re: [PHP] getting a filename [with no extension] out of a url

2005-07-02 Thread Burhan Khalid
Richard Davey wrote: Hello Graham, Friday, July 1, 2005, 12:54:42 AM, you wrote: GA if $_SERVER['SCRIPT_NAME'] give this GA /folder/folder/Library/php/filename.php $_SERVER['SCRIPT_NAME'] won't give you that, $_SERVER['SCRIPT_FILENAME'] would. SCRIPT_NAME would just give you

Re: [PHP] Moving PEAR installation (for self-contained class library)

2005-07-02 Thread Burhan Khalid
Andrei Verovski (aka MacGuru) wrote: Hi, I have a PEAR-related question. My class library using some PEAR packages, and I would like to make it self-contained, i.e. to be able to move it to a server (for example MacOS X) which do not have (and will not require) installation of any PEAR

Re: [PHP] Zeus Technology wins again!

2005-06-29 Thread Burhan Khalid
John Nichel wrote: SPAMMERS lose again! Off to /dev/null with you and your technology. We really need moderators on this list :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic pspell module, and adding new words to the list

2005-06-29 Thread Burhan Khalid
Dan Rossi wrote: Hi there, an internal client of ours requires spell checking in their textarea forms on names of people for searching thousands of records properly. What it needs to be able to do is add new names to the dictionary. The server its on is a few years old, it already has the

Re: [PHP] including the result of one query in another query

2005-06-27 Thread Burhan Khalid
Pedro Quaresma de Almeida wrote: Hi I have two databases, on for aeromodelistas (aeromodelling) and another for Códigos Postais (Postal Codes). I whant to do the following query SELECT CódigoPostal FROM Aeromodelistas WHERE CódigoPostal IN (SELECT distinct(CP4) FROM

Re: [PHP] Correcting contractions

2005-06-25 Thread Burhan Khalid
Dotan Cohen wrote: Ill I knew about, its I didn't. I didn't mean to put ill in there... Should I enter each contraction twice (for the capitalization), or should I try to do something smart so that the capitalization will happen automatically. The 'I' contractions are special, I will deal with

Re: [PHP] How do I create an Outlook calendar entry?

2005-06-25 Thread Burhan Khalid
Daevid Vincent wrote: You are on to something. Maybe I did get an email with a confirmation. I could swear it was via their website though... There are some pretty crazy Thread-Index: and UID: things in there. Do I have to generate them somehow? Anyways, for those interested, this is what

Re: [PHP] Strange is_dir() behavior

2005-06-25 Thread Burhan Khalid
Marcos Mendonça wrote: Hello I'm using PHP 4.3.9, under Windows XP with Apache. I have the following directory structure on a given app, i'm working on. photos/ folder1 folder2 folder3 ... and so on I'm trying the following code to make a list of folder under

Re: [PHP] How to convert documents to PDF using PHP

2005-06-22 Thread Burhan Khalid
Bosky, Dave wrote: I need to find a way to allow users to select multiple files from a list and generate a single PDF file from them. http://www.fpdf.org http://php.net/pdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Amy's Site question

2005-06-22 Thread Burhan Khalid
Jack Jackson wrote: Hello, On a site I'm listing measurements in both inches and cm; in the db they're stored as inches. To convert them to cm I'm doing: ?php echo ($cartoon['art_width'] * 2.54); ? x ?php echo ($cartoon['art_height'] * 2.54); ? cm How can I limit the result of that math

[PHP] Re: your script: Telling human and machines apart

2005-06-18 Thread Burhan Khalid
Merlin wrote: Hi Burhan, you posted a while ago to the php user group: This is an example of what my script outputs : http://meidomus.com/code/captcha/ Source available if you are interested. I would be interested to try that code and alter it to fit my needs. Would that be possible?

Re: [PHP] Retrievable weather service info?

2005-06-15 Thread Burhan Khalid
Murray @ PlanetThoughtful wrote: Hi All, Just wondering if anyone knows of a free weather service that can be interrogated by PHP for information such as current temperature for a range of cities around the world? iirc, weather.com provides a XML feed of such information. Free signup. -- PHP

Re: [PHP] curl

2005-06-08 Thread Burhan Khalid
Jon wrote: I have not used curl before and it looked interesting from the manual. So, does anyone have a sample script or a tutorial that covers the logon procedure. What I want to do is logon to an asp site and download some files. Can someone point me in the right direction? I have done

Re: [PHP] about the absolutely path

2005-06-07 Thread Burhan Khalid
Jochem Maas wrote: Richard Lynch wrote: On Mon, June 6, 2005 1:54 am, yangshiqi said: I have a php application (let's call it app A) which is developed separated in a test domain name, like http://testa.xxx.com http://testa.xxx.com/ /. But now I have to move it to another app (called B)

Re: [PHP] Telling users and machines apart

2005-06-07 Thread Burhan Khalid
Merlin wrote: Hi there, I am getting more and more emails through my webforms submited by bots. It looks like some sites liky yahoo are placing an image into their forms and the human has to enter a code visible on the image to submit the form. After some googling I found captcha, but I do

Re: [PHP] Telling users and machines apart

2005-06-07 Thread Burhan Khalid
Merlin wrote: Burhan Khalid wrote: Merlin wrote: Hi there, I am getting more and more emails through my webforms submited by bots. It looks like some sites liky yahoo are placing an image into their forms and the human has to enter a code visible on the image to submit the form. After

Re: [PHP] autocomplete a field

2005-06-04 Thread Burhan Khalid
xfedex wrote: Hi, Anyone know if theres a way to disable this feature for user using old browsers or not suporting JS/XML? Look up noscript -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php + cvs

2005-05-31 Thread Burhan Khalid
Vlad Golodov wrote: Hi All! are here any people who have tried to develop php application using CVS? What programms have you used for it? CVS should be located on the internet. I have used CVS before (since its available in Zend Studio) and have had to do a bit of reconfiguring of Zend

Re: [PHP] Getting parameters from the URL

2005-05-28 Thread Burhan Khalid
Richard Davey wrote: Hello Mário, Friday, May 20, 2005, 4:48:07 PM, you wrote: MG http://www.bar.com/[EMAIL PROTECTED]code=vu782 MG for testing, but it does print nothing. So, i'm not getting the MG parameters from the URL. I have register_globals=Off in php.ini Jumping in a bit late here,

Re: [PHP] how to convert char into number

2005-05-28 Thread Burhan Khalid
Jeremy Reynolds wrote: What function do I use to convert an ASCII character into it's equivalent number? http://php.net/ord -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] db aware text editor? (slightly OT?)

2005-05-25 Thread Burhan Khalid
Richard Lynch wrote: On Tue, May 24, 2005 2:08 pm, Murray @ PlanetThoughtful said: I'm wondering if anyone knows of a 'db aware' text editor? By 'db aware', I mean one that can pull a recordset back from a local MySQL server and edit the content of fields much like a standard text editor does

Re: [PHP] mysql connect problem

2005-05-25 Thread Burhan Khalid
Jim Sara Feldman wrote: Hi: I have recently upgraded from a Mac G4 running OS 10.3.9 to a G5 running OS 10.4. I ported a working PHP app and upgraded from PHP 4.3.4 to 4.3.10 and MySQL 4.0.17 to 4.1.11. I am having a problem connecting to MySQL from PHP. I can connect to the

Re: [PHP] strtotime('yesterday')

2005-05-25 Thread Burhan Khalid
Richard Lynch wrote: On Tue, May 24, 2005 7:24 am, Rahul S. Johari said: Im trying to delete all files in a folder based on a string match with the following code: ? $dir = '/Library/WebServer/Documents/something.com/subfolder/'; $dp = opendir($dir) or die ('Fatal Error: '.mysql_error());

Re: [PHP] Free penetration test

2005-05-24 Thread Burhan Khalid
Chris Shiflett wrote: Andy Pieters wrote: I am looking at where I can get my system tested for penetration. [ snip ] You might want to check out the links Christophe mentioned, as these provide free advice, which seems to be more along the lines of what you want. I recently stumbled

Re: [PHP] Dwonloading a file

2005-05-18 Thread Burhan Khalid
Brian Dunning wrote: I need to write a cron job that retrieves a zipped XML file via FTP, unzips it, and then imports the XML into MySQL. I haven't done any of these three specific functions yet. Before I tear my hair out on each of these functions, can anyone point me to a simple example of

Re: [PHP] Syntax Coloring

2005-05-17 Thread Burhan Khalid
hima wrote: Hi all, I am trying to apply syntax coloring to my source code as I type it in unix shell. I work on a mac machine. How do I achieve this. In the php.ini file I see these following lines commented out. ; Colors for Syntax Highlighting mode. Anything that's acceptable in ; font

Re: [PHP] PHP 5.0 and mysql

2005-05-17 Thread Burhan Khalid
Jay Blanchard wrote: [snip] This is going to a very naive question, but how do I make mysql work with PHP 5? I run PHP on IIS on Windows 2000. Help! [/snip] Read the instructions http://us4.php.net/mysql Also See http://www.php.net/manual/en/install.windows.extensions.php -- PHP General Mailing

Re: [PHP] Sending a string with $_POST/$_GET

2005-05-17 Thread Burhan Khalid
Ross wrote: I want to write a string to a variable and use $_POST or $_GET to retrieve it on another page. I keep gettting an undefined index errror. Can someone show me how this is done? Do I have to use session_start() ? This would be ideal. Have checked the documentation, can't find a

Re: [PHP] changing php ini location

2005-05-14 Thread Burhan Khalid
Richard Lynch wrote: On Fri, May 13, 2005 12:20 pm, Faith Emre YILMAZ said: anyone knows how to change php ini location? I m using php5, apache 1.3 on windows xp. Re-compile. Since that's not practical for most users, you just have to use whatever phpinfo says is the right directory. Add : #

Re: [PHP] Parsing XML with php

2005-05-12 Thread Burhan Khalid
Merlin wrote: Hi there, I am curious if PHP is now able to pars xml without aditional tools like xmlrpc. If yes which version is required? Is the current php 4.x tree sufficient? 4.x requires the expat parser (so I guess it would require external libs). 5.x has the simplexml extension (which I

Re: [PHP] Exec don't work

2005-05-12 Thread Burhan Khalid
Greg Donald wrote: On 5/10/05, Juan Pablo Herrera [EMAIL PROTECTED] wrote: Hi! I using php version 4.3.10. I have a script that used the exec function. Well it script only work from shell, but not work form web browser. My php.ini: safe_mode Off Off safe_mode_exec_dir no value

Re: [PHP] strpos with array?

2005-05-12 Thread Burhan Khalid
Merlin wrote: Burhan Khalid wrote: Merlin wrote: Hi there, I am wondering if there is a function (I could not find) which does the same thing like strpos does, but with an array. For example: $replace = array(picture, pics); $pos = strpos ($term, $replace); //if ($pos !== false

Re: [PHP] php resultset restart??

2005-05-11 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Hi all. i've checked the PHP manual but can't find a function for this, perhaps I'm missing something. I get a resultset and loop through it but this is in a loop so it only executes the first time. is this because the resultset is at the end? is there a way to tell PHP to

Re: [PHP] While and echoing HTML

2005-05-10 Thread Burhan Khalid
Mary-Anne Nayler wrote: Hi Mark, As far as I can see the only problem is that you have forgotten to add a semicolon after the i++ Mark: Since you are not displaying the counter, you really don't need to mess with $i. You can reduce your code to just : ?php $db = mysql_connect(localhost,

Re: [PHP] Wash with SOAP

2005-05-10 Thread Burhan Khalid
Jay Blanchard wrote: It has come to a point where a vendor is requiring that we use SOAP to access a service that they provide, so I need some recommendations... a. Do I build my own request/receipt functions. 2. Do I use something like nusoap or Pears' SOAP classes? Would those of you who are

Re: [PHP] strpos with array?

2005-05-10 Thread Burhan Khalid
Merlin wrote: Hi there, I am wondering if there is a function (I could not find) which does the same thing like strpos does, but with an array. For example: $replace = array(picture, pics); $pos = strpos ($term, $replace); //if ($pos !== false) { if (in_array($term,$replace)) {

Re: [PHP] Between Query (0T)

2005-05-09 Thread Burhan Khalid
Ryan A wrote: clip Your looking at something like. For ages between 21 and 23 $Upper = date(m-d-Y, mktime(0,0,0,date(m),date(d),date(y)-22)); $Lower = date(m-d-Y, mktime(0,0,0,date(m),date(d),date(y)-23)); $sql = SELECT field1,field2,field3 FROM `table_name` WHERE `age` BETWEEN . $Lower . AND .

Re: [PHP] Any alternative to POST method FTP uploads from client computer?

2005-05-09 Thread Burhan Khalid
Murray @ PlanetThoughtful wrote: [ snipped ] when u upload it name it dynamiccaly by appending date and time before the file name like this 2005050501010-filename.jpg Hi, yes, I'm already doing this. Conflict of filename isn't my issue -- it's whether or not the file should be uploaded at all, in

Re: [PHP] delete session cookie?

2005-04-20 Thread Burhan Khalid
William Stokes wrote: Hello, Is it possible to delete a session cookie from browser? If so how? http://www.php.net/manual/en/function.session-destroy.php See the example. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any experience with multi-language PHP sites?

2005-04-16 Thread Burhan Khalid
Richard Davey wrote: Hi all, [ snipped ] I'm interested in knowing of any problems I should be looking out for while designing this - what happens to Japanese characters for example when stored in a MySQL text field? Any issues re: displaying them again once extracted? Or on validating

Re: [PHP] snort database not appearing in phpmyadmin

2005-04-16 Thread Burhan Khalid
Mark Sargent wrote: Mark Sargent wrote: Hi All, I've installed phpmyadmin and have a snort database in mysql, but, it doesn't appear in phpmyadmin. I know it's there, because base is using it to display info from snort on the machine. Why wouldn't it appear in phpmyadmin. It appears with the

Re: [PHP] Determining array type

2005-04-16 Thread Burhan Khalid
NSK wrote: We have two kinds of arrays in PHP: $array[name] = George $array[0] = George How can I determine (with a function returning true/false for example) which type of array I am working with? There aren't two kinds of arrays, there is only one array type: There are no different indexed and

Re: [PHP] Mysql insert problems

2005-04-16 Thread Burhan Khalid
Andy Pieters wrote: Hi Whilst you are searching the net, you might also want to search for 'sql injection'. This is no joke! Please use the mysql_escape_string on each variable you get from the user side. Use mysql_real_escape_string() instead. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] loading data from database

2005-04-11 Thread Burhan Khalid
Micha Biegnolé wrote: Hi, I am a student of multimedia design. I have two tables in a database with one same column(column:Name). I ask data from table1 collumn:Name. In table2 I want to use the return of data from table1 and search table2 collumn:Name for other information. I tried joined SELECT,

Re: [PHP] Session gets corrupted (or lost)

2005-04-10 Thread Burhan Khalid
Marcelo Volmaro wrote: Hi, Ive made a simple site with a loguin, that in my machine works perfectly, but not on the server. The problem seems to be on the session handling. I dont loose the SID, but the session gets corrupted. If I do a print_r($_SESSION), after the loguin i get the correct

Re: [PHP] sessions not being stored : DAY 2

2005-04-09 Thread Burhan Khalid
Yuri Huitrón Alvarado wrote: running whoami in php returns : root Are you saying that you typed 'whoami' from a shell, and it gave you root. Or are you saying that when you did ?php `whoami` ? you got 'root'. If this is the case, then you are running a big security risk if your PHP scripts

Re: [PHP] Anybody getting these also?

2005-04-07 Thread Burhan Khalid
Jay Blanchard wrote: [snip] I wouldn't lose sleep over it. I think the people here at work are actually making fun of me when they 'changed my title'. Maybe it's because at almost 40, I still collect comic books, and watch Star Trek. :o [/snip] Well, I'm between 45 and 50 and still collect

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Burhan Khalid
Kim Madsen wrote: -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 9:36 AM Well if other has rw then it doesn't really matter who owns the file. My point exactly! What does the php error log say? Samething as on the site: Apr 6 10:16:12

Re: [PHP] if question

2005-04-06 Thread Burhan Khalid
William Stokes wrote: Hello, I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... goes on like this. How this can be done? if ($var % 3 == 0) { echo $var. is divisible by 3; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preventing automated account creation

2005-04-06 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Hi, I have been investigating ways of preventing automated account creation on the e-commerce system I am currently working on. Obviously I have seen the graphical solutions to this problem, a small image containing several letters and numbers which must be

  1   2   3   4   5   6   >