doubts in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gova
Forum Newbie
Posts: 2
Joined: Tue Aug 19, 2008 8:26 pm

doubts in php

Post 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
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: doubts in php

Post 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.
gova
Forum Newbie
Posts: 2
Joined: Tue Aug 19, 2008 8:26 pm

Re: doubts in php

Post 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
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: doubts in php

Post 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.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: doubts in php

Post 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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: doubts in php

Post 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:
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: doubts in php

Post 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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: doubts in php

Post 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...
Post Reply