/    Sign up×
Community /Pin to ProfileBookmark

Creating PHP page in with PHP

I’m building a CMS and need to create php pages in php.

Example.
I need to generate a .php file and save it to the server.
But I need to do it from a PHP page in the admin panel.

?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@josephbm91Sep 09.2010 — Look through PHP's [URL=http://www.php.net/manual/en/ref.filesystem.php]file functions[/URL].
Copy linkTweet thisAlerts:
@ncsfloridaauthorSep 09.2010 — Look through PHP's [URL=http://www.php.net/manual/en/ref.filesystem.php]file functions[/URL].[/QUOTE]Which function specifically should I look at? I need to generate a page, not copy.
Copy linkTweet thisAlerts:
@josephbm91Sep 09.2010 — You need to write to a file?

Just look through those function names: You need to know what tools you have to work with, especially if you're dealing with building your own CMS.
Copy linkTweet thisAlerts:
@ncsfloridaauthorSep 09.2010 — Haha thanks, my mind doesn't work sometimes. ? I've got it now.
×

Success!

Help @ncsflorida spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...