Re: [PHP] PHP/Oracle : bug with accent...

2006-03-15 Thread Burhan
David BERCOT wrote: Hi, I have a big problem with my Debian server (Apache 2, PHP 5, Oracle Instant Client). I've modified the environment variable NLS_LANG and, with SQL*Plus, everything is ok ! But, in a PHP page, I can't insert a value with accent (ex: Irène). I can read data with accent,

Re: [PHP] Creating a unique index ID

2006-03-15 Thread Burhan
tedd wrote: Hey all, I've got a project where I'm taking form information from the user and writing records to several tables in a MySQL database. The problem I'm having is I need to write a unique number for the ID column of the records. Auto increment won't work because I could have

Re: [PHP] Re: Printing library in PHP ?

2006-03-15 Thread Burhan
robert mena wrote: Hi Manuel, I am trying to print from the client side. The client will be windows. Use ActiveX if you can get them to stick with IE (shouldn't be a problem). Google for 'ScriptX.cab' -- a free printing control that lets to fine tune printing. -- PHP General Mailing List

Re: [PHP] REGEX query

2006-02-08 Thread Burhan
phplists wrote: Hi, I'm still trying to get to grips with REGEX and have hit a hurdle with the following: I have this bit of text: (\(EX\) RV-6 ) I want to remove the '\(EX\)' part of it so leaving just: ( RV-6 ) $text = '(\(EX\) RV-6 )'; $bits = explode(' ',$text); $leaving = '(

Re: [PHP] php file upload permission query

2005-12-16 Thread Burhan
Angelo Zanetti wrote: thanks, but Im sure there is something that is messing up the file permissions that I can change before the upload, instead of trying to cure the problem by setting the chmod of the file after its uplaoded Check the following things: 1. umask settings on the

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

2005-09-13 Thread Burhan Khalid
in this loop, but maybe you gave a very simple example. Warmly, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
.$current_month))); return $x; } $dates = array_map('findDates',range(1,12)); echo 'For the month of December : '.\n; print_r($dates[11]); ? Enjoy :) -- Burhan -- 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: Burhan, Thank you for replying, it is very much appreciated. Perhaps I did not state what I needed as well as I should have. I'm looking for the code which displays the date of the second Thursday of each month on a web page. I have to insert this code at 5

Re: [PHP] date and time conversion

2005-09-11 Thread Burhan Khalid
http://php.net/strtotime http://php.net/mktime For more information -- Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
are working. This has been asked before, and answered (even by me). You need http://php.net/mysqli or change your MySQL configuration so that it allows 'old style' passwords. Google for the rest, or STFA :) Regards, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

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
expressions or strip_tags. From here on out, its just normal PHP tasks of connecting to the database, running your queries, etc. Oh, Snoopy is snoopy.sf.net. HTTP_Client is in PEAR. cURL is at php.net/curl Regards, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

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
for managing servers if you are uncomfortable with the shell. Your distribution will probably have a package (or RPM) for it, so just install it as per your distribution's install process. Hope this helps, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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
a short intro to it? For a decent CLI script, you will need to access the command line arguments, for which there is a great PHP class over at PEAR. There you will also find classes for color output on the console and other classes that you will find useful. FWIW, Burhan -- PHP General

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
) - SubethaEdit (great editor with unique features) As for your PHP issue, check for im-properly nested marks. Would be good if you highlighted what lines 33-37 were. -- Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-07-16 Thread Burhan Khalid
something else, this function works fine if I am using it on a fileimage, why not an image from a database??? Because the function expects a filename, not an image. Read the documentation for getimagesize. Regards, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] connecting to MySQL from a Mac

2005-07-13 Thread Burhan Khalid
to quickly jump to Terminal (apple+spacebar is the hotkey to bring up the spotlight search box). Alternately, you can also install any number of MySQL front-ends available for OS X. Regards, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-07-12 Thread Burhan Khalid
requests to the service. So all the other site needs to know is getCustomers(), and you can code whatever SQL is necessary to fetch the information. As far as the database structure itself, I think a view (if supported) could be used here. Hope this helps, Burhan -- PHP General Mailing

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
to make this work? Is it even possible? Rasmus: A few months back you posted some Apache settings that allow one to run both php5 and php on the same Apache instance using mod_proxy (iirc). Can you please post that again? I can't seem to google for it in the archives. Thanks, Burhan

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
the email looks like: What they are doing is sending you a vcalendar document in the email. You can send similar notifications yourself by reading up on the vcalendar specs[1] and sending out the appropriate email. Cheers, Burhan [1] http://www.imc.org/pdi/vcal-10.txt -- PHP General Mailing

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
and http://dev.mysql.com/doc/mysql/en/old-client.html for more information. Warmly, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtotime('yesterday')

2005-05-25 Thread Burhan Khalid
(yesterday) isnt working? It doesnt delete anything. [EMAIL PROTECTED] burhan $ php -r echo date('r',strtotime('-1 day')); Tue, 24 May 2005 09:00:35 +0300 [EMAIL PROTECTED] burhan $ date Wed May 25 09:02:10 AST 2005 :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Free penetration test

2005-05-24 Thread Burhan Khalid
your PHP Security writeup that you had posted on your website a while back. Keep up the good work. Regards, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dwonloading a file

2005-05-18 Thread Burhan Khalid
the regular mysql functions to submit queries (mysql_connect, mysql_select_db, and mysql_query). Regards, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
uploaded by) would also be helpful from a user's standpoint. Hope this helps, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
to display searching. 3. I'm not sure how you would go and validate foreign data input; as I have never had to do such myself (all our input was in English on the public side, and on the backend, it was manually verified). Best of luck on this one. Cheers, Burhan -- PHP General Mailing List (http

Re: [PHP] snort database not appearing in phpmyadmin

2005-04-16 Thread Burhan Khalid
with the same set up on my work test machine. What should I look for to fix this..? Cheers. Mark Sargent. Mark, This is not the phpmyadmin help list. Its is not the snort help list either. This list is for PHP (the language) related issues. Regards, Burhan -- PHP General Mailing List (http://www.php.net

Re: [PHP] Determining array type

2005-04-16 Thread Burhan Khalid
and associative array types in PHP; there is only one array type, which can both contain integer and string indices. [ http://www.php.net/manual/en/language.types.array.php ] So, you can have an array like this: $array = array(hello, name = Burhan); If you just want to know if all keys are numeric

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

  1   2   3   4   5   6   >