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

2003-11-05 Thread Burhan Khalid
John Nichel wrote: snip 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
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[dot]com http

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
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 unsubscribe, visit: http

Re: [PHP] BTML 2.0 released!!!

2003-11-06 Thread Burhan Khalid
, 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 than nothing. -- PHP General Mailing List

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: when it is good

Re: [PHP] BTML 2.0 released!!!

2003-11-07 Thread Burhan Khalid
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[dot]com http://www.meidomus.com

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

2003-11-07 Thread Burhan Khalid
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 when it is bad, it is better than nothing

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
'] : NULL; Practical example : $username = isset($_POST['username']) ? $_POST['username'] : NULL; Other ways to do the same : if(isset($_POST['username'])) { $username = $_POST['username']; } else { $username = NULL; } -- Burhan Khalid phplist[at]meidomus[dot]com http

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

2003-11-07 Thread Burhan Khalid
) {print(#CC0033) ;} tdtd/ tr/ -- 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

Re: [PHP] PHP, SiteSpinner and MS SQL2000

2003-11-07 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://www.php.net

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

2003-11-07 Thread Burhan Khalid
/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 good, it is very, very good; and when it is bad

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[dot]com http://www.meidomus.com

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

2003-11-08 Thread Burhan Khalid
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://www.php.net

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://www.php.net

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

2003-11-08 Thread Burhan Khalid
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://www.meidomus.com

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

2003-11-09 Thread Burhan Khalid
: 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 the desired output would be like? That would help :) -- Burhan Khalid

Re: [PHP] Dose this exist?

2003-11-09 Thread Burhan Khalid
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 nothing. -- PHP General

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 than nothing

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
( www.pastebin.com for example ) -- 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

Re: [PHP] \n and br

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

Re: [PHP] Dose this exist?

2003-11-11 Thread Burhan Khalid
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, very good; and when

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 good

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. ?php /* do php stuff here, like set a value to $x */ $x = 3; ? script funtion x() { var foo = ?php echo $x; ?; alert(foo); } /script -- Burhan Khalid

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

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

2003-11-12 Thread Burhan Khalid
a 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 td class=\highlighted\.$current_cal_date./td; } Hope this helps. -- Burhan Khalid phplist[at]meidomus

Re: [PHP] Somewhat-OT: Notation style

2003-11-12 Thread Burhan Khalid
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 unsubscribe, visit

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

2003-11-13 Thread Burhan Khalid
, something like this should work : $dates = array(); while($row = mysql_fetch_assoc($result)) { $dates[] = $row; } echo pre; print_r($dates); echo /pre; TIAS :) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good

Re: [PHP] overriding string concatenation '.'

2003-11-13 Thread Burhan Khalid
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 very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List

Re: [PHP] $_POST bug?

2003-11-13 Thread Burhan Khalid
. 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. -- Burhan Khalid phplist[at]meidomus[dot]com http

Re: [PHP] comparison efficieny

2003-11-13 Thread Burhan Khalid
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 is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http

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

2003-11-13 Thread Burhan Khalid
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 --- Documentation is like sex: when it is good

Re: [PHP] PEAR error

2003-11-16 Thread Burhan Khalid
/keyword.paamayim-nekudotayim.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.php.net/) To unsubscribe

Re: [PHP] Set time zone

2003-11-16 Thread Burhan Khalid
/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 very, very good; and when

Re: [PHP] MySQL Connection Help

2003-11-16 Thread Burhan Khalid
in a public forum like this. If you can't find the option in your control panel (I know cpanel has it as a 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

Re: [PHP] giving variable value in URL problem

2003-11-16 Thread Burhan Khalid
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['status'] : NULL; echo $status; -- Burhan Khalid phplist[at]meidomus[dot]com http

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

2003-11-16 Thread Burhan Khalid
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 than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

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

2003-11-17 Thread Burhan Khalid
(SELECT * FROM $tablename)or die(couldnt select 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

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 good

Re: [PHP] Communicating with remote server

2003-11-17 Thread Burhan Khalid
. 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://www.php.net

Re: [PHP] Search For File

2003-11-18 Thread Burhan Khalid
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]com http://www.meidomus.com

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

