Re: [PHP] Regex (Phone Number)

2004-07-26 Thread Burhan Khalid
Albert Padley wrote: I have been struggling with a javascript regex validation for U.S. phone This is a PHP list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Burhan Khalid
Vern wrote: One would think this should be really simple but it's not. wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Burhan Khalid
Vern wrote: I get: # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n What I wrote was wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n You forgot - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Means of collecting HTTP response headers

2004-07-31 Thread Burhan Khalid
Curt Zirzow wrote: * Thus wrote Gerard Samuel: On Friday 30 July 2004 01:32 pm, Gerard Samuel wrote: A means that is not specifically tied to Apache functions. Just looking for a way so that it works no matter the webserver. Seems like the function stream_get_meta_data() will fill the job.. hmm..

Re: [PHP] Getting data from table as a tree

2004-08-05 Thread Burhan Khalid
pt2002 wrote: Hi I have a table like this id, pid, name. When a item has no parent, pid = 0. There is no limit in depth. 1, 0, Test 1 2, 1, Test 1.1 3, 1, Test 1.2 4, 2, Test 1.1.1 5, 1, Test 1.3 6, 3, Test 1.2.1 I need to read this table and return an array that represents the tree. Maybe using a

Re: [PHP] PHP Security Workbook

2004-08-14 Thread Burhan Khalid
Chris Shiflett wrote: This news is a bit old, but I have made the workbook for my OSCON tutorial freely available from this URL: http://shiflett.org/php-security.pdf It's a 55 page PDF that has a lot of information (more than the slides) about some of the more important security topics. Nice articl

Re: [PHP] Kerberos authentication

2004-08-15 Thread Burhan Khalid
Matthew Runo wrote: I am working on a project that requires Kerberos authentication, however - we are unable to use the apache module that one would normally use [sys admin.. *grumble*]. I searched the archives to find a script that would authenticate a user against a Kerberos server, and found

Re: [PHP] A function in PHP that changes html in a string from to ?

