[PHP-WIN] Re: AOL and myphpadmin

2005-06-29 Thread Jason Barnett
Patrick Roane wrote: I've been developing a php/mysql application on 2 different windows xp systems w/no trouble at all. As soon as I tried to use myphpadmin on a a system with AOL installed, its like someone put the freeze on it. I've never seen it load and execute simple quiries so slow. I've n

[PHP-WIN] Re: E_ALL and still not getting notices...

2005-06-28 Thread Jason Barnett
I don't know if ADOdb does this or not, but it's possible that you have a set_error_handler somewhere that is trying to handle your errors in a way other than printing them to standard output. Another possibility is that your included scripts have altered any of the following php.ini entries:

Re: [PHP-WIN] PHP & GD on Windows

2005-06-17 Thread Jason Barnett
In which case you might be out of luck... I've tried building from source with cygwin / gcc, but every binary that I've tried building that way segfaults like mad. Although I haven't invested a lot of time making it work since I'm not really familiar with gcc. If you manage to build it this w

Re: [PHP-WIN] PHP & GD on Windows

2005-06-17 Thread Jason Barnett
Yep. In Windows all you do is enable in your php.ini and have the extension DLL in the extension directory. Edin Kadribasic wrote: Hi, Why would you want to build PHP on windows. In the downloads section of the site you can find precompiled binaries for PHP including all the extensions. Edi

[PHP-WIN] Re: register_globals issue

2005-05-04 Thread Jason Barnett
Bill Kirk wrote: I am running php 4.3.10 on a Windows 2003 server with Apache 2. My problem is that I have set register_globals = on in the php.ini file (which is in the windows directory (everyone has read rights to it), but when I do a php info on it, it shows that register_globals is off, and th

[PHP-WIN] Re: Programming problem... Date day locater!

2005-05-04 Thread Jason Barnett
JC Botha wrote: Hi there to all. I need to get the day number of any given date. Like if the date 20 Jan 2005 is given I need to calculate that it is day 20 in the year. Any thoughts on solving this would be much appreciated. Chris http://php.net/manual/en/function.date.php echo date('d'); ?> -- P

[PHP-WIN] Re: compiling php on win 2003

2005-05-04 Thread Jason Barnett
Kc wrote: I have installed PHP4 successfully with mysql and am able to run my pages with queries from my database. Now I was wanting to install Horde. This is the error I get from the screen that is supposed to tell you if you have everything you need to keep going: Horde will not run without get

Re: [PHP-WIN] Newcomer

2005-05-02 Thread Jason Barnett
Barry Fawthrop wrote: Thanks all Yes I have been slowly working through the manual, which has helped alot. I'm not sure on the issue raised, which is better A or B This falls into the "religious" area of programming. There's a good discussion about templates going on over in php-general newsgroup

[PHP-WIN] Re: A question on password policies . . .

2005-05-02 Thread Jason Barnett
Lists wrote: Folk, I'm curious if anyone has any advice on setting up multi-level password access? The site is being developed on Win2K/IIS 5.x, but will be published on a Linux server, which phpinfo() reports as: Linux {domain name} 2.4.20-28.8HEsmp #1 SMP Thu Jun 17 16:21:50 BST 2004 i686. I wo

[PHP-WIN] Re: Phpize

2005-05-02 Thread Jason Barnett
Terry Watts wrote: I'm new to PHP and I have just installed PHP for windows on my server, I'm now trying to install PHP for Image Magick. The docs for this say I have to run "phpize" but I can't find it anywhere. Can someone please tell me where it lives. Thanks in advance. Terr

[PHP-WIN] Re: Combinig 2 Variables into 1

2005-04-29 Thread Jason Barnett
Maxwell Brodie wrote: Hello, Could someone help me out here, I am tryimg to make two variables into one for example: $to = 'server'; $subject = test; $message = $variable1, $variable2; $message = $variable1 . $variable2; $headers = 'From: webmaster@' . $_SERVER['SERVER_NAME'] . "\r\n" . '

[PHP-WIN] Re: Newcomer

2005-04-28 Thread Jason Barnett
Please do not CC me, just write to the list. I will usually see responses. Michael wrote: Jason, I think your last answer is misleading, PHP does not by default produce markup unless you choose to output or produce markup with PHP. You can use PHP to return raw data, manipulate data in a data s

[PHP-WIN] Re: Newcomer

2005-04-27 Thread Jason Barnett
Barry Fawthrop wrote: Hi All As a newcomer to the list and PHP, I was wondering: I have been programming for 8 years now, in C and mostly in Delphi / Pascal. I am used to the C constraint and syntax, which it appears that PHP follows. Pretty much. There are very, very few cases where C function

[PHP-WIN] Web based Accounting / COM

2005-04-27 Thread Jason Barnett
The question: can anyone point me to a good howto for building COM components? It would be great if there were open source tools for building the actual COM object. It would be better if the howto was geared towards building COM objects for web apps. Obviously the web pages will be written i

Re: [PHP-WIN] Secure customer service web page browser

2005-04-26 Thread Jason Barnett
Michael Purdy wrote: Ross Your requirement is similar to what I have seen in a number of retail stores. It is common practice for stores to be provided with a customised Linux desktop environment and a non externally routable IP Address. Mike Great suggestion. I have actually thought about doing t

[PHP-WIN] Re: Get an RSS reader to E-Mail content

2005-04-26 Thread Jason Barnett
Maxwell Brodie wrote: Hello, I am using the following script to keep me up to date from any computer in the world that has web access, but I would like to get it to automatically E-mail the content to my E-mail adress, here is what I have so far. I know this isn't what you were asking for, but..

[PHP-WIN] Re: Parsing XML Code

2005-04-08 Thread Jason Barnett
Jeb Barger wrote: > > > I am have a hard time parsing a xml file from IIS box. What is the > easiest way to parse a xml gotten from a url and parse the information > into variables? Make Sense? > > Jeb \n"; $xml = urldecode($_GET['xml_param']); var_dump($xml); /** PHP5 */ $sxe = simplexml_load_

Re: [PHP-WIN] Optimize php code

2005-04-06 Thread Jason Barnett
The only way to really know is to test it yourself, with your machine and your setup. Because what might be fast for me might be slow for you. You should also have an overall goal in mind of how much time you can spend on page loads. If you need help testing scripts then you can go for apache be

[PHP-WIN] Re: php-binaries with --enable-memory-limit?

2005-03-30 Thread Jason Barnett
Sencer wrote: ... > Is there a trusted source where I can get current php-binaries that are > compiled with --enable-memory-limit? None that I know of... unless of course you trust me ;) Seriously, why not just do it yourself? cygwin/gcc is free and easily obtained. -- Teach a man to fish... N

