|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Functions
Hello I know how to make functions in the page I am working in.
What I want to do is make a folder and put all my seperate functions in their own file inside the functions folder. Ex Directory structure index.php functions/all my function files I have a function call inside index.php that needs to connect to a function inside my functions folder. how do I call it?
__________________
Thanks, Attila http://www.glorynaspiration.com http://www.abitofthings.com |
|
#2
|
|||
|
|||
|
include("functions/functionfile.php");
functionname(); |
|
#3
|
|||
|
|||
|
Thank you I was very close....That worked.
What about this now. PHP Code:
This should create a link to $name. Although what is in blue below is what I get as a link. |$name| Why do I get both the | stuck inside the link? |
|
#5
|
|||
|
|||
|
is that code inside of a function?
|
|
#6
|
|||
|
|||
Did you forget to close previous open link tag in your page ? |
|
#7
|
|||
|
|||
|
Nope still no luck with that part about the | being part of the link. I even coppied your code. looks as though it is bleeding over. It is realy weird. I am using Dreamweaver MX.
Now I need some more help please. I am curently working on a portal system....Nothing too fancy just something to tinker with. If I was to give this to someone to install on their website I would need a setup script. So that is what I have created. On my first page I get all the basic information from the person setting up the portal..Then it calls this page to do all the work. I am trying to write the information to a config_file inside my directory tree so I can refer to it later if needed. I will need it all the connection data. I know this code is very rough and needs alot of work. Any help would be appreciated but what I am having problems doing is writing the data to the config file so I can grab it later. PHP Code:
|
|
#8
|
|||
|
|||
|
Look my comments...
Quote:
Last edited by Spathe : November 30th, 2002 at 03:11 AM. |
|
#9
|
|||
|
|||
|
fputs and fwrite are identical.. fputs is just an alias for fwrite
![]()
__________________
Best Regards, Håvard Lindset |
|
#10
|
|||
|
|||
|
Quote:
Are you sure ? Pick up the doc : int fwrite ( int fp, string string [, int length]) ... Note: On systems which differentiate between binary and text files (i.e. Windows) the file must be opened with 'b' included in fopen() mode parameter. Oh, nice thing to do ![]() |
|
#11
|
||||
|
||||
|
Quote:
That doesn't disprove that fputs and fwrite is identical. I can use the manual too: Quote:
|
|
#12
|
|||
|
|||
|
Ok ok, but for Attila, he should open his file in binary mode for precaution and he shouldn't include his file first.
|
|
#13
|
|||
|