Re: [PHP] Weird problem when creating a db connection and trying to reference it in a function

2003-10-24 Thread Burhan Khalid
do this return mysql_list_fields($dbname, $table); -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] scrolling tables within a page

2003-10-25 Thread Burhan Khalid
is for php questions. :| -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trying to organise an array

2003-10-26 Thread Burhan Khalid
Thisparagraph has two tabsbetween eachword. Can you see them? Saw those tabs. no tabs in code Mozilla Mail on Windows XP fwiw Please don't top-post. -- Burha

Re: [PHP] Post form variables to a frame

2003-10-26 Thread Burhan Khalid
27;$category'"; Well your form is sending its data to frame.php -- but you are looking for it in browse.php if you change name="category" to name="category[]" then you'll get your results in an array with $category[0] holding the value of the selected in

Re: [PHP] Parsing colorcodes

2003-10-26 Thread Burhan Khalid
, the syntax is "X4,8String" where X is really chr(3). Red (4) String with yellow (8) background. I'm not a regex guru, but |[0-9]{2},[0-9]{2}(*.?)| should capture it. I forget how to ask the regex for optional items, but that should get you started. -- Burhan Khalid ph

Re: [PHP] doc_root question.

2003-10-26 Thread Burhan Khalid
Apache's VirtualHost directive. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML/MySQL

2003-10-26 Thread Burhan Khalid
1 row in set (0.00 sec) mysql> If your mysql version is < 4.x -- then you have to resort of one of the many mysql-to-xml classes available (check phpclasses.org and PEAR). -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.ph

Re: [PHP] copying a directory

2003-10-26 Thread Burhan Khalid
http://www.php.net/manual/en/function.exec.php -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MP3 Ripping

2003-10-27 Thread Burhan Khalid
etc for PHP. I know of a few that are for reading track information from mp3s, but not one that does what you want. I suppose you can customize one of those to your liking. Tell me why you want to do this via PHP + Web Server + MySQL + Web Browser again? -- Burhan Khalid phplist[at]meidom

Re: [PHP] Handling Notices

2003-10-27 Thread Burhan Khalid
which does the same thing. By the way -- pat yourself on the back for going with error_reporting(E_ALL). Its one of the first steps towards effective programming. :) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing variables

2003-10-28 Thread Burhan Khalid
now how to pass user input variables. How could I automaticaly set a POST or GET variable through a script? Is it possible to set those variables from outside a script? Could an array be passed? http://www.php.net/sessions http://www.php.net/serialize http://www.php.net/unserialize -- Burhan Kh

Re: [PHP] [xml] character data

2003-10-28 Thread Burhan Khalid
h whitespace which is probably overwriting your content try this $content = trim($content); if(!empty($content)) $info[$element] = $content; Or you can strip all the whitespace from the xml document and send that in. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP Gen

Re: [PHP] Error 1148 and 1045

2003-10-28 Thread Burhan Khalid
ybody shed some light on how to fix this? I presume the first is a permission problem that is from the new way that MySQL handles things. The second is just a mystery to me. This is a php mailing list. Ask your question on the mysql list. -- Burhan Khalid phplist[at]meidomus[dot]com http://w

Re: [PHP] Trying to craft a regexp

2003-10-31 Thread Burhan Khalid
inks[0]); $href = array_unique($arrayoflinks[2]); //href= $text = array_unique($arrayoflinks[4]); //link text $text, $href, etc. are arrays. You can print_r() to find out what they contain. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://w

Re: [PHP] Array maybe? Or many SQL insert queries

2003-11-01 Thread Burhan Khalid
t; doesn't mean much. What box? Is it a big green box? Blue box? Box of boxes? If you want "on the fly" then its javascript. For php to work, you'd have to send a request to the server, which would kill your "on the fly" part. -- Burhan Khalid phplist[at]meidomus

Re: [PHP] Templates/Separate content from presentation

2003-11-01 Thread Burhan Khalid
tp://pear.php.net/package/HTML_Template_Flexy http://pear.php.net/package/HTML_Template_PHPLIB http://pear.php.net/package/HTML_Template_Sigma http://pear.php.net/package/HTML_Template_Xipe -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] XML Validate

2003-11-01 Thread Burhan Khalid
running it through the parser. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Put output of mysql into an Array

2003-11-01 Thread Burhan Khalid
array like this (for example); array( "January 12" => 52, "August 4" => 45 ); http://www.php.net/mysql-fetch-array http://www.php.net/mysql-fetch-assoc Before asking next time, try reading the manual. :| -- Burhan Khalid phpli

Re: [PHP] Array maybe? Or many SQL insert queries

2003-11-01 Thread Burhan Khalid
Jake McHenry wrote: -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Saturday, November 01, 2003 3:50 AM To: Jake McHenry; [EMAIL PROTECTED] Subject: Re: [PHP] Array maybe? Or many SQL insert queries Jake McHenry wrote: Hi everyone, here's what I'm doi

Re: [PHP] XML DOM

2003-11-03 Thread Burhan Khalid
t/xml -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search and POST and keywords

2003-11-03 Thread Burhan Khalid
("Location:$_POST[url]"); I guess what I am missing is another way to pass the KEYWORD from the first form to the next part to make it seen by the script. Have you looked at sessions? I don't see why you don't want to use hidden fields, but sessions would be the next thing to look a

Re: [PHP] JavaScript Newsgroup

2003-11-03 Thread Burhan Khalid
pert minds on Evolt, and I see javascript questions on it all the time :) You should try "The List" mailing list for web development questions. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread Burhan Khalid
John Nichel wrote: Hey, I beat John Holmes That's me baby, quanity, not quality. ;) Yeah apparently it is :P -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread Burhan Khalid
alone auto-documentor similar to JavaDoc written in PHP." There is also a phpdoc iirc. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache1.3.28 vs PHP4.3.3

2003-11-05 Thread Burhan Khalid
this error: Cannot remove module mod_php4.c: not found module list I removed the "AddModule mod_php4.c" directive, restart the server, but remain the same problem Verify the path to php4apache.dll Read this > http://www.meidomus.com/node/view/9 -- Burhan Khalid phplist[at]meidomus

Re: [PHP] simple?

2003-11-05 Thread Burhan Khalid
-aware syntax highlighting text editor like vim (Linux/Unix) or Editplus/Ultraedit, etc. for Windows. That also helps. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: XML and PHP

2003-11-06 Thread Burhan Khalid
k the manual first). -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] BTML 2.0 released!!!

2003-11-06 Thread Burhan Khalid
n text, and above all else, please don't top post. (where's that weekly newbie email?) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better t

Re: [PHP] Cross Site Scripting

2003-11-07 Thread Burhan Khalid
Shaun wrote: Hi, Is there a way to filter metacharacters from all $_POST values sent from pages on my site in an effort to eliminate the majority of XSS attacks? htmlentities() preg_match_all() -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

Re: [PHP] SQL Injections

2003-11-07 Thread Burhan Khalid
Shaun wrote: Hi, does anyone know of a function i can include in my scrpits to ensure all $_POST values sent from a page don't include any SQL? preg_match_all() -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex:

Re: [PHP] BTML 2.0 released!!!

2003-11-07 Thread Burhan Khalid
much better resource than those two. Can you please let me know what it means to "top post" when you have a moment? Top post means posting on top of the text (what you did). Always paste below the text that you are replying to (what I did). -- Burhan Khalid phplist[at]meidomus[d

Re: [PHP] Some Information on A Help Database Application Using PHP and XML

2003-11-07 Thread Burhan Khalid
atically. There was a similar question recently to which I (and others) posted some links to some auto-document generators. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and

Re: [PHP] single quotes in database

2003-11-07 Thread Burhan Khalid
Steve Buehler wrote: I am using PHP/MySQL and am having a problem. We have some names and addresses in the database that have single quotes in them. [snipped] mysql_escape_string() stripslashes() addslashes() -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

Re: [PHP] BTML 2.0 released!!!

2003-11-07 Thread Burhan Khalid
dex']) ? $foo['index'] : NULL; Practical example : $username = isset($_POST['username']) ? $_POST['username'] : NULL; Other ways to do the same : if(isset($_POST['username'])) { $username = $_POST['username']; } e

Re: [PHP] Cell Colour Change!!! HELP

2003-11-07 Thread Burhan Khalid
") { print("#009966") ; } elseif ($_GET['page']!="Registration") {print("#CC0033") ;}"> -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good,

Re: [PHP] PHP, SiteSpinner and MS SQL2000

2003-11-07 Thread Burhan Khalid
oesn't work for you. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] On OS X (10.2) where is php installed?

2003-11-07 Thread Burhan Khalid
ne shed some light? Try /usr/local/php Not sure if the Apple "Unix" supports this, but you can always try find / -name php or locate php whereis php -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is

Re: [PHP] How Can I read this Array

2003-11-08 Thread Burhan Khalid
dr. zoidberg wrote: Hello, how can I read element1, element2 and element3 from array: a|a:1:{i:1;a:3:{ i:0;s:6:"element1"; i:1;s:5:"element2"; i:2;s:6:"element3"; }} http://www.php.net/unserialize -- Burhan Khalid phplist[at]meidomus[d

Re: [PHP] Re: phpmysql(which array function?)

2003-11-08 Thread Burhan Khalid
work read > http://www.mysql.com/manual -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http:

Re: [PHP] How to get the server information

2003-11-08 Thread Burhan Khalid
:| -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] the function of the "@" symbol?

2003-11-08 Thread Burhan Khalid
ne 44" notification? Probably Funny.. Not really, considering those kinds of notices are what can prevent some hour-long headscratching trying to figure out why a piece of code isn't working when $name was typed as $names. -- Burhan Khalid phplist[at]meidomus[dot]com http://w

Re: [PHP] Help With Recursion && Multi-Dimensional Arrays

2003-11-09 Thread Burhan Khalid
GET['some_path'], which is in the format: parent1_child1_grandchild1_grandchild2, etc.($some_path = 1_4_6_8), where all of these are related to each other. These, of course, are split using the underscore delimeter: $path['0'] = 1, $path['1'] = 4, and so on. Can you give a sample of what the print_r() of t

Re: [PHP] Dose this exist?

2003-11-09 Thread Burhan Khalid
n. Any URL's would be useful. http://pear.php.net/HTML_Quickform http://smarty.php.net -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than

Re: [PHP] HTML2PDF on the fly

2003-11-11 Thread Burhan Khalid
://www.php.net/pdf executing the below code giving error.This code is given in HTMLDOC. What error? -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better

Re: [PHP] displaying numbers up to 2 places of decimal.

2003-11-11 Thread Burhan Khalid
Binay wrote: Hi all ! I want to display numbers(integer,float,double) up to 2 places of decimal i.e if number is interger say 10, then i want to display it like 10.00. STFA this question comes up one every 2 days. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

Re: [PHP] DW Php update record form with menu from another table

2003-11-11 Thread Burhan Khalid
rm. I did that and the form still doesn't work. Attached is the entire page for consulting. Please don't send attachments with your messages. If you need to show a lot of code, post it online somwhere ( www.pastebin.com for example ) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.m

Re: [PHP] \n and

2003-11-11 Thread Burhan Khalid
ly render a tag? I know NN 4.x has problems with /found this out the hard way/ but I don't know of any browser that can't render . Although I would love to be proved wrong here :P -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Docume

Re: [PHP] Dose this exist?

2003-11-11 Thread Burhan Khalid
n. Any URL's would be useful. On reflection, maybe what you were looking for is something like codecharge? [ http://www.codecharge.com ] -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, ver

Re: [PHP] First test release of BTportal made!!!!

2003-11-11 Thread Burhan Khalid
Bas wrote: It's avaiable on: http://members.home.nl/famde.jong/portalBT-0.0.1.zip Get your own list. php.general is not your personal announcement list. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is

Re: [PHP] How to adpated a javascrip with php...

2003-11-11 Thread Burhan Khalid
Payne wrote: Hi, I have a Javascript that I like to use with PHP/MYSQL, But I don't know how to mix the two... Here is an example. /* do php stuff here, like set a value to $x */ $x = 3; ?> funtion x() { var foo = <?php echo $x; ?>; alert(foo); } -- Burhan Kha

Re: [PHP] Execute Background Process

2003-11-12 Thread Burhan Khalid
apur kurub ver.1 wrote: dear all i will execute background process like $program & is there posible in php to process that statement? and return to php immediately; http://www.php.net/system -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus

Re: [PHP] multiple table rows into an array, and creating a calendar

2003-11-12 Thread Burhan Khalid
calendar where the dates on the calendar are highlighted ... why don't you do an in_array() check for each date that you print. if (in_array($current_cal_date, $array_of_event_dates)) { echo "".$current_cal_date.""; } Hope this helps. -- Burhan Khalid phplist

Re: [PHP] Somewhat-OT: Notation style

2003-11-12 Thread Burhan Khalid
is is called Camel Case -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] multiple table rows into an array, and creating a calendar

2003-11-13 Thread Burhan Khalid
top of my head, something like this should work : $dates = array(); while($row = mysql_fetch_assoc($result)) { $dates[] = $row; } echo ""; print_r($dates); echo ""; TIAS :) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentat

Re: [PHP] overriding string concatenation '.'

2003-11-13 Thread Burhan Khalid
27;ssh '.$ipaddr.' command' which would result in ssh 192.168.1.100 command and would take care of your "concatenation" problem. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is ver

Re: [PHP] $_POST bug?

2003-11-13 Thread Burhan Khalid
7;]) that the problem occurs. Any non-zero number evaluates to true. In your statement, you are essentially asking "if the value of $_POST['test'] is greater than 0" which would return true. So if test = 0, then the if condition fails, hence why you are getting your problems. -

Re: [PHP] comparison efficieny

2003-11-13 Thread Burhan Khalid
of its "foo" if ($variable === "foo") this will return true only if $variable is a string "foo" (iirc). Hopefully this helps, -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it i

Re: [PHP] Explanation for php.net front page???

2003-11-13 Thread Burhan Khalid
bug system classifying them as a "PHP.net website problem" and providing as much information as possible (OS, Browser version, Javascript errors, etc..). --snip-- Thanks, Scott -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentatio

Re: [PHP] PEAR error

2003-11-16 Thread Burhan Khalid
such as "PEAR::isError" and "Mail::factory" what do those "::" mean? The techincal term for :: is "paamayim nekudotayim" (try saying that three times fast). Most people call it the scope resolution operator. You can read more about what it is and what it does

Re: [PHP] Set time zone

2003-11-16 Thread Burhan Khalid
ww.php.net/putenv putenv("TZ=EST"); etc. (check the user notes). locale iirc is for controlling the display of time, not the time zone. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is ver

Re: [PHP] MySQL Connection Help

2003-11-16 Thread Burhan Khalid
last option under the mysql section), you can ask your host to add an alias for mysql. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothin

Re: [PHP] giving variable value in URL problem

2003-11-16 Thread Burhan Khalid
uot;if status is not equal to or greater than zero" -- which of course will not work. Also, this will not work because 0 is considered false in PHP. So if status is 0, then it won't echo anything (nevermind the syntax error). Try $status = isset($_GET['status']) ? $_GET[&#

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread Burhan Khalid
web specific -- so anyone can download other components an integrate them. Just my opinions. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better th

Re: [PHP] Using $_SERVER

2003-11-16 Thread Burhan Khalid
There are no "laws" against doing that...however $GLOBALS would be a better place to stick custom variables. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and whe

Re: [PHP] setting a global var so that all pages can see var

2003-11-17 Thread Burhan Khalid
table"); $tablename is not being passed with the link. What am i missing? RTFM @ http://www.php.net/security.registerglobals STFA This question is another one of those twice daily ones. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Docu

Re: [PHP] Single Session for different websites

2003-11-17 Thread Burhan Khalid
, if yes how ? if no any other work around ? You can store the session information in a database that can be read from all three websites. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very

Re: [PHP] Communicating with remote server

2003-11-17 Thread Burhan Khalid
offer. Consider using SOAP or XML-RPC -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://w

Re: [PHP] Search For File