[PHP-WIN] Re: howto do a backtrace on windows?

2005-03-22 Thread Jason Barnett
Use cygwin / gcc?!?! :P Is debug_backtrace() unable to give you what you want? -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/sear

[PHP-WIN] Re: is it harmful ?

2005-03-17 Thread Jason Barnett
Amir Jebelli wrote: > is it harmful if I connect to internet while my apache web server is running ? > *Any* time you connect to the internet you are exposing your computer to potential viruses, crackers, and the sort. Having an Apache server running on a machine offers different ways for an atta

[PHP-WIN] Re: Problem with redirect

2005-03-17 Thread Jason Barnett
Bunmi Akinmboni wrote: > I develop under windows. Why will my redirect be giving this error: > > Warning: Cannot modify header information - headers already sent by > (output started at ... Search the archives for your error message, you will find the answer. -- Teach a man to fish... NEW? | htt

Re: [PHP-WIN] Call to undefined function checkdnsrr()

2005-03-16 Thread Jason Barnett
Mikey wrote: >>I am running php5 on a win2kpro machine with apache2/mysql/phorum. >>In the phorum when trying to register a new user through the >>site, I get this error. >>From what I've looked up, checkdnsrr() doesn't run in Win, >>and yet the function email_functions.php is calling it. >> >>Know

[PHP-WIN] Re: Possibly OT - refreshing page

2005-03-15 Thread Jason Barnett
http://webdesign.about.com/cs/metatags/a/aa080300a.htm On the PHP side of things the function to use is header(). -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php S

[PHP-WIN] Re: recommending a PHP book?

2005-03-15 Thread Jason Barnett
Danny Lin wrote: > Can any one recommend a good book that discusses MVC design patterns with > PHP (and mySQL)? > > Thanks. I can recommend a *simple* website: phppatterns -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=p

[PHP-WIN] Re: windows memory limit

2005-03-15 Thread Jason Barnett
Giles Velarde wrote: ... > > If this is the case, does anyone know where to find a PHP5 apache 2 dll > that is compiled with a enabled memory limit? > > Thanks DIY... Apache 2 / PHP source is freely available... cygwin / gcc is also freely available if you need a build environment. -- Teach a man

[PHP-WIN] Re: Looking for new php hosting service

2005-03-09 Thread Jason Barnett
Jim MacDiarmid wrote: > Can anyone provide recommendations? I currently have a plan with ... pair is good. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW |

Re: [PHP-WIN] static

2005-03-02 Thread Jason Barnett
> > class foo { > > static public $a = 1; > > public function __construct() { > > echo $this->a; /* does not work */ > > echo foo::$a; /* work */ echo self::$a; /* work */ > > } > > } > > > > Can someone please explain to me why I have to call $a outside the class to > get the v

[PHP-WIN] Re: Error 500 in IIS weblog

2005-03-02 Thread Jason Barnett
Louis Solomon wrote: > not happening here. > 500 errors mean that you have an internal server error. Often times this is because you misconfigured IIS and/or PHP. Try checking the archives, you should find the answer to this one there. (Of course if none of those answers work, then you can com

[PHP-WIN] Re: [Request] ISAPI and Keep-Alives

2005-03-02 Thread Jason Barnett
Louis Solomon wrote: > Any chance of fixing the ISAPI to allow HTTP Keep-Alives? > > and no, it's not just me :-) I checked the source code. it returns > HSE_STATUS_SUCCESS for all success cases. It needs to return > HSE_STATUS_SUCCESS_AND_KEEP_CONN to allow Keep-Alives to work. (and of > cours

[PHP-WIN] Re: not so php related

2005-02-23 Thread Jason Barnett
Joakim Ling wrote: > Hi, > > > > Is there a way to add hosts in IIS6 and alias in DNS hosts from php or > cmd. It would help me alot when I register a new customer. > > In an Apache server you would use VirtualHosts... but then again I have never used IIS so who knows what they call it on t

[PHP-WIN] [Fwd: Re: php.ini - cookies]

2005-02-21 Thread Jason Barnett
tions but no succes. I asume it's a server issue. I have the same wesite on a webserver of my ISP and it's works fine there. Christian. "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Christian Tischler wrote: ... >

[PHP-WIN] Re: php.ini - cookies

2005-02-21 Thread Jason Barnett
Christian Tischler wrote: > help again, please. > > I asume it is a problem with php.ini but cookies don't work for my website. > > can anyone tell me the right configuration or the php.ini to make cookies > work. > > Thanks > > Christian Cookies require two parts: the server and the browser

Re: [PHP-WIN] Re: Parsing a PHP file - Newbie alert

2005-02-16 Thread Jason Barnett
Andrew Hargreaves wrote: Andrew Hargreaves wrote: On Tue, 15 Feb 2005 19:20:52 -0500, Jason Barnett <[EMAIL PROTECTED]> wrote: ... Absolutely! It's a common mistake. If you try to open a PHP file directly then your browser would have no idea to send the script through PHP. But when

Re: [PHP-WIN] Re: Parsing a PHP file - Newbie alert

2005-02-16 Thread Jason Barnett
Please keep email responses to the newsgroup / list. Helps me stay organized and I help out when I can. Andrew Hargreaves wrote: On Tue, 15 Feb 2005 19:20:52 -0500, Jason Barnett <[EMAIL PROTECTED]> wrote: ... When I tried to run my first PHP file to show the PHP Info () the browser, Firef

[PHP-WIN] Re: Parsing a PHP file - Newbie alert

2005-02-15 Thread Jason Barnett
Andrew Hargreaves wrote: First post here so go easy on me please as I have looked in as many places as possible before resorting to this. I have installed MySQL, Apache 2.0.52 and PHP 4.3.10 on my XP Pro PC and have read through the installation docs etc to update httpd.conf as instructed. You're a

Fwd: Re: [PHP-WIN] Re: SESSION

2005-02-11 Thread Jason Barnett
t; Reply-To: Vaibhav Sibal <[EMAIL PROTECTED]> To: php , Jason Barnett <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Thanks Jason ! It'll be great if you could also tell me whether I can launch applications like MS WORD using COM or any other te

[PHP-WIN] Re: SESSION

2005-02-10 Thread Jason Barnett
Vaibhav Sibal wrote: I wanted to ask, where is the Session information stored ? That is at the server or on the client. Because I need to give the session.save_path value in the php.ini. I would give it according to people's reply of this question. Thank you. Vaibhav session.save_path is located on

Re: [PHP-WIN] outlook calendar

2005-02-08 Thread Jason Barnett
Zeb Bowden wrote: Does your organization use Outlook web access (OWA)? If so you may also be able to access calendars using WebDAV (that's what Entourage for Mac's do). Thanks for the tip, but unfortunately we don't have outlook web access. Now that you mention it though it might be easier / bette

Re: [PHP-WIN] outlook calendar

2005-02-08 Thread Jason Barnett
[EMAIL PROTECTED] wrote: You know, I forgot but I think that depending on the version of Outlook, you might have to replace the "outlook.application" with something else. Maybe not.. hmm.. I can't find any examples where something other than 'outlook.application' is used. Maybe I'm wrong there.

[PHP-WIN] Re: Hello ppl

2005-02-08 Thread Jason Barnett
Vaibhav Sibal wrote: I am trying to setup PHP in linux, Im still in server setup stage, can you guys tell me if there is a mailing list for linux users here? Most of the *nix users stick to php.general (or basically any php newsgroup that isn't php.windows!) Incase you are interested then heres my

Re: [PHP-WIN] outlook calendar

2005-02-07 Thread Jason Barnett
[EMAIL PROTECTED] wrote: = = = Original message = = = Good morning, Is it possible to reach the data of the outlook calendar (on a server exchange) with php? Thank you for advance I've never tried using PHP to connect to an Exchange server directly, but I've done some stuff with using PHP to con

[PHP-WIN] Re: DocGuru - PHP Documentation Tool 1.0 Released

2005-02-07 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Cerauno proudly announces the release of DocGuru Professional 1.0. No offense intended to you sir... but if you're going to try to sell this product on the list you could at least make comparisons to some of the other (open source / free) projects out there and explain why

[PHP-WIN] Re: $_SESSION

2005-02-07 Thread Jason Barnett
Dale Attree wrote: Is there anyway to spoof the $_SESSION array? For what purpose? -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://www.php.net/manual/en/index.php STFW | http://www.google.com/se

Re: [PHP-WIN] Re: [PHP] php editor

2005-02-02 Thread Jason Barnett
Mikey wrote: -Original Message- It's true that googling would produce a list of PHP-happy editors, but the intended question seems to be more along the lines of "What does everyone like? Use? Prefer?" That's not something that's always found on lists you'd get off of google. No, b

[PHP-WIN] Re: Date Help Needed

2005-01-31 Thread Jason Barnett
Ron Herhuth wrote: I am trying to construct a function where I feed it a number such as "x" it returns the date "x" days ago. $format = 'l dS of F Y h:i:s A'; /** Check that "now" relative time is ok, instead of midnight */ echo date($format, strtotime("now")) . "\n"; /** If now resolves correctly

Re: [PHP-WIN] Re: PHP MS-DOS

2005-01-26 Thread Jason Barnett
DvDmanDT wrote: Yes, but it's still a windows app.. :p I think it uses windows funtionality, that doesn't exist in dos (with dos I don't mean console windows, I mean real dos, with no windows loaded at all).. It's not using windows specific stuff, or at least it doesn't really depend on it, but it

[PHP-WIN] Re: Random

2005-01-24 Thread Jason Barnett
SargeTron wrote: "How can I create a random string" rand() only returns an int (number), but I would like something like dd75$6*, you know, containing any character. I would like it only to do a certain string ONCE, so there are no duplicates (in a for loop). Hopefully I won't need to do a huge arr

Re: [PHP-WIN] Re: Design Assistance

2005-01-20 Thread Jason Barnett
Jim MacDiarmid wrote: Thanks for your thoughts Jason. In reference to the KISS method you mentioned.. ( taking a quick deep breath... I resemble that remark!! ;) ) No, actually, the way I normally structure my code is on each page I do the following: /* All includes and requires go here */ /

[PHP-WIN] Re: Design Assistance

2005-01-20 Thread Jason Barnett
Jim MacDiarmid wrote: I'm hoping someone can help me with some design thinking.. I'm still fairly new to php and most of my scripts are written in a rather procedural format. I'd like to try start thinking in a more object-oriented way. The There's no reason why you *have* to use objects. Heck

[PHP-WIN] Re: Import functions from a DLL file

2005-01-19 Thread Jason Barnett
Rui Silva wrote: Hello! I have a DLL witch I want to use in PHP. This DLL file is Eztwain3.dll It is possible running it on PHP? I think I must create a special DLL (like php_Eztwain3.dll) to call Eztwain3.dll and also php5ts.dll Do you have the source for this DLL? I think you will find the pr

[PHP-WIN] Re: Installing Pear on Win XP

2005-01-18 Thread Jason Barnett
Raymond Still wrote: Please forgive the somewhat off topic post, but this just seemed like the best place to start. This is a fine place to ask, but for future PEAR questions you might also try the php-pear-general group. I'm trying to install PEAR on my Win XP box. I'm running Apache and PHP 5.

[PHP-WIN] Re: help w/hidden fields and storing an int.

2005-01-17 Thread Jason Barnett
Patrick Roane wrote: I am tring to store and display the number of requests that a user has submitted via a hidden field. I've created a form that does a some simple addtion. Everything works, but I need some direction as to how I can store each number the user puts in and to display them. Please s

[PHP-WIN] Re: [PHP] php editor

2005-01-13 Thread Jason Barnett
I use Wordpad. Seriously ;) -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://www.php.net/manual/en/index.php php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2 -- PHP Windows Mailing List (http://www.php.net/

Re: [PHP-WIN] Reg Ex help

2005-01-13 Thread Jason Barnett
[EMAIL PROTECTED] wrote: if (preg_match("/[a-z0-9]+/i"),$str) So what denotes the end of the reg ex here? (if the '/' at the begin identifies the start? Tryst Surely there is a manual page somewhere for "Perl Compatible Regular Expressions" :) Hint: actually, never mind, it's worth making you

[PHP-WIN] Re: Application variables

2005-01-13 Thread Jason Barnett
Louis Young wrote: Hi guys I know PHP doesn't support application variables. Anybody have a good workaround for this? Cheers Louis There is a PEAR package for this. Offhand I can't remember the name of it... but look and ye shall find. -- Teach a person to fish... Ask smart questions: http://w

[PHP-WIN] Re: Error when trying to get global variables

2005-01-13 Thread Jason Barnett
Louis Young wrote: Hi there I've used a tool called asp2php to convert all my asp files to php files, but now in ASP you have the global.asa file. I've converted this to global.php. So now part of it looks as follows: It actually worked? Cool! function Application_OnStart() { extract($GLOBALS);

Re: [PHP-WIN] HTML in PHP to a File

2005-01-13 Thread Jason Barnett
*Warning* I don't really suggest that you use eval() unless absolutely necessary. But in this case it does what I *think* you want it to do. http://www.php.net/manual/en/function.eval.php Luis Moreira wrote: What do you mean by "it doesn't work" ? It does (the minitest, I mean). Luis MikeA wrote

[PHP-WIN] Re: Undefined variable

2005-01-12 Thread Jason Barnett
Louis Young wrote: Hi there I'm getting the following error regardless of whether register_globals is on or off. *Notice*: Undefined variable: button1 in *C:\Program Files\Apache Group\Apache2\htdocs\spar\admin\login.php* on line *28 You don't need to post the entire page, oy vey that was long!

Re: [PHP-WIN] The Test.php program does not execute

2005-01-11 Thread Jason Barnett
GKE: are you using the CGI version of PHP for your server? Or more directly, which type of PHP executable are you trying to use? There are *basically* 3 types - CLI for the command line - modules which are specialized versions for different server (ISAPI for IIS and so on) - CGI which is the co

[PHP-WIN] Re: Blank screen problem

2005-01-07 Thread Jason Barnett
Roel Dillen wrote: I ran a basic php script (php_info) but appearantly it doesn't do anything. In viewsource the php code doesn't show up. I have Apache 2 and PHP 5 I have adapted my httpd.conf so it should be able parse the php through the CLI method. I have added these lines to achieve this LoadM

[PHP-WIN] Re: PHP & Win2k

2005-01-07 Thread Jason Barnett
Daniel Aguilar wrote: I'm a newbie to PHP and I can't find what "PHP_Self" ( )ers to? it seems to be why I can't get my supposedly simple php shop to work. Any suggestions or websites with examples? I believe you are referring to a server variable? At least, there is a variable that might match t

[PHP-WIN] Re: Is it possible to have IIS and apache runing in the same machine, with windows xp?

2005-01-05 Thread Jason Barnett
Andre wrote: Hello Anyone know if it’s possible to have a (IIS – sql-server) and (apache – mysql) running on the same machine? Thanks André Caridade If they are listening on different ports then I don't think this is a problem. Then again I've never actually done this. :) -- Teach a person to

[PHP-WIN] Re: PHP5, IIS6, and Windows2003 Web Edition

2005-01-05 Thread Jason Barnett
Steve Larabee wrote: Greetings all: I have tried a number of things that I have found in these newsgroups, and I am still receiving 404 errors when I try to open a php page. PHP is showing as "UP" in the ISAPI Extensions settings screen, I have PHP allowed as a web service extension. Nothing.

Re: [PHP-WIN] Re: Making includes easy.... Am I a 'tard?

2005-01-04 Thread Jason Barnett
Patrick Roane wrote: The inludes folder is thrown around as more of a generic term for a directory that includes important files. Is this a pretty good definition for the purpose of an 'includes' folder? Sure, that's a fine definition. And the setup that I proposed isn't the only way to do it, b

[PHP-WIN] Re: Making includes easy.... Am I a 'tard?

2005-01-04 Thread Jason Barnett
I haven't bothered to benchmark this, but here is my own solution to this problem. If you already have a common file that you are including in every script then the cost should be very low. Feel free to use it if you prefer. Apache htdocs site1 includes common.php

Re: [PHP-WIN] Re: Searching for UPS tool

2005-01-04 Thread Jason Barnett
Yes, I did reply without carefully reading the message. See my second response to the thread for a PHP script that does as you ask. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://php.net/manual/ php-general archives: http:/

[PHP-WIN] Re: Searching for UPS tool

2005-01-04 Thread Jason Barnett
Ah, you were just asking for a scipt. In that case I send you my apologies my good sir. This works for PHP 4.3 http://www.phpscriptsearch.com/0/PHP-XML-and-PHP/UPS-XML-Shipping-Tool-PHP-Function-Library.html -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-q

[PHP-WIN] Re: Searching for UPS tool

2005-01-04 Thread Jason Barnett
Didn't you already search their site and find the answer? It is *very* infuriating when people refuse to help themselves! Because I can guarantee that if you search the UPS site you will find the answer. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-ques

[PHP-WIN] Re: a function question

2004-12-30 Thread Jason Barnett
Here is my code (which I can't get to work): /** Note that my code / comments are untested, but should be helpful. */ $mail = "[EMAIL PROTECTED]"; $user = "patrick"; function usermail( $user, $mail ) { /** We don't need global $user or $mail since these are passed into

Re: [PHP-WIN] About "\n"

2004-12-29 Thread Jason Barnett
Graeme wrote: > Hi, > > What the "\n" does is to throw a newline in your source code. So when > the page is displayed look at the source that has been generated you > will see the blank line. This can be useful to make the HTML source > readable. However to get a new line displayed in the browser

[PHP-WIN] Re: Problems with require.

2004-12-20 Thread Jason Barnett
Please do not email me personally; keep your questions on the list. There are a lot of good reasons for this... most importantly being that I am not your paid tech support person ;) S wrote: Im actually not defining the pear include in my PHP.ini file. Im defining it in the application itself. t

[PHP-WIN] Re: Timer in Safe Mode

2004-12-20 Thread Jason Barnett
Mikea wrote: Why would I want that? Is that the answer to getting around timeouts? I'm not sure what you are telling me. Thanks. Mike No it is not the answer to timeouts... whoops! All righty well it seems that you are trying to call set_time_limit but your PHP binary is running in safe mod

[PHP-WIN] Re: How to parse XML in php

2004-12-20 Thread Jason Barnett
Jason Barnett wrote: Please start a new thread when you ask a new question. Pravin-Kumar wrote: hi! How can i parse a xml file in php. need to do some extension enable or what? give me some details. i had tried xml_parse() yet but not working :( i am getting error messages. Warning

[PHP-WIN] Re: Timer in Safe Mode

2004-12-20 Thread Jason Barnett
A timer script? Go check out PEAR's Benchmark package. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: How to parse XML in php

2004-12-20 Thread Jason Barnett
Please start a new thread when you ask a new question. Pravin-Kumar wrote: hi! How can i parse a xml file in php. need to do some extension enable or what? give me some details. i had tried xml_parse() yet but not working :( i am getting error messages. Warning: xml_parse(): Unable to cal

[PHP-WIN] Re: Problems with require.

2004-12-17 Thread Jason Barnett
S wrote: Im having a problem that im assuming is related to my core PHP code rather than the pear file I am trying to include (though if you folks think I need to look into that, thats ok too). Basically im seeing the following when I try to load my page: Warning: main(DB.php) [function.main]: fail

[PHP-WIN] Re: newbie: a very simple question (I hope)

2004-12-15 Thread Jason Barnett
I know how to print out the value of $x, but not the test result of 'true or false'. A couple of ways to do this. Probably the easiest is to cast the true / false answer to an int and then echo that answer. $x = 3; $bool = ++$x < 4; echo (int) $bool; -- PHP Windows Mailing List (http://www.ph

[PHP-WIN] Re: Session_start() not working

2004-12-15 Thread Jason Barnett
S.D.Price wrote: Hi can anyone help me, I have moved my application from a Unix server to a Windows based server but suddenly I don't seem able to use sessions I get Warning: session_start() [function.session-start ]: open(C:\PHP\sessiondata\sess_60e554

[PHP-WIN] Re: foreach Problem

2004-11-14 Thread Jason Barnett
Man, and I thought *I* was verbose. :P Actually some of the pieces of your code is missing, ie. we don't have the class definition for whatever $t is. If you are looping the right number of times, but the array key selected is the wrong key, then the problem likely lies in the function where

[PHP-WIN] Re: PHP and IIS6 on Win2k3

2004-11-12 Thread Jason Barnett
Dean L. Howen wrote: HI, I have been successful config PHP 5 on IIS5 , but not with IIS6 on Win2k3. I have done by following the install instruction. The error is "404-This page cannot display" Tell me what to do continue... Thanks 404 is the file not found error. Are you possibly pointing to the

[PHP-WIN] Re: running an exe

2004-11-08 Thread Jason Barnett
Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: 05 November 2004 09:40 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: running an exe Why would you want to do this? Blindly installing applications from web links is *a bad idea* and dialog boxes are there to help protect users. Heck

[PHP-WIN] Re: exec() IIS 5 php

2004-11-05 Thread Jason Barnett
My script is like this * $cmd = "\"C:\MATLAB6p5\bin\win32\matlab.exe\" /nosplash /nodesktop /r -c E:\\SSN\\cognetics\\amp_fit_power_with_mex\\test2.m"; exec($cmd,$output,$rv); echo "program started!!!"; ?>

Re: [PHP-WIN] Re: Headers Already Sent - How To Overcome????

2004-11-05 Thread Jason Barnett
Warren Vail wrote: Mike, While that's not the only way to go somewhere else, if it is the way the other guy wrote the code to get around, ripping it out an replacing it with something else could be a problem. The error message you are referring to indicates that something was sent to the browser b

[PHP-WIN] Re: running an exe

2004-11-05 Thread Jason Barnett
Why would you want to do this? Blindly installing applications from web links is *a bad idea* and dialog boxes are there to help protect users. Heck from the way you asked your question I'm not even sure - are you the user or the provider? Give us a little more than this to go on and we'll se

Re: [PHP-WIN] Displaying An Image / Non-Web accessible Dir

2004-11-02 Thread Jason Barnett
Can you or someone suggest how I can access an image file on my drive which is not part of the http-accessible directories (say in C:\images\somepic.jpg) and display the filetype? I think once I can at least get that to work, the rest should be fairly simple. If all goes well, the only thing you sh

[PHP-WIN] Re: session expiration problem

2004-11-02 Thread Jason Barnett
Nightwalker wrote: Hi. When I set session expiration using: ini_set('session.gc_maxlifetime','3'); and I refresh page after 10 seconds or even change my system time to a few hours ahead, the session variables still exist. It doesn't work even Hmmm, do you mean the old session values are being c

Re: [PHP-WIN] include statement

2004-10-29 Thread Jason Barnett
Just one thing to add here: My query is: If i load the header as .HTM does it put the included file through the PHP parser. I have the includes as .PHP at present. There is nothing php in the header or footer as yet. I am looking at saving the server some cycles by doing this. Not sure exactly how

[PHP-WIN] Re: Installation? problem for php newbie

2004-10-29 Thread Jason Barnett
Yes this is duplicate... please don't do that in the future unless you've waited a few days without an answer. Also for installation problems it might be better to try the php install newsgroup. Michael Horniak wrote: I manually installed PHP 5.0.2 and have also used the installer. In either ca

[PHP-WIN] Re: apache config question

2004-10-28 Thread Jason Barnett
Bobo Wieland wrote: How do I set up permission to access folders and not only specific files in these folders with apache...? I can't find the correct line in httpd.conf _bobo Did you try searching Apache's help guide at the web site? http://httpd.apache.org/docs-2.0/misc/security_tips.html -- PH

[PHP-WIN] Re: Access deined - yet another MySQL problem

2004-10-26 Thread Jason Barnett
This error is about 80% of the time caused because of errors loading libmysql. But usually putting that library in the system32 folder solves the problem. Do you have any other errors? Make sure you're restarting the server after you've moved the files. Heck try throwing libmysql back in php/

[PHP-WIN] Re: Question......

2004-10-26 Thread Jason Barnett
I'm not a VC programmer so I won't promise this works, but you could try building PHP from source into your project. I do know that different SAPI's can be written and PHP can be embedded within another application. Try checking out _sapi_module_struct in the source. Raul Ionescu wrote: I

[PHP-WIN] Re: Changing loaction of php.ini file

2004-10-26 Thread Jason Barnett
FYI - respond to the list not to me personally. The list will respond faster than I will and can often provide extra insight. Plus it sometimes irritates me (not this time though ;) I know Microsoft has made most of us forget about the command line, but the *nix tradition for it is great and

[PHP-WIN] Re: Changing loaction of php.ini file

2004-10-22 Thread Jason Barnett
PHP has several ways it looks for php.ini Environment variables Folder for Web Server Folder for PHP executable Command line parameters If you want to be able to start up PHP with different configuration files then passing the location of PHP.ini via command line parameters is probably the best w

[PHP-WIN] Re: PHP-Java extension problem

2004-08-22 Thread Jason Barnett
Unknown(): Unable to load dynamic library 'C:\PHP\extensions\php_java.dll' - Access is denied. Just another possibility: Several people have had luck moving the library to your system folder. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] building PHP with cygwin - dies at fopencookie ???

2004-08-22 Thread Jason Barnett
Hey guys I'm back! I actually have a problem of my own - I've tried (unsuccessfully) recently to build PHP5.0.0 from source, but no dice. I've read through the install instructions, but I just can't make heads or tails of my problem. I am probably missing something simple. The last part of

Re: [PHP-WIN] virus and auto-reponders!

2004-08-07 Thread Jason Barnett
still get the mails. So the compromise is to appear as an idiot in the mailing list - all thanks to Bill Gates who makes use - the user - to behave stupid becasue we ha no other choise. I happen to use Mozilla Thunderbird for my email / newsgroup needs... and it works wonderfully! :) -- PHP Wind

[PHP-WIN] Re: PHP help: login.php T_ELSE error

2004-08-07 Thread Jason Barnett
That's a *lot* of levels... easy to get caught up in it. You probably have more closing braces than you though opening braces, but skimming the code quickly I didn't catch where. else if( !$userdata['session_logged_in'] ) * { $page_title = $lang['Login']; include($phpbb_root_path

[PHP-WIN] Re: Hopefuly an easy one?

2004-07-31 Thread Jason Barnett
Yep... all you need is rawurlencode: http://www.php.net/rawurlencode -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: WinXP PHP Install Problem

2004-07-31 Thread Jason Barnett
Hey Bruce, could you get it to work with the CLI version of PHP? The exact path is going to depend on where you installed PHP, but in my installation I use C:\php\php.exe. So the command to run your program would be something like: cd\php php -f C:\path\to\yourfile.php If that gives you "Hello

  1   2   >