Re: [PHP] Binary data confusion

2003-01-11 Thread Clay Loveless
Well, I'm always trying to make it harder than it needs to be. A few more hours of research yielded this solution: $out = preg_replace(/\%([0-9][0-9])/e, chr(hexdec(\0x$1\)), $buf); Header(Content-type: image/png); echo $out; ... Worked like a charm. If anyone can see any problems with this

[PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Noel Wade
Hi all, So I have a session variable; but with register_globals active on the server I'm hosted at (no way to turn it off), just checkng for $varX in my script could retrieve the session variable, a GET variable with the same name, or a POST variable with the same name - and as a security

[PHP] Re: Session vars vs. POST/GET vars?

2003-01-11 Thread Noel Wade
Nevermind, just found the $HTTP_SESSION_VARS array... Thanks anyways! Take care, --Noel Noel Wade [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, So I have a session variable; but with register_globals active on the server I'm hosted at (no way to

Re: [PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Jason k Larson
FYI: Don't like auto register globals ... try the following at the beginning of your script. ini_set ('register_globals','Off'); Works for me places I'm hosted at. HTH, Jason k Larson Noel Wade wrote: Hi all, So I have a session variable; but with register_globals active on the server I'm

[PHP] version confusion - please help

2003-01-11 Thread Christian Stalberg
what does debug_phpinfo.php read to get its information? When I run debug_phpinfo.php in my browser it says version 4.2.3 But when I execute php -v at the command line I get 4.0.4pl1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session_destroy problem

2003-01-11 Thread Tamás Árpád
You da man. Unload is perfect. If the problem he mentioned before prevents the browser from finishing its communication with the server you can always send a wait command with sufficient time for things to finish up. I'll start testing in a live environment with it now. Thank you for the

php-general Digest 11 Jan 2003 12:20:39 -0000 Issue 1816

2003-01-11 Thread php-general-digest-help
php-general Digest 11 Jan 2003 12:20:39 - Issue 1816 Topics (messages 131210 through 131239): Re: Make fil downloadable 131210 by: Timothy Hitchens \(HiTCHO\) 131211 by: Stephen 131213 by: Timothy Hitchens \(HiTCHO\) 131214 by: Stephen 131217 by:

[PHP] Change Date

2003-01-11 Thread Naqashzade, Sadeq
Hi, How can I find time stamp for example 125 next days. or 03:30 hours next? Regards, S. Naqashzade PS: Sorry for my bad english :-( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using $vars from include()d functions in the main programm andother functions

2003-01-11 Thread Thomas Seifert
They should show up but still think of the order in which they are loaded. You can access vars which are not yet loaded. Also you can't access variables which are initialized in a function (if they are not global). Including adds the contents of the files as if it was directly in main.php4, they

[PHP] Re: Change Date

2003-01-11 Thread Thomas Seifert
http://de.php.net/manual/en/function.mktime.php The most important part is mktime() is useful for doing date arithmetic and validation, as it will automatically calculate the correct value for out-of-range input. Thomas On Sun, 11 Jan 2004 16:12:01 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade)

[PHP] Re: Change Date

2003-01-11 Thread Naqashzade, Sadeq
So Thanks, but can you get me some example code? Regards, Sadeq Thomas Seifert [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://de.php.net/manual/en/function.mktime.php The most important part is mktime() is useful for doing date arithmetic and

[PHP] count characters without space

2003-01-11 Thread harald.mohring
who knowes how to count the charcaters in a string without the space character? thanks harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Make thumbnail online

2003-01-11 Thread Naqashzade, Sadeq
Hi every one, I want to create thumbnail of a photo stored in MySQL table online. Best Wishes, S. Naqashzade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] count characters without space

2003-01-11 Thread Gerald Timothy Quimpo
On Saturday 11 January 2003 08:51 pm, [EMAIL PROTECTED] wrote: who knowes how to count the charcaters in a string without the space character? you need to be more clear. number of characters in the string except space? number of distinct characters in the string except space? include other

[PHP] Date Comparison

2003-01-11 Thread Dhaval Desai
Hello ppl, Well, I want to compate date is php, could anybody tell me which is the best way to do so? I have tried various ways but nothing seems consistent. I tried for example: if(2003-1-15 2003-1-11) { echo true; } which doesn't work in some cases... Thank you! Best Regards, Dhaval

Re: [PHP] Date Comparison

2003-01-11 Thread Matt
- Original Message - From: Dhaval Desai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 11, 2003 8:38 AM Subject: [PHP] Date Comparison Well, I want to compate date is php, could anybody tell me which is the best way to do so? Look at PHPs date functions

[PHP] Re: Change Date

2003-01-11 Thread Thomas Seifert
i.e. // getting the current time in an array $timeval=localtime(); // we want the time 3 hours in the future $timeval[2] = $timeval[2]+3; // calc the new timestamp $timestamp=mktime ($timeval[2], $timeval[1], $timeval[0], $timeval[4], $timeval[3], i$timeval[5]); An

[PHP] Re: Make thumbnail online

2003-01-11 Thread Thomas Seifert
how about just reading the docs which are available online? http://de.php.net/manual/en/ref.image.php and especially http://de.php.net/manual/en/function.imagecopyresized.php will help. Thomas On Sun, 11 Jan 2004 16:32:36 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade) wrote: Hi every one, I

[PHP] COM object

2003-01-11 Thread [EMAIL PROTECTED]
How I can create a Word document through PHP? Must I modify php.ini? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Suggestions on FAQ application?

2003-01-11 Thread Jeffrey B. Ferland
Why re-invent what is already written? I'm well aware that it's easy to write but there may be something out there already that suits my needs and has some features that I hadn't thought of. If you don't have a suggestion on a package please spare me the rude replies which seem to run rampant

Re: [PHP] count characters without space

2003-01-11 Thread Jeffrey B. Ferland
who knowes how to count the charcaters in a string without the space character? Using a regular expression to strip out all the spaces before passing to the word counting function seems easiest. You'll be left to adapt it to PHP, but the regexp is: 's/ //g' That removes all spaces. If it gives

[PHP] Problem with Search Engine Friendly URLs under PHP Windows XP

2003-01-11 Thread Jonathan Chum
I'm following various tutorials online that uses the PATH_INFO to do this, however Apache isn't playing nicely. I read a few documents that Apache has a built in look back feature, but a query on google on lead me back to a few articles that I just read so I'm assuming this feature is made up in

Re: [PHP] Suggestions on FAQ application?

2003-01-11 Thread John Nichel
Maybe y'all should take your flame war off list? Just a friendly little suggestion. Jeffrey B. Ferland wrote: Why re-invent what is already written? I'm well aware that it's easy to write but there may be something out there already that suits my needs and has some features that I hadn't

[PHP] Re: Template tutorials?

2003-01-11 Thread David Eisenhart
Check out the Smarty tutorial links page from it's site resources section - http://smarty.php.net/resources.php?category=0 Also the Smarty manual is excellent - very comprehensive and well written. I just about taught myself Smarty using this alone. I think Smarty is the absolute biz when it

RE: [PHP] Is this possible with php?

2003-01-11 Thread Rasmus Lerdorf
You should probably mention that this is called WebFolders in M$-speak and it actually works quite well when combined with the mod_dav and mod_digest Apache modules. -Rasmus On Fri, 10 Jan 2003, Timothy Hitchens (HiTCHO) wrote: So you want to be able to have a directory that when saved to it

[PHP] Sorting arrays

2003-01-11 Thread Chris Kay
I have a array as below I wish to sort if by the key fff name = blah fff = 4 join = pppop name = ttoo fff = 3 join = wewe name = blff fff = 9 join = ppeep Any1 know of a quick way to do this, I have been looking at the sorting of arrays in the Manual but cant see anything.. Thanks in advance

Re: [PHP] Problem with Search Engine Friendly URLs under PHP Windows XP

2003-01-11 Thread Jonathan Chum
Toying with Apache further, I actually was able to get this to work a few minutes I posted the thread. What I was doing wrong was running PHP as a CGI rather than using it as SAPI module. Hopefully this helps other folks as I was going nuts going through google.com trying to find a solution. Add

Re: [PHP] Is this possible with php?

2003-01-11 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: using MS Word in windows, when a file is saved, can it be AUTOMATICALLY uploaded (via http POST or other mechanism) to a server? Yes, in a webDAV enabled directory on your webserver (http://www.webdav.org). Its a module that you can compile for use with Apache (I'm

[PHP] Free web-hosting

2003-01-11 Thread Anton Gladky
Hello everybody! Can anybody advice me the best free web-hosting with PHP? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php5 cvs

2003-01-11 Thread electroteque
hi guys just noticed php5 cvs in the snaps page , does this have the zend 2.0 engine ? more specific question has it got the proper OO built in yet ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Change Date

2003-01-11 Thread Jason Wong
On Sunday 11 January 2004 20:52, Naqashzade, Sadeq wrote: So Thanks, but can you get me some example code? There are plenty of examples in the manual! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Jason Wong
On Saturday 11 January 2003 19:47, Jason k Larson wrote: FYI: Don't like auto register globals ... try the following at the beginning of your script. ini_set ('register_globals','Off'); Works for me places I'm hosted at. register_globals cannot be set at runtime (to be precise, it can be

Re: [PHP] Date Comparison

2003-01-11 Thread Jason Wong
On Saturday 11 January 2003 21:38, Dhaval Desai wrote: Hello ppl, Well, I want to compate date is php, could anybody tell me which is the best way to do so? I have tried various ways but nothing seems consistent. I tried for example: if(2003-1-15 2003-1-11) { echo true; } which

Re: [PHP] Re: Session vars vs. POST/GET vars?

2003-01-11 Thread Jason Wong
On Saturday 11 January 2003 18:39, Noel Wade wrote: Nevermind, just found the $HTTP_SESSION_VARS array... If you're using a relatively recent version of PHP, you should use $_SESSION. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

[PHP] global to superglobal

2003-01-11 Thread pippo
I have a database that was created on an earlier version of PostgreSQL and uses global variables with register_globals = on for php4. I have migrated the database to postgresql-7.3.1 with mod_php-4.2.3 and have set the register_globals to on. In order to use the default setting of

Re: [PHP] Loading Information into an array.

2003-01-11 Thread Jason Wong
On Saturday 11 January 2003 06:53, Philip J. Newman wrote: I have a table with images and comments. if i have $x amout of images that each have a comment. the comments are displayed in the center colum of the table with the images loading left and right of each comment.

[PHP] rintones using php

2003-01-11 Thread Arvindv
Hi, Were can i get scripts to send rintones/graphics to mobile phones using php ?. Arvind -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] global to superglobal

2003-01-11 Thread pippo
At 04:16 AM 1/12/2003 +0800, you wrote: On Sunday 12 January 2003 03:45, [EMAIL PROTECTED] wrote: I have a database that was created on an earlier version of PostgreSQL and uses global variables with register_globals = on for php4. I have migrated the database to postgresql-7.3.1 with

[PHP] Rintones using php

2003-01-11 Thread Arvindv
Hi, Were can i get scripts to send rintones/graphics to mobile phones using php ?. Arvind -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] global to superglobal

2003-01-11 Thread Jason Wong
On Sunday 12 January 2003 03:45, [EMAIL PROTECTED] wrote: I have a database that was created on an earlier version of PostgreSQL and uses global variables with register_globals = on for php4. I have migrated the database to postgresql-7.3.1 with mod_php-4.2.3 and have set the register_globals

[PHP] fopen with nasty pathnames

2003-01-11 Thread Mat Harris
i have a database with unix path names of mp3s like: Patti Smith/Horses [1975]/01-Gloria.mp3 which have to keep the spaces for part of another application. If i let the shell escape them from an ls command, i can get: Patti\ Smith/Horses\ \[1975\]/01-Gloria.mp3 but fopen will still refuse

Re: [PHP] Suggestions on FAQ application?

2003-01-11 Thread The Head Sage
I don't believe a FAQ application actualy has been written yet... I haven't seen one on Hotscript.com or PHP Resources. But if you have found one, please let me know as i'm interested in one as well. - Daniel TheHeadSage Spain Founder of Voidsoft. On 10 Jan 2003 at 21:51, Jeff Lewis wrote:

Re: [PHP] php5 cvs

2003-01-11 Thread Danny Shepherd
It includes the latest CVS build of ZendEngine 2.0 - AFAIK it hasn't even reached beta status yet, so don't even think about using it for production work. That said, I didn't have any problems building it and it seems pretty stable. A list of changes and features can be found at

php-general Digest 12 Jan 2003 00:36:55 -0000 Issue 1817

2003-01-11 Thread php-general-digest-help
php-general Digest 12 Jan 2003 00:36:55 - Issue 1817 Topics (messages 131240 through 131286): Change Date 131240 by: Naqashzade, Sadeq 131242 by: Thomas Seifert 131243 by: Naqashzade, Sadeq 131249 by: Thomas Seifert 131272 by: Jason Wong Re: Using

RE: [PHP] Some help on PHP HTML please

2003-01-11 Thread Daniel Kushner
Hi Denis, You should close the PHP tag (?) before outputing HTML. Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 11, 2003 8:25

[PHP] Simple Form Processing

2003-01-11 Thread Kyle Babich
I just broke skin with php and I'm learning forms, which I'm not good with at all. These are snippets from post.html: form method=get action=process.php enctype=multipart/form-data and input type=file name=image1 maxlength=750 allow=images/*br input type=file name=image2 maxlength=750

[PHP] Sorry, PHP HTML

2003-01-11 Thread Denis L. Menezes
Hello friends. I have a database from which I take 2 variables as follows : $CompanyWebsite $CompanyLogo I want to dynamically show two GIFs and when the user clicks on these, they should go to http://www.hotmail.com and http://www.yahoo.com respectively. I have problem only with the

[PHP] Permission Denied

2003-01-11 Thread Stephen
Why do I get this error whenever I try to CHMOD something in PHP or create a directory (in this case): Warning: mkdir(packs/bob) [function.mkdir]: Permission denied in c:\inetpub\wwwroot\phpiw\classes\class.cp.php on line 20 Here's line 20 of class.cp.php: mkdir('packs/'.$package, 0777);

Re: [PHP] php5 cvs

2003-01-11 Thread electroteque
lol no , i am gonna try and upgrade my workfrom dinasour php3 to php 4.3, i have a development box here @ home i just upgraded to the 4.3 release from rc3 and am gonna try out version 5 then it doesnt matter how stable it is at home really :D Danny Shepherd [EMAIL PROTECTED] wrote in message

[PHP] Some help on PHP HTML please

2003-01-11 Thread Denis L. Menezes
HGello friends. I have a database from which I take 2 variables as follows : $CompanyWebsite $CompanyLogo I want to dynamically show two GIFs and when the user clicks on these, they should go to http://www.hotmail.com and http://www.yahoo.com respectively. I have problem only with the

Re: [PHP] global to superglobal

2003-01-11 Thread Greg Beaver
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Most of the variables should be fairly obvious, I should think. So, it should not be too difficult to do some search replace of stuff like the $_SERVER['DOCUMENT_ROOT'] stuff. I suppose I could then try to run the

RE: [PHP] Sorry, PHP HTML

2003-01-11 Thread Timothy Hitchens \(HiTCHO\)
I don't see the problem I can run the script with one issue that the comments are outside of PHP parsing. The other issue is that you are closing off for PHP but not opening up in the second block!! ** what are you errors exactly!! are they notices about variables??? Timothy Hitchens (HiTCHO)

Re: [PHP] Permission Denied

2003-01-11 Thread Stephen
There's already a folder named packs but my problem was not having the / before it. One more question. How can I dynamically get the path to the current folder? Like your at http://www.bob.com/joe/index.php and you want to get the http://www.bob.com/joe/ bit and do it dynamically? - Original

Re: [PHP] fopen with nasty pathnames

2003-01-11 Thread Gerald Timothy Quimpo
On Sunday 12 January 2003 07:08 am, Mat Harris wrote: Patti\ Smith/Horses\ \[1975\]/01-Gloria.mp3 but fopen will still refuse saying file not found. I have tried escaped and unescaped amnd yes, I am very sure the file is there. How can I get fopen to accept a path like this? $in=fopen(a

[PHP] displaying in the table problem

2003-01-11 Thread Denis L. Menezes
Hello Firends. I have the following code. I am getting the query results but they are not displaying in the table. I presume there is something wrong with a } in the while statement. Can someone please tell me where I am wrong? Quote : html head titleUntitled Document/title meta

Re: [PHP] Simple Form Processing

2003-01-11 Thread Justin French
Hi, the files themselves are available in the $_FILES array, but it's not as simple as that. may i recommend you start by copying the Examples 18-1 and 18-2 from this page: http://www.php.net/manual/en/features.file-upload.php Once you've got THAT code working smoothly and understand what's

Re: [PHP] Permission Denied

2003-01-11 Thread jacob
The user/group (commonly nobody.nogroup or nobody.nobody) that your web server runs under probably does not have the permissions necessary to chmod those directories (ie: they are owned by someone else). Quoting Stephen [EMAIL PROTECTED]: Why do I get this error whenever I try to CHMOD

Re: [PHP] rintones using php

2003-01-11 Thread Justin French
You'd need a server capable of sending them (I think it's an SMS gateway hardware device, or something like that), which I think is more of an issue than then PHP scripts involved... Justin on 12/01/03 6:57 AM, Arvindv ([EMAIL PROTECTED]) wrote: Hi, Were can i get scripts to send

RE: [PHP] Amount of data in the database

2003-01-11 Thread Timothy Hitchens \(HiTCHO\)
Give this a go.. for each of the databases use: SHOW TABLE STATUS FROM xx; That will return a huge amount of size etc data!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] Sent:

[PHP] OOP for Web Programming Paradigm

2003-01-11 Thread Victor
Hello. I have this question. When I program, I try to create a class for each table. Example below. Now what some complain about, and logically so, is that this might impose an overhead (I load all data even if I just need a counter and NOT description). So I say we can make a STATIC version

Re: [PHP] Format tables!!

2003-01-11 Thread Justin French
table width=400 tr tdbname/b/td tdbaddress/b/td tdbphone/b/td /tr ? // connect to database excluded // error checking and result checking excluded $sql = select id,name,address,phone from contacts; $result = mysql_query($sql); while($myrow

RE: [PHP] Changing permissions with mkdir?

2003-01-11 Thread Timothy Hitchens \(HiTCHO\)
Hmm that is strange... chmod it after then: http://www.php.net/manual/en/function.chmod.php Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Ben Cheng [mailto:[EMAIL PROTECTED]] Sent: Sunday, 12 January 2003 2:56 PM To: [EMAIL

Re: [PHP] Amount of data in the database

2003-01-11 Thread Denis L. Menezes
Thanks Timothy. I want to find the amount of data for each member in the database using PHP and displaying in a web page. I know how to query records of a member and also know to display. Only I need to know the command for finding the size(in bytes or kb) for each of these records :Something

RE: [PHP] Amount of data in the database

2003-01-11 Thread Timothy Hitchens \(HiTCHO\)
I haven't seen a way to get the size of an individual record. What about using the max size of the fields in that table against number of records eg: 255 char = x bytes etc etc = 156KB per record max Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original

RE: [PHP] version confusion - please help

2003-01-11 Thread Jesse Cablek
Christian Stalberg mailto:[EMAIL PROTECTED] scribbled; what does debug_phpinfo.php read to get its information? Not sure. When I run debug_phpinfo.php in my browser it says version 4.2.3 Assuming a UNIX box running Apache, and assuming this is a PHP module, sounds right. But when I

[PHP] Re: php-general Digest 27 Mar 2002 13:15:24 -0000 Issue 1251

2003-01-11 Thread DCnFamily
I am looking for an old friend - Ralph Friedman. I was doing an internet search and found this email address and am wondering if I may have found him here. The Ralph I knew was part of a nomadic Christian community in the '70's. We are looking for former members and have a yahoo email group.

Re: [PHP] php5 cvs

2003-01-11 Thread electroteque
hmm has the public and private function accessor changed ? i have been building my classes with test() and _test() to differentiate from public and private and have been waiting to try it out but i can still access both ! ?? Electroteque [EMAIL PROTECTED] wrote in message [EMAIL