[PHP] How to read Byte Stream

2005-11-05 Thread kumar kumar
Hi I am Software Engineer in hyderabad . if possible i need some help in PHP. we are developing one applet that will upload the files/folders upto 2gb . the applet will send the file in bytes stream via http . At server side the PHP has to receive the file bytes stream and as to write the file

Re: [PHP] Sessions and register_long_arrays

2005-11-05 Thread Marcus Bointon
On 5 Nov 2005, at 00:25, Unknown Unknown wrote: how do you reference the sessions? do you refrence them *with* the old arrays? because that would obviously be a problem No, obviously that would be dumb! There is no mention of the old style HTTP_*_VARS arrays anywhere in my code. Smarty

[PHP] How can I track the value in php

2005-11-05 Thread shining
Hi, I am php beginner, I have a question: in my index page, I firstly inlcude_once a A.php file, where i defined an array, secondly I include another .php file named B.php, where I want to use the array, I have claimed it as global type, but it seems I can't retrieve any value from the array. So I

[PHP] Re: Register Globals (more)

2005-11-05 Thread Bogdan Ribic
John Taylor-Johnston wrote: How do I rebuild this peice of code to be register_globals=off friendly? Just when I thought I was getting good. This keeps up, I'm changing back the php.ini myself. John If your code absolutley needs register_globals and you don't have the time to rewrite

[PHP] Adding to a numeric variable, how?

2005-11-05 Thread Dotan Cohen
I have a number that I need to display, and itself plus 2: ?php $number=23; $new_number=$number+2; print $number. .$new_number.\n; ? // 23 25 // How can I shorten it to something like this: ?php print $number. .$number+2.\n; ? Obviously, the above code doesn't do what I want, but I think that it

Re: [PHP] Adding to a numeric variable, how?

2005-11-05 Thread Paul Waring
On Sat, Nov 05, 2005 at 01:23:01PM +0200, Dotan Cohen wrote: How can I shorten it to something like this: ?php print $number. .$number+2.\n; ? Try: ?php print $number . ' ' . ($number + 2) . \n; ? I think putting the $number + 2 in brackets will cause PHP to evaluate that part of

Re: [PHP] Adding to a numeric variable, how?

2005-11-05 Thread Dotan Cohen
On 11/5/05, Paul Waring [EMAIL PROTECTED] wrote: On Sat, Nov 05, 2005 at 01:23:01PM +0200, Dotan Cohen wrote: How can I shorten it to something like this: ?php print $number. .$number+2.\n; ? Try: ?php print $number . ' ' . ($number + 2) . \n; ? I think putting the $number

[PHP] Re: How can I track the value in php

2005-11-05 Thread James Benson
Try reading the PHP manual, people put in lots of effort for newcomers to learn the PHP language. http://php.net/array To access a single array value:- $myArray = array('email' = '[EMAIL PROTECTED]'); echo $myArray['email']; Above would display:- [EMAIL PROTECTED] James shining

[PHP] Re: to the freelancers!!

2005-11-05 Thread James Benson
Some companies charge for support and still make money from their open source projects! bruce wrote: Hi, Just a quick question. Had a conversation with a person who works for a non-profit, and she was describing some of her dealings with obtaining grants for the development of 'open

[PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread James Benson
Try using require_once or include_once Max Belushkin wrote: Hi list, after upgrading to PHP 4.4.1, I'm having the following problem: Apache is running in prefork mode. index.php includes func.php, which defines some functions and connects to MySQL. For a while (1-2 requests)

[PHP] Re: No forums?

2005-11-05 Thread James Benson
Since when is a forum more efficent than this newsgroup, forums tend to be more images/content and require more maintainance, this newsgroup is perfect for me and many other people I imagine. GamblerZG wrote: AFAIK, there are no official forums for PHP. Considering the fact that PHP is

Re: [PHP] dependable combo boxes with mysql database

2005-11-05 Thread Pranav Negandhi (concept-I)
It's simply a matter of echoing HTML/ JS statements in PHP. The easiest way to integrate JS into a PHP page is like this - ?php // PHP CODE HERE print(script src=functions.js/) // CONTINUE PHP CODE HERE ? All your JS code is to be put into the functions.js file. Watch

Re: [PHP] No forums?

2005-11-05 Thread Pranav Negandhi (concept-I)
Funny. I _ditched_ forums in order to sign onto this list. It's way too much of an effort for me to log in to a website every time. Lists work with quiet efficiency (not efficacy, I suppose) in the background without needing me to refresh the page every 5 minutes. My $0.2. Pranav

Re: [PHP] No forums?

2005-11-05 Thread Larry E. Ullman
One of the fallacies in your argument is that the lack of an official forum on php.net implies such distaste for message boards. I don't have a big screen TV but I have anything but distaste for them! Well, let me give you a different example. I don't have a TV at all, even though I could

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread Max Belushkin
Try using require_once or include_once Well, here's all the fun starting. This is relatively long, but please bear with me. First of all, yes, I did include_once, require_once, even resorted to if (! $inc_done) include_once(func.php), and setting $inc_done in func.php. No-go, was still getting

Re: [PHP] No forums?

2005-11-05 Thread Death Gauge
Forums and mailinglists like this are about the same. Forums has image content though while mailing lists just have text content. You get the same replies as you would with the other so be happy that they at least have this mailing list and don't just say Here is PHP and have fun learning it

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread James Benson
Max Belushkin wrote: Try using require_once or include_once Well, here's all the fun starting. This is relatively long, but please bear with me. First of all, yes, I did include_once, require_once, even resorted to if (! $inc_done) include_once(func.php), and setting $inc_done in func.php.

Re: [PHP] Re: Register Globals

2005-11-05 Thread Unknown Unknown
why not extract($_POST); and use your old code or somthing like that, same thing really if code don't work

Re: [PHP] PGP 5 start up issue

2005-11-05 Thread Unknown Unknown
On 11/4/05, Vizion [EMAIL PROTECTED] wrote: php 5 on windows xp with apache 2 and mysql 5. Php start up unable to load dynamic library: E:\php\ext\php_bz2.dll with error 'The specified module could not be found' same for and php_yaz.dll I have php5ts.dll in both E:\php\ and E:\php\ext I

Re: [PHP] PGP 5 start up issue

2005-11-05 Thread Unknown Unknown
On 11/5/05, Unknown Unknown [EMAIL PROTECTED] wrote: On 11/4/05, Vizion [EMAIL PROTECTED] wrote: php 5 on windows xp with apache 2 and mysql 5. Php start up unable to load dynamic library: E:\php\ext\php_bz2.dll with error 'The specified module could not be found' same for and

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread Max Belushkin
On Saturday 05 November 2005 17:49, James Benson wrote: I've had a different set of scripts employing a different func.php. However, in both of those, mquery() is defined. But they do *not* include anything else, and the So you defined mquery() in both files and one include's or require's

Re: [PHP] No forums?

2005-11-05 Thread Richard Davey
Hi, Saturday, November 5, 2005, 3:09:01 AM, you wrote: AFAIK, there are no official forums for PHP. Considering the fact that PHP is a web development tool, such distaste for message boards is ironic at the least. So why exactly there aren't any forums on php.net? How about some good

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread James Benson
Ok fair enough, I see your problem now, cant say ive had this and been using 4.4.1 since the day it came out (compiled my own on debian though), maybe you should try calling that function from the second file but without actually defining the function for that file to see whether you can

Re: [PHP] PGP 5 start up issue

2005-11-05 Thread Vizion
On Saturday 05 November 2005 08:58, the author Unknown Unknown contributed to the dialogue on- Re: [PHP] PGP 5 start up issue: On 11/5/05, Unknown Unknown [EMAIL PROTECTED] wrote: On 11/4/05, Vizion [EMAIL PROTECTED] wrote: php 5 on windows xp with apache 2 and mysql 5. Php start up

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread Max Belushkin
It would also be helpful to see the mquery() script - maybe someone else may know more then! Well, mquery is simply mysql_query($query);, in the stipped-down version I've had to resort to for testing. Basically, does nothing, since even mysql_connect that USED to be at the start of func.php

[PHP] Template style question

2005-11-05 Thread Leonard Burton
Greetings, HI All, I hope all is well. I have set up a template parser. Basically, it parses the template and finds tags with tag_name.dat file and then includes the tag_name.dat file. I have considered a few other options but as of now I think I like what I have come up with. The only

Re: [PHP] No forums?

2005-11-05 Thread Lester Caine
GamblerZG wrote: I do not see anything horrible in my message. It's not like I'm _demanding_ something, or suggesting to tear down mailing lists. Neither did I suggest that mailing lists suck. In case of php.internals they totally make sense. But I _do_ think that forum efficient in case of

[PHP] php mac folder

2005-11-05 Thread Ross
Hello, I have a setup question for php for mac. I have shared my windows folder 'wwwroot' across the network but when I preview my .php file it connot find it because the specified php folder on the mac is http://127.0.0.1/~myname/Sites I suppose I have to change the php.ini to include the

Re: [PHP] php mac folder

2005-11-05 Thread eoghan
On 5 Nov 2005, at 19:37, Ross wrote: Hello, I have a setup question for php for mac. I have shared my windows folder 'wwwroot' across the network but when I preview my .php file it connot find it because the specified php folder on the mac is http://127.0.0.1/~myname/Sites I suppose I

Re: [PHP] Template style question

2005-11-05 Thread Florent Monnier
Perhaps you could get inspirations and tips from: http://pear.php.net/search.php?q=templatein=packages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread James Benson
I cant see this being an issue with PHP because it would do that for every function, have you tried using a different function, something simple say, function echo_this($param) { echo $param; } Try that like your mquery function in both files and see what happens, could be your

[PHP] Re: Template style question

2005-11-05 Thread James Benson
Give smarty a try rather than re-inventing the wheel http://smarty.php.net James Leonard Burton wrote: Greetings, HI All, I hope all is well. I have set up a template parser. Basically, it parses the template and finds tags with tag_name.dat file and then includes the tag_name.dat

Re: [PHP] Re: Template style question

2005-11-05 Thread Robert Cummings
On Sat, 2005-11-05 at 14:55, James Benson wrote: Give smarty a try rather than re-inventing the wheel http://smarty.php.net What's wrong with re-inventing the wheel? I guess your car or bike has wooden wheels eh!? I mean if nobody had re-invented the wheel from the wooden version, that's all

Re: [PHP] php mac folder

2005-11-05 Thread Larry E. Ullman
I have shared my windows folder 'wwwroot' across the network but when I preview my .php file it connot find it because the specified php folder on the mac is http://127.0.0.1/~myname/Sites Actually the folder is ~myname/Sites but the URL should just be http://127.0.0.1/~myname You should

Re: [PHP] No forums?

2005-11-05 Thread GamblerZG
Assuming something is not a logical fallacy, just like inability to use inductive logic is not a virtue, but rather an extreme case of sophism (I mean the original sophism, which was a name for a certain philosophy). Well, it IS extra work. If nobody needs forums, than the notion of the fact

Re: [PHP] Re: Template style question

2005-11-05 Thread James Benson
Robert Cummings wrote: On Sat, 2005-11-05 at 14:55, James Benson wrote: Give smarty a try rather than re-inventing the wheel http://smarty.php.net What's wrong with re-inventing the wheel? I guess your car or bike has wooden wheels eh!? I mean if nobody had re-invented the wheel from the

Re: [PHP] No forums?

2005-11-05 Thread GamblerZG
Lester Caine wrote: Forums are even more restrictive than newsgroups so I don't see that they add anything that is not currently available, and this list has considerably less traffic than some of the others I am a moderator on ;) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] No forums?

2005-11-05 Thread GamblerZG
Lester Caine wrote: GamblerZG wrote: I do not see anything horrible in my message. It's not like I'm _demanding_ something, or suggesting to tear down mailing lists. Neither did I suggest that mailing lists suck. In case of php.internals they totally make sense. But I _do_ think that forum

Re: [PHP] Re: Template style question

2005-11-05 Thread Robert Cummings
On Sat, 2005-11-05 at 15:25, James Benson wrote: Robert Cummings wrote: On Sat, 2005-11-05 at 14:55, James Benson wrote: Give smarty a try rather than re-inventing the wheel http://smarty.php.net What's wrong with re-inventing the wheel? I guess your car or bike has wooden

[PHP] preg for unicode strings?

2005-11-05 Thread Andy Pieters
Hi List I am doing some data validation and the following regexp fails [\W] When using characters like £ or € Obviously because they are technically more then one character, even though they are only displayed as one. The script is encoded in UTF-8 Anybody know a fix for this? With kind

Re: [PHP] No forums?

2005-11-05 Thread Robert Cummings
On Sat, 2005-11-05 at 15:24, GamblerZG wrote: Assuming something is not a logical fallacy, just like inability to use inductive logic is not a virtue, but rather an extreme case of sophism (I mean the original sophism, which was a name for a certain philosophy). Well, it IS extra work.

Re: [PHP] No forums?

2005-11-05 Thread Robert Cummings
On Sat, 2005-11-05 at 16:04, GamblerZG wrote: It is the main reason I think there are many other people who would also like to have web conference. Instead of «subscribe, post, wait And how many of these many other people in your guesstimate have come forward to support your notion? Perhaps

[PHP] Re: php mac folder

2005-11-05 Thread Ross
I now have a link wwwroot on the desktop how do I make it a 'document root' so I can run php files that are in it?? Ross [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a setup question for php for mac. I have shared my windows folder 'wwwroot' across the network

RE: [PHP] No forums?

2005-11-05 Thread Richard Leclair
I'm afraid I'm going to have to agree with Rob Cummings on this one. I have a comment and suggestion: Comment: There is far too much 'spam' about a long-dealt with issue which keeps flying around, clogging up mailing lists. It can sometime happens when people either feel they need to have the

Re: [PHP] Re: Template style question

2005-11-05 Thread James Benson
Robert Cummings wrote: On Sat, 2005-11-05 at 15:25, James Benson wrote: Robert Cummings wrote: On Sat, 2005-11-05 at 14:55, James Benson wrote: Give smarty a try rather than re-inventing the wheel http://smarty.php.net What's wrong with re-inventing the wheel? I guess your car or

[PHP] Re: php mac folder

2005-11-05 Thread Ross
I now can get the php.ini file and use bbedit to edit it. I also have a disk image for wwwroot and can see the files (on my Mac system at NETWORK/MSHOME). These files are saved on the windows harddrive How do I now configure so I can run the php files from Dreamweaver?? Ross Ross [EMAIL

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread Max Belushkin
I cant see this being an issue with PHP because it would do that for every function, have you tried using a different function, something simple say, I've been trying it in various ways - for the simplest functions, it takes hundreds of request to appear, for the more involved things which

[PHP] No forums?

2005-11-05 Thread Leonard Burton
HI All, I use gmail and find it to deal with the threading quite nicely. And as Richie suggests I can set the filter up very easily. I think using gmail is much better than a forum but then again, if someone were to come up with a solution to where a distributed fourm could be created and have

[PHP] Template style question

2005-11-05 Thread Leonard Burton
Hi All, On 11/5/05, Robert Cummings [EMAIL PROTECTED] wrote: On Sat, 2005-11-05 at 14:55, James Benson wrote: Give smarty a try rather than re-inventing the wheel http://smarty.php.net Reinventing the wheel is much better than either the LGPL or GPL. Writing GPL or LGPL code on PHP is

Re: [PHP] preg for unicode strings?

2005-11-05 Thread Robin Vickery
On 11/5/05, Andy Pieters [EMAIL PROTECTED] wrote: I am doing some data validation and the following regexp fails [\W] When using characters like £ or € The script is encoded in UTF-8 Are you using the 'u' modifier to put PCRE in utf-8 mode? preg_match( '/\W/u', $text); -robin

Re: [PHP] No forums?

2005-11-05 Thread GamblerZG
Richard Davey wrote: php.net does not exist in any one location. It's an interesting perspective. Thanks for an insightful reply. Start now and we'll check in on your progress in a years time :) You're joking, but I might actually do it. I was thinking about such forum before. It could be

[PHP] Re: Template style question

2005-11-05 Thread GamblerZG
Leonard Burton wrote: [[tag with db query]] table trtdcolname/tdtdcolname/tdtdcolname/td/tr trtd%var1%/tdTd%var2%/tdtd%var3%/td/tr /table [[/tag with db query]] I would like it to be able to parse the line with the %var1% (which is the column name with % or some other indicator on each side) in

Re: [PHP] How can I track the value in php

2005-11-05 Thread comex
in my index page, I firstly inlcude_once a A.php file, where i defined an array, secondly I include another .php file named B.php, where I want to use the array, I have claimed it as global type, but it seems I can't retrieve any value from the array. When you include a PHP file, it will be

Re: [PHP] preg for unicode strings?

2005-11-05 Thread Niels Ganser
Andy, you might want to check out http://www.regular-expressions.info/unicode.html Please note two things while using the described syntax: 1. You have to additionally use the u modificator. 2. While \p{Ll} for instance works in PHP, \p{Lowercase_Letter} doesn't. Regards, Niels Hi List I

Re[2]: [PHP] No forums?

2005-11-05 Thread Richard Davey
Hi, Saturday, November 5, 2005, 11:30:29 PM, you wrote: Start now and we'll check in on your progress in a years time :) You're joking, but I might actually do it. I was thinking about such forum before. It could be useful for many purposes. It would be *extremely* useful, but I imagine

Re: [PHP] preg for unicode strings?

2005-11-05 Thread Andy Pieters
Hi Thank you for your reply. My regexp was /^([a-zA-Z]{3,}|[\W])/ Meaning match any string that is either 3 letters or 1 word character I'd like to change this to 3 letters or 1 currency character So I changed the regexp accordingly /^([a-zA-Z]{3,}|[\p{Sc}])/u And I tested with £ but it