[PHP] A PHP page counter / statistics app

2003-02-28 Thread Michael Zornek
I'm ether looking to find or build my own open source php based script, that would allow you to include a small code chunk on every page of a site and then view statistics from the info, on what pages were viewed, how many times, etc... First, if there are any you know of and want to recommend, pl

[PHP] How to create an empty array

2003-02-27 Thread Michael Zornek
I want to create an empty array so I can add elements to it later I'm currently using: $catergory_list[] =array(); But when I try to print this list I discover the element zero has the string "Array" in it. How can I create a truly empty array? ~ Mike -- MikeZornek.com New blog, new Q&A column,

Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitudetable

2002-10-30 Thread Michael Zornek
On 10/30/02 2:31 PM, Manuel Lemos said: > On 10/30/2002 04:03 PM, Michael Zornek wrote: >> I've written a nice php/mysql site that let's you search for hospitals and >> community colleges by zip code. The search is built upon some math that >> figures out distanc

[PHP] Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Michael Zornek
I've written a nice php/mysql site that let's you search for hospitals and community colleges by zip code. The search is built upon some math that figures out distances by a zip's lat and lon cords. My problem is that my current ZIP table (bout 42,000 rows) seems to be flawed. There are a ton of z

Re: [PHP] Jaguar OS help

2002-10-16 Thread Michael Zornek
Pushpinder Singh Garcha said: > Hi > > i have recently upgraded from OS 10.1.5 to Jaguar. I previously had 2 > users on the system. and using the main login screen I could select the > user that I wanted to log on as. Now that I have installed Jaguar ...I > do not get any such screen to select u

[PHP] Good OO PHP resources? Open Source APIs?

2002-09-18 Thread Michael Zornek
I've been doing PHP for about 2 years now. The code I write is generally procedural although I have been using a MySQL class to do some db stuff as of late. Over last few months, I've been learning Cocoa. If you don't know its an OBJ-C based API to develop apps for Mac OS X. By doing so I want

[PHP] HTML issue... spaces in between images

2002-08-12 Thread Michael Zornek
Ok so in my HTML I have: but because they are on separate lines with spaces, I get spaces rendered on the screen. If I write the code like: I get no spaces but it's harder to read anyone know of a way to tell html to ignore these spaces? I could in theory do something like this in

Re: [PHP] I can't echo object variables

