Jump to content

PHP newbie here.


Serpreme

Recommended Posts

Hello PHP world. I just joined you today, and i like what i see.

But i have a few questions.

I'm working on an existing website and it uses php for its main links. Now there is an .html file and an .php file. I was wondering how i get the main one, which is the php file to show the changes i have done.

If you need any other information, i'll be here typing away code and trying to figure this one out.

Thanks!

So far the html and php files look identical.

Link to comment
Share on other sites

Question is vague. Do you want it to say "Recent changes to the file are" (which would be impossible without a database keeping track of saved versions.) or what?

 

Please expand on the question and post relevant code.

Link to comment
Share on other sites

It's pretty much an open ended question. We don't know what is in your html file. ;-)

 

Unless your server is setup to parse PHP in files with .html extensions, you would simply link to PHP pages from your HTML file, or load them in frames (teh sux0rz).

Link to comment
Share on other sites

Well the problem is i am so new, as in this morning, i dont know the questions to ask.

What i believe the previous web master did was...simply use the php files as html files.

Thats fine. But when i edit a .php file that has html in it, i am not sure how i would see the changes.

The links are pretty much like "events.php" and such.

What i want to do is be able to update the php files, that have html in them and view the changes.

The .html files that are also there are a mirror of the other files. Exactly the same.

There is only one page with any kind of code other then html. And its not really relevant to anything i am doing.

 

So to repeat maybe a little more clearly, I want to apply my edits to the .php files.

I want to view the changes.

How would i view the changes i make to the php files?

Link to comment
Share on other sites

well i didnt want to upload my changes as i didnt know enough about php to be confident with my changes.

What i did was make a new test.html and tried it. Same files, but the ones with the test lost all their css and formating :(

I'm going to need to think why.

From what i can tell the php is used only for a login system for people.

It doesnt serve any other purpose then to present html for now.

Ya ok i figured out why the formating got dropped.

If this works then i think i am good for now.

:clap:

Link to comment
Share on other sites

Ok heres an update.

When i try to access the html file via the ftp program, it wont load the formatting.

When i load the website itself, the formatting is applied. That is if i view it from the start homepage.

What i need to know is how do i apply the formating that i only get when i view the .php file. As in i click the link which reads as a php extension?

Link to comment
Share on other sites

What i need to know is how do i apply the formating that i only get when i view the .php file. As in i click the link which reads as a php extension?

 

We would need to see the code. Because at this point...still not understanding what it is you are trying to do. Not your fault...but since you don't know what's going on, I'm sure it's just a question...of askin the right questions.  ;)

Link to comment
Share on other sites

I've got the previous ones figured out. It was all about the destination of the .dwt and css files. Since i have 3 versiosn running i got some files mixed up. my fault.

Now i'm trying to modify the webpages so they ALL have .html now instead of .php.

No clue why it wont update, i changed the .dwt file in dreamweaver to be .html. But none of the other websites took it on as the new template. rather annoying.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.