[php-list] Need help with opendir (I think)

2007-09-21 Thread Michael Sullivan
o do is to show the "Current" heading and then any pictures in the 'current' directory. If there aren't any pictures, it should display the message "Sorry, there are no available images to display here.". Instead, it displays both. In the 'current' directory there will always be a directory called 'mini'. If only the mini directory exists, then there are no current images. Can anyone help me with this? If helpful, the URL of the page that uses this script is http://www.espersunited.com/~michael/camera/ . Thank you for your help. -Michael Sullivan-

Re: [php-list] Making a call to an externel server running on the same host

2007-05-24 Thread Michael Sullivan
t to keep track of > the time or are you using a php function to do that -> logged in time > - > session destroyed time = total time something like that? > > wade > How do I detect when the session is broken? > On Thu, 2007-05-24 at 11:05 -0500, Michael Sullivan wrote:

[php-list] Need help on formulating a query

2007-05-24 Thread Michael Sullivan
select School.school_name, and the counts for each entry_type (there are Solo, Ensemble, and Choir/Band) for ONLY a particular entry_class (be it Instrumental or Vocal). -Michael Sullivan

[php-list] Making a call to an externel server running on the same host

2007-05-24 Thread Michael Sullivan
ving to use the logout button. Could PHP be used to make calls to such a server? -Michael Sullivan-

Re: [php-list] Need help debugging my code (CROSS-POSTED)

2007-03-12 Thread Michael Sullivan
Support > Tech One Illustration * Database Applications > tel (630) 759-9283 * e-Commerce > [EMAIL PROTECTED] * www.techoneillustration.com > > On Mar 12, 2007, at 1:33 PM, Michael Sullivan wrote: > > > On Mon, 2007-03-12 at 10:20 -0800, Mike Franks wrote: > >> Micha

Re: [php-list] Need help debugging my code (CROSS-POSTED)

2007-03-12 Thread Michael Sullivan
.net/session > > Mike > But I thought session variables were stored on the hard drive of the machine the web server is running on? > On 3/12/2007, "Michael Sullivan" <[EMAIL PROTECTED]> wrote: > > >First of all, I apologize for cross-posting this, but it is so

[php-list] Need help debugging my code (CROSS-POSTED)

2007-03-12 Thread Michael Sullivan
uot;\", \"$action\");"; mysql_query($log, $link) or die("Could not create log record: ".mysql_error()); include("mainpage.php"); } else { print "Login incorrect. Do you need to register?"; include("index.php"); } ?> Please help. I don't want the directors who participate in our contest to lose faith in our Music Program because of my mistakes... -Michael Sullivan-

[php-list] Question about left border table of links

2007-02-16 Thread Michael Sullivan
this behaviour in my script? Maybe have the table of links on the left border of the page in a file somewhere and then just include that file in each of my pages that needs it? How is this done? -Michael Sullivan

Re: [php-list] A problem with foreach [SOLVED]

2007-02-03 Thread Michael Sullivan
On Sun, 2007-02-04 at 04:01 +, Michael Sullivan wrote: > Now I'm having a problem with foreach. I have my local array $school > of type School. Type School contains an array of accompanists. I'm > trying to print off some school information, with accompanist > informa

[php-list] A problem with foreach

2007-02-03 Thread Michael Sullivan
Now I'm having a problem with foreach. I have my local array $school of type School. Type School contains an array of accompanists. I'm trying to print off some school information, with accompanist information printed off in an inner loop. PHP is giving me the error: Warning: Invalid argument

Re: [php-list] Re: Need help with objects, arrays, and loops [SOLVED]

2007-02-03 Thread Michael Sullivan
On Sun, 2007-02-04 at 02:51 +, Phill Sparks wrote: > Hi Michael, > > I think you have a small typo in all of your code. You should not > follow the -> with a $ as this will look for a variable in the current > scope and treat that as the property you wish to access. Instead of > > $school[$sc

[php-list] Re: Need help with objects, arrays, and loops

2007-02-03 Thread Michael Sullivan
--- In php-list@yahoogroups.com, "Michael Sullivan" <[EMAIL PROTECTED]> wrote: > > --- In php-list@yahoogroups.com, "Michael Sullivan" wrote: > > > > I have a problem. I'm working on an auto-schedular for my college's > > Music

[php-list] Re: Need help with objects, arrays, and loops

2007-02-03 Thread Michael Sullivan
--- In php-list@yahoogroups.com, "Michael Sullivan" <[EMAIL PROTECTED]> wrote: > > I have a problem. I'm working on an auto-schedular for my college's > Music Festivals. I just started on this tonight. I'm starting by > reading all the informat

[php-list] Need help with objects, arrays, and loops

2007-02-03 Thread Michael Sullivan
I have a problem. I'm working on an auto-schedular for my college's Music Festivals. I just started on this tonight. I'm starting by reading all the information into variables. For starters, I have a School class. The script should read data from the database into School objects for later use.

[php-list] Confusion over scope of an included function.

2006-09-14 Thread Michael Sullivan
Given the code below: \n"; include("index.php"); } else { include("dbconnect.php"); . . . } ?> I'm getting this error: Fatal error: Call to undefined function get_var() in /home/festival/webspace/html/dbconnect.php on line 3 Why is it that dbconnect.php

Re: [php-list] project

2006-09-11 Thread Michael Sullivan
On Mon, 2006-09-11 at 04:15 +, arwa_cute wrote: > i m student of BS. I m developing my final project. i hve to defend y > php is better than vb.net or other languages. > plz guide me in this aspect. plz all of the members in this grp share > knowledge with me. plz send me ur opinions and vie

Re: [php-list] + sign in URL

2006-07-02 Thread Michael Sullivan
On Sun, 2006-07-02 at 13:22 +, Mian Waqas wrote: > Dear Friends, > > I am trying to send image URLs in email. Some images have white space > between their name like "blue color.jpg". While sending emails server > converts white space into + sign. In the email I receive image name > as "blue

Re: [php-list] URL Hiding

2006-06-27 Thread Michael Sullivan
On Tue, 2006-06-27 at 04:15 +, Sam wrote: > Hello everyone, > > Does anyone know how to hide the explicit URL addresses by exposing > only the root URL? Ideally, I want something small and simple to add > to > my PHP or HTML script. > > Thanks Using frames? Yaho

Re: [php-list] New Yahoo! Email format

2006-06-06 Thread Michael Sullivan
On Wed, 2006-06-07 at 02:14 +0900, [EMAIL PROTECTED] wrote: > On 6 Jun 2006, at 22:56, Brian Cummiskey wrote: > > unless I convert the > > > message to plain text > > > > And thus, the problem is solved. Send plain text, and everything > works > > fine, like this message. :) > > Yea speak with has

Re: [php-list] i want to learn PHP

2006-06-02 Thread Michael Sullivan
On Thu, 2006-06-01 at 14:10 -0700, Pratyaksh Sharma wrote: > Hi all >    >   Please can any of you out here help me? I want to learn PHP any i > dont know a single thing about it. Can any of u give me steps to start > using PHP >    >   Pratyaksh www.google.com Community email addresse

Re: [php-list] Having a problem with coding from a book

2006-05-03 Thread Michael Sullivan
On Tue, 2006-05-02 at 16:37 -0400, Ian R-P wrote: > Hey everyone, > > It just won't connect, i've tried: > > $dbcnx = @mysql_connect('localhost','root','XX') or die('Unable to > connect ' . mysql_error()); > $dbcnx = @mysql_connect('iansroom','root','XX') or die('Unable to > connect '

Re: [php-list] Having a problem with coding from a book

2006-05-02 Thread Michael Sullivan
> It looks like your code will only output something if there is an > error. So if you connect to the database OK and select the database > OK, then nothing should be coming back to the browser with the code > you have here. > > Plus, there's an easier way to do what you're doing and check for

Re: [php-list] A couple of questions

2006-04-27 Thread Michael Sullivan
vascript_ variables, in case they do have _javascript_ enabled.  I don't know how to do database stuff with _javascript_, and these people might be using dial-up, so I want to avoid having to reload the page as much as possible... > > > Michael Sullivan wrote: > > >I'm w

[php-list] A couple of questions

2006-04-27 Thread Michael Sullivan
I'm working on a web interface for next year's music festivals at the college my wife and I attend.  Basically, when a director registers their school, they are asked to put in various information about their school (school name, phone numbers, desired password, etc).  All this information is st

Re: [php-list] Open PHP with Include

2006-04-22 Thread Michael Sullivan
On Sun, 2006-04-23 at 05:01 -0500, Brian E Boothe wrote: > can someone tell me how to open a PHP page within an Include file > >   So i have   > > but  it always says failed to open stream no such file or > directory > on Line 29  inwhich is the above line, >?  how do i get that to > wor

[php-list] How to use phpsuexec

2006-04-21 Thread Michael Sullivan
I have installed mod_suphp (for phpsuexec).  The problem is that it wants me to set the docroot variable.  Can I set it to multiple values? I use UserDir in apache2, so the docroot would have to be /home/*/webspace/html (and possibly many directories under that.)  Is this legal?  Is there anothe

Re: [php-list] Permissions problem with file upload script.

2006-04-18 Thread Michael Sullivan
On Mon, 2006-04-17 at 22:40 -0700, tantravahi srinivas sunilkumar wrote: > u need to give chmod(file directory,777) > > redards, > sunil. > I'm not going to chmod a users html directory to 777! Then anyone could write to it! > Michael Sullivan <[EMAIL PROTEC

[php-list] Re: Permissions problem with file upload script. [SOLVED] and now 2.0

2006-04-13 Thread Michael Sullivan
On Thu, 2006-04-13 at 18:31 -0500, Michael Sullivan wrote: > One of my users at espersunited.com cannot upload new content to his > webspace because the new router his father has installed for their home > network automatically blocks FTP transactions of any kind (for security > purp

[php-list] Permissions problem with file upload script.

2006-04-13 Thread Michael Sullivan
One of my users at espersunited.com cannot upload new content to his webspace because the new router his father has installed for their home network automatically blocks FTP transactions of any kind (for security purposes). They do not know how to turn off this feature. I am seeking other ways fo

Re: [php-list] URL redirect...

2006-04-07 Thread Michael Sullivan
On Fri, 2006-04-07 at 18:10 +1200, Gordon Stewart wrote: > Im not sure if PHP can help here - > > But Im helping a friend with his websites... > > on the host im familiar with, if I have multiple domains, on an > account - I can re-direct the requests to different folders - So I can > have diffe

Re: [php-list] Web Servers!

2006-03-30 Thread Michael Sullivan
On Thu, 2006-03-30 at 20:14 -0500, Christopher E wrote: > Hello All, > > I forgot to say that I am running on a AMD 64 3200 I believe the > number is. > > For Michael, WAMP5 is a package of all three things (MySQL, PHP, > Apache) it sets it all up and configs it to all work together. > > For Nic

Re: [php-list] Web Servers!

2006-03-30 Thread Michael Sullivan
On Fri, 2006-03-31 at 00:36 +, Christopher E wrote: > Hello All, > > I am looking for a webserver that is very basic that would allow to > dish out the php / html file also support https I don't care for the > cgi or other stuff for other forms of programing. I am sorely working > with php 5

Re: [php-list] Advice Needed! Whats wrong!

2006-03-29 Thread Michael Sullivan
On Wed, 2006-03-29 at 14:36 -0800, James Keeline wrote: > --- Christopher E <[EMAIL PROTECTED]> wrote: > > > I just got done writing this peice of code and when I run it I get > this: > > Parse error: parse error in > > /home/httpd/vhosts/123.org/httpdocs/display/displayall.php on line > 90 > > >

Re: [php-list] new problem

2006-03-26 Thread Michael Sullivan
On Sat, 2006-03-25 at 22:31 -0800, afaf mousa wrote: > thank u > i know there is encryption in php > but i wanna to know how to integrate php with java? > > Java and PHP are two seperate technologies. PHP spits out plain text and images. Java spits out .class files. You could cause PH

Re: [php-list] PHP Error

2006-03-26 Thread Michael Sullivan
On Sun, 2006-03-26 at 17:55 +1200, Gordon Stewart wrote: > Hi, > > for the last year or so, ive just uploaded my pages to the website / > server to test PHP script. > (its just expired the last day or so...) > > Ive now installed PHP 5 onmy home server - & testing it. However im > getting an err

Re: [php-list] Re: need help with mysql and php

2006-03-22 Thread Michael Sullivan
On Thu, 2006-03-23 at 02:06 +, Mark Mckee wrote: > > > > > As for your forty tables that can possibly be selected, might I > > suggest a switch statement? > > > > > > > > how wouldl i go about creating a switch statement? i have looked at a > few tutorials but am finding it difficult to

[php-list] Re: need help with mysql and php

2006-03-22 Thread Michael Sullivan
amed after the > a section of the site. (probably not the best layout, but i am learning) As for your forty tables that can possibly be selected, might I suggest a switch statement? > > i have the input page all figured out, and now im working on the edit > and update pages. >

Re: [php-list] need help with mysql and php

2006-03-21 Thread Michael Sullivan
Option1 Option2> > i think thats it for now lol. any help would be grately appreciated > > kind regards > > Mark... > > > > > Mark Mckee wrote: > > thank you for the help. > > > > i wil keep trying to get it working. > > > > M

Re: [php-list] need help with mysql and php

2006-03-20 Thread Michael Sullivan
On Tue, 2006-03-21 at 00:52 +, Mark Mckee wrote: > hi all > > i want to create an inut page for the content on my website. is it > possible to have 1 data entry box and choose the specific what table > of > a database to put it usign a drop down box? > > if so, can someone please point me i

[php-list] NEO Music Festival project - My script won't requery the database...

2006-03-19 Thread Michael Sullivan
I've been hired to create a web interface for the NEO Music Festivals. I'm having a problem with the Accompanist script. Part of accompanist.php is supposed to query my database to see if there are any accompanists already registered, and if there are, it't supposed to add their names to a list bo

RE: [php-list] Is this code for right click options possible inPHP ?

2006-03-17 Thread Michael Sullivan
ould be used to determine what those factors were)... > > > > -Original Message- > > From: php-list@yahoogroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of > Michael Sullivan > > Sent: Friday, March 17, 2006 4:07 PM > > To: php-list@yahoogroups.

Re: [php-list] Is this code for right click options possible in PHP ?

2006-03-17 Thread Michael Sullivan
On Fri, 2006-03-17 at 15:27 +0100, Chris wrote: > Forgetting about the rights and wrongs juuust > for a second, does anyone know the code, so that > when someone does a r/click on a page, they only > get the add to favs and go back one page please > and 1 link to another page? > > Is this poss

Re: [php-list] Problem with mail function......plz help me...

2006-03-15 Thread Michael Sullivan
On Tue, 2006-03-14 at 22:57 -0800, Asif Ali wrote: > > > Note: forwarded message attached. > So there was no actual question with this post? Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] L

Re: [php-list] Error when submitting online order form

2006-03-02 Thread Michael Sullivan
On Wed, 2006-03-01 at 23:44 +, neilsbohr73 wrote: > I've created an online order form for a client which is to be > emailed to the client after someone fills it out. While testing it > out, I was given this message when I hit the submit button: > > "Parse error: parse error, unexpected T_ST

Re: [php-list] which editor to use

2006-03-01 Thread Michael Sullivan
On Thu, 2006-03-02 at 00:28 +0200, Joseph Gutin wrote: > > > > which editor is the best to make php code? > > > > I tried several and stopped on Zend Development Environment. > > Jos > > I prefer vim... Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMA

Re: [php-list] JOB POSTING: Atlanta, GA

2006-02-23 Thread Michael Sullivan
Besides the fact that it's very spammish? On Thu, 2006-02-23 at 11:36 -0800, Mark wrote: > harsh in what way? Seems pretty straight forward. This is the skill > set we're looking for. No salary is noted, so we can't jump to > conclusions about relocation assistance or any other benefits. > > I rea

Re: [php-list] error probs - ob_flush

2006-02-21 Thread Michael Sullivan
On Tue, 2006-02-21 at 12:46 -0800, [EMAIL PROTECTED] wrote: > Last night I was (& am) having errors - debugging. > > > Just before i went to bed, I think ive found a suitable script to help > debug > (I'll try tonight) > > G > > > > > > > > > K-Email v1.00 > > > > Join the New Zealand

Re: [php-list] Re: Running a script and porting the output to a file

2006-02-19 Thread Michael Sullivan
On Mon, 2006-02-20 at 00:25 +, Marian Briones wrote: > Maybe I didn't explain it right... > > I'm writing a web page generator is what I'm doing; with web > templates. > > So when I go to generate one of these sites, I enter the custoemr's > information like their text that will appear in t

Re: [php-list] Running a script and porting the output to a file

2006-02-19 Thread Michael Sullivan
On Sun, 2006-02-19 at 22:32 +, Marian Briones wrote: > I finally put my finger on what I am trying to doI'm trying to > combine a form with some preformatted text and have the form fill in > the variables in the preformatted text and output that to a file. > > So how do I do that? > > It

Re: [php-list] Writing to a file and not having to do an fputs for each line

2006-02-19 Thread Michael Sullivan
On Sun, 2006-02-19 at 21:29 +, Marian Briones wrote: > Hi gang > I'm trying to output HTML files with php. I have read that in order > to do this, I have to preface each line with something likes; > > fputs($filepointer, "the line that I want"); > > This is painful. I want it to just spit o

[php-list] Re: Need help validating input [SOLVED]

2006-02-14 Thread Michael Sullivan
On Tue, 2006-02-14 at 13:47 -0600, Michael Sullivan wrote: > I am creating a web interface for registering entries for the annual Jr. > High Music Festival at my college. I am currently in the process of > writing a page that will validate school registration information. I > ha

[php-list] Need help validating input

2006-02-14 Thread Michael Sullivan
I am creating a web interface for registering entries for the annual Jr. High Music Festival at my college. I am currently in the process of writing a page that will validate school registration information. I have created a school registration page with forms and I am sending the data collected

Re: [php-list] Re: Question about a php class

2005-12-01 Thread Michael Sullivan
On Thu, 2005-12-01 at 21:45 +, viewcharts wrote: > > I don't think I'm making myself clear. I want some kind of > > authentication system that lets a user log in through a PHP page if > > their username and password identifies them as a user on the Linux > > system. If the person trying to l

Re: [php-list] Question about a php class

2005-12-01 Thread Michael Sullivan
On Thu, 2005-12-01 at 07:01 +, Tim Makins wrote: > I found this script useful: > > http://evolt.org/node/60384 > > Regards, > Tim in Ireland. > > I don't think I'm making myself clear. I want some kind of authentication system that lets a user log in through a PHP page if their username

Re: [php-list] Re: Question about a php class

2005-12-01 Thread Michael Sullivan
On Thu, 2005-12-01 at 11:30 +, kennethtucker wrote: > issueand get your version. The "private" keyword > began in PHP 5. > > Regards, > > ken > > http://kennethtucker.com > I have PHP Version 4.4.0-pl1-gentoo Yahoo! Groups Sponsor ~-->

[php-list] Question about a php class

2005-11-30 Thread Michael Sullivan
I'm trying to work with the ssh2 class found at http://us2.php.net/manual/en/function.ssh2-auth-password.php#56285 to provide user authentication to my server using my users system usernames and passwords, but I'm having trouble. I copied the code into its own file and then used require_once to

Re: [php-list] Problem with headers

2005-06-09 Thread Michael Sullivan
I don't understand. Will you give me an example? On Thu, June 9, 2005 1:09 pm, Patrick Bierans said: > you must not include the image data directly. ;) > try calling it: > > > > - Original Message - > From: "Michael Sullivan" > To: &

[php-list] Problem with headers

2005-06-09 Thread Michael Sullivan
I found a script for creating thumbnails that I can use for the index of my digital photo website. I've integrated the thumbnail script as a function but I'm running into a problem: My thumbnails created on-the-fly won't display because I have print statements earlier in the script. I get this er

Re: [php-list] Re: Need help working with files

2005-06-08 Thread Michael Sullivan
I have found that the worst time to debug code is when you are in a > hurry. I Googled 'Web album php' without the quotes and had many > hits. That should keep the kitty happy quickly. > > Jim > > > --- In php-list@yahoogroups.com, Michael Sullivan <[EMAIL PROTEC

Re: [php-list] Re: Need help working with files

2005-06-08 Thread Michael Sullivan
eep the kitty happy quickly. > > Jim > > > --- In php-list@yahoogroups.com, Michael Sullivan <[EMAIL PROTECTED]> > wrote: > > My wife and I take a lot of pictures with our digital camera. I > have a > > Linux web server with a static IP address and we have

[php-list] Need help working with files

2005-06-08 Thread Michael Sullivan
My wife and I take a lot of pictures with our digital camera. I have a Linux web server with a static IP address and we have a digital photo page. It consists of a photo index displaying 100x100 photos organized into tables by date. If someone clicks on one of the small pictures it loads the ful