2002-07-16 Thread Michael Zornek
Twas 7/16/02 1:47 PM, when "Martin Clifford" <[EMAIL PROTECTED]> said: > Try enclosing it in curly braces. > > echo "${db->field('name_long')}"; Parse error :-( ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.apples

[PHP] I can't echo object variables

2002-07-16 Thread Michael Zornek
We all know this works: echo "$someVar"; However this does not: echo "$db->field('name_long')"; I know this slight variation will make it work: echo "" . $db->field('name_long'); But it's cumbersome .. Anyway to get the first way to work? ~ Mike -- Mike Zornek | Project Leader Apple Studen

[PHP] Exit script early

2002-07-16 Thread Michael Zornek
Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following: if (!isset($id)) { // if no id exsits // Create a page saying ID not found, goto index writeHTMLTag(); writeHeader("Error", "never")

Re: [PHP] OSX + Apache + PHP + MySQL

2002-06-21 Thread Michael Zornek
check out Oreilly's articles too.. very helpful .. http://www.macdevcenter.com/pub/ct/49 > You don't need OS X server. OS X includes Apache and Perl.. you can > get MySQL and PHP4 from http://www.entropy.ch >> Do I need OSX SERVER to run everything I'd need for a development >> environment, or

Re: [PHP] PHP and Quicktime...

2002-04-17 Thread Michael Zornek
Twas 4/18/02 1:48 AM, when "Pusta" <[EMAIL PROTECTED]> said: > Hello all, > > I'm new at PHP but learning and loving it. For a school project, I have to > use PHP to display a video on a web page using QuickTime. Can anyone point > me to where I can get some info on how to do this? http://dev

[PHP] anyone using CVS for PHP dev?

2002-04-03 Thread Michael Zornek
I've been learning a little bit about CVS and am considering using it for dev of some group PHP sites. Anyone doing this? comments? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Personal

[PHP] PHP that will help me color code, code; like C++ on a HTML page?

2002-04-02 Thread Michael Zornek
As you may see from the footer I run a dev site. I'm interested in finding some PHP that will help me show color syntax-ed code in html. like you could imagine a tutorial about Obj-C .. and code snippets. I'd like to have those snippets color coded for Obj-C syntax. anyone know if this is possib

Re: [PHP] empty lines cause http headers? [FIXED]

2002-03-17 Thread Michael Zornek
Twas 3/18/02 12:21 AM, when "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> said: > Just make sure the blank lines are > > If they're out in the raw HTML area, the headers will get packaged up and > the content output buffer collection will begin. After some investigation I saw an extra space after th

[PHP] empty lines cause http headers?

2002-03-17 Thread Michael Zornek
I'm writing a page that will do a little snooping into a db (based on a previous form submit) and start a session based on the results. The problem is that PHP seems to be sending the HTTP headers when it encounters the first blank line in the code (which I do use to help separate the code a bit)

Re: [PHP] help a newbie out... FIXED

2002-02-23 Thread Michael Zornek
Twas 2/23/02 11:27 PM, when "Michael Zornek" <[EMAIL PROTECTED]> said: > I'm getting a parse error with the following on line 9 > > http://www.applestudentdevelopers.org/testbed/ASD_PrintEmailLink.phps > > any clue? Fixed, I figured it out.. I forgot to

[PHP] help a newbie out...

2002-02-23 Thread Michael Zornek
I'm getting a parse error with the following on line 9 http://www.applestudentdevelopers.org/testbed/ASD_PrintEmailLink.phps any clue? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Perso

[PHP] Need to-do list for my web site

2002-02-19 Thread Michael Zornek
I'm looking to put up a dynamic to-do list for me and my web dev team. Nothing to fancy but something to keep us organized. I'd write one myself but don't want to reinvent the wheel and would hate to put "create to-do list app" on the top of my to-do list for the shear redundancy of it all. ~ Mik

[PHP] OS X cersion coming soon...(was Re: [PHP] Zend Studio)

2002-02-04 Thread Michael Zornek
Twas 2/4/02 5:49 PM, when "Zeev Suraski" <[EMAIL PROTECTED]> said: > http://www.zend.com/store/products/zend-studio.php is pretty descriptive, > and you can try it out for free... Anyone interested in an OS X version hold tight, their PR people tell me it should be out in 30 days or so. Mike

[PHP] How to check if a current session is going?

2001-02-23 Thread Michael Zornek
I have a auth system in the works and if a session is going then they are "logged in". What's the best way to check to see if a session is currently in progress? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: AW: [PHP] Session files? (Very Techy Questions)

2001-02-22 Thread Michael Zornek
At 5:54 PM +0100 2/21/01, Sebastian Stadtlich wrote: > > writing an apache module that did the following: >> >> When a file with .pdf is asked for it looks to see if the user is >> currently in a session (aka 'logged on'). I'm guessing the module can >> know this by using the HTTP headers. Fig

[PHP] Session files? (Very Techy Questions)

2001-02-21 Thread Michael Zornek
Ok, I'm new to sessions and have a few questions... Here is my plan. I'm running a news type web site where subscribers have different privileges on what they can view and download. The privileges are stored in a mySQL DB. My plan is to make users login (thereby starting a session with all the

[PHP] How do I ....

2001-02-20 Thread Michael Zornek
ok, I'm starting to play with sessions and have a few things I want to do, first is recompile --with-trans-sid and I'm pretty sure I know how to do that (make clean, then configure, etc.) However, I'm thinking of changing a few of the things is giving me like: session.use_cookie and/or sessi

[PHP] how do you erase quotes from variable?

2001-01-24 Thread Michael Zornek
I have a variable(s) that hold the string: "name" and I'd like to kill the quotes so it contains: name I am aware of the strlen() function but can find the concant Little Help? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

[PHP] variable question

2001-01-19 Thread Michael Zornek
ok so i have an object that has (among other things) the following properties: $vendor_data->s9 $vendor_data->s10 $vendor_data->s11 $vendor_data->s12 ... $vendor_data->s40 The values are 1 or 0 I'd like to write a loop to say: for ($count=9; $count>40; $count++) { if ($vendor_data->s(i

[PHP] multidemention array question(s)

2001-01-19 Thread Michael Zornek
ok so i set up a multidimensional array with the following code: array("On", "On", "The Seybold Report"), "s2" => array("On", "On", "Publishing Systems"), "s3" => array("On", "On", "Internet Publishing"), "s4" => array("On", "On", "The Bulletin"), "s5" => array("Off", "Off", ""), "s6" => array("

Re: [PHP] include statement

2001-01-17 Thread Michael Zornek
t; >readfile($DOCUMENT_ROOT . "/includes/metatags.include"); > >adamw > >- Original Message - >From: "Michael Zornek" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, January 17, 2001 5:04 PM >Subject: [PHP] include stat

[PHP] include statement

2001-01-17 Thread Michael Zornek
I'm a PHP newbie and am looking into using the include statement to put things like the header and footer in so they are always the same. I do this now with SSI. In SSI I'll use the following statement: I like this cause it lets me use the same statement all over the site and I don't have to