2003-11-18 Thread Burhan Khalid
good way to do this? I am mainly interested in how the search should work. You could use the filesystem functions and read the directory's contents into an array and search that array for your file. Look up http://www.php.net/filesystem -- Burhan Khalid phplist[at]meidomus[dot]co

Re: [PHP] How to get the key of a specific index of array?

2003-11-18 Thread Burhan Khalid
you are after) while(list($key,$value) = each($foo)) { echo "For key ".$key." the value is ".$value; } -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and whe

Re: [PHP] About iMail Help

2003-11-18 Thread Burhan Khalid
D. Jame wrote: Hi, Anyone know about imail.? Read http://www.catb.org/~esr/faqs/smart-questions.html -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad,

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Burhan Khalid
Back to product choice page you are missing session_start(); on 16.5 You need that in order to populate the $_SESSION array. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and

Re: [PHP] easy and simple way to read xml into array

2003-11-18 Thread Burhan Khalid
p://www.google.com/search?q=parsing+xml+php (some that I didn't) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP

Re: [PHP] windows file permission

2003-11-19 Thread Burhan Khalid
r script to be able to write to (from the IIS manager) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing

Re: [PHP] MS SQL Connectivity from Linux

2003-11-19 Thread Burhan Khalid
Fernando Melo wrote: Hi everyone, What is the quickest and easiest way to enable access to a MS SQL database from a Linux server (using PHP functions ofcourse), seeing as the MSSQL extension is available on Win32 systems only. ODBC -- Burhan Khalid phplist[at]meidomus[dot]com http

Re: [PHP] echo or print

2003-11-20 Thread Burhan Khalid
;t trim posts. Tom, please trim your replies. We don't need to see the same signature twice (especially if its as grand as Jay's). Where is that newbie email? -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like se

Re: [PHP] Re: mail -f option for removing nobody@localhost Return-Path

2003-11-21 Thread Burhan Khalid
package. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] detaching and running php processes in the background

2003-11-21 Thread Burhan Khalid
cho "Couldn't run process"; } http://www.php.net/popen -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PH

Re: [PHP] free PHP OOP book - Web applications desgin

2003-11-21 Thread Burhan Khalid
e PEAR::DB -- however good database design will help a lot in this regard. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP

Re: [PHP] Search File

2003-11-21 Thread Burhan Khalid
er than reading each file using PHP. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://www.p

Re: [PHP] Error 1045

2003-11-22 Thread Burhan Khalid
uch option as -root Next time, ask on the MySQL list. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mail

Re: [PHP] PRINT QUESTION

2003-11-25 Thread Burhan Khalid
uot;line printer terminal 1", but I'm not too sure about that. There are probably better ways to do the same on other systems, but this is the quick example I could think of. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentatio

Re: [PHP] Windows PHP permissions question

2003-11-26 Thread Burhan Khalid
ork. Help?!?! If you are on IIS, you need to set the script read/write permissions, iirc. If you are on Apache, I don't think permissions come into play. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is goo

Re: [PHP] Outlinin block of code

2003-11-26 Thread Burhan Khalid
nd is free) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Does anyone have Upload meter php codes?

2003-11-27 Thread Burhan Khalid
how i can find? http://pear.php.net/package/HTML_Progress -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Ma

Re: [PHP] Regular Expression Help: genreate alphanumeric, 8 chars

2003-11-27 Thread Burhan Khalid
4; ++$i) { $ran_char[] = $letters[$char[$i]]; $ran_num[] = $digits[$num[$i]]; } //build our password $password = array_unique(array_merge($ran_char, $ran_num)); //randomize it shuffle($password); return join("",$password); } echo passgen(); ?> -- Burha

Re: [PHP] 12 seconds!?!?

2003-12-02 Thread Burhan Khalid
before posts. VB has this option. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing List (http://www.ph

Re: [PHP] Max Upload FIle Size

2003-12-05 Thread Burhan Khalid
Steve Vernon wrote: Hello, I have search google, and PHP but I cannot find properly how to set the maximum post upload size as 200Kb? Amazing what you can find in the manual these days http://www.php.net/manual/en/configuration.directives.php#ini.post-max-size -- Burhan Khalid phplist[at]meidomus

Re: [PHP] move_uploaded_file

2003-12-05 Thread Burhan Khalid
restriction directive in php (as far as uploads go). -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." -- PHP General Mailing L

Re: [PHP] converting string into array with regex

2003-12-05 Thread Burhan Khalid
') ^ ^ ^ ^ ^ You can access a string's characters with an index without declaring it as an array. $string = "foo"; echo $string{0}; //outputs f http://www.php.net/substr (has an example) Maybe this will solve your problem without using pre

Re: [PHP] XML & XSLT

2003-12-05 Thread Burhan Khalid
Nick Wilson wrote: Hi all, under 4.3 is there any way to work with XSLT and XML that *does not* require additional modules etc to be installed? Perhaps a set of classes or somesuch? Many thanks... http://pear.php.net http://www.phpclasses.org -- Burhan Khalid phplist[at]meidomus[dot]com http

Re: [PHP] PHP RSS sites and SlashDot

2003-12-06 Thread Burhan Khalid
s in your own reader). am basically trying to get a feed from around 4 sites for around 5 links each... http://www.zend.com/zend_rss.php is a good one to have -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- "Documentation is like sex: when it is

RE: [PHP] A hint...

2004-01-03 Thread Burhan Khalid
-Original Message- From: Jeremy Russell [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:17 PM To: [EMAIL PROTECTED] Subject: [PHP] A hint... Hello list.. I was needing a small hint on how to make a sort of status page... What I have is a function that takes a few minute

Re: [PHP] http authentication through PHP

2004-01-11 Thread Burhan Khalid
Scott Taylor wrote: What is the easiest way to access a page that is protected by HTTP basic authentication through PHP? In other words, I have a PHP page that will get the username and password off a database and will then login through HTTP authentication to access a second page (say an HT

Re: [PHP] I am totally nuts/banana. Please somebody help me with an include problem.

2004-01-12 Thread Burhan Khalid
Jay Blanchard wrote: [snip] please can somebody help me. I am going nuts. Really I am close to totally freaking out. [/snip] Sorry to hear that [snip] In the file page_dentona.class.php the first line says the following: require_once('../design/page.class.php'); The following error message comes

Re: [PHP] Function returns

2004-01-12 Thread Burhan Khalid
Shawn McKenzie wrote: Maybe a dumb question, but as good coding practice, should all functions return something even if they don't need to??? Example: function do_it() { echo "hi"; } --or-- function do_it() { return echo "hi"; } Also, if they do other things but really don't return anythin

Re: [PHP] Re: how to open a webpage

2004-01-12 Thread Burhan Khalid
bernard wrote: Hi, Thanks for the suggestions ! Problem is solved sofar. But how can I open the link in a new window, I tried (with my limited php knowlegde) a lot of things, but i'ts not working :-( From the Newbie Guide : 6. PHP is a server side scripting language. Whatever processing PH

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Burhan Khalid
Børge Strand wrote: Hi, In my php code, how can I fetch the input from another website and parse its output without sending it to the client? What I want to do is this: My php program uses sends send some information to a .cgi file possibly on a different site. That file uses GET to fetch the in

Re: [PHP] class limitations brought by PEAR

2004-01-14 Thread Burhan Khalid
Glenn Yonemitsu wrote: I don't want to rely on PEAR, mainly because I don't know it too well to use it fully. But most PHP installs come with base PEAR classes, so does that take away my ability to name classes that PEAR already made? (ie. class DB). No. -- PHP General Mailing List (http://www

Re: [PHP] unsupported operand types

2004-01-19 Thread Burhan Khalid
Diana Castillo wrote: why do I get this error? Fatal error: Unsupported operand types in c:\program files\apache group\apache\htdocs\web\usr\local\global\php\providers\interfaces\TouricoTes tInterface.php on line 827 the code is as follows: $price=0; Here $price is an integer. foreach ($price_data

[PHP] PHP Auto-Diagramming

2004-01-26 Thread Burhan Khalid
Greetings All : Is there an application that can load php files and create a flow diagram for the application? Something like Visio but for PHP applications only. Thanks for any pointers, Burhan | phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

<    1   2   3   4   5   6   >