Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing ImageWokshop #17

Closed
Goodoh opened this issue Oct 3, 2013 · 5 comments
Closed

Installing ImageWokshop #17

Goodoh opened this issue Oct 3, 2013 · 5 comments

Comments

@Goodoh
Copy link

Goodoh commented Oct 3, 2013

I am all new to this but a willing leaner.
I search the forum and found this advice testing if installed.
To the point as I have un commented all require_once in all files in PHPImageWorkshop folder that I have in my lib folder.
test this script.

Got True

output:
test

Got false
Tested that file ImageWorkshop.php exists and got True
Then tried

output
fatal error: call to undefined function require_once()in C:\apachehtdocs\website\test.php on line 3
then tried

And I got the same fatal error as before
At other times doing something a little different
fatal error :require_once():failed opening required"PHPImageWorkshop/ImageWorkshop.php'(include_path='.;C:apache\php\PEAR')in C:\apache\htdocs\website\test.php on line 3
Your help would be very appreciated.
When I down loaded the zip ImageWorkshop_master only recently it is on my download file and I have unzipped and have the file PHPImageWorkshop in my lib file as it says inn the installations etc. I am using xampp with with php5.5.0 if that may be of importance
Thanks Goodoh

@Sybio
Copy link
Owner

Sybio commented Oct 4, 2013

Hi Goodoh, are you sure this is not a problem of syntax ? Because in your snippets you are calling : "requier_once" instead of "require_once" to include file ? Your last code should work (if you uncommented all require_once in the files of the lib as you said).

@Goodoh
Copy link
Author

Goodoh commented Oct 5, 2013

Thankyou for your reply.
It's not that as with my spelling.
Tried that and it was miss spelling, but on changing that I got error
undefined function on line 3.
before had namespace must come first and on line 3
use PHPImageWorkshop\ImageWorkshop;
Understanding Namespace.
\ /.
The path to requier_once('lib/PHPImageWorkshop/ImageWorkshop.php');
That's straight forward.
$layer=ImageWorkshop::initXXX(...);
Is it now say
$textLayer=ImageWorkshop::initTextLayer('Testing','/resources/arial.ttf',11,'000000',0);

and so on but I can't get past line 3 You can see I have arial.ttf in
resources.
I don't know as to the cause.
The namespace.
perhaps you know and also keeping to a basic understanding,as just maybe
something.
It will be interesting trying re sizing.
Goodoh

On Fri, Oct 4, 2013 at 7:45 PM, Clément Guillemain <notifications@github.com

wrote:

Hi Goodoh, are you sure this is not a problem of syntax ? Because in your
snippets you are calling : "requier_once" instead of "require_once" to
include file ? Your last code should work (if you uncommented all
require_once in the files of the lib as you said).


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-25687650
.

@Goodoh
Copy link
Author

Goodoh commented Oct 12, 2013

I am still getting an error Namespace must come first etc on line 3 when I try this

I can't understand it and any advice would be a help
Thanks Goodoh

@Sybio
Copy link
Owner

Sybio commented Oct 16, 2013

Hi @Goodoh I read your error :

fatal error :require_once():failed opening required"PHPImageWorkshop/ImageWorkshop.php'(include_path='.;C:apache\php\PEAR')in 

This means that your script don't find the library file. Are you sure having this folder structure :

  • C:/apachehtdocs/website/test.php
  • C:/apachehtdocs/website/lib/PHPImageWorkshop/ImageWorkshop.php

You shloud try before all the code this :

var_dump(file_exists('lib/PHPImageWorkshop/ImageWorkshop.php')); exit;

If false, the path is wrong ^^

@Sybio Sybio closed this as completed Oct 17, 2013
@Sybio
Copy link
Owner

Sybio commented Oct 17, 2013

Duplicated issue : #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants