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.ph

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

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

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

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

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

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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] _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] _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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] Is this a mysql_connect() bug?

2005-01-29 Thread Burhan Khalid
tom soyer wrote: Thanks for the error handling code. I think PHP still has a basic problem. If mysql sever connection times out because wrong username or password was used, then mysql_connect() should return FALSE. But this is not the case, why? Is it possible that mysql_connect() could not read th

Re: [PHP] Re: Avoiding NOTICEs on Array References

2005-01-27 Thread Burhan Khalid
Michael Sims wrote: Jochem Maas wrote: [EMAIL PROTECTED] wrote: If one must check the value and not just the existence of the checkbox entry, or for other uses, e.g. where a flag may or may not be present, one is saddled with clumsy constructs like: if (($isset($array['index']) && ($array['

Re: [PHP] Linux PHP CLI and Environment variables

2005-01-26 Thread Burhan Khalid
Michael Gale wrote: Hello, I am running php 4.3.7 with ncurses support. I want to create a small app using php and ncurses but I will need to get some information from the shell environment variables. I have searched every where ...is this possible ? http://pear.php.net/package/Console_Getar

Re: [PHP] Session errors when uploaded to host

2005-01-23 Thread Burhan Khalid
Tim Burgan wrote: Hello, I've developed my site, and tested on a web host (Apache, PHP 4.3.9). Now I've uploaded to a different host (IIS, PHP 4.3.1) where I want to keep it, and I get session error messages like: Warning: session_start() [function.session-start

Re: [PHP] unable to write a text file larger than 10Mb

2005-01-03 Thread Burhan Khalid
Sagar C Nannapaneni wrote: Hello All, This is very imp and urgent for me. I've a very large db on my remote website. I want to get a backup of that db. phpmyadmin is installed on the server..but if failed to create the backup (may b coz of the time outs). so i wrote my own class to get the backup.

Re: [PHP] or-die option - Opinions please...

2005-01-03 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Hi there all! I'm thinking of the "or die" suffix (or option or whatever it is called)... I can use or die together with opening a db. open_mysqldb("bla.bla.") or die("couldn't connect to db"); But this is just useful when developing? I don't want my users to see that a spe

Re: [PHP] $HTTP_POST array

2004-12-27 Thread Burhan Khalid
kalinga wrote: Dear all, Is it possible to pass the entire $HTTP_POST array to a function of a class as a variable? Use $_POST -- its automatically in scope of every function (you don't need to pass it). You can pass any array to a function. -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Re: [PHP-DB] what is wrong with my code.. please help

2004-12-26 Thread Burhan Khalid
S Kumar wrote: Dear group, I am trying to query my db and print the results. when i execute my script, i am not getting any result except a blank page. can any one please help me what is going wrong with my script. Script: $conn = pg_connect("user = $user dbname = $dbname host = $ho

Re: [PHP] Help with code

2004-12-26 Thread Burhan Khalid
karl james wrote: I have since updated it. And I am having issues with a function I suppose. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site38/fst/var/www/html/php/wrox_php/movie_details.php on line 119 http://www.theufl.com/php/wrox_php

Re: [PHP] Help with GET variables which do not work after upgrading

2004-11-28 Thread Burhan Khalid
Eamon Reyn wrote: Hey, I was happily using GET command line variables in my project under php 4.3.4 but when I upgrade to 4.3.9 they no longer work I can make them work by changing back to my prior version of php but would rather use the newer one can anyone explain why this may happen. Please r

Re: [PHP] Read PDF files with Php

2004-11-28 Thread Burhan Khalid
Jacob Friis wrote: Do I need PDFlib in order to read PDF files? Is there another way? http://www.fpdf.org http://www.fuckinggoogleit.com :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing Parameters

2004-11-28 Thread Burhan Khalid
David Blackburn wrote: I used to pass parameters to my scripts like this shell>php myscript.php "dog=max&cat=jess" Since I have upgraded to PHP5 I dont seem to have this functionality any more, has anyone else noticed this ? or know of a way to get this working again ? You can pass parameters in th

Re: [PHP] Getting the contents of a file

2004-11-25 Thread Burhan Khalid
Octavian Rasnita wrote: Hi all, I am trying to use the file() function, but without success. Here is the code: $url = "http://www.rasd.ro/Quotes/11-24-2004.txt"; $file = file($url); You are missing a ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] Upload is still not working

2004-11-23 Thread Burhan Khalid
it should not be any error in permission setting issues. Could it be the space in the filename? -- Burhan Khalid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] inline_C installation

2004-11-21 Thread Burhan Khalid
Rayan Lahoud wrote: Does anybody knows how to install a pear package. i have the inline_C package that i want to install and use. And can i have some sample functions using this package? pear install Inline_C -- that's it. You don't need to restart Apache, or load any modules. To find out examples

RE: [PHP] XML + PHP is going to eat my shorts [SOLVED]

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 09:50 -0600, Jay Blanchard wrote: > [snip] > > > [/snip] > > using fread the above line comae out like this(even though I was not > echoing the line, just processing) > > > > ...as soon as I added stripslashes the syntax error disappeared and > VIOLA!...xml file pa

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 09:01 -0600, Jay Blanchard wrote: > [snip] > xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0); > xml_parser_set_option($this->parser, XML_OPTION_SKIP_WHITE, 1); > [/snip] > > I had those in there as well...here is the first few liners of the XML > source >

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 08:51 -0600, Jay Blanchard wrote: > [snip] > > > > > > ... it throws an error from xml_get_error_code > > Trim your xml file. Whitespace can cause this problem. > [/snip] > > I trimmed and chopped to no avail. Argh. Try this snippet which has worked for me in the past.

Re: [PHP] copy() not working

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 14:58 +0100, Peter Lauri wrote: > Best groupmember, > > I am implementing a script to upload a file to my webserver. I am using this > form that I copied from a working application: > [ snipped ] > To handle the form I am using this script... > > if($File) { > if(copy($Fi

Re: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 08:13 -0600, Jay Blanchard wrote: > Okie dokieI have to parse an XML file and I continue to RTFM, STFW, > and STFA. So I do this... > > /* let's parse! */ > if($readXML = fopen(XMLDIR."testRecp.xml", "r")){ > while($lineXML = fread($readXML, 4096)){ >

Re: [PHP] php.ini

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 00:17 -0800, [EMAIL PROTECTED] wrote: > (on windows) can someone tell me where to define which php.ini gets used? If there is a php.ini file in the php root directory, then that gets used. Otherwise, the php.ini file in C:\Windows (iirc). If the php interpreter (or dll) cann

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

<    1   2   3   4   5   6   >