Re: [PHP] what is the best idea to make mirror for mysql database

2004-03-22 Thread Burhan Khalid
QT wrote: Dear Sirs, I have a web site which is keeping user data in mysql. I am afraiding that to collapse of existing server without my control. I want to use another server to keep in standby and I want to set new server DNS as a third and forth server. As far as I know if primary and

Re: [PHP] Question for PHP.net

2004-03-22 Thread Burhan Khalid
. Regards, Burhan Khalid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Methods for creating HTML with PHP

2004-03-25 Thread Burhan Khalid
Jason Giangrande wrote: [ snipped ] Also, is it possible to download a package marked beta with PEAR, or does it need to be downloaded manually? Yes, you can do this, by running the following command: $ pear config-set preferred_state beta Then you can download beta packages. -- PHP General

Re: [PHP] time function

2004-03-25 Thread Burhan Khalid
Matthew Oatham wrote: Hi, I have a TIME field type in mysql database I want to do a select and add all the times together to return a total time, can I do this using the select statement? cheers This is a PHP list, not MySQL. http://www.mysql.com/doc/en/DATETIME.html -- PHP General Mailing

Re: [PHP] REsource Identifier( PHP_MYSQL)

2004-03-26 Thread Burhan Khalid
Gimic wrote: Hey y'all, I'm having problems trying to get the MySql_Query() function to return the resource ID when using a $string as the argument to pass to it. It returns when I hard code the argument but not the string. Any ideas? here is what the function looks like: function GetVals() {

Re: [PHP] simple, but missing something?

2004-03-26 Thread Burhan Khalid
Jas wrote: Not sure why I am not able to get this to work, but to make my stuff easier to configure for different environments I am trying to re-code some of my stuff to work with options from an array. $cfg['hostname'] = www.server.com; // Server domain or ip address $cfg['username'] =

Re: [PHP] Re: REsource Identifier( PHP_MYSQL)

2004-03-27 Thread Burhan Khalid
Gimic wrote: The entire script looks like this: ?php if ($_POST[Subject] != NULL) { echo results for . $_POST[Subject]; $subject = $_POST[Subject]; $qry = (select * from . $subject); $sqlQry = (string) $qry; GetVals(); } function GetVals() { $db = mysql_connect(localhost, root);

Re: [PHP] multi-dim array from text file

2004-03-27 Thread Burhan Khalid
Larry Pisani wrote: Hi, I need to do some text file manipulation of a text file from an html interface. I have a file with multiple lines where each line has 2 fields each (a mac address and an associated vlan). Here's an example of rht text file: /tmp/TEST: a1b2.c3d4.e5cc

Re: [PHP] Accessing HTTP Content

2004-03-29 Thread Burhan Khalid
Quentin Bennett wrote: Hi, Is this possible, please? What I want to do is, using an HTTP class, $myComms = new Ihttp_base_class($httpParams); $myComms-request = $some_document; $myComms-requrl = /mysite/myscript.php; $myComms-Send(); myscript.php runs within the same Apache

[PHP] Re:

2004-03-30 Thread Burhan Khalid
Ketvin wrote: Dear all, [ snip ] Forgot a subject? :| Your message was flagged as spam and sent to the trash bin because it didn't contain a subject. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing form values to PHP

2004-03-30 Thread Burhan Khalid
Ciemny, Jessica wrote: Hey every, I'm new to the group and to PHP (3 days now) and I would like to ask a question. I purchased a book on PHP a day or so ago and as I'm going through the book it comes to a point where it talks about passing html form values to PHP. So I type up the examples from

Re: [PHP] Really Annoying Require/Include Error

2004-03-31 Thread Burhan Khalid
Mike R wrote: I am getting this error: Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7 From this piece of code: require

Re: [PHP] Regex

2004-03-31 Thread Burhan Khalid
Brent Clark wrote: Hi all does anyone know of a regex expression to get only the number number from after the Code 39 Kind Regards Brent Clark 1 barcodes found Code 39-10005215 $barcodes = Code 39-10005216; $parts = explode(,$barcodes); echo Number is .$parts[1]; Might be faster. -- PHP

Re: [PHP] Configuration Variable user_agent

2004-04-02 Thread Burhan Khalid
Bernhard Kraft wrote: Hallo ! I run PHP 4.1.2. I want to set the user_agent which gets sent along when fetching file via the fopen(...) call. Normally this is PHP/VERISON in my case PHP/4.1.2 I want to set a different user_agent. I *believe* you can set this via header(), but its still early

Re: [PHP] php email functionality

2004-04-02 Thread Burhan Khalid
Shawn Beard wrote: I just upgraded to PHP 4.3.5 and now my email functionality does not work. I do have the SMTP setting in the php.ini set up and did restart Apache. We are running a Windows 2000 server and Apache 2.0.49. Any ideas? A few ideas/suggestions : Does your smtp server require

Re: [PHP] Apache2.x and php4.x

2004-04-03 Thread Burhan Khalid
Merlin wrote: Hi there, I am just about to install a new server and I was wondering if php now workes fine with apache2.x. I remember that there have been problems some while ago. Is this fixed and is it good enough for production servers? From http://www.php.net/manual/en/install.apache2.php :

Re: [PHP] Array_keys problem

2004-04-04 Thread Burhan Khalid
Robin 'Sparky' Kopetzky wrote: Good afternoon. I'm building a class and am having a bunch of trouble with the PHP array_keys function. I keep getting these errors: Warning: First argument to array_keys() should be an array in D:\Htf.php on line 33 Warning: Wrong datatype for second argument in

Re: [PHP] how to reset PHP_AUTH vars

2004-04-04 Thread Burhan Khalid
Nitin Mehta wrote: Hello, Thanks for your reply. but what I'm looking for is, yes logoff the user, but not making him/her click some link. I've this page and I want it to ask for username password whenever a user comes/comes back. Any suggestions? I believe this is the default behavior, unless

Re: [PHP] mysql - can't use the copy/paste function

2004-04-05 Thread Burhan Khalid
Five wrote: Windows 98 se When using the dos window command line for mysql commands everything works fine except if I try to use the paste function to paste pre-typed commands, the window freezes. This is aaannnoooyyyiiinnnggg. This is PHP -- MySQL is down the hall to the left. -- PHP General

Re: [PHP] Extracting Output from File...

2004-04-05 Thread Burhan Khalid
Russell P Jones wrote: Basically there is a php page... lets say http://www.myserver.com/outputpage.php that picks up some info from a database and echos it out as plain text to the browser. I want to use php in a different file to go pick up whatever is printed out to that file and save it to a

Re: [PHP] place list box using php

2004-04-05 Thread Burhan Khalid
T UmaShankari wrote: Hello, Is there possible to place a list box over one many background picture using php anyways ? No, this is not possible with PHP. PHP is not a client-side language. You need to solve this problem with HTML. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to built desktop applications.

2004-04-05 Thread Burhan Khalid
Alireza Balouch wrote: It's easy... Al you have to do is call the php script like: php4 mydesktopscript.php and use other languages like TCL/TK to have some GUI on your script.. but i would rather learn my self C instead of using php for Desktop app. [EMAIL PROTECTED] wrote in message

Re: [PHP] How to...

2004-04-06 Thread Burhan Khalid
Vicente Werner wrote: I've already a php function that outputs a file from a folder outside the www path to a page, but I can't find a way to do this and then close the window where it was outed. Any 1 can point me in the right direction? You cannot close the window from within PHP. You have to

Re: [PHP] php + lynx + grep

2004-04-06 Thread Burhan Khalid
Brian L. Ollom wrote: lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1 I need to get the output of the above command for a web site I'm working on. I've tried exec(), system() and neither seems to work. You know, it might be easier if you

Re: [PHP] Re: php + lynx + grep

2004-04-08 Thread Burhan Khalid
[ snippity snip snip ] Have you verified that lynx, grep, and head are in PHP's path? Check the output of `which lynx` or phpinfo() to figure out what your path is, and whether it includes lynx. Alternatively, use a full path to lynx to avoid confusion. Could be that the apache process has no

Re: [PHP] Need help

2004-04-09 Thread Burhan Khalid
Strogg wrote: Hi, Am working through a PHP Book (I am a noob), and it appears to fall over on the first tutorial. Any ideas where I can get help? Try the book/author/publisher website? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function for backing up mysql

2004-04-14 Thread Burhan Khalid
Victor SpÄng Arthursson wrote: 2004-04-14 kl. 09.57 skrev Hawkes, Richard: PhpMyAdmin (www.phpmyadmin.net) is a great MySQL admin tool, and utilises the MySQL backup functions. Yes, and it is the same functionability I want. But I want a php-function to implement in various scripts I

Re: [PHP] mysql_fetch_array problem? O.o

2004-04-15 Thread Burhan Khalid
Jeff Ostapchuk wrote: Ok, I have no clue what version of PHP I have installed, 4.??.??, and I have like the newest version of MySQL insatlled, and PHP and MySQL work fine together, excpet when I use mysql_fetch_row($query) then I have problems, mysql_fetch_array($query) works fine, but not

[PHP] Array Sorting Headaches

2004-04-18 Thread Burhan Khalid
Greetings everyone : Having a hard time with this one. I have a multi-dim array $foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data : Array ( [$x] = Array ( [0] = Array ( [invoiceid] = 11842

Re: [PHP] Re: Array Sorting Headaches

2004-04-19 Thread Burhan Khalid
Torsten Roehr wrote: Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings everyone : Having a hard time with this one. I have a multi-dim array $foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data [ snipped ] I need to filter the results so

Re: [PHP] Re: Array Sorting Headaches

2004-04-19 Thread Burhan Khalid
Torsten Roehr wrote: Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Torsten Roehr wrote: Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings everyone : Having a hard time with this one. I have a multi-dim array $foo[$x][$y]['key'], where

Re: [PHP] Re: Array Sorting Headaches

2004-04-19 Thread Burhan Khalid
Torsten Roehr wrote: Well, it does some sorting, but not quite what I'm after :( I've managed to get the list so that all the (sub) entries are sorted in the correct order. Now its just a matter of finding the highest expire date for /each/ domain, and delete the other entries for that domain.

Re: [PHP] Making an app unviewable during system maintainance

2004-04-21 Thread Burhan Khalid
Travis Low wrote: Michal Migurski wrote: Don't take the database down for backups. I can think of no logical reason why you'd want to kill the DB to back it up, since it's just a big read operation. Referential integrity might be a reason. Good point, though if this is a concern, the OP

Re: [PHP] SSI and query string variables to PHP

2004-04-25 Thread Burhan Khalid
Tim Traver wrote: Hi all, ok, this may be a dumb question, but I have a page that has server side includes that include a php script like this : Please send a new message if you have a new question, and do not reply to a thread and change the subject. It breaks the conversation flow. Where is

Re: [PHP] Fetching XML for parsing

2004-04-25 Thread Burhan Khalid
Patagonia Hosting Development Group wrote: That may be the exact problem. I was not figuring that one out. Thi is my fopen and XML parser code: $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, startElement, endElement); xml_set_character_data_handler($xml_parser,

Re: [PHP] SMTP and GroupWise

2004-04-25 Thread Burhan Khalid
Todd Cary wrote: My client is using GroupWise to relay *without* having relay turned on and it needs/uses an authenication that is different from the regular SMTP. Here is a trace of a message that went through: [ snipped POP before SMTP authentication ] Does anyone know of a class that can

Re: [PHP] User/Group rights system?

2004-05-12 Thread Burhan Khalid
david david wrote: Hello, Does anyone know of an open source user/group based permission system built with php/MySQL? That is, the effective rights for any user on a specific secured object are computed from various permit/deny permissions assigned to the user or any of the groups he/she belongs

Re: [PHP] What is the GD library and what can I do with it ?

2004-05-12 Thread Burhan Khalid
Pete wrote: Hello Rob, What is your local environment? (OS, PHP version, etc.) If you're running windows, most likely all you will have to do is change your php.ini. The OS used is Windows XP. Open your php.ini file, set your extension_dir variable to where the extensions directory is. If

Re: [PHP] Resequencing logic

2004-05-12 Thread Burhan Khalid
Matt Grimm wrote: I apologize if this message is a repeat; I've had trouble posting with Thunderbird. I'm interested in how you folks would approach the following issue: You have a list of data, in a user-defined sequence. For instance, a list of song titles that can be rearranged on a web

Re: [PHP] Antwort: RE: [PHP] Saving and mailing remote file

2004-05-13 Thread Burhan Khalid
Sascha Meyer wrote: Hi again, I need to download a remote file (e.g. some linked pdf document on another server) and send this file to a defined user. I don't know if there is a way to attach a remote file to an email (I don't want to send a link to the above mentioned file, but the file

Re: [PHP] Progress Bar

2004-05-02 Thread Burhan Khalid
Craig Gardner wrote: I'm working on a script that will automatically download and burn an ISO to a CD, when passed the filename of the ISO and I want to use some sort of progress bar to show how much of the download/burn is complete. I was originally going to use wget to download the file,

Re: [PHP] Results in array

2004-05-02 Thread Burhan Khalid
Phpu wrote: I want to interogate the database and the results to be placed into array. For now i have: $query = SELECT product_id, brand_name, model_name FROM products WHERE product_id='$product_id'; $result = mysql_query($query) or die(error in query - $query - .mysql_error()); $results =

Re: [PHP] PHP Auth

2004-05-02 Thread Burhan Khalid
Anton Krall wrote: Guys. Im doing a small php auth system and I was wondering, how can avoid having to do a form to pass the user and pw to the php scripts and just use the popup auth windows on IE and NS? do you remember the names of the vars that get passed thru that popup or how can I invoke

Re: [PHP] Walk though array applying my highlighting routine?

2004-05-05 Thread Burhan Khalid
Dave Carrera wrote: Hi List, I have worked out how to highlight all search words in a string. I hope its useful to some one. Please make it better if you can so we can all share it. But what I want to know is how can I treat each string with this highlighting routine individually so that my output

Re: [PHP] how does PHP handle kerberos authentication?

2004-05-06 Thread Burhan Khalid
Bing Du wrote: I need to code kerberos authentication in PHP. Like in Perl, it has Authen::Krb5 module. How the similar tasks are done in PHP? I've searched (all site) 'kerberos' on www.php.net but did not find any information that I need. http://www.faqts.com/knowledge_base/view.phtml/aid/777

Re: [PHP] Re: [PHP-DB] php-mysql problem

2004-05-15 Thread Burhan Khalid
Jianping Zhu wrote: Hi, thank you for your respinse. It the /etc/php.ini i have something like: ; ; extension=modulename.extension ; ; For example: ; extension=mysql.so if you go to http://coopunit.forestry.uga.edu:8080/test.php you will find mysql is not installed as an extension. but i do

Re: [PHP] using returned references directly?

2004-05-18 Thread Burhan Khalid
Jeff Schmidt wrote: Hello, Say I have object A, with method getObjectB(), which returns a reference to object2. Is there a way to do something like $A-getObjectB()-methodFromObjectB(); Don't know if this would work, but you could give it it a try :

Re: [PHP] Verisign pfpro

2004-05-18 Thread Burhan Khalid
Boulytchev, Vasiliy wrote: Ladies and Gents, I am trying to install Pay Flow Pro on my server, and am running into weird problems. I follow instructions from Verisign, and still cant get the thing to function. I get the error below: Fatal error: Call to undefined function:

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-18 Thread Burhan Khalid
Vans Hallden wrote: Please try to endure my ignorance. I'm new to PHP4 and out to perform just a single isolated task with it. :) I would like to form some simple statistics from specific column data in a mysql database and display those stats on a webpage. I have collected a few demographics

Re: [PHP] How to get class name in static function (PHP 4.2.3)

2004-05-18 Thread Burhan Khalid
Torsten Roehr wrote: Hi, does anyone know a way of how to get the name of the class within a static function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't upgrade. My code (simplified): class Base { function Factory() { $classname = ???; return new $classname;

Re: [PHP] How to get class name in static function (PHP 4.2.3)

2004-05-18 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Burhan Khalid [EMAIL PROTECTED] schrieb am 18.05.2004, 10:48:29: Torsten Roehr wrote: Hi, does anyone know a way of how to get the name of the class within a static function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't upgrade. My code (simplified): class

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-18 Thread Burhan Khalid
Vans Hallden wrote: Here is one way: (probably not the best) I was able to get almost everything working with your help. Thanks!!! :) average ages for male/female respondents (database column 'age') SELECT AVG(age) FROM tablename WHERE sex = 'male'; SELECT AVG(age) FROM tablename WHERE sex =

Re: [PHP] shared memory

2004-05-19 Thread Burhan Khalid
venkata ramana wrote: Is the shared memory created with php comaptible with that created with a C program? I mean to ask, can we access the data written into shared memory by a C program from a php program? I would hope not, as this would cause major security problems and system instability. I

Re: [PHP] Detect if a file is hidden or not (win32)

2004-05-22 Thread Burhan Khalid
Simon Fredriksson wrote: Is there any built-in function to find out if a file/directory is hidden in Win32? Not a function in PHP, but you just need to execute : dir /a:h to find all hidden files in a directory. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Cpanel accounting library

2004-05-22 Thread Burhan Khalid
Jordi Canals wrote: Hi all, Cpanel is a control panel to manage accounts for ISP's (And espcially ISP's resellers). I knnow there is some librarys to directly manage the accounts from PHP-Scripts and I got some very small and undocummented samples. I'm working on some scripts to manage the

Re: [PHP] PHP Only directory

2004-05-26 Thread Burhan Khalid
Erik Meyer wrote: Greetings, I am fairly new at this and I am going to create my first web server. I have installed PHP as the documentation says and the only question that I have is whether or not PHP can be configured on a single directory only, (example mydomain.com/php/). The server that I am

Re: [PHP] How to check for a $_GET without throwing a Notice?

2004-05-27 Thread Burhan Khalid
Brian Dunning wrote: How do I check for the presence of an optional $_GET param without throwing a Notice: Undefined index when the param is not present? Tried all three of these, they all produce the Notice when the param is not passed: if ($_GET['id']) if ($_GET['id'] != ) if (isset

Re: [PHP] ColdFusion / SQL PHP / mySQL HELP!

2004-05-30 Thread Burhan Khalid
Curt Zirzow wrote: * Thus wrote Chris Jernigan ([EMAIL PROTECTED]): Hi everyone, What's the problem? I have one week to do this. Oh, and did I mention that I know VERY little about PHP / mySQL. I know NOTHING about ColdFusion or MSSQL. And to top it off, the site in question contains over 300

Re: [PHP] PEAR Mail/smtp sending problem

2004-05-31 Thread Burhan Khalid
Christopher J. Mackie wrote: I'm following the PEAR docs to use Mail/SMTP. Below is the code I use, swiped directly from the docs--I've changed the authorization data to protect privacy, but otherwise it's identical (and email sent from a client on this same machine using the same settings works

Re: [PHP] Slightly OT Mysql question

2004-06-01 Thread Burhan Khalid
Dave Carrera wrote: Hi List, Sorry for this question being slightly OT but its is to due with my Php script in a way. MySql has stopped adding rows since the db table hit 1mb... Anyone know why ? I have search mysql.com docs and other web resources but can not figure it out. Running FreeBSD 4.7

Re: [PHP] Strtotime() weirdness

2004-06-02 Thread Burhan Khalid
Alex Hogan wrote: Does anybody know of any peculiarities in the strtotime() function? If I enter any date before 1 Jan 1970 I get a -1 returned. Note: The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that

Re: [PHP] Best way to sort?

2004-06-06 Thread Burhan Khalid
Brian Dunning wrote: I'm not sure if this is a complex SQL query or a PHP array sorting thing, but what's the best way to take this data: Tom Greg Brian Tom Brian Tom And return the following results, sorted by number of records: Tom - 3 Brian - 2 Greg - 1 Any thoughts? I'm not

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

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)

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] 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($File,

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] ?xml version=1.0 encoding=ISO-8859-1? ... 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

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 ?xml

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] ?xml version=1.0 encoding=ISO-8859-1? [/snip] using fread the above line comae out like this(even though I was not echoing the line, just processing) ?xml version=\1.0\ encoding=\ISO-8859-1\? ...as soon as I added

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

Re: [PHP] Upload is still not working

2004-11-23 Thread Burhan Khalid
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] 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:

Re: [PHP] Passing Parameters

2004-11-28 Thread Burhan Khalid
David Blackburn wrote: I used to pass parameters to my scripts like this shellphp myscript.php dog=maxcat=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 the

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

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

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 =

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

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 specific

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] silly question: an IDE for php?

2004-07-20 Thread Burhan Khalid
Zhang Weiwu wrote: Not to start flame. I have been writing php using just vim for some time, it is a waste of time to put 'echo' statement everywhere to track variable values. I wonder what do the experienced users on php.net use for php development? Do you use IDE? Do you use Zend? Is there

Re: [PHP] php.net like doc pages

2004-07-20 Thread Burhan Khalid
[php]Walter wrote: Anyone know a blog (I think) that will let me create documentation and let users add their comments to the tail of it, just like php.net can do?? Drupal's collaborative book feature is quite nice for this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Disk serial number

2004-07-23 Thread Burhan Khalid
Rosen wrote: Yes, on Linux there is a command to get this info, but on windows I think there'n no thath command. Is there a module for PHP to do this ? c:\dir c:\test.txt Volume in drive C is Primary Volume Serial Number is 003E-6CEA Directory of c:\ 07/23/2004 01:43 PM11

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

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

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

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

2004-08-15 Thread Burhan Khalid
Jay Blanchard wrote: [snip] Is there any function in PHP that changes html in a string from p align=center to p align=center ? (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

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

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 anyone

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

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 $_SESSION;

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 your

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 music

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 include

<    1   2   3   4   5   6   >