Page 1 of 1

doubts in php

Posted: Thu Sep 18, 2008 8:36 pm
by gova
how to add graphic styles and templates inside a php???
can we add such coloring images in php???
urgent help
thanks in advance

Re: doubts in php

Posted: Fri Sep 19, 2008 2:28 am
by jaoudestudios
Your question is not too clear.

Colouring images? What format is the image? You can include the image in the page on the fly with php and then html, if you want to change certain colours within the image, it would have to be an SVG image, then you can do what you want with it.

Re: doubts in php

Posted: Sat Sep 20, 2008 7:06 pm
by gova
thanks jaoudestudios..
i ll put my qstn in a clear way..

i am just new to web designing.. so i use a tool called web page maker to create html pages..
and i create php pages manually, and put them in my localhost and run..

my qstn is can we design those php pages manually, bcoz i have given a particular color format for the previous html pages created, similarly can we add colors in a php page..

thanks in advance

Re: doubts in php

Posted: Sat Sep 20, 2008 7:28 pm
by jaoudestudios
That is still not really clear. You might have to show us some examples.

But I will take a guess to what you mean.

Are you asking if you can change the colour of the page (CSS) using PHP. If so, then yes, you can code your CSS style sheet in php (or inline styles) and therefore have it change colours depending on certain conditions.

Re: doubts in php

Posted: Sat Sep 20, 2008 8:22 pm
by califdon
Maybe this will help: all PHP does is generate HTML. If something can be done in HTML, you can generate the HTML with PHP. PHP doesn't have any browser-side capabilities of its own. It just generates HTML (and CSS and Javascript) for the browser to see. That's all.

Re: doubts in php

Posted: Sat Sep 20, 2008 8:41 pm
by josh
califdon wrote: It just generates HTML (and CSS and Javascript) for the browser to see. That's all.
nuh uh. I can generate zip files, pdfs, json objects, javascript, plaintext, etc... :drunk:

Re: doubts in php

Posted: Sat Sep 20, 2008 9:02 pm
by califdon
jshpro2 wrote:
califdon wrote: It just generates HTML (and CSS and Javascript) for the browser to see. That's all.
nuh uh. I can generate zip files, pdfs, json objects, javascript, plaintext, etc... :drunk:
True, but it sounded to me like the OP was asking about CSS styles, etc. I just wanted to emphasize the basic functions of PHP as are used 90% of the time.

Re: doubts in php

Posted: Sun Sep 21, 2008 1:01 am
by josh
haha yeah half sarcastic, just wanted to also point out it does more so noone literally thought it was limited to HTML / javascript or even text documents for that matter, it can also generate any kind of binary data in any mimetype, feeds & web services ( JSON - serialized objects ), even command line output, output to local file, etc...