![]() |
|
#1
|
|||
|
|||
problem including somethingI have an array
$fanfic with a part called jblack named after someone with another part named zelda1 after a story that has a part called path which equals the path to a file...... so when I call up $fanfic['jblack']['zelda1']['path'] what command or function should i use to make the FILE listed in the path come up and not the path itself to get printed |
|||
|
#2
|
||||
|
||||
|
Hello Bohsocks,
I don't understand the question... try sharing some sample data in your reply. Then explain what you expect off that sample data. On the other hand this looks like a very simple question; which usually means it's not ... I'd guess you're looking for array_keys()?__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
yeah i was looking for uh the PHP code include thing tag but i can't find it.. but anyway
PHP Code:
Last edited by JdS : 28-May-2004 at 05:25.
Reason: Please enclose PHP code in [php] & [/php] for syntax highlighting
|
|
#4
|
||||
|
||||
|
It's clear to me now...
PHP Code:
Now having made that change, to get the path to the include file right, you simply just have to insert a dot (to start looking in this directory) or include the path to your home folder, e.g. PHP Code:
Ultimately you should not include the first slash in the path, so the variable $fanfic[$author]['info']['path'] should ideally be 'sections/fanfiction/beyondgrey', this way you can just use the variable like you did in your first attempt (and considering some details are set up right) __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C I/O problem | kelly80 | C Programming Language | 4 | 27-Apr-2004 21:15 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 08:53 |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 10:11 |
| unwanted scrollbar problem | kelly001 | Web Design Forum | 3 | 24-Oct-2003 11:44 |
| Geforce FX 5600 Ultra problem | jenovasbirth | Computer Hardware Forum | 1 | 04-Oct-2003 18:00 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The