Adobe Dreamweaver Forums



Last 10 THreads :         Event listener (Last Post : lammspillning - Replies : 0 - Views : 1 )           »          Adding database RDS Login Dreamweaver 8 Coldfusion 8 (Last Post : Daverms - Replies : 3 - Views : 4 )           »          Trouble with SQL Query Tool on Leopard (Last Post : pdenlinger - Replies : 2 - Views : 3 )           »          set width of adv. datagrid according to image width. (Last Post : Devsachin - Replies : 0 - Views : 1 )           »          Dreamweaver cs4 (Last Post : Murray *ACE* - Replies : 9 - Views : 10 )           »          Centering a site using layers in browser window (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »          Beginner help - PUT confusion (Last Post : Murray *ACE* - Replies : 7 - Views : 8 )           »          URL Fragments and States (Last Post : Broarlimavola - Replies : 13 - Views : 62 )           »          Files and folders becoming read-only (Last Post : Daverms - Replies : 1 - Views : 2 )           »          Downloading from Flash (Last Post : davey darch - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Contribute
 
Tags: , , ,



Reply
  #1 (permalink)  
Old 08-18-2008, 02:44 PM
lemp555
 
Posts: n/a
Diggs:
Default PHP variable scope bug in CT

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?



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-18-2008, 03:57 PM
ThinkInk
 
Posts: n/a
Diggs:
Default Re: PHP variable scope bug in CT

Can you post the source to see if we can help?
Reply With Quote
  #3 (permalink)  
Old 08-18-2008, 04:54 PM
lemp555
 
Posts: n/a
Diggs:
Default Re: PHP variable scope bug in CT

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.

Reply With Quote


  #4 (permalink)  
Old 08-18-2008, 06:58 PM
ThinkInk
 
Posts: n/a
Diggs:
Default Re: PHP variable scope bug in CT

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.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:49 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk