RE: [PHP-WIN] PHP 5.3/5.4 and windows scripting host, WSF, ActiveScript question

2013-05-11 Thread Jim MacDiarmid
David, I don't have my system set up right now as a development machine at the moment but I did find a couple leads on this. You may have already seen these. I hope these are of some help to you. I just did a google on " php windows script host". http://wezfurlong.org/blog/2004/jul/phpscri

RE: [PHP-WIN] Is this a valid PHP code?

2012-09-23 Thread Jim MacDiarmid
Yes, looks valid to me. Is it giving you an error somewhere? Here is the code I was testing with: '000', 'width' => apply_filters( 'twentyeleven_header_image_width', 1000) , 'height' => apply_filters( 'twentyeleven_header_image_height', 180 ), 'flex-height' => true, 'random-de

RE: [PHP-WIN] Flow of PHP testClass

2012-03-29 Thread Jim MacDiarmid
Yes, I believe your understanding is correct... This is my understanding as well. In line 1 below, you are creating a new object and using the class constructor to initialize $a and $b. In line 2 below, you are creating a new object, with $a and $b's default values. In line 3 below, $a and

[PHP-WIN] PHP Job Search

2010-06-21 Thread Jim MacDiarmid
Hi everyone, My apologies for the ad in this mailing list but I'm trying to use all my resources in my job hunt. I wanted to reach out to you all and see what the job market was like for PHP Developers in Virginia/Washington DC area. I have been working with computers for over 20 years and have b

[PHP-WIN] Pulling the content of a webpage using the file function.

2006-04-21 Thread Jim MacDiarmid
Hi, I'm trying to use the file command to pull the content of a web page. If I run the script on my local server I get "Page can not be displayed". If I run the script on my remote web host, it works fine. It's avery simple script too. Hopely someone can help.. http://www.blizzard.com/";; $da

[PHP-WIN] Form problem variables are being sent in the query string

2005-08-22 Thread Jim MacDiarmid
I have 2 form fields one is a checkbox and the other is a hidden field. The checkbox is called "Display_" and gets incremented as the table rows are built like so. 'Display_'.$rec_count + 1 The hidden field is an array like this: Field[] The form method is $_SERVER['PHP_SELF'] For some rea

[PHP-WIN] Enabling File I/O functions on a shared host

2005-07-27 Thread Jim MacDiarmid
I'm using a shared host for some web applications I'm doing. These applications (including PEAR) use file i/o functions such as fread(). At the moment, my shared host has these functions disabled. Since the fread is disabled it's causing the browser-based PEAR front end not to display the images a

[PHP-WIN] Strange mysql/pear db self join help needed.

2005-07-24 Thread Jim MacDiarmid
+ Cats2.Cat + Cats3.Cat) When I execute this query in something like Navcat 2005 or SQLyog it works fine. By the way, I'm also using the PEAR DB class. Any ideas? Thanks :) Jim MacDiarmid -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Reading LongText or Blob fields

2005-07-10 Thread Jim MacDiarmid
Hi everyone, Is there something special that has to be done to read/access LongText or Blob Fields in a mySql database? I'm using the PEAR::DB classes. What's the best way to do this? Should I even be using these data types? I would like to store a lot of text such as messages and HTML page con

[PHP-WIN] Weird variable issue - variable not getting assigned

2005-07-08 Thread Jim MacDiarmid
Hi everyone, I have a very puzzling variable issue going on where I have a function in a class (Database class) that returns the output of a query from my users table. In the calling function of another class (session class), I am trying to assign each element of the received array to a variable

[PHP-WIN] Disappointed with Wrox books

2005-05-22 Thread Jim MacDiarmid
I purchased a copy of the book "Professional PHP4 Web Development Solutions" and I'm guessing it's been discontiued from their list. I was wondering if anyone would know how I can get the source code for the book? Thanks, Jim -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP-WIN] Looking for new php hosting service

2005-03-09 Thread Jim MacDiarmid
Can anyone provide recommendations? I currently have a plan with http://www.webhost4life.com however I'm becoming quickly unhappy with them. Sometimes I wonder if they have the janitor doing tech support. I'm looking perhaps going with http://www.1mb.com/Hosting.html but I was wondering if t

[PHP-WIN] Looking for PHP development software

2005-02-15 Thread Jim MacDiarmid
Hi everyone, I'm not sure if the software I'm looking for exists, but I was wondering if there is a PHP IDE or utility program that has the functionality to read/index php and html files in a website, and display and/or print a graphical map or relationship diagram of all files based on include o

[PHP-WIN] Rolling my own PHP Classifieds CMS system..

2005-02-10 Thread Jim MacDiarmid
Hi everyone, I'm kinda working on a limited budget and wondered if someone could offer some tips, pointers, ideas toward my project. I'd like to write my own Classified Ads content management system initially for free usage however I would like to eventually use it as a commercial service. Anyo

[PHP-WIN] Timed redirection

2005-01-30 Thread Jim MacDiarmid
Is there a way to programmatically add timed redirection to a page? I have a page with a form on it. Once it's submitted and the data is updated in the database correctly, I'd like to present a status page then wait for say 3 seconds before redirecting them to some other URL. I know you can do

RE: [PHP-WIN] Re: Design Assistance

2005-01-20 Thread Jim MacDiarmid
t Subject: [PHP-WIN] Re: Design Assistance 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-o

[PHP-WIN] Design Assistance

2005-01-20 Thread Jim MacDiarmid
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 piece I'm working on is rather simple but I'm not sure how to arrange things

RE: [PHP-WIN] Converting a dos console batch file to aphp shell script

2004-09-04 Thread Jim MacDiarmid
ly response, but did you try the "flush()" command? > > > > There's also a setting in the PHP.INI: > > output_buffering = Off > > > > Also check the Output Control Functions: > > http://us4.php.net/manual/en/ref.outcontrol.php > > > &

RE: [PHP-WIN] Converting a dos console batch file to aphp shell script

2004-09-03 Thread Jim MacDiarmid
gt; Also check the Output Control Functions: > http://us4.php.net/manual/en/ref.outcontrol.php > > Hope this helps! > > -TG > > > -Original Message- > > From: Jim MacDiarmid [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 02, 2004 11:31 AM > >

RE: [PHP-WIN] Converting a dos console batch file to a php shell script

2004-09-02 Thread Jim MacDiarmid
As a matter of fact, I have tried that. With no success, I might add. I've also tried the ob_implicit_flush with no success. Jim -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 1:24 PM To: [EMAIL PROTECTED] Cc: Jim MacDi

[PHP-WIN] Converting a dos console batch file to a php shell script

2004-09-02 Thread Jim MacDiarmid
Hi everyone, I've been searching for info to help me troubleshoot an issue I'm having with displaying output to the console during script processing, but I'm not having much luck. I'm hoping someone can shed some light on this or point me in right direction. I have a foreach construct that loops

RE: [PHP-WIN] Re: Php5 merging with Java???

2004-09-01 Thread Jim MacDiarmid
Jim -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:27 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Php5 merging with Java??? Hello, On 09/01/2004 02:06 PM, Jim Macdiarmid wrote: > I've been reading the latest articles abo

RE: [PHP-WIN] Php5 merging with Java???

2004-09-01 Thread Jim MacDiarmid
Sent: Wednesday, September 01, 2004 2:53 PM To: Jim MacDiarmid Subject: Re: [PHP-WIN] Php5 merging with Java??? Could you please be so kind as to tell me where exactly you read that PHP is not going to be Open Source any more? Thanks Christian - Original Message - From: "Jim MacDiarmi

RE: [PHP-WIN] Php5 merging with Java???

2004-09-01 Thread Jim MacDiarmid
Hi Paul, Yes, that is the article that I saw. One of them anyway. Thank you for sheding some light on that. Jim -Original Message- From: Paul Menard [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:29 PM To: Jim MacDiarmid; [EMAIL PROTECTED] Subject: Re: [PHP-WIN

[PHP-WIN] Php5 merging with Java???

2004-09-01 Thread Jim MacDiarmid
I've been reading the latest articles about the future of PHP and based on the way I am understanding it, I'm getting the impression that PHP will not be free or open source. I'm interested in getting other PHP developer options and/or clarification of this direction. What is this going to do to t

[PHP-WIN] Graphical popup wiindow on link mouseover

2004-08-18 Thread Jim MacDiarmid
Hi everyone, I have a link on a page and I would like to present dynamic list of names in graphical popup "window" ( and I use this term loosely) at the cursor position when a mouseover or the link is done. I don't want a "browser" window to popup but rather something like resembles a floating s

[PHP-WIN] Custom php Errorhandling assistance

2004-08-15 Thread Jim MacDiarmid
Hi everyone, I'm a little, well... Ok.. maybe a lot confused on errorhandling in PHP. I'm not sure how custom errorhandling works and I'm hoping someone can help me or point me in the right direction. Here is a little background on the project. I've been asked to do a single dynamic page whic

RE: FW: [PHP-WIN] Passing arrays by reference

2004-08-10 Thread Jim MacDiarmid
trying to be as efficient as possible. :-) Thanks, Jim -Original Message- From: ? ??? [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 11:10 AM To: Jim MacDiarmid Subject: Re: FW: [PHP-WIN] Passing arrays by reference Здравствуйте, Jim. Вы писали 10 августа 2004 г.,

FW: [PHP-WIN] Passing arrays by reference

2004-08-10 Thread Jim MacDiarmid
AIL PROTECTED] Sent: Monday, August 09, 2004 5:52 PM To: Jim MacDiarmid Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Passing arrays by reference On Mon, 9 Aug 2004 17:28:40 -0400, Jim MacDiarmid <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I've seen several examples of

[PHP-WIN] Passing arrays by reference

2004-08-09 Thread Jim MacDiarmid
Hi everyone, I've seen several examples of passing arrays by reference such as the following: $a = array(); function foo(&a) { for ($i=0; $i < 10; i++) { $a[$i] = $i; } } foo($a); echo ""; print_r($a); echo ""; However, when I try this on my setup, it

[PHP-WIN] Question about the Apache 2.0 Warning in the PHP manual on the PHP web site

2004-07-22 Thread Jim MacDiarmid
[ Exerp from PHP manual pages on website: "Warning Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows." ] Can anyone tell me what this means? This is the only warning I see. Thanks, Jim -- PHP Windows Mailing List (http://www.php.net/) To unsubscr

[PHP-WIN] Web site Templating (ie: patTemplate orSmarty)

2004-07-22 Thread Jim MacDiarmid
Hi everyone, I'm interested in taking the next step and learn templating. I've been toying with one called patTemplate, however I'm a little confused by it. I understand the concept, but I'm having trouble getting things to flow correctly. Logic such as how to process forms, etc. I was wondering

[PHP-WIN] Trying to get the current folder / path

2004-04-15 Thread Jim MacDiarmid
I know this should be a simple task, but why does it seem so convoluted in trying to get the current folder I'm in. I want to be able to get the base folder such as: /docroot/subfolder/ - or - http://serverhostname/subfolder/ Not sure what the appropriate way is to do this. Thanks, Jim --

[PHP-WIN] Passing the session question

2004-04-14 Thread Jim MacDiarmid
Why is it that the following scenerio will pass the session id /* SessionStart.php */ /* Page1.php */ Echo SID; /* Page2.php */ Echo SID; However the following scenerio will not pass the session id Or atleast I can't seem to get it to work. /* Page1.php */ Echo SID; /* Pag

[PHP-WIN] Tuning mySQL, php and apache

2004-04-09 Thread Jim MacDiarmid
I'm working with Apache 2.0 and MySQL 4.0.. I'm trying to tune the performance of my site. I was wondering if there was a way to grab an existing open persisent DB connection instead of opening a new one unless it's needed? Thanks in advance, Jim -- PHP Windows Mailing List (http://www.php.net

[PHP-WIN] DB::affectedrows() issue

2004-03-31 Thread Jim MacDiarmid
I'm attempting to use this method and I'm getting an undefined method error. Anyone else getting this or having any luck with it? Thanks, Jim -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Including files in php

2004-03-31 Thread Jim MacDiarmid
I seem to be having trouble with including files into my pages. I like to structure my site into folders so that I can keep the root folder relatively clean and only necessary files go in there. For example: \DocRoot\ \folder1\ \folder2\ \folder3\ -- etc -- I've n

[PHP-WIN] Page/Form caching

2004-03-29 Thread Jim MacDiarmid
Hi everyone, I think I'm having some issues with page/form caching and I'm not sure how to turn it off just for the current page, or if that is the proper thing to do. When I click submit on the form, the page redisplays however it doesn't seem like any processing is taking place. This is how I've

[PHP-WIN] PEAR vs. PHPLib

2004-03-27 Thread Jim MacDiarmid
Can anyone shed some light on these two? Pros and Cons, etc. I've just ran across an article that mentions that PHPLib is the "defacto" standard. I've recently started using the PEAR::DB in a web application and I'd like to make sure that I'm working with something that is reliable. Can anyone gi

[PHP-WIN] Proper coding?

2004-03-24 Thread Jim MacDiarmid
Fellow PHP list members, I'm hoping you can share your knowledge and help me. I'm incorping the PEAR:DB module into my scripts and I'm running into a situation. To make a long story short.. I basically have 2 files. Index.php and an include file I'm calling db_functions.php which I'm creating

[PHP-WIN] Favortire Page template Structure

2004-03-24 Thread Jim MacDiarmid
I was interested in seeing if anyone has a favorite way of structuring their PHP pages? For instance, I found one example where pages were laid out as follows: Everything was based off of index.php and parameters were submitted through the hidden fields or through an action variable on the url que

[PHP-WIN] Timestamp comparison

2004-03-24 Thread Jim MacDiarmid
Hi folks, I'm looking for some opinions on the best way to do time date comparison. For example, I have a log file and I'd like to retrieve all records or the top 15 records within the last day or within the last hour. Any recommendations? I was considering splitting Date and time into 2 fields b

[PHP-WIN] PHP Fatal error: Call to undefined function: array()

2004-03-04 Thread Jim MacDiarmid
I'm getting the above error when either attempting to print or assign the value of a array element to a variable, after using preg_match(). === Watch for text wrapping === $URL_Filter = "/\s+Trav[0-9]\.([a-zA-Z0-9\:\/\/\.]+)\.\.[a-z0-9]+\sHAS\s([0-9]+)\sspac es?/"; foreach ($outArray as $line){

[PHP-WIN] Specific Regular Expression issue

2004-03-04 Thread Jim MacDiarmid
Could someone shed some light on this for me? I'm trying to capture the URL and the Numerical count from the following line: Trav2.http://travelersnetwork.net/Nick/HoneyIsland.dsv..fd287747 HAS 0 spaces This is what I'm using as a regular expression and it's results \s+Trav[0-9]\.(http://[^\s]+

[PHP-WIN] Regular Expression on tool output

2004-02-27 Thread Jim MacDiarmid
Hi Everyone, I'm still very new to this regular expression thing and I'm hoping someone can offer some help. I've been able to match parts of this but now I'm at a loss. A little background on this. I'm running a console EXE tool to generate some output to display currently logged in users in all

[PHP-WIN] Regular Expression help?

2004-02-13 Thread Jim MacDiarmid
Can anyone recommend where I might be able to get some "Regular Expression" assistance? I'm very new to "Regular Expression". I've read some of the info I've found on the web, and have a few books that I've read, however I'm at a loss and confused as heck. I'm hoping someone would be able to shed s

[PHP-WIN] PHP and hosting multiple sites

2004-01-29 Thread Jim MacDiarmid
I'd like to have php support multiple sites, is it possible to have multiple doc_root directives in the php.ini? Thanks, Jim -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Seeking help on setting up Virtual hosting using Apache 2.0/Win32/ with a single IP

2004-01-26 Thread Jim MacDiarmid
Hi Everyone, Please forgive me.. I know this isn't an Apache mailing list, but I'm hoping someone can point me in the right direction. I need direction on setting up Virtual Hosting on a Win2K box with Apache 2.0. I have a single IP and I need to serve mulitple sites on the same computer. I'm new

[PHP-WIN] Having trouble with Regular Expressions here too

2004-01-16 Thread Jim MacDiarmid
Here is what I'm doing: I'm issuing a DOS command on a Windows platform using the backtick mark (`command`) and getting output from it. That works fine. Now my problem is parsing the string that gets returned. I've tried using the preg_match and preg_match_all commands to filter the information I

[PHP-WIN] Global Variables and Form Variables

2004-01-12 Thread Jim MacDiarmid
For some reason, the first time I attempt to access a form variable or global variable PHP does not seem to think it's defined. For each one that shows an "undefined" error, I've had to put the following code at the beginning of the script. Should I have to do this? I have the register_glob

[PHP-WIN] 500 internal PHP errors - custom error reporting

2004-01-07 Thread Jim MacDiarmid
In ASP/IIS 5.0, there is a way to have a custom error page displayed that will show current environment variables, etc. Is there a way to do this with PHP/Apache 2? Thanks in advance, Jim

[PHP-WIN] looking for php debugging tips

2004-01-07 Thread Jim MacDiarmid
Can anyone help out a newbie or point me in the right direction on properly debugging php code? I'm really having a rough time with this, and things just don't seem to be working the way I'm expecting them to. I'm trying to study this by using the "Teach yourself php, mysql, and apache in 24 hour

[PHP-WIN] Undefined variable issue

2004-01-06 Thread Jim MacDiarmid
Hi everyone, I'm new to working with PHP (coming from a ASP/VBScript background) and I'm currently reading the book "Teach yourself PHP, mySQL, and Apache in 24 hours". The following code from the code from the book seems to be causing an "undefined variable" error when run. Would any one be ab