FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > PHP, Perl, Python and/or MySQL
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-25-1999, 11:25 AM   Postid: 43090
heath
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 1999
Posts: 233
PHP, Dreamweaver and more

First - thanks for the incredible tech support and attention to detail from futurequest.

A few questions:

Does anyone know how to allow dreamweaver to recognize php code?  For instance, this is okay:

Quote:
<?
      view(&quot;little&quot;
    ?>
but this isn't:

Quote:
<?php

//code

?>
Also - can anyone recommend a good resource for info on Cron jobs?

Also - what's the best way to back up my MySQL database?


Thanks again for all the wonderful help.


Heath
heath is offline   Reply With Quote
Old 08-26-1999, 12:17 AM   Postid: 43091
andreas
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Mar 1999
Location: Austria
Posts: 101
hi...

since php 3.04 you can use asp-tags like:


Code Sample:
<% echo (&quot;your php stuff&quot; %>



or you can use following tags:

Code Sample:
<script language=&quot;php&quot;>
echo (&quot;your php stuff&quot; %>
</script>



i use the last one and updated the &quot;script&quot;-object file (it´s insert the configuration/objects/invisible).

hth

greeting
a n d r e a s
andreas is offline   Reply With Quote
Old 08-26-1999, 12:29 AM   Postid: 43092
heath
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 1999
Posts: 233
Is there any advantage over using the second way in dreamweaver other than you don't have little yello &quot;ASP&quot; markers all over the page?

Thanks for the help -- this was an easy fix

Heath
heath is offline   Reply With Quote
Old 08-26-1999, 06:00 AM   Postid: 43093
andreas
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Mar 1999
Location: Austria
Posts: 101
no.
it´s only another way to include php-code. there are not only the two above possibilities to include php-code.
look also at http://www.php.net/manual/language.basic-syntax.php3

i erased my &quot;insert script&quot; object-file (after a new system setup ), so i´ve to modify the original one at the weekend. if you are interested i can send it to you.

greeting
a n d r e a s

[This message has been edited by andreas (edited 08-26-99)]
andreas is offline   Reply With Quote
Old 08-26-1999, 08:28 AM   Postid: 43094
Dean B
Site Owner
 
Dean B's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Jan 1999
Location: U.K
Posts: 480
Andreas,
I'd be interested in the script object file.  I get annoyed with yellow markers everywhere as well.

Dean.
Dean B is offline   Reply With Quote
Old 08-26-1999, 05:17 PM   Postid: 43096
heath
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 1999
Posts: 233
Andreas -

Quote:
Code Sample:
<% echo (&quot;your php stuff&quot; %>
doesn't work with the futurequest servers.  It kindly displays the entire script for the world to see.  

Not good.

If you could send the dreamweaver file, I would appreciate it, and a cursory glance of the dreamweaver usergroups wasn't much help.
 
Thanks for taking the time to respond...

Heath
heath is offline   Reply With Quote
Old 08-26-1999, 07:47 PM   Postid: 43097
Justin
Visitor
 
Justin's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jan 1999
Location: Kissimmee, FL
Posts: 3,672
ASP tags are turned off on our servers, as it seems unnecessary... it adds a tiny bit of extra overhead having just one more string to parse for, so it's turned off. Sorry

------------------
Justin Nelson
FutureQuest Support
Justin is offline   Reply With Quote
Old 08-27-1999, 12:13 AM   Postid: 43095
Binky
Site Owner

Forum Notability:
61 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Jan 1999
Location: People's Republic of Canada
Posts: 627
See news://forums.macromedia.com/macromedia.dreamweaver
Binky is offline   Reply With Quote
Old 08-27-1999, 07:58 AM   Postid: 43098
heath
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 1999
Posts: 233
On a related note - what is the best/easiest way to
make parse .html as php?  

Can this be done with .htaccess or is it a modification I need to talk you guys into making in the Apache conf file?

Thanks

Heath
heath is offline   Reply With Quote
Old 08-27-1999, 08:47 AM   Postid: 43099
Jacob Stetser
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Dec 1998
Location: Decatur, GA 30032
Posts: 447
Personally, I'd prefer to be able to use <% %> tags over the <SCRIPT ...></SCRIPT> tags.. I've almost never used the script style tags myself, as I prefer the short form.. <?php ?>, but a lot of editing programs would like me better if I had <% %>

Oh, tip for everyone - you shouldn't use plain <? ?> tags because they may conflict with XML, etc. <?php ?> is the XML compliant way of noting a PHP chunk.
------------------
icongarden.com/?fq
icongarden: making good ideas grow.

Jacob Stetser is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump


All times are GMT -4. The time now is 03:36 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.