2003-11-18 Thread Burhan Khalid
($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 when it is bad, it is better than nothing. -- PHP General Mailing List (http

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
) { print li$p; } print /ol; } ? a href=listing16.4.phpBack to product choice page/a /body /html 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

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

2003-11-18 Thread Burhan Khalid
://www.meidomus.com/node/view/21 (that's one I wrote) http://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

Re: [PHP] windows file permission

2003-11-19 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

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
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 sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP

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, visit: http

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

2003-11-21 Thread Burhan Khalid
://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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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

2003-11-21 Thread Burhan Khalid
-- 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 General Mailing List

Re: [PHP] Search File

2003-11-21 Thread Burhan Khalid
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.php.net/) To unsubscribe, visit

Re: [PHP] Error 1045

2003-11-22 Thread Burhan Khalid
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 Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] PRINT QUESTION

2003-11-25 Thread Burhan Khalid
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 --- Documentation is like sex: when it is good, it is very, very good

Re: [PHP] Windows PHP permissions question

2003-11-26 Thread Burhan Khalid
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 good, it is very, very good

Re: [PHP] Outlinin block of code

2003-11-26 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://www.php.net

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 Mailing List (http

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

2003-11-27 Thread Burhan Khalid
[] = $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(); ? -- Burhan Khalid phplist[at]meidomus[dot]com http

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

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
(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 List (http://www.php.net/) To unsubscribe

Re: [PHP] converting string into array with regex

2003-12-05 Thread Burhan Khalid
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 preg_split? -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

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
Development related feeds (you can then use the URLs 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

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

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

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

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 anything,

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

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

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

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

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

FW: [PHP] phpCollab on shared server?

2004-01-29 Thread Burhan Khalid
Burhan Khalid wrote: Marc A. Garrett wrote: Has anyone installed phpCollab on a shared server? I have a php account with MediaTemple and was hoping to find a few pointers. -- Marc A. Garrett since1968.com I have installed it a few times on shared hosting accounts without any problems

RE: [PHP] Create a new directory on server.

2004-01-31 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Hi all, is there in PHP a function that create a new directory on server? Regards, Frank www.automationsoft.biz Don't send your messages high priority. They are not high-priority. -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http

RE: [PHP] formated text after Submit in MySQL/PHP

2004-01-31 Thread Burhan Khalid
them to type P) is this possible? thanks, Matt Yes. See http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-an swers.html -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Date comparison

2004-02-04 Thread Burhan Khalid
to print the result in a human readable way ? Thx http://www.php.net/date -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: authentication comparing to /etc/passwd

2004-02-04 Thread Burhan Khalid
/tut/authentication.php -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Slightly OT! PHP / HTML Editor for Linux

2004-02-04 Thread Burhan Khalid
] -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Document generation from XML

2004-02-04 Thread Burhan Khalid
( there are several links to toot-o-matic, but that should get you started ) -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] extract(filename)

2004-02-04 Thread Burhan Khalid
to start? How about starting at the manual? What a novel concept that is! http://www.php.net/manual/en/function.basename.php -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] explode separate lines

2004-02-04 Thread Burhan Khalid
Diana Castillo wrote: does anyone know how to do an explode where the separator is a linefeed? You could try explode(\n, $stuff);, but if you are wanting to read information from a file and store each line in an array, the file() function does exactly that. -- Burhan Khalid phplist

Re: [PHP] XML Tool Needed

2004-02-26 Thread Burhan Khalid
Nick Wilson wrote: * and then Burhan Khalid declared Nick Wilson wrote: I'm looking for a tool that will parse an xml doc into somthing like an associative array for me. Basically somthing to make life simple when dealing with Amazon XML docs. I have been all thru hotscripts and even tried

Re: [PHP] strstr

2004-02-27 Thread Burhan Khalid
Jakes wrote: I got this out the manual: ?php $email = '[EMAIL PROTECTED]'; $domain = strstr($email, '@'); print $domain; // prints @example.com ? how do I get the user ranther than @example.comThanks $bits = explode('@',$email); echo $bits[0]; http://www.php.net/explode -- PHP General Mailing

Re: [PHP] renamed images are now corrupt...

2004-02-27 Thread Burhan Khalid
Bryan Henry wrote: Chmod and file_exists report that the file does not exist, even though I can view the files via the FTP client. This is a permissions problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sequential Random Character Generator

2004-02-27 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: I'm trying to create a PHP sequential random character generator that will output to a file database of some sort. The randomization needs to be using both capital letters and numbers. I need to output like 2 million records. Can someone point me in the right direction on

Re: [PHP] $sring = ARRAY?

2004-02-28 Thread Burhan Khalid
Axiom wrote: Why is it that in the following code that $value comes back with just the word ARRAY instead of the actual result? if (($value = mysql_fetch_row($result)) AND ($value == $username)) { echo You are authenticated; } else { echo Your username or password is

Re: [PHP] Allow service to interact with desktop and have network access

2004-02-28 Thread Burhan Khalid
Vincent Bouret wrote: Hi, I was trying to figure out if there was any way I could run Apache in Windows 2000 as a service which is allowed to interact with desktop and which has network priviledges? I try to exec a an .exe from PHP which needs network priviledges and which needs to interact with

Re: [PHP] What's your favorite PHP weather code?

2004-02-28 Thread Burhan Khalid
Karl Timmermann wrote: I'm looking for some code to get the latest weather and put it on my webpage, and have it very customizable. What are your favorites? http://weatherpixie.com/ Can't get any more customized than that ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] php package

2004-02-28 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Dear All, Is there ( www.php.net ) RPM / SRPMS packages can be downloaded ? www.rpmfind.net Next time, google for it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A question about permissions.....might be a bit 0T

2004-02-29 Thread Burhan Khalid
Ryan A wrote: Hi, I installed OSCommerce for a client quite some time back and everything was running smoothly. When the client needed to make changes she used to tell me and I used to do it by ftping in, dl'ing the files, making changes, uploading them. Now she found that in the control panel

Re: [PHP] preg_split - spliting string

2004-03-06 Thread Burhan Khalid
Bambero wrote: Hi I need to split a string by the: , (comma) separator, but when the comma is beetwen it should be skipped. Ex: test ts sasa, assas sasa,asaas dasdas, da = test ts sasa = assas sasa,asaas dasdas = da If this is a CSV file, you can try fgetcsv. From http://www.php.net/fgetcsv

Re: [PHP] Help with PPP Strategies

2004-03-07 Thread Burhan Khalid
Pooya Eslami wrote: Hi, I want to write a php script for handling the username and password of users on my website. What strategies are used for password protected pages? I don't quite know where to start! One strategy that I had in mind was to have a folder for each user and access it via the

Re: [PHP] Return value efficiency question

2004-03-10 Thread Burhan Khalid
Kelly Hallman wrote: Consider this method: function xyz() { return $this-data = unserialize($this-serial); } Maybe I'm just being stupid, but wouldn't that simply return true if the assignment was successful, and false otherwise? [ trimmed ] -- PHP General Mailing List

Re: [PHP] How to make sure a redirect works

2004-03-10 Thread Burhan Khalid
Henry Grech-Cini wrote: Hi All, I want to randomly select a desitniation page and use cookies to ensure that refreshes and return visits on the same machine always return to that desination (assuming the cookie is intact). Imagine that we have an array of URL's $url=array(1=dest1.html,

Re: [PHP] Dumb

2004-03-12 Thread Burhan Khalid
PHP wrote: Thanks, that is what I figured. I really don't get rpm's, it seems you are stuck with whatever the packager felt like putting in the rpm. Want to add a library? Like zlib for example? then you have to re-compile it yourself anyways. They seem completely useless to me for anything but a

<    1   2   3   4   5   6   >