2004-08-15 Thread Burhan Khalid
Jay Blanchard wrote: [snip] Is there any function in PHP that changes html in a string from to ? (e.g. adding the double quotes) [/snip] Nah, but you could write a function to add quotes to attributes of any tag that you would like. Tidy [ http://tidy.sf.net ] can do this "Tidy inserts quote mark

Re: [PHP] How to determine if date/time is with DST or not ?

2004-08-15 Thread Burhan Khalid
-{ Rene Brehmer }- wrote: hi gang I'm trying to find a simple way to determine if a given date/time is with DST for a given locale at any point in time ... the point is basically to convert date strings into accurate GMT timestamps for storage in the database... http://www.php.net/date I (capital i

Re: [PHP] Anyone know of a PHP Dictionary Password Generator

2004-08-15 Thread Burhan Khalid
John Holmes wrote: Anyone know of a PHP english word password generator? Something that'll produce easy to read and remember codes like "buffalo_candy" or "shipment+plant", etc? I had a look on phpclasses.org, but didn't find anything like this. Or, as an alternative, I'll code it myself if anyo

Re: [PHP] PHP not working with apache2

2004-08-15 Thread Burhan Khalid
Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2 i

Re: [PHP] Destroying a Session

2004-08-25 Thread Burhan Khalid
On Wed, 2004-08-25 at 14:34, Shaun wrote: > I am writing a shopping cart and am using a session called > $_SESSION["orderinfo"] to store the order information. I also have a > function I use to clear the session when the payment has been authorized: > > function clear_orderinfo() { > global $_SE

Re: [PHP] Session again !!!

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 17:32, Dre wrote: > I really did > and it behaves the same > > I tried isset() also but there is no good it still does not work !!! "Does not work" <-- explain this part. add error_reporting(E_ALL); as the first line of code, in addition to all the other suggestions. Check

Re: [PHP] Problem

2004-09-06 Thread Burhan Khalid
On Mon, 2004-09-06 at 11:03, Jorge wrote: > I have a problem when I do login for go to the page of administration on my web, Go > back and can't entry this is the code that control this. Where is the problem? Please read the Newbie Guide first before posting. WHat does your subject tell us about

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 05:41, [EMAIL PROTECTED] wrote: > I want to build a music site, all copyrights intact, and I want users to be > able to download mp3 or realplayer files using a one-click link. When they > click on a link they will simply be given a typical download window to save > that musi

Re: [PHP] tool to increase your web site?s profitability

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 19:29, Octavian Rasnita wrote: > Does this list have a moderator? > > Teddy Please learn to TRIM!! No need to post the entire message (spam no less), again -- especially if all you are contributing is one line (to which, I might add, the answer can be found by searching the

Re: [PHP] Re: installing PHP on winXP

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 19:39, Gerben wrote: > my install-paths are still the same. the real problem (I think) is that I'm > missing the php4apache dll for some peculiar reason ||:-| > Thanks anyway. I'll try downloading the zip file and doing it manually. I think the binary installer doesn't inclu

RE: [PHP] Regex for Validating URL

2004-09-07 Thread Burhan Khalid
-Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 11:59 AM Hi all, yeah, i know, i did do quite a bit of searching but I just cant find it... Does anyone have the regex to make sure an http address is full and without error? like http://w

Re: [PHP] group queries result

2004-09-13 Thread Burhan Khalid
Barbara Picci wrote: I've to extract data from a mysql db using two different queries and I must have an unique output sorting them alphabetically. For istance, query1: select * from ads where guest='PK'; count the number of results, make the difference between a given number and the number of

Re: [PHP] preg_replace question

2004-09-13 Thread Burhan Khalid
Zoran Lorkovic wrote: Btw, where I can find patterns that are valid? (something like (\w+), (\d+)+i etc. http://www.php.net/manual/en/reference.pcre.pattern.syntax.php http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Burhan Khalid
Sandip Bhattacharya wrote: This stumped me badly in my present project. Is this a bug or a feature in PHP? I am trying to split a string into two, where only one half (and the delimiter) is present. [ trim ] IN PHP === [EMAIL PROTECTED] ~]$ cat s1.php [EMAIL PROTECTED] sql]$ p

Re: [PHP] Host for Mod PHP5

2004-09-17 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: I know this is going to be tough but I need a hosting company that supports PHP5, has unlimited disk space and a good amount of bandwidth with a decently fast connection for a decent price. I realize that this might be rare, but is anyone offering such a package like this a

Re: [PHP] filtering out text in a string

2004-09-20 Thread Burhan Khalid
Merlin wrote: Hi there, I want to filter out ip adresses out of a given text string. They are inside a logfile and values are seperated by tabs. I tryed sub_str which works fine if you know the length of the characters. In case of the ip adress this is not the case, since they are sometimes shor

Re: [PHP] password-protecting with PHP, help plz

2004-09-20 Thread Burhan Khalid
[snip] And here is the action page, testing2.php. if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') { echo "Welcome, Andrew."; } And (shocker!) I got a blank page. So I turned out display errors and got this: Parse error: syntax error, unexpected T_BOOLEAN_AND in c:\TSW\pages\testing

Re: [PHP] Correct context

2004-09-21 Thread Burhan Khalid
Ed Curtis wrote: Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR "Price Ch

Re: [PHP] Solved [PHP] ASP guts needs help.

2004-09-22 Thread Burhan Khalid
LW Ellis wrote: Never mind... As usual, about the time you ask for help, the brain gets unstuck and you find the solution. You should post back with a solution (append SOLVED to your subject) so that it becomes part of the thread (and archived). This way, next time someone else has a similar iss

Re: [PHP] Need help in implementing Payment Gatewaydetails

2004-09-28 Thread Burhan Khalid
suneel wrote: Hi. Any one could tell me about how to implement VeriSign Payment Gateway. I mean I want to know how to implement the AVS and CSC filter settings in test mode and how to convert them in to live mode. Its Very Important Thanks in advance... http://www.php.net/manual/en/

Re: [PHP] Advice/opinion requested on page section lineup

2005-02-12 Thread Burhan Khalid
Alp wrote: Hi Jochem, Intention is to give a user the option of assigning "position" of a "section" on the page, i.e: First: sectA, then sectC, then sectE, then sectB and sectD or any other order that is indicated by the user. So it is somewhat like top-of-page, mid-of-page etc but with a numbe

Re: [PHP] inheriting from non similar types?

2005-02-13 Thread Burhan Khalid
D_C wrote: > $this->parent = mysql_fetch_object($res); // returns a mysql obj with age, loc etc records then ... $age = $userObj->age; // this actually comes straight from the dbase obj $rating = $userObj->rating; // a public var calculated at construction $life = $userObj->getSpend(); // thi

Re: [PHP] Checking the Version of mySql and settings on server

2005-02-13 Thread Burhan Khalid
Marek Kilimajer wrote: GH wrote: However, this does not tell you if they are using the Old or New Password on the newer version... how can i check that? If you can connect with mysql_connect(), its using the old password switch. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] pdf properties

2005-02-13 Thread Burhan Khalid
John Nichel wrote: Jason Motes wrote: Hello, [ snipped] Maybe if you send it 5 more times, someone will answer you. I thought I was having problems with my email server, till you posted this one. Thanks, Burhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Dynamic PHP links

2005-02-13 Thread Burhan Khalid
Eduard Grigoryan wrote: Hi, I'm new to PHP and I'd appreciate your advice a lot. I'm trying to use dynamic PHP links instead of plain HTML and I'm gonna use something like this: File "index.php": story about But a guy told me it is not preferable to use this method because of security considerat

Re: [PHP] Ensure a number is three digits long

2005-02-13 Thread Burhan Khalid
Shaun wrote: Hi, I have am trying to create functions to convert strings to ascii and vice versa: http://www.php.net/ord http://www.php.net/chr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help parsing named.conf file

2005-02-13 Thread Burhan Khalid
Torsten Rosenberger wrote: Hello is there a way to parse the named.conf file with preg_match_all to get back an array which looks like [options][directory] = '/var/lib/named' [options][forwoarder] = '192.168.0.2' [zone][mydomain.com][type] = 'master' [zone][mydomain.com][notify] = 'yes' [zone][doma

Re: [PHP] MySQL 4.1 upgrade under PHP4

2005-02-14 Thread Burhan Khalid
C.F. Scheidecker Antunes wrote: Hello all, Does anyone upgraded from MySQL 4.0 to MySQL 4.1 using PHP 4 code? If so, what are the changes that were required on the code? PHP website says that it is required to install a new MySQL extension. http://www.php.net/mysqli ^<--- Th

Re: [PHP] Server Uptime

2005-02-14 Thread Burhan Khalid
Leif Gregory wrote: Hello Brad, Monday, February 7, 2005, 3:21:26 PM, you wrote: BC> What is the function, or how do you make a script that displays BC> the server's uptime? If you're on Windows you could do this: ** If you're not on a Windows server, *nix might have a file other than

Re: [PHP] Advice/opinion requested on page section lineup

2005-02-14 Thread Burhan Khalid
Alp wrote: Thanks Burhan, That's almost what I exactly want to do. The question is "how do I start doing that" which methodlogy, which structure, etc,,, The first step would be to store the weight value in your database (or wherever) and link it to your modules (or content) that you want ordered.

Re: [PHP] User Passwords: checking for unique chars

2005-02-15 Thread Burhan Khalid
[ snipped ] Oh! You're so mean!! ;) A lot of people are making some great points. I feel I must strighten this out a little. While I may not be the best coder in the world I do have my reasons. I originally made the passwords automatically generated and emailed to the user. Nice complicated

Re: [PHP] Fancy Form processing Ideas

2005-02-15 Thread Burhan Khalid
Chris W. Parker wrote: [EMAIL PROTECTED] on Monday, February 14, 2005 6:29 AM said: I am looking for interesting approaches to form submissions and error checking in the forms. One time, at PHP Summer Camp, I made this one form that, when submitted, would open the C

Re: [PHP] isset

2005-02-15 Thread Burhan Khalid
D_C wrote: I often use this type of construct $cmd = $_POST['cmd']; if ($cmd == null) { // do default but this throws a notice if the ['cmd'] index is not defined. ugly. using if (isset($_POST['cmd'] ) { $cmd = $_POST['cmd']; } seems lengthy. is there a way around this? http://www.php.net/a

Re: [PHP] issue with accents and mysql

2005-02-15 Thread Burhan Khalid
mario wrote: Hello, please help me on the following issue. please reply to [EMAIL PROTECTED] too. (I asked for help on the php-db ml, but nobody replied) I have hacked the following function: function accents($text) { global $export; $search = array ( 'à', 'è', 'ì', 'ò' , 'ù'); $replace =

Re: [PHP] other mhash hashes

2005-02-15 Thread Burhan Khalid
David Norman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I thought some other people would be interested in the other hashes that you can do with mhash that aren't on the php.net docs after the recent news that SHA-1 might be weaker than previously thought: http://www.schneier.com/blog/arc

Re: [PHP] Password Protection

2005-02-16 Thread Burhan Khalid
Kevin Javia wrote: I am experimenting on my site and I want to make it password protected like www.realsolution.com. http://www.zend.com/zend/tut/authentication.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] login error to mySQL from PHP

2005-02-16 Thread Burhan Khalid
David Freedman wrote: I am attempting to install both phpMyAdmin and phpLens. When attempting to connect to the mySql server I get the following error message: "Unable to connect. Please click on Previous and correct. [Client does not support authentication protocol requested by server; consider u

Re: [PHP] Formatting e-mail using mail()

2005-02-22 Thread Burhan Khalid
Jacques wrote: Can I format an e-mail message with html tags inside the mail() function? If not, how can I go about it? I would like to format the layout of the e-mail message using tables, colors and perhaps images. Please, FFS RTFM > http://www.php.net/manual/en/function.mail.php -- PHP General

Re: [PHP] Having problem with "ob_start('gz_handler');" (seg fault)

2005-02-22 Thread Burhan Khalid
Chris W. Parker wrote: [ snipped ] I'm running Apache/2.0.40, MySQL 3.23.54, and PHP 4.2.2. You need to upgrade to the latest PHP version, which is 4.3.10 and while you are at it, consider upgrading MySQL to 4.0. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Copy?

2005-02-23 Thread Burhan Khalid
Wiberg wrote: Hi there! How do I copy a file from an URL to my server? I url fopen wrappers is NOT enabled, and I'm not allowed to do that. http://www.php.net/curl or use wget via system, exec, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] while loop

2005-02-23 Thread Burhan Khalid
Reinhart Viane wrote: Hey list I have a mysql table like this: [ snipped ] Now I retrieve all activities happening in the future with this query: $sqlact="select * from activities where act_date >= NOW() order by act_type_id”; $getact=mysql_query($sqlact) What I’m trying to do now is: F

Re: [PHP] Strip alternating spaces in first word of paragraph

2005-02-23 Thread Burhan Khalid
Aaron Gould wrote: I have a series of paragraphs in which the first word contains alternating spaces. How can I strip out the spaces of only this first word, while leaving the remainder of the paragraph untouched? This is not a solution, but something you can start off with. I haven't error che

Re: [PHP] Cookies

2005-02-24 Thread Burhan Khalid
William Stokes wrote: Hello, If I send a session cookie to browser where it is stored in WinXP? Or is it stored as a separate file at all. I know that the script sends the cookie but I can't find it in the client computer harddrive. I am testing with Opera, IE6 and Firefox. In Firefox : Tools --

Re: [PHP] how to move files from one place to another ?

2005-02-27 Thread Burhan Khalid
Vaibhav Sibal wrote: Hello, Can some please guide me as to how should I move files from one directory to another on the server itself using PHP ? I use PHP 5.0.3 and Apache2 and Mysql. Please, RTFM > http://www.php.net/manual/en/function.copy.php Please, don't cross post. -- PHP General Mailing Lis

Re: [PHP] seach engines that don't suck

2005-02-27 Thread Burhan Khalid
Colin Olkowski wrote: Hi All, So I've been using my own php to search my site (http://hiptingle.spydigital.com) and for a while it was fine...But recently I put in a logging system just to see what people were searching for and realized they aren't finding what they're seeking. I wrote all search

Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-02-28 Thread Burhan Khalid
overbored wrote: Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In particular, the POST data is not being received. Here's what I did... What version of P

Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-03-01 Thread Burhan Khalid
overbored wrote: Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In particular, the POST data is not being received. Here's what I did... What version of PHP

Re: [PHP] php-help

2005-03-01 Thread Burhan Khalid
K Karthik wrote: dear friends, can u help me to find the current directory where my php files are.. using php. echo dirname($_SERVER['PHP_SELF']); Please, read the manual and search the archives. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto refresh once

2005-03-02 Thread Burhan Khalid
William Stokes wrote: Hello, Is it possible to force one automatic refresh browser when user enters to a webpage? If so, how? Use the header() function. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delete last 15 chars from a file

2005-03-02 Thread Burhan Khalid
Shaun wrote: Hi, I am trying to create an XML file, it will be done in stages so if the file isn't present I will add the line: Then for each line I add I add the following data But for various reasons the application won't know when the file is complete so it won't have the final:

Re: [PHP] Weird WMV/Media Player behaviour (Loading media file twice)

2005-03-02 Thread Burhan Khalid
Cabbar Duzayak wrote: Hi, I have embedded a media player on my page with the html pasted below, and modified my .htaccess file to redirect this /aa/bb/cc.wmv to a php file... My php file (used below) does nothing, but logs the requests+checks access, opens the actual .wmv file and prints it out. Th

Re: [PHP] mac os x - not getting headers already sent error

2005-03-06 Thread Burhan Khalid
Jonathan Haddad wrote: I do all my development on mac os x. sometimes, to debut a script, i output the query to the page. quite often the page sends headers to go to another page. When i do this, i comment out the header() function and read the results. When i'm done i remove the comment So

Re: [PHP] PHP causes Apache segmentation fault?

2005-03-11 Thread Burhan Khalid
John Swartzentruber wrote: I am running Fedora core3 with Apache 2.0.52 (from default RPMs), MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from source. I'm going through the PHP manual and trying some of the mysqli examples. The last one I tried didn't work. The problem appears t

Re: [PHP] Unlimited categories

2005-03-11 Thread Burhan Khalid
Popescu Dan wrote: Hi, I have a database table withe the next fields: category_id, parent_id, category_name. How can i display all the categories with their subcategories, like this Category 1 Category 11 Category 12 Category121 Category 2 Category 21 Category 22 You need to use a func

Re: [PHP] include("sendmail.phps");

2005-03-13 Thread Burhan Khalid
John Taylor-Johnston wrote: I want to include a phps file. But would like it to display the coloured formatting of a phps, instead of executing the code with in. Is this possible? This does not work: include("sendmail.phps"); http://www.php.net/highlight-file -- PHP General Mailing List (http://w

Re: [PHP] newbie php/mysql need help

2005-03-13 Thread Burhan Khalid
p80 wrote: I do a mysql request like this one: SELECT DISTINCT (brand), COUNT( brand )FROM `machines` where category like 'sold' group by brand" Try adding aliases to your query, such as : SELECT DISTINCT (brand), COUNT (brand) AS brand_count FROM `machines` WHERE `category` LIKE 'sold' GROUP BY

Re: [PHP] PHP Frameworks

2005-03-14 Thread Burhan Khalid
Simon Reye wrote: I'm moving away from Cold Fusion and am considering java or php. I've mucked around with Struts and Coccoon on the java side and think they are great. There does not however seem to be any well backed projects similar to these for php. Can anyone point me to a good php MVC f

Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread Burhan Khalid
John Swartzentruber wrote: On 3/13/2005 3:55 PM John Swartzentruber wrote: On 3/11/2005 11:57 AM John Swartzentruber wrote: I am running Fedora core3 with Apache 2.0.52 (from default RPMs), MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from source. I'm going through the PHP manua

Re: [PHP] Why is the behavior between Apache2 and Tomcat so different?

2005-03-15 Thread Burhan Khalid
david joffrin wrote: Hi, I have the same piece of PHP script running on either Apache2 or Tomcat. On Tomcat, I have the folllowing errors: 1- Cannot modify header information - headers already sent OR 2- Undefined index: error in ... For one, I think this is because I am using the header PHP f

Re: [PHP] send email sample

2005-03-19 Thread Burhan Khalid
issin wrote: Dear all, Can you give me a send email sample? Thanks! RTFM : http://www.php.net/manual/en/function.mail.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] does your mail() base64 encode messages?

2005-03-19 Thread Burhan Khalid
John W. List wrote: I have an unexpected and perplexing problem. PHP's mail() function is base64 encoding all message bodies as an ill-formed MIME attachment resulting in the recipient seeing an uninteligable base64 encoded string. This only happens to my account with my host and neither I or the s

Re: [PHP] send email sample

2005-03-20 Thread Burhan Khalid
John Taylor-Johnston wrote: Burhan Khalid wrote: Can you give me a send email sample? RTFM : http://www.php.net/manual/en/function.mail.php Burhan, That's awfully polite. "RTFM". How are people supposed to get started? Take that attitude back over to the Perl newsgr

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] detecting a leading hyphen from post data

2005-03-20 Thread Burhan Khalid
Larry Brown wrote: I know this is pretty petty, but it is a sunday and I'm missing this for some reason... I'm trying to detect a leading hyphen in an element of an array. I've been using strpos to find strings and if getting 1 as the result, I know it was at the beginning of the string. However,

Re: [PHP] see anything wrong (xhtml validator)

2005-03-20 Thread Burhan Khalid
Sebastian wrote: it seems the xhtml validator is throwing an error with: -- Line 530, column 12: value of attribute "id" invalid: "1" cannot start a name -- From : http://www.w3.org/TR/CSS21/syn

Re: [PHP] php.ini file

2005-03-20 Thread Burhan Khalid
Ruel Cima wrote: hi, i'm experimenting with php on mandrake 10 and i'm not sure about a few things. first, where should the php.ini file go? Check the output of phpinfo(); to see where it is expecting the file to be. i mean in which folder. next, i need to upload files to a database and i dont kno

Re: [PHP] php.ini file

2005-03-21 Thread Burhan Khalid
Kim Madsen wrote: -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 8:57 AM Check the output of phpinfo(); to see where it is expecting the file to be. Works only if the installation is completed and PHP is running ;-) Use your system wide

Re: [PHP] Drop down list - persistant value

2005-03-21 Thread Burhan Khalid
Jacques wrote: I am using PHP. I have a registration page where the user has to select his country form a drop down list. If the username that the user selected for himself exists in the database I am sending him back to the registration form with all the fields completed with the values he prev

Re: [PHP] re-setting all cookies

2005-03-22 Thread Burhan Khalid
Ken wrote: /*From the php manual $arr = array(1, 2, 3, 4); foreach ($arr as &$value) { $value = $value * 2; } */ $_COOKIE is a variable... but you need the key for setcookie(). so you can do: foreach($_COOKIE as $key => $value){ setcookie("$key","", time()-3600); } i know there is the $value

Re: [PHP] mod_ssl + php4-curl interaction problem ... ?

2005-03-22 Thread Burhan Khalid
Marc G. Fournier wrote: As a follow up to this, I just installed curl 7.12.3_2, to see if going back a version would fix the problem, and it does ... apache with curl enabled now works again beside SSL ... Not sure where the bug is, but the newer version of curl appears to have a problem with

Re: [PHP] [semi OT]: Planning projects

2005-03-22 Thread Burhan Khalid
Chris W. Parker wrote: Jay Blanchard on Tuesday, March 22, 2005 4:47 AM said: +1 for pencil & paper or whiteboard. And in the words of Obi Jay, "Use the flowchart Chris" I would very much like to use flowcharts but I haven't been able to use them effectively yet. Th

Re: [PHP] Help! configure Apache as a proxy

2005-03-23 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: > I configured a Apache server as a proxy. > But it's very slow. when I use this server connect internet it is NOT so > slow. > I think it ss because,my config has some error! > Who can help me? This is a PHP programming list, not an Apache list. Ask in the Apache list t

Re: [PHP] Preorder Modified Tree Traversal

2005-03-23 Thread Burhan Khalid
Matt Babineau wrote: Hi all, I'm trying to use "pmtt" to display a windows explorer style view of products in a database. If anyone is familiar with "pmtt" could you send me an email, I'm looking for some help. I built some code to pull the "Levels" out of the database, I need some help tracking wh

Re: [PHP] NetFlix Drag and Drop Row Ordering

2005-03-23 Thread Burhan Khalid
Graham Anderson wrote: For those who have netflix, does anyone know how you would recreate their 'drag and drop' queue widget? basically, you can drag and drop movies in the order you choose is this a combination of javascript and php ? how would you go about creating something like this to order

Re: [PHP] Problem with header in an if

2005-03-26 Thread Burhan Khalid
Jay Blanchard wrote: [snip] /* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i < count($errorsReported); $i++){ echo $errorsReported[$i]; } unset($errorsReported);

Re: [PHP] NetFlix Drag and Drop Row Ordering

2005-03-26 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: I don't see anything special about my Netflix queue. Am I missing something there? And I have no idea what "Flex" is referring to, so I'll check that out if anyone lets me know where. :o) Sorry about that, I was referring to Macromedia Flex. http://www.macromedia.com/pr

Re: [PHP] live records

2005-03-26 Thread Burhan Khalid
Ryan A wrote: Hey all, Been working on this nearly the whole night so i dont really know if this is all that hard or am just braindead. Probably just need a pair of fresh eyes. [ trimmed ] sometimes items get deleted or are taken off the "active" list, when this happens I would like to take out the

Re: [PHP] file upload

2005-03-28 Thread Burhan Khalid
William Stokes wrote: Okl I can't reverse engineer that... I just need to know how to set the path. now I have it like this and it wont work. $fileame comes from a form. if (copy($filename, "/imagedir/" . $filename_name)) print "upload succesful!"; Don't use copy(), use move_uploaded_file() See

Re: [PHP] convert date format

2005-03-28 Thread Burhan Khalid
Angelo Zanetti wrote: hi guys, I need to convert a date from this format: 2005-03-25 to 25 mar 2005. I have tried the mktime, strftime and the date functions but they all take a time stamp but I only have the dates in the format of 2005-03-25. echo strtolower(date("j M Y", strtotime("2005-03-25"))

Re: [PHP] HTTP RAW CONETNE question

2005-03-29 Thread Burhan Khalid
牛坤 wrote: > Dear php users, > > I've been working on a project which needs to get the raw post content from > the http request. > Unfortunately,I can't get the content with $HTTP_RAW_POST_DATA variable. > My php version is 4.2.2. My OS is rh linux9.0. And I've turned the global > variable tag. >

Re: [PHP] Enabling MySQL support Problemmmmm!!!!

2005-03-30 Thread Burhan Khalid
wan nordiana Wan Abd Kadir wrote: Hello, I am having problem with enabling MySQL Support. I am using PHP 5 and mysql 4.3.1 The problem is that when I start my PHP info page, PHP module gives me an error: "PHP Startup: Unable to load dynamic library '...' - The specified module could not be found".

Re: [PHP] Error Generated but no error?

2005-03-30 Thread Burhan Khalid
Geoff Martin wrote: I have a page that receives data from a form. Using $_POST['foo'], I am able to use this data in the page but I continually receive an error notice (PHP Notice: Undefined index: foo in /Library/WebServer/Documents/.. etc). This happens to all three indices that are passed

Re: [PHP] How can I parse a xml file like this?

2005-03-30 Thread Burhan Khalid
牛坤 wrote: > Dear php users, > > I'll have to parse a xml file like this: > . > http://www.w3.org/2001/XMLSchema-instance";. > xmlns:xsd="http://www.w3.org/2001/XMLSchema";. > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";. > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: $url = ".HtmlEntities($url)."\">"."; It appears the parse error is at the end of your opening link tag, so PHP doesn't know what >.HtmlEntities($url) means. I'm at work so I can't test it, but that appears the culprit to me. $url = "" . HtmlEntities($url) . ""; should s

Re: [PHP] XML/HTML specific instructions

2005-03-30 Thread Burhan Khalid
Satyam wrote: This is just an idea I'm (quite unsuccessfully) been working on. It appears to me that PHP sits between a database and a web browser. On the database side, something I would love to have is embedded SQL, as it exists in some other languages such as C (for example, see: http://www.c

Re: [PHP] mysql error

2005-04-02 Thread Burhan Khalid
Mikey wrote: I have not changed any of my hostname/username/password code in the last 6 months and I can still connect to mysql.timerescue.co.uk via the command line interface. Has anyone seen this before - any ideas at all - just started happening today! :o( Strange indeed. I tried to conne

Re: [PHP] Easy way to grab a value out of XML?

2005-04-02 Thread Burhan Khalid
Brian Dunning wrote: I've been looking at the XML commands and am feeling a bit overwhelmed. My needs are simple and I'm hoping there's an easy solution that I'm just missing. I have a hunk of well-formed XML in a variable, $xml, and it contains only one instance of x.xx. I just want to get the

Re: [PHP] pass variable from vbscript to php

2005-04-02 Thread Burhan Khalid
Ashley wrote: I have a unique problem that may be able to be solved another way, but I don't know how. What I need to do is pass a variable from a vbscript into php for use. I am using vbscript to access an activeX control on the computer that grabs the currently logged in user. This works fine

Re: [PHP] Catching error from mail function?

2005-04-02 Thread Burhan Khalid
Ben Cheng wrote: Hi I'm using the mail() function to send email and I know it's failing because it's returning a false but how do I tell what problem is? Is there an error message that I can grab that will show me why the function is returning false? Any help greatly appreciated. Thanks! The

Re: [PHP] passing variables with HTTP_GET_VARS

2005-04-02 Thread Burhan Khalid
AndreaD wrote: [ snip ] just say I have a page index.php and that is doing a calucualtion and creating a couple of variables called $age and $height. How so I make these variables globally available and how do all the other pages show/retrieve them?? Andrea: What you are looking for are sessio

[PHP] Re: installing phpMyAdmin on Windows 2000 using IIS Server

2005-04-02 Thread Burhan Khalid
wan nordiana Wan Abd Kadir wrote: hi..i wanna ask some question regarding the phpMyadmin installation on windows 2000. I am using IIS as the server. so far, when i searched in the internet on how to install phpMyadmin all i got was 'How to Install phpMyAdmin on Apache server'..is it different be

Re: [PHP] link problem - Apache or PHP?

2005-04-03 Thread Burhan Khalid
germ germ wrote: In my HTML file the HREF tag is: google.com When clicked, the link in then directed to: http://10.10.1.5/test-a/ref/www.google.com Basically it seems like it appends the link to the URL path. This sounds like a base href problem; nothing related to php or apache. -- PHP General Mai

Re: [PHP] Cannot connect to database when using Zend studio debugger

2005-04-03 Thread Burhan Khalid
Supersky wrote: Dear Richard, Thanks. After I swaped to PHP4 option in the preference of Zend Studio, I can connect to the database. However, other problems arised. The problem might be that my PHP version installed is 5.0.3 indeed. You should post this stuff at the My Zend center at zend.com --

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

<    1   2   3   4   5   6   >