[PHP] Re: How to cast objects in arrays.

2002-07-06 Thread Anas Mughal
Thanks to everyone!!! I have figured it out... Anas Mughal <[EMAIL PROTECTED]> wrote: I have a function getRow() that returns a new instance of an object called IvActivity. I insert this new instance into $list. I need to call getTitle method on each of the inserted objects. However,

[PHP] Referencing function return value

2002-07-07 Thread Anas Mughal
I have a general question about referencing... Would it be safe to reference a function return value? My main concern is that once the function goes out of scope, is that variable cleaned up or would it stay around because there is a new reference to it. I am coming from the C++ and Java world

Re: [PHP] Re: Postal / Zip Code Proximity Search

2002-07-09 Thread Anas Mughal
Richard, I just tried performing a search on http://chatmusic.com/venues.htm. All I did was supply my zipcode. I didn't change/supply any other information. The search was really slow. I wanted to ask you what you would attribute the slowness to. What is your architecture? Richard Lynch <[EM

Re: [PHP] Function source?

2002-07-09 Thread Anas Mughal
As Rasmus said, all functions are in C. PHP is open source: The source code is available to the public. --- Leif K-Brooks <[EMAIL PROTECTED]> wrote: > If I understand correctly, all php functions are > written in php. If > this is true, is it possible to view function source > code? Thanks

Re: [PHP] PHP vs. Java

2002-07-09 Thread Anas Mughal
I agree with the other reply to your question. My thoughts could be summarized as follows: - Java solution would be more expensive and involved to build and maintain. - PHP would be cheaper and quicker to build and maintain. - Java would require more resources on your server. - PHP is light weig

Re: [PHP] reports and reporting options?

2002-07-10 Thread Anas Mughal
also, check out: http://www.yourlegacy.org/annualReports/readme.pdf Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: php.net/pdf On Wed, 10 Jul 2002, Jeff D. Hamann wrote: > I've got a project that requires lots of "goofy" reports. These reports are > more than a simple html table (which would

Re: [PHP] need help about this

2002-07-10 Thread Anas Mughal
How are you getting this error? Are you trying to create the table? [EMAIL PROTECTED] wrote: MySQL Error : Database Error Error Number: 1050 Table 'book_auth' already exists what this meant? what should i do for correct

Re: [PHP] PHP and ORACLE

2002-07-12 Thread Anas Mughal
I don't think you would find any book covering PHP and Oracle. They technologies usually don't mix. Oracle is very enterprise oriented; whereas, PHP is open source community favorite. Oracle is a beast by its nature. So, you would need a few good books on Oracle. I would suggest following pro

Re: [PHP] PHP/MySQL -- Date/Time Confusion

2002-07-12 Thread Anas Mughal
The easiest and my preferred way is to use "strtotim" method. This method accepts MySQL format "2002-12-23" and converts it into a UNIX time stamp. After that you can use the date function to format time as you wish! Monty <[EMAIL PROTECTED]> wrote: Which method is the best way to store date/

RE: [PHP] retrieving random data from mysql database

2002-07-14 Thread Anas Mughal
When you say, Order by RAND() I would think the "Order by" construct expects a column name. In your case, it gets a decimal value. How does "Order by" treat decimal values? Oh, I just checked the manual: In MySQL Version 3.23, you can, however, do: SELECT * FROM table_name ORDER BY RAND() I st

Re: [PHP] Password in script

2002-07-18 Thread Anas Mughal
Also, allow MySQL connections only from your server. Tyler Longren <[EMAIL PROTECTED]> wrote: It's fine. There's no other way to do it really. Somebody would have to be able to see the source to the php file before they could see the password for mysql. They won't get it just by viewing the

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Anas Mughal
I often use: \n That way I get a new line in a browser and plain text as well. KK Lee <[EMAIL PROTECTED]> wrote: Dear ALL, It seems that i have a very silly problem. I can't get the new line escape character to work. the following is my SIMPLE script and corresponding output. PHP script:

[PHP] dl(): Invalid library (maybe not a PHP library)

2003-12-04 Thread Anas Mughal
ng that it is not a valid PHP extension. Did I miss anything? Thank you in advance. -- Anas Mughal Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dl(): Invalid library (maybe not a PHP library)

2003-12-04 Thread Anas Mughal
20429. However, I don't see anything in there! (Is the mkdir error produced by configure okay? See above.) Please help... P.S. Please note that I need a dynamic extension. I need to load it using the dl() command. Curt Zirzow wrote: * Thus wrote Anas Mughal ([EMAIL PROTECTED]): I hav

Re: [PHP] how to determine if shopping cart has been abandoned?

2003-12-04 Thread Anas Mughal
This looks like a business decision. Your business anaylist could help answer your question. Chris W. Parker wrote: Hey there everyone. I haven't had time much to work on my cart program recently but I was just thinking about abandoned carts and can't figure something out completely. How do you

Re: [PHP] dl(): Invalid library (maybe not a PHP library)

2003-12-04 Thread Anas Mughal
Please help... Curt Zirzow wrote: * Thus wrote Anas Mughal ([EMAIL PROTECTED]): Yes, I had uncommented those lines already. This how they look in my config.m4 file: PHP_ARG_ENABLE(my_ext, whether to enable my_ext support, dnl Make sure that the comment is aligned: [ --enable-my_ext

[PHP] Comment alignment in config.m4

2003-12-04 Thread Anas Mughal
In config.m4, what does "Make sure that the comment is aligned" mean? What should it be aligned to? Is this correct: PHP_ARG_ENABLE(my_module, whether to enable my_module support, dnl Make sure that the comment is aligned: [ --enable-my_module Enable my_module support]) Or, is thi

[PHP] CGI script not running under suexec

2003-12-05 Thread Anas Mughal
I had been running a CGI version of PHP version 3 for many months with no issues. (I had custom extensions in the CGI version.) Well, my hosting company decided to enable suexec on Apache (running on Redhat Linux). As I understand, with suexec enabled, only the owner of a particular CGI script

Re: [PHP] PHP5 XSLT how to.

2003-12-05 Thread Anas Mughal
http://trash.chregu.tv/phpconf2003/examples/ Hope it helps... -- Anas Mughal William Bailey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello again. I am currently testing the php5 beta and really like the new DOM objects but i am haveing trouble finding out how i can apply a

Re: [PHP] dl(): Invalid library (maybe not a PHP library)

2003-12-05 Thread Anas Mughal
ot; "" "" "" "" ""' + base_compile="" "" "" "" "" "" "" "" "" "" "" + lastarg=-DHAVE_CONFIG_H + srcfile=-g ++ echo X-DHAVE_CONFIG_

Re: [PHP] dl(): Invalid library (maybe not a PHP library)

2003-12-06 Thread Anas Mughal
e all my development on one Redhat Linux box. I didn't switch OS platforms. Please advise. Thanks. Anas Mughal wrote: I found one problem. I had to add "=shared" after --enable-my_ext. So, this is what I did: ./configure --enable-my_ext=shared Now, the makefile looks much bette

Re: [PHP] dl(): Invalid library (maybe not a PHP library)

2003-12-06 Thread Anas Mughal
I figured it out! I was loading the wrong file (slap-on-the-forehead). Sorry about my last email. Curt, thank you for helping me out. Now, my first dummy extension is working :)) Anas Mughal wrote: Okay, solved that as well. SED environment variable was not defined! How come I had to define

[PHP] Extending PHP

2002-01-15 Thread Anas Mughal
ed at Sterling Hughes article on WebTechniques.) Is there a step that I am missing or what? Do I need to modify the m4 file or the makefile? Please advise... = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!? Send

Re: [PHP] Re: Extending PHP

2002-01-15 Thread Anas Mughal
I presume you have created dynamically loadable modules in PHP4. If so, how do you create your module file? Do you run a specific make command or do you build it manually? Thanks for your help... --- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote: > Anas Mughal wrote: > > I am looking

Re: [PHP] PHP as a cron job

2002-01-16 Thread Anas Mughal
lerton michaelc at cullerton dot com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED

[PHP] Version conflicts with extentions

2002-01-16 Thread Anas Mughal
erver.) = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

Re: [PHP] encrypting passwords etc..

2002-01-17 Thread Anas Mughal
[EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!?

Re: [PHP] help installing php

2002-01-17 Thread Anas Mughal
(http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 ___

Re: [PHP] OOP Problem

2002-01-22 Thread Anas Mughal
nect is my private function > ? > > Charles > > Ps. sorry my poor english > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the lis

[PHP] Encryption

2002-01-25 Thread Anas Mughal
. = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] mailing to 19000 users

2002-01-28 Thread Anas Mughal
of > resources...any > solutions? thanks. > > = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- PHP General Mail

[PHP] PHP vs Ruby

2002-01-31 Thread Anas Mughal
Anyone able to comment on Ruby's features, pros and cons as a web scripting alternative to PHP. Thanks. = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auc

Re: [PHP] HTML Email attachment problem

2002-01-31 Thread Anas Mughal
$str .= "Content-Transfer-Encoding: base64\r\n"; > $str .= "Content-Disposition: attachment; > filename=\"" . $attachment > ."\"\r\n\r\n"; > $str .= $data . "\r\n"; > } > > > thanks, > -p > > > -

Re: [PHP] Date format

2002-02-01 Thread Anas Mughal
Juan Sebastián Elcano, 39-41. 29017 Málaga. > Spain > > -- > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact

Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-04 Thread Anas Mughal
n Path). > http://www.qmail.org/ > > > > > > If you want to send messages regularly to the > same group of users, I > > > recommend that you use ezmlm-idx because it > provides very efficient and > > > secure way to handle subscriptions and messages > bouncings. > > > http://www.ezml

[PHP] PHP module build problem

2002-02-05 Thread Anas Mughal
akefile in folder 'src/modules/php3'. Any advice would be greatly helpful. = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo

[PHP] Re: PHP module build problem

2002-02-05 Thread Anas Mughal
I just saw a posting on PHPBuilder that states that Apache 1.3.14 has changed alloc.h to ap_alloc.h. So, file renaming is suggested. Maybe that could fix the problem. (I will give it a try...) I would be open to any other suggestions... Thanks. --- Anas Mughal <[EMAIL PROTECTED]> wrot

RE: [PHP] How do I send a POST request?

2002-02-12 Thread Anas Mughal
___ > Powered by http://www.philipsdomain.com/ Newman > Online. > Verified account: newmanpj at > nospam.philipsdomain.com > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > = Ana

Re: [PHP] Uploading Files via Forms

2002-02-14 Thread Anas Mughal
; I've edited the php.ini with the following: > > post_max_size = 50M > upload_max_filesize = 50M > > Is there something else I'm missing? > > -- > Aaron Gould > [EMAIL PROTECTED] > Web Developer > > > > > > -- > PHP General Mailing List (http:/

Re: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-15 Thread Anas Mughal
ind any > references on this list or on Usenet. Is there a > trick to this? Or is > it simply not possible. > > Much Thanks, > Kevin Stone <[EMAIL PROTECTED]> > = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __

[PHP] Could this be a configuration directive?

2002-02-16 Thread Anas Mughal
led with some different configuration directive. However, I am not able to figure it out. Could someone please advise. Oh, another thing, my CGI version is PHP 3.0.12. The ISP CGI version is PHP 4.0.3pl1. Is the above syntax not supported in PHP3? Thanks for your quick response. = Anas Mughal [EM

Re: [PHP] Could this be a configuration directive?

2002-02-16 Thread Anas Mughal
function name variable in curly braces. Thanks. --- Michael Sims <[EMAIL PROTECTED]> wrote: > At 11:22 PM 2/16/2002 -0800, Anas Mughal wrote: > >I get a parse error using my CGI version of PHP on > the > >following line: > > > >$message = $$this->fu

Re: [PHP] Sendmail, I've had enough of it!

2002-02-22 Thread Anas Mughal
P > server. Works fine - fact. > > There's 3 configuration options in php.ini that I've > been > playing with, no matter what the combination is, I > don't > really see it doing anything different. > > I've read everything relevant on php.net and s

[PHP] Returning error code from a function

2002-03-02 Thread Anas Mughal
I am wondering if someone could shed some light on this aspect of PHP. It might be something obvious, but I am not able to figure it out. I have a function that returns a dynamically generated HTML string. However, I need a way to let the caller know if that function has failed. One way I thought

Re: [PHP] mySQL back up

2002-03-04 Thread Anas Mughal
> http://www.pdd.nl > [EMAIL PROTECTED] > - > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 _

Re: [PHP] How to transfer letters (e.g. en-us, es, fr etc.) to full names (e.g. England, France etc.)?

2002-03-05 Thread Anas Mughal
Thanks in advance! > > > >SED > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http:/

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Anas Mughal
ld! > > Has anyone else experienced this problem or know > what's causing it? > > Mike > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-2

Re: [PHP] help with date formatting

2002-03-06 Thread Anas Mughal
n New York > Wednesday, March 5th, 2002 > > There is going to be a conference in New York next > week. > > > Thanks for any help. > > -- > Ryan Spangler >

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Anas Mughal
HP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest f

Re: [PHP] HTML Buffer

2002-03-08 Thread Anas Mughal
that PHP scripts don't send any HTML until > the > script finishes. I'd really like to see what's > happening in my script > while it is being executed. > > Any ideas? > > Mario > > > -- > PHP General Mailing List (http://www.php.net/) >

Re: [PHP] number_format

2002-03-08 Thread Anas Mughal
Look into printf and sprintf. --- "Scott St. John" <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I am trying to format a number for a report, the one > consistant thing is > the three decimal places. But I need to strip them, > then fill in zero's > from the left. > > So, if the number c

Re: [PHP] --enable-xslt

2002-03-13 Thread Anas Mughal
t; looking, please by all > means point me in the right direction. > > > Erik > > > > > > > > Erik Price > Web Developer Temp > Media Lab, H.H. Brown > [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php

[PHP] Error while passing parameters as path

2001-08-25 Thread Anas Mughal
h PHP3. However, my production server is running PHP4 and it works there. Is this a new feature in PHP4 or do I need to build PHP3 with some configuration for this to work? Thank you in advance. -- anas mughal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] Error while passing parameters as path

2001-08-25 Thread Anas Mughal
in that mode? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 26, 2001 2:14 AM To: Anas Mughal Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Error while passing parameters as path Are you running PHP 3 as a CGI? Things work/don't work

RE: [PHP] Error while passing parameters as path

2001-08-26 Thread Anas Mughal
. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 26, 2001 9:07 AM To: Anas Mughal Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Error while passing parameters as path > Actually, I need to run as CGI because I have customized extensiont to PHP > that my h

Re: [PHP] Splitting long text

2007-01-23 Thread Anas Mughal
ing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anas Mughal

Re: [PHP] uploading and extracting zip files

2006-07-06 Thread Anas Mughal
I had used the uploader class (by David Fox, Dave Tufts) in a previous project. It worked well for me. Hope you could locate it using Google. In any case, Google could locate many upload scripts for you. Good luck! -- Anas Mughal On 7/6/06, Jochem Maas <[EMAIL PROTECTED]>

Re: [PHP] url obfuscation

2006-07-06 Thread Anas Mughal
I have encrypted the values -- not the keys. With this approach, I presume I have made it harder for anyone trying to screen scrap my data. (It is not possible to write a script that would loop over my pages.) Why do you need to encrypt the keys? -- Anas Mughal On 7/6/06, Dan McCullough

Re: [PHP] url obfuscation

2006-07-07 Thread Anas Mughal
TED]> wrote: On Thu, July 6, 2006 12:00 pm, Anas Mughal wrote: > I have encrypted the values -- not the keys. With this approach, I > presume I > have made it harder for anyone trying to screen scrap my data. (It is > not > possible to write a script that would loop over my pa

Re: [PHP] Looking for caveats to the following code

2006-08-17 Thread Anas Mughal
Tedd, Actually, he seems to be needing the return value of the function inside the if block. So, he would need to do: if ($result = do_something('hello')) or, as Adam stated: if ( ($result = do_something('hello')) !== false ) Regards. -- Anas Mughal On 8/17/06, te

Re: [PHP] remove SimpleXML nodes

2006-08-31 Thread Anas Mughal
e below: foreach ($xmlDatabase as $oneTable) { // skip node you don't want in your final xml output if ($oneTable['name'] != 'two') { } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anas Mughal

Re: [PHP] remove SimpleXML nodes

2006-08-31 Thread Anas Mughal
>item(0)->removeChild($next->item(0)); // append new node $newNode = $doc->createElement("language_code", $currentfallbacklocale); $parent->item(0)->appendChild($newNode); -- Anas Mughal On 8/31/06, Anas Mughal <[EMAIL PROTECTED]> wrote: Yes,

Re: [PHP] Arabic

2006-09-07 Thread Anas Mughal
sian Proverb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anas Mughal

[PHP] PHP-based content and document management

2006-11-07 Thread Anas Mughal
method or a web service call. I would appreciate any suggestions. Thanks in advance. Regards. -- Anas Mughal

Re: [PHP] security and .htaccess

2006-12-03 Thread Anas Mughal
Sample ".htaccess" file that uses an authentication file: Options -Indexes AuthName "Photo Access" AuthType Basic AuthUserFile /home/me/BasicAuth/photo_users.txt require valid-user Hope this helps. -- Anas Mughal On 12/3/06, Richard Lynch <[EMAIL PROTECTED]> w

Re: [PHP] Coordenates latitude / longitude on PHP

2006-03-02 Thread Anas Mughal
Lat and long are all you need for rendering on an X,Y coordinate. Keep in mind to adjust the ratio of lat and long depending on where you are on the globe. Good luck! -- Anas Mughal

Re: [PHP] PHP/CSS/Javascript question

2006-03-12 Thread Anas Mughal
ce over the default rendering of an element. Only within the > same > category the order of assignment would matter. > > And, by the way, yes, you can load a new stylesheet. > > Satyam > > > > > > > tedd > > > > -- > > > > > http://sperling.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Anas Mughal

Re: [PHP] Re: PDFLib or some free solution?

2006-03-21 Thread Anas Mughal
u please give me some directions? > > Take a look at http://ros.co.nz/pdf/. > > It hasn't been updated for awhile, but it works great as is. I'm using > it to generate nametags and reports in various applications. > > Brady > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Anas Mughal

Re: [PHP] RADICORE ramework released

2006-04-13 Thread Anas Mughal
A question for the folks who have tried it out: Is it better than Ruby on Rails? Thanks. -- Anas Mughal On 4/11/06, Tony Marston <[EMAIL PROTECTED]> wrote: > > Announcing the first public release of RADICORE, a Rapid Application > Development toolkit for building adm

Re: [PHP] interview

2006-04-13 Thread Anas Mughal
ting doesn't matter. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Anas Mughal

Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Anas Mughal
the topic on the web, I'm left to asking the list. > > Do you have any insight on it? > > > > On Apr 20, 2006, at 2:47 PM, Anas Mughal wrote: > > Mark, > What would you think? > > > On 4/20/06, Mark Baldwin <[EMAIL PROTECTED]> wrote: > > >

[PHP] dl exploit

2005-08-02 Thread Anas Mughal
me.so (the object that is loaded into Apache) and flame.php (the php script that loads it). -- Anas Mughal

Re: [PHP] Regular expressions book

2005-08-10 Thread Anas Mughal
The best I found is: O'Reilly book - Mastering Regular Expressions On 8/3/05, -k. <[EMAIL PROTECTED]> wrote: > > Has anyone here tried to learn Regular expressions with RegexBuddy? > > http://www.regular-expressions.info/regexbuddy.html > > It looks pretty cool, and even has some PHP specif

[PHP] XML manipulation using PHP

2005-08-11 Thread Anas Mughal
Could someone please share with me sample code for: - Adding an XML node to an existing XML document. - Modifying the value for a given XML node in an existing XML document. Thank you. -- Anas Mughal

[PHP] Encoding or obfuscating tool

2005-09-16 Thread Anas Mughal
other reasonably priced encoder, we might consider that.) Thank you very much. -- Anas Mughal

Re: [PHP] Suggestions for class design

2005-09-19 Thread Anas Mughal
is a sample DAO class: class CustomerDAO { function getCustomer(..) { ... //return a customer } function getCustomers(..) { ... // return a collection of customers } function saveCustomer(..) { ... } } Hope this helps. -- Anas Mughal On 9/19/05, Chris W. Parker <[EMAIL PROTECTED]>

[PHP] Re: File Upload Max Size

2005-10-01 Thread Anas Mughal
suggestions. I really need to > upload larger files, and since it's going to an FTP site, there shouldn't be > > too many size restrictions. > > Thanks, > > Matt > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.

Re: [PHP] Handling competing edits in a wiki engine?

2005-10-04 Thread Anas Mughal
ust developed > something like this for a web site I'm working on (but we're still in > alpha), so if you want to see it in action, lemme know. > > Ciao! > Silvio > > [1] http://en.wikipedia.org/wiki/AJAX > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Anas Mughal

Re: [PHP] Silly regex giveing me a hard time

2005-10-16 Thread Anas Mughal
Try this: ^[ ]*[0-9]*[ ]* This will also strip out any blank spaces at the beginning of the line. -- Anas Mughal On 10/16/05, Dotan Cohen <[EMAIL PROTECTED]> wrote: > > I have a list like this: > 235 Some info > 12323 other 5 things > No number on this line! > 43

Re: [PHP] Re: better way to mix html and php code?

2005-11-16 Thread Anas Mughal
gt; require 'includes/header.php'; > > > > $cat_parent = $_GET['cat_parent']; > > $cat_id = $_GET['cat_id']; > > > > $content = ' > cellspacing="0" style="border: 1px solid #EBEBEB; padding: 25px;">'; > > $content .= ' '; > > $content .= ' > colspan="2">'. $_SESSION['CATEGORIES']['name'][$cat_parent] .' > > > '. $_SESSION['CATEGORIES']['name'][$cat_id] .''; > > $content .= ' > href="new_product.php?cat_id='.$cat_id.'&cat_parent='.$cat_parent.'" > > style="font-size: 11px; color: gray;">[ Add New Product ]'; > > $content .= ' '; > > > > $query = my_query(" > > SELECT chp.products_prod_id, p.prod_id, p.prod_name, > > p.prod_no, p.prod_status > > FROM categories_has_products as chp, products as p > > WHERE chp.categories_cat_id = '".$cat_id."' AND > > chp.products_prod_id = p.prod_id > > ", 0); > > while($result = mysql_fetch_array($query)) > > { > > $content .= ' '; > > $content .= ' » '. > > $result['prod_name'] .''; > > $content .= ' [ '. > > $result['prod_no'] .' ]'; > > $content .= ' '; > > $content .= ' > alt="EDIT" width="14" height="14" hspace="0" vspace="0" border="0">'; > > $content .= ' > href="products.php > ?cat_id='.$cat_id.'&cat_parent='.$cat_parent.'&action=delete&prod_id='.$result['prod_id'].'" > > onclick="return confirm(\'Do you really want to delete this > > product?\');"> > width="14" height="14" hspace="5" vspace="0" border="0">'; > > switch($result['prod_status']) > > { > > case 'live': > > $content .= ' > href="products.php > ?new_status=hidden&prod_id='.$result['prod_id'].'&cat_id='.$cat_id.'&cat_parent='.$cat_parent.'"> > src="../images/status_live.gif" alt="LIVE" width="13" height="13" > > hspace="2" vspace="0" border="0">'; > > break; > > > > case 'hidden': > > $content .= ' > href="products.php > ?new_status=live&prod_id='.$result['prod_id'].'&cat_id='.$cat_id.'&cat_parent='.$cat_parent.'"> > src="../images/status_hidden.gif" alt="HIDDEN" width="13" height="13" > > hspace="2" vspace="0" border="0">'; > > break; > > > > case 'temp': > > $content .= '[T]'; > > break; > > > > } > > $content .= ' '; > > $content .= ' '; > > } > > $content .= ''; > > > > echo $content; > > > > include 'includes/footer.php'; > > ?> > > > > > > I think third solution would be the best solution? > > > > Thanks for any opinion. > > > > -afan > > #3 by far. I used your #1 and #2 before discovering that #3 is far simpler > to get it right the first time and far > simpler to move stuff around for the rendered page. Also has the advantage > of sending one complete stream to the > client. No need to use buffering to optimize performance. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Anas Mughal

Re: [PHP] echo

2005-11-19 Thread Anas Mughal
Try this: -- Anas Mughal On 11/19/05, Alex Alfonso <[EMAIL PROTECTED]> wrote: > > Can you please tell me how to make a space in php. I know that is a > new line and is a new paragraph. But I just can't figure out what an > earth a space is. Eg > echo "T

Re: [PHP] Re: PHP and email

2005-11-23 Thread Anas Mughal
any failures. - We use flags in our database to flag what messages were sent successfully. That way, we can search and resend any failed messages. Hope this helps. -- Anas Mughal

Re: [PHP] Exception

2005-12-04 Thread Anas Mughal
input errors with throw new Exception(). > Thanks > > -- Anas Mughal

Re: [PHP] Re: Exception

2005-12-04 Thread Anas Mughal
e exceptions. > > > Regards, > Christian > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Anas Mughal

Re: [PHP] Re: PDF Generator

2005-12-04 Thread Anas Mughal
gt; > > > mail2web - Check your email from the web at > http://mail2web.com/ . > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Anas Mughal

Re: [PHP] references, circular references, oop, and garbage collection in PHP5

2005-12-06 Thread Anas Mughal
en not passed in as > > $this > > > > Now, this works! However, it's not practical. The setParent call > > should work from within the parent object > > > > So what I figured out is that $this is a "pseudo variable" according > > to the docs, but I don't know what that means. Empirically I have > > figured out that it means you cannot create a reference to it. > > > > Is this a feature or a bug? What's the workaround? > > > > This is a serious problem for PHP scripts that need to do things that > > require large amounts of memory. > > > > Please advise. > > > > Thanks, > > Alan > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Anas Mughal

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Anas Mughal
ble to store 10,000 > records. > If I recall correctly, MySQL auto-increment fields will not reuse id's > when > they are deleted. So, you will need to take that into consideration when > (if) you reach the 9,999th record. > > JM > > -- > PHP General Mailing List

Re: [PHP] encrypt and dcrypt

2005-12-15 Thread Anas Mughal
oduce only lower case letters in encrypted strings. Could someone on this list offer any suggestions on how to modify the code to support numbers and only lower case numbers. Thank you very much. -- Anas Mughal

Re: [PHP] ? Split string into smaller chunks

2005-12-19 Thread Anas Mughal
Split them using explode and then combine the ones you need to combined. Hope this helps. -- Anas Mughal On 12/19/05, Labunski <[EMAIL PROTECTED]> wrote: > > I need to split a long string into smaler chunks (an array), as a > separator > using every third \n (and not just ev

Re: [PHP] Logging within Extension

2005-12-20 Thread Anas Mughal
Might want to look into "Log4Cxx". -- Anas Mughal On 12/20/05, Michael B Allen <[EMAIL PROTECTED]> wrote: > > I'm writing a PHP 4 extension and I would like to write debugging > information to the Apache error log.Does anyone know how to do > that? Basically I

Re: [PHP] Earlier versions hurt PHP 5

2005-12-28 Thread Anas Mughal
ty to conveniently download PHP4 in order to run our code. Happy New Year!!! -- Anas Mughal On 12/19/05, PHPDiscuss - PHP Newsgroups and mailing lists < [EMAIL PROTECTED]> wrote: > > > > As a developer, I would love to use PHP 5+ for applications but I am > afraid to do so

Re: [PHP] Floating numbers truncating to two digits without rounding

2006-01-09 Thread Anas Mughal
Try something like: floor($value * 100)/100; -- Anas Mughal On 1/9/06, Mark Steudel <[EMAIL PROTECTED]> wrote: > > I am calculating things like tax and want to format them so they only have > 2 > digits past the decimal point. I've been using sprintf but just notic

Re: [PHP] Floating numbers truncating to two digits without rounding

2006-01-10 Thread Anas Mughal
Oh, yes, Gerry has provided very useful links. You could definetly look into using something like: printf( "%.2f", $x ); -- Anas Mughal On 1/10/06, Gerry Danen <[EMAIL PROTECTED]> wrote: > > sprintf creates a string ready for you to manipulate. So does > number

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Anas Mughal
You need to build JavaScript logic for that. Try searching on JavaScript developer sites and mailing lists. This has nothing to do with PHP -- unless you are dynamically building the JavaScript. -- Anas Mughal On 1/18/06, suresh kumar <[EMAIL PROTECTED]> wrote: > > hi, >