![]() |
![]() |
||||||
|
|||||||
| Tags: bug, php, scope, variable |
![]() |
|
|||
|
I have a page where I declare PHP variables which are then used inside an
include file. When I try to edit the page in Contribute, I get a notice of "Variable undefined" in the include. This do work in Dreamweaver and it did work in Contribute in other projetcs I have done. Any suggestions? |
| Sponsored Links |
|
|||
|
php file
<html> <head> </head> <body> <?php $section = "investors"; ?> <?php include("test.inc.php"); ?> </body> </html> and then in test.inc.php <?php echo $section; ?> <p>Bla bla</p> I?m wondering if it just never worked but my PHP setting for notification weren?t showing errors. And then I updated my PHP with stricter notifications, which now cause the problem. |
|
|||
|
This should not cause any problems in the way you describe it in your example,
not in results in teh browser and not in editing in Contribute. Test it if you want in this simple state. I think maybe you have some error in your PHP that is causing the trouble. Maybe you really should 'declare a certain variable somewhere'. So check your code again and see if you can find the error or post the original code so we can check with you. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise