Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

include, php

Name: Anonymous 2008-04-01 14:45

I have an index.php that include 2 thing:

1. cfg.php
2. testpage.php

In testpage.php I include database.php which is a small database class and that class need some informations from cfg.php (DBHost, DBUsername, ...)

The problem: database.php don't see the stuffs declared in cfg.php. Since I use include_once in index.php, even if I re-include it in database.php it won't work.

If I load it directly from database.php or testpage.php it work, but not via index.php.

Name: Anonymous 2008-04-01 14:55

include() considered harmful.

Name: Anonymous 2008-04-01 14:58

import considered harmful.

Name: Anonymous 2008-04-01 15:01

\usepackage{} considered harmful.

Name: Anonymous 2008-04-01 15:07

>>4
What the hell.  NO!

Name: Anonymous 2008-04-01 15:13

coming within 10 kilometers of a computer considered harmful

Name: Anonymous 2008-04-01 15:20

>>5
Why reply to that specific post, when the gist of all >>2-4 is the same?

Name: Anonymous 2008-04-01 15:21

considered harmful considered harmful.

Name: Anonymous 2008-04-01 15:22

>>7
>>4 was wrong, >>2,3 were right.

Name: Anonymous 2008-04-01 15:26

>>9
You are wrong.

Name: Anonymous 2008-04-01 15:27

>>10
Your bitch is wrong.

Name: Anonymous 2008-04-01 15:34

>>11
"You're wrong" is a bitch.

Name: Anonymous 2008-04-01 15:36

>>12
>>4 was right. ergo your wrong bitch

Name: Anonymous 2008-04-01 16:14

What's the problem with \usepackage{}? What should I use then?

Name: Anonymous 2008-04-01 16:18

What's the problem with Haskell import? What should I use then?

Name: Anonymous 2008-04-01 16:20

I bet OP's raging right now, seeing that, in 16 posts, nobody even suggested a glimpse of interest in his problem.

Name: Anonymous 2008-04-01 16:22

>>14
\usepackage{} should be used because it is impossible to create such beautiful works of art as the LaTeX maintainers.

>>15
Re-inventing the wheel considered educational.

Name: Anonymous 2008-04-01 16:27

WHY, YOU EVIL-EYED, MECHANICALLY APTITUDED DISAFFILIATED SON OF A BITCH, DID YOU APPROVE OF LATEX'S BASIC IMPORT COMMAND, AND SCORNED OTHER LANGUAGES' BASIC IMPORT COMMANDS?

Name: Anonymous 2008-04-01 16:31

>>18
Mere mortals should not dabble in the arcane arts of typography -- dabbling in factorial algorithms, however, is something I support.  Especially in Haskell.

Name: OP 2008-04-01 16:45

Please get back on topic and answer my question.

Name: Anonymous 2008-04-01 16:47

>>16

hah not really, it's not like I had any hope in /prog/ userbase.

Name: Anonymous 2008-04-01 17:42

>>20
include($_GET['hi']);

Name: Anonymous 2008-04-01 18:22

>>22
This.

And make sure you post the link too so we can errr. ``Debug'' it.

Name: Anonymous 2008-04-01 23:32

what was the blog that /prog/ discovered of the one kid who wrote PHP `quines'

Name: Anonymous 2008-04-02 0:46

Name: Anonymous 2008-04-02 9:35

(\ x -> putStrLn $ x ++ " " ++ show x) "(\\ x -> putStrLn $ x ++ \" \" ++ show x)"

Name: Anonymous 2008-04-02 12:06

>>26
<?php readfile( __FILE__ ); ?>

Name: Anonymous 2010-12-17 1:22

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2011-02-04 17:10


Don't change these.
Name: Email:
Entire Thread Thread List