Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: php guru?


Senior Member

Status: Offline
Posts: 196
Date:
php guru?


Any one here a php guru?

I have a few scripts I'm trying to get working and I can't seem to figure out why they are not.

Thanks!

__________________
Hope is the thing with feathers
That perches in the soul
And sings the tune--without the words
And never stops at all....
      --Emily Dickinson
Jen


Senior Bucketkeeper

Status: Offline
Posts: 1599
Date:

Hmmm my husband likes to work with php I think. Are you in the local group, btw? The one that meets one Thursday a month?

Anyway if it's something you think he could look at really quick feel free to send it on to me or post it here. :)

__________________
"There is order in the way the Lord reveals His will to mankind. . .we cannot receive revelation for someone else's stewardship." L. Tom Perry


Head Chef

Status: Offline
Posts: 4439
Date:

Sorry, I'm busy learning Expect and Tcl.

__________________
If ye love wealth better than liberty, the tranquility of servitude than the animated contest of freedom, go from us in peace. May your chains sit lightly upon you, and may posterity forget that you were our countrymen!
- Samuel Adams


Keeper of the Holy Grail

Status: Offline
Posts: 5519
Date:

Maybe if your Expectations for Tlc weren't so high...

__________________

Life is tough but it's tougher if you're stupid.  -John Wayne



Senior Member

Status: Offline
Posts: 196
Date:

Jen wrote:

Hmmm my husband likes to work with php I think. Are you in the local group, btw? The one that meets one Thursday a month?

Anyway if it's something you think he could look at really quick feel free to send it on to me or post it here. :)




Nope not part of any group just something I'm messing around with.

I attached a .7z of the files. In short image.php doesn't work when I include the file histogram.class.php no clue why.

Thanks!



-- Edited by Xanth at 05:59, 2008-06-05

Attachments
web_scripts.7z (6.0 kb)
__________________
Hope is the thing with feathers
That perches in the soul
And sings the tune--without the words
And never stops at all....
      --Emily Dickinson
Jen


Senior Bucketkeeper

Status: Offline
Posts: 1599
Date:

We're getting ready to go camping and he's in the shower right now. I'll see if he has time to peek in a bit. I'll have him tell you about the group, too. It's people that work with it all the time and people that mess around with it. It's really good networking, though. Also, they usually provide free pizza or something. thumbsup.gif

__________________
"There is order in the way the Lord reveals His will to mankind. . .we cannot receive revelation for someone else's stewardship." L. Tom Perry


Senior Member

Status: Offline
Posts: 196
Date:

Cool thanks!

__________________
Hope is the thing with feathers
That perches in the soul
And sings the tune--without the words
And never stops at all....
      --Emily Dickinson
Jen


Senior Bucketkeeper

Status: Offline
Posts: 1599
Date:

Hey Sea... errr Xanth

This is Matt.

Congratulations btw!! Jennifer told me someone in the stake presidency who's in your ward was surprised to find out that you weren't a member already :D.

I'm looking @ the scripts now... unfortunately my machine with Apache & PHP has a toasted system drive and the machine I'm on doesn't even have a good editor... I'll take a look @ it to see if I can recognize any problems without running it... (unfortunately don't have time to set everything up this morning).

__________________
"There is order in the way the Lord reveals His will to mankind. . .we cannot receive revelation for someone else's stewardship." L. Tom Perry


Senior Member

Status: Offline
Posts: 196
Date:

Jen wrote:

Hey Sea... errr Xanth

This is Matt.

Congratulations btw!! Jennifer told me someone in the stake presidency who's in your ward was surprised to find out that you weren't a member already :D.

I'm looking @ the scripts now... unfortunately my machine with Apache & PHP has a toasted system drive and the machine I'm on doesn't even have a good editor... I'll take a look @ it to see if I can recognize any problems without running it... (unfortunately don't have time to set everything up this morning).



Thanks, no hurry when you get time.



__________________
Hope is the thing with feathers
That perches in the soul
And sings the tune--without the words
And never stops at all....
      --Emily Dickinson
Jen


Senior Bucketkeeper

Status: Offline
Posts: 1599
Date:

This is Matt again. I can't see anything that looks obviously wrong.
Was trying to figure out what might break in a PHP 3 script in PHP4 or 5... (which I'm guessing it's likely you are using). I know object syntax has changed a lot from 3&4 to 5... but if the postgraph class works and the histogram class doesn't, I'm not sure what's going on since the syntax looks similar (one of the things that changed is constructor syntax).
I'd recommend turning the error level up all the way (if it isn't already) and using require_once() instead of include_once()

http://us2.php.net/manual/en/function.require-once.php

Also, what error(s) are you getting?

__________________
"There is order in the way the Lord reveals His will to mankind. . .we cannot receive revelation for someone else's stewardship." L. Tom Perry
Jen


Senior Bucketkeeper

Status: Offline
Posts: 1599
Date:

Here's somebody's blog post about differences between 4 & 5 (assuming this is applicable):
http://www.webmaster-talk.com/php-forum/78717-differences-between-php4-and-php5.html

__________________
"There is order in the way the Lord reveals His will to mankind. . .we cannot receive revelation for someone else's stewardship." L. Tom Perry
Jen


Senior Bucketkeeper

Status: Offline
Posts: 1599
Date:

Isn't he totally hot when he talks Geek?

(Jen again)


-- Edited by Jen at 09:44, 2008-06-05

__________________
"There is order in the way the Lord reveals His will to mankind. . .we cannot receive revelation for someone else's stewardship." L. Tom Perry


Senior Member

Status: Offline
Posts: 408
Date:

rofl.gif

Actually, I get where you're coming from, Jen. I'm proud of Water Guy's know-how. Gets me all weak in the knees when he's in expert mode. wink.gif

__________________

They might not look it, but bunnies can really take care of themselves.



Senior Member

Status: Offline
Posts: 196
Date:

Matt,

I know both classes work and I did update to the latest php release in case that was an issue. I'm not getting any errors, just the dynamic image doesn't get created like it's suppose to.

I have tried all 4 function types, include, include_one, require, require_once. I've even looked in my php book to no avail. My guess is it's something very simple and subtle, and not really knowing php I'm not seeing it.

Thanks again!

__________________
Hope is the thing with feathers
That perches in the soul
And sings the tune--without the words
And never stops at all....
      --Emily Dickinson


Senior Member

Status: Offline
Posts: 196
Date:

Jen tell Matt I got my script working, not the way I was trying tho.

Thanks again for trying to help.

For the curious:
image.php

-- Edited by Xanth at 22:50, 2008-06-05

__________________
Hope is the thing with feathers
That perches in the soul
And sings the tune--without the words
And never stops at all....
      --Emily Dickinson


Future Queen in Zion

Status: Offline
Posts: 3155
Date:

so, what you're saying is that level 6 is the place to be?


__________________

"The promptings of the Holy Ghost will always be sufficient for our needs if we keep to the covenant path. Our path is uphill most days, but the help we receive for the climb is literally divine." --Elaine S. Dalton



Senior Member

Status: Offline
Posts: 196
Date:

Nah, we just had a get 5 levels free special ;)

__________________
Hope is the thing with feathers
That perches in the soul
And sings the tune--without the words
And never stops at all....
      --Emily Dickinson
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard