Secure a folder with sessions - PHP/MySQL
I have a member site that I hav erecently developed a download library for. All the downloads (Word docs or PDFs) are stored in one directory and the user must be logged in using a session based system to gain access to the download page (in the directiry above) which contains all the links to the documents.
So non members can't access the downloads page but I'm guesssing that pretty soon each of the PDFs and Word docs will be picked up by google and non-members will be able to open or download them directly.
Is there a way that I can secure access to the contents of the download folder using sessions?
Or if not any other solution?
Cheers
Dave
The simple way is to put all of the docs in a folder that you secure using web server security. Most hosting plans these days make this option available from the host control panel. The problem with this is that it is a different security layer than the one you are currently using, and integrating the two , while possible, might be challenging.So you might instead just put all of the documents, including html, into a secured folder and use that security method instead.
Another method to consider is putting all of the sensitive docs in a directory above the site root, and then use server side scripting on a secured page to stream the files. It's relatively simple and you can use a script like this one:
http://www.computerhope.com/issues/ch001113.htm
Similar Messages
-
I need help with DW, PHP & MySQL please.
Hello, I am new to website development and am trying to set up a form for collecting data on my website and have a question that I can’t find an answer to anywhere else. I was wandering if someone there would be kind enough to help? I am using Dreamweaver in CS4 and my host already has PHP & MySQL installed on the server that I can use. My question is: Do I need to download XAMP or WAMP on my computer before trying to connect my form to the server? Also, do I need to change the page I am putting the form on to .PHP extension or can I just embed the PHP form into an existing HTML page?
Most of the training tutorials I’ve read don’t start at the most basic beginning but rather expect people to already have a basic knowledge of the topics they are trying to learn. If anyone knows the best place to get answers to the most basic questions like this one or a beginners guide to working with DW, PHP & MySQL I will gladly go there rather than waste your time on questions you’ve probably already answered a bezillion times.
Thank you for the help.Strictly speaking, you don't need XAMPP or WAMP on your local computer. But if you're serious about getting involved with PHP/MySQL, you should definitely set up a local testing environment with one or the other. It's safer and more efficient. Don't expose all your errors on a live server. You can find instructions on how to set up a testing environment here: http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html.
To develop with PHP, you should always use a .php file name extension. Any other choice is very rare.
There's a tutorial on building your first dynamic website with DW here: http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html.
For more in-depth help, you might want to consider grabbing hold of a copy of "The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP". (Yes, I wrote it, so it's a bit of shameless self-promotion, but you'll find it answers many of your questions - and probably a lot you hadn't even thought of.) -
How to load folder with images php with oracle
Hi i want to upload from my php form folder with images what should i fix in my php code for 1 image?
<?php
define("ORA_CON_UN", "obrazy");
define("ORA_CON_PW", "miksas1");
define("ORA_CON_DB", "//localhost/orcl");
if (!isset($_FILES['lob_upload'])) {
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"
enctype="multipart/form-data">
Image filename: <input type="file" name="lob_upload">
<input type="submit" value="Upload">
</form>
<?php
else {
$conn = oci_connect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
// Insert the BLOB from PHP's tempory upload area
$lob = oci_new_descriptor($conn, OCI_D_LOB);
$stmt = oci_parse($conn, 'INSERT INTO FOTKI (FOTKAID, FOTKA) '
.'VALUES(:MYBLOBID, EMPTY_BLOB()) RETURNING FOTKA INTO :FOTKA');
oci_bind_by_name($stmt, ':MYBLOBID', $myblobid);
oci_bind_by_name($stmt, ':FOTKA', $lob, -1, OCI_B_BLOB);
oci_execute($stmt, OCI_DEFAULT);
// The function $lob->savefile(...) reads from the uploaded file.
// If the data was already in a PHP variable $myv, the
// $lob->save($myv) function could be used instead.
if ($lob->savefile($_FILES['lob_upload']['tmp_name'])) {
oci_commit($conn);
echo '<p>Obrazek załadowano</p>';
else {
echo "Couldn't upload Blob\n";
$lob->free();
oci_free_statement($stmt);
oci_close($conn); // log off
?>The first thing I'd suggest you fix is the forum to which you posted the question.
The name of this forum is "Oracle Database General Questions." That is questions about the database ... not questions about PHP.
Look further and you will find the correct forum. -
How to use spry in the dreamweaver with the php/mysql
hello,
Iam new to the spry framework
and i want to know can we use the spry in the dreamweaver
along with php / mysql code
if so please tell how to do this
thanks in advanceswetha123 wrote:
> but when i complie this page it is not showing the
preiew or any thing in the
> browser i saved this page with the extension .php if i
run the same page with
> .html then i can see the design but it is not being
executed
The reason you get nothing when you save the page with a .php
extension
is because you have display_errors turned off, so you can't
see the
error message telling you there's a syntax error. The
semicolon is
missing at the end of this line:
> echo "<font color='white'>Hello
Swetha</font>"
The reason it doesn't work with an .html extension is
probably because
you haven't uploaded SpryAssets/SpryTabbedPanels.js. I have
copied your
page and tested it locally with the correct JavaScript file,
and the
tabbed panels work as expected.
There are lots of other mistakes in your page. You can't use
float and
position:absolute on the same element. In at least one place,
you have
used </br> instead of <br />. You have also got
an closing paragraph tag
after the paragraph that contains abc.jpg.
Getting Spry or any other JavaScript library to work
correctly relies on
good, clean code. Your mixture of inline styles and font tags
is going
to make it difficult to incorporate Spry into your pages. I
suggest you
improve your HTML and CSS before bringing Spry into the mix.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Problems with Apache PHP Mysql
I tried doing an upgrade from Tiger to Leopard server but was having lots of issues while working with the virtual sites I have hosted. I tried a clean install and I was still unable to get Apache php and mysql to work together. Each service was starting fine but when I would try to run a php file it would only display a white page. Under the upgrade instead of displaying the page it was downloading any page I tried to load.
In the new clean install I enabled phplib5 through server admin but even a simple info.php file with <?php phpinfo(); ?> was only giving me a white page. I dont know if mysql was interfacing with php and apache at this point cause I could not get any further. I mainly just want to be able to run wordpress which is a php blog that uses a mysql database.
I have heard some people talking about mamp installs and not using the stock web services but I did not know if that would be a smart route to take.well the problem come in that you could end out with multiple releases of the same application when the idea is to make one package "stable"
would you rather have a debain package data base that has seventeen apache's or one stable full featured apache?
as for a server/stable tree for production machines this is coming. implimentation is not the trouble it is time that is a factor. -
Any reason why a .exe projector would not communicate with a php/mysql
hello;
I have a .dcr in a directory, that when runs from a browser does everything as expected: calls php/mysql, etc;
however, I have a .exe in that same directory, published at the same time, but does not seem to be getting the php/mysql calls...
any thoughts please... thanks.currently everything is running on my computer ( win xp with apache server with php/mysql modules ) ... I currently use my default winxp firewall ... hmm, maybe I should turn it off and see what happens
-
Yet again with (probably) php/mysql issues
Hello, everyone. I think I am setting a record for asking the most questions about basically the same thing, but here goes:
Okay, I am trying to install a message board on one of my sites. I downloaded mysql 5 and made it possible for php to access it per the instructions found here: http://docs.info.apple.com/article.html?artnum=301457. The message board is already on my server, but when I go to the install.php page, it will not let me go beyond the first page. When I try to access the forums directly on the web at mydomain.com/forum, I get the following error:
Access denied for user 'root'@'localhost' (using password: NO)
Unable to connect to DB server localhost at port 3306
I have been having a couple of dns issues, so I tried changing localhost to my server's name and my hostname, only to get the following errors:
Host '70.90.83.165' is not allowed to connect to this MySQL server
Unable to connect to DB server artsmiths.local at port 3306
Unknown MySQL server host '70-90-83-165-BusName-md.dc.hfc.comcastbusiness.net' (1)
Unable to connect to DB server 70-90-83-165-BusName-md.dc.hfc.comcastbusiness.net at port 3306
(because of the dns issue I was having, apple tech support recently had me change my hostname to that crazy comcast one using my static ip. This was done after I had downloaded the message boards, so I don't know if that matters).
Another thing that could be an issue is that for the site I wanted the forums on, the index.php file was deleted when I installed the boards. I was wondering if simply reinstalling now that I have replaced it would help.
The only other thing I could think of that could be creating the problem is a permissions issue, which is what the tech support person for the boards seems to think. However, I have done repair permissions and manually changed the affected files, and all to no avail.
Since this board is always more helpful than tech support, I thought I'd come on here and see if anyone has any suggestions. I'm sorry this is such a long post; I am just trying to be thorough. Thanks in advance for any help.It is php 4.4.1. I have attempted to find it in my php.ini, but I swear it's not there (unless I'm truly losing my mind). I've pasted below the contents of the data handling section to see if anyone can tell where I'm missing something. I think I am going to have to put it in the .htaccess file because I can't figure out what else to do. Does it matter where I put it in the .htaccess file, or can I just put it at the end? Thank you again.
; Data Handling ;
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output = "&"
; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&".
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = ";&"
; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order = "EGPCS"
; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data. This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP*VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off
; This directive tells PHP whether to declare the argv&argc variables (that
; would contain the GET information). If you don't use these variables, you
; should turn it off for increased performance.
registerargcargv = On
; Maximum size of POST data that PHP will accept.
postmaxsize = 8M
; This directive is deprecated. Use variables_order instead.
gpc_order = "GPC"
; Magic quotes
; Magic quotes for incoming GET/POST/Cookie data.
magicquotesgpc = On
; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magicquotesruntime = Off
; Use Sybase-style magic quotes (escape ' with '' instead of \').
magicquotessybase = Off
; Automatically add files before or after any PHP document.
autoprependfile =
autoappendfile =
; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header. To disable sending of the charset, simply
; set it to be empty.
; PHP's built-in default is text/html
default_mimetype = "text/html"
;default_charset = "iso-8859-1"
; Always populate the $HTTPRAW_POSTDATA variable.
;alwayspopulate_raw_postdata = On -
Php mysql integration with workgroup manager
Hello,
I run a non-profit arts organization. We have active and inactive members that are tracked with a php mysql web app that I wrote. I was wondering how I could query the workgroup manager from php to make the inactive members not be able to login to our computers. Also, it would be great if we could just add new members into the php web app and then send that new member's info to the workgroup manager.
Is this possible?
Thanks
AlexYes, I have an OS X 10.4.3 server - which is also integrated in the AD. If i log on locally on the server with an account from the AD, then the workgroup manager works perfectly.
Guess my main problem is that i don't know where in the process things goes wrong.
- Is it on the client, that it is not able to sent the right requests
- Is it on the OS X Server, where something is misconfigured
- Is it security settings in the AD that prevents the server and client from getting the right information
I have the possibility on both the server and client to do ldap requests through the address book - this tells me that i do have some sort of connection. And that is also verified by actually being able to login with AD accounts.
Is there any logs i should pay special attention to? All the logs i can see through server admin doesn't contain usefull information. The logs on the client located in /var/log only tells me about some minor issues with mcxd (something about the uid being 1325883267 - which confuses me a bit - i thought uid's on unix was between 1 and 65535 :/ )
/Martin -
Where to go next with Dreamweaver and server-side (php/mysql) applications?
This question is mainly directed at David Powers but I appreciate any input from anyone with the same concern or question.
I've been using DW since the change from Macromedia and have developed a number of applications using built in server behaviors and sb extensions from ADDT, WebAssist, etc. I've learned to customize these behaviors to fit my needs always keeping within the "canned" code. In this way I've "learned" php.
I own most of David's books and in fact, it was because of these that I have any idea about what I'm doing and went in this direction in my "developer" career (building php/mysql applications using Dreamweaver.)
With the decision to remove server behaviors (and the other "developer" panels) from DW and with the deprecation of the mysql extension from the php landscape, I'm wondering where to go next? I fully understand this has to happen.
I'm aware of some alternatives:
Zend or some other framework - to me, this seems extremely complex
Keep several versions of DW installed
Stick to Joomla/WordPress/Drupal - let others who know what they're doing build the architecture
Actually LEARN php - wish I had time; too much work to do (I know how illogical that sounds but it's a very real situation)
I know I'm going to have to switch out all that deprecated code or better yet, rebuild the many applications which used the DW (and other) server behaviors. I'm just not sure which way to turn.rjjacob wrote:
Since I wrote this post I concluded that there is no substitute for understanding and have started my re-education by delving further into the issue with updated PHP/MySQL books and tutorials so I can prepare for a Dreamweaver without this functionality.
Yes, I too have concluded that is the way to go as well. There really is no substitute for learning as much as you can. Whilst the DW Server Behaviours were very convenient they have not kept pace, Adobe prefering to spent their time on less important updates in my opinion. The Server Behaviours are what makes Dreamweaver the tool of choice for database integration for those who lack the knowledge. I feel the Adobe team will regret not coming up with an alternative. Anything that detracts from making the program what it is is a step in the wrong direction and for sure this is a big step in the wrong direction.
rjjacob wrote:
I have mainly used DW server behaviors in my development projects that's why I am curious about what others are doing to make the change. I'm surprised there haven't been more posts; perhaps I'm the last one to be taking action about this, or maybe no one is too worried about it yet.
I think a lot have changed their working practice but many more are burying their heads in the sand. sql_ support is a way off from being completely dropped yet.
rjjacob wrote:
Anyway, your assessment of how terrible the server behaviors are is correct. I'm finding that true after barely breaking the binding on a few books about the greater subject and looking into mysqli and PDO.
Yes, because I relied heavily on them I did not know how bad they were until I forced myself to look further afield. What you can do in a couple of lines of code the DW Server Behaviors produced quadruple or more to achieve the same.
rjjacob wrote:
But they sure were convenient!
Yes, I agree. Maybe some extention developer will come up with a set of new improved behaviours. I tell you if they do they will make a shed load of money. -
I'm a beginner with this PHP/MySQL language, but I'm using
Dreamweaver CS3 to help things along. I've set up my database with
my host (using PHPmyAdmin) and put in a table with some fields.
Then I went into Dreamweaver and set up everything and it saw the
database name perfectly. Then I made a recordset and it saw the
fields just fine. I then made an input page to put the data into
the database and that went off without a hitch. I then made a basic
webpage with nothing but the call to display 2 of the fields in my
database (I did the test in dreamweaver and it saw all the data I
populated my database with perfectly). I then told it to preview in
Firefox and got a blank page... Ok I must have done something
wrong, so I put in some basic text just so I could see if even that
would show up correctly. Then I previewed in Firefox again and not
only did it show up, but the 2 fields showed up as well! Yea! So I
made some changes to the fields I wanted to show and again did a
Preview in Firefox. I was again treated to a blank page. Not even
my basic text was showing up. I went back to Dreamweaver and added
some more text... preview... works perfectly showing everything. I
refresh the page and it's blank. I close Firefox and preview again.
It's a blank page, but for the heck of it I decide to View Source
and lo and behold all the data is there. I close the source and try
reloading the page... blank. I'm at a loss. Any idea why this might
be happening?jays99 wrote:
> Thanks, David. I have your PHP5-Flash 8 book and egerly
await your newest. I
> installerd MySQL 5.027 for 10.4 intel which but it does
not come up
> automatically and there is no MySQL control on the
Preferences. I read
> somewhere that I have to open a file and change some
lines of code in a config.
> file. Do you have any insight to that? Thanks again, Jay
Sorry, I haven't tested anything on an Intel Mac yet. Testing
everything
on Vista for my new Dreamweaver book has given me enough of a
headache.
However, I'm pretty sure that my editor has an Intel Mac, and
he
followed the instructions in "PHP Solutions" without any
major hiccups.
(They're pretty much the same as in the Flash book.)
Isn't there a MySQL.prefPane icon in the MySQL installation
package? I
have found that MySQL won't start automatically on 10.4 (it
did on
10.3), but as long as you install the prefPane, you should be
able to go
in and start it manually.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
PHP/MySQL issue after security update 2010-005
Hello,
I run Apache/PHP/MySQL on my MBP for testing Web sites.
After the 2010-005 security update I can't connect to my databases anymore.
I don't know how to fix this, I even don't know where to start looking.
Ideas, anyone?coloma wrote:
etresoft, thanks for sharing this ... I decided to go with the TriangleJuice suggestion instead for two reasons ... first is that I wasn't sure where to find this launchd file.
There is nothing wrong with TriangleJuice's suggestion. My only issue with creating a php.ini file is that now I have to worry about all those other settings in the ini file. If something else in PHP breaks, I have to figure out if I am the one who broke it.
Apple ships MySQL with MacOS X Server. They probably adjusted the PHP settings to match how they have MySQL setup in MacOS X Server.
For MySQL's, no, Sun's - drat! no, Oracle's part, they still haven't acknowledged the fact that Apple has shipped MacOS X 10.4. MySQL still ships with a Startup Item. If you don't know where the launchd file is, it is because you don't have one. You probably have a MySQL entry in /Library/StartupItems or maybe /System/Library/StartupItems. Startup Items were deprecated in 10.4. Oracle should be creating a file named com.mysql.mysqld.plist in /Library/LaunchDaemons.
Here is what mine looks like now:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.mysql.mysqld</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/mysql/bin/mysqld</string>
<string>--socket=/var/mysql/mysql.sock</string>
<string>--basedir=/usr/local/mysql</string>
<string>--datadir=/usr/local/mysql/data</string>
<string>--user=mysql</string>
<string>--log-error=/usr/local/mysql/data/Pele.local.err</string>
<string>--pid-file=/usr/local/mysql/data/Pele.local.pid</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
I also don't have a /var/mysql directory and wasn't sure whether I should just create one or if this meant my configuration was different. If you feel like explaining any of this, I'd be curious to know.
You have to create one. Such a directory probably already exists on MacOS X Server. Just make sure it is owned by mysql.
sudo mkdir /var/mysql
sudo chown _mysql:staff /var/mysql
sudo chmod 0755 /var/mysql
[jdaniel@Pele:516] /var $ ls -al /private/var | grep mysql
drwxr-xr-x 3 _mysql staff 102 Aug 26 20:03 mysql
Of course, /var is a symbolic link to /private/var. Long story there. -
PHP+MySQL query with empty value
Hi!
Software is DW8 with Apache 2.0.48, MySQL ver. 4.0.15a, PHP
4.2.3.
We had problem when a submitted value for 'regionID' in the
submit page
was left blank and the following error message appears in the
result page:
"You have an error in your SQL syntax. Check the manual that
corresponds
to your MySQL server version for the right syntax to use near
'LIMIT 0,
3' at line 1"
The problem was solved by adding at the top of the page:
<?php
if (isset($_POST['regionID']) &&
empty($_POST['regionID'])) {
$_POST['regionID'] = '0';
?>
How to change the above code to retrieve ALL records when an
empty \
blank value is submitted for 'regionID'?
TIA
Nanubbgirl wrote:
> Something I picked up at a PHP/MySQL seminar...
$_REQUEST works in place of
> either $_GET or $_POST. It basically means use either
get or post. But it is
> less precise because it can pick up either variable and
has to think about the
> request...
I'm afraid you've picked up rather poor information.
$_REQUEST relies on
register_globals being turned on. Since register_globals is
considered a
major security risk, the default setting has been off since
April 2002.
Many hosting companies have turned register_globals on, in
spite of the
security problems, because so many poorly written scripts
rely on it.
The PHP development team has decided to resolve this security
issue once
and for all by removing register_globals from PHP 6.
Forget $_REQUEST. Use $_POST and $_GET always. It's safer,
and it's
futureproof.
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/ -
Dear all,
I'm having some serious issues with Office 2013's Trusted Center settings. In Outlook 2013 XLS Attachments cannot be directly opened in Excel 2013 with double-clicking due to Trusted Center restrictions for Excel 2013 regarding Outlook's Secure Temp Folder.
I tried to adjust the corresponding Office 2013 Administrative Template within my GPOs but to no prevail.
I did find out that Outlook 2013 places an attachment within the Outlook Secure Temp Folder located at "C:\Users\a.ollischer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\PPIU10RW” before passing it to Excel 2013 in order to
open it. It fails due to not trusting this location though I added the corresponding path to my Trusted Locations.
What can I do in order to make this work without having to tediously save each and every attachment to "My Documents" prior to opening it? Any help would be greatly appreciated.
Alex
Alexander Ollischer Diplom-Wirtschaftsinformatiker (FH) Citrix & Microsoft Certified Engineer (CCEA, CCEE, MCSA, MCSE, MCDBA, MCTS) Afontis IT+Services GmbH Baierbrunner Straße 15 81379 München Deutschland Telefon (089) 74 34 55-0 Fax (089) 74 34 55-55
mailto:[email protected] http://www.afontis.de http://www.itganzeinfach.de Amtsgericht München, HRB 109 005 Geschäftsführer: Thomas KlimmerHi Maurice 7785,
Deal and customize attachment security behavior to access such kind of blocked file format. Usually, Outlook does not allow users to open such unsafe type of attachments. It means they are blocked them by default, so you need to unblock such items using REG
values.
Take more help from the similar thread:
http://social.technet.microsoft.com/Forums/en-US/53563c4b-d27f-4866-a5a8-95eb1ad1a3e6/hide-attachements?forum=outlook
Note: Improve community discussions by marking the answers helpful otherwise respond back for further help.
Thanks
Clark Kent -
Using php-mysql module and Apache2.2 provided with FMS4.5
Hi,
we've recently downloaded and upgraded FMS from 3 to 4.5 on a server that has this configuration (before upgrading):
- Centos 5.5
- Apache 2.2.3
- mysql 5.0.77
- php 5.3.3
- perl 5.8.8
Everything was fined before upgrading since 3 years.
We decided to upgrade FMS to provide HLS to our customers.
Once we upgraded FMS and installed Apache that comes with the installer, we encountered lots of errors.
- no more php, all scripts were visible, so we had to reinstall php module; and by the way, how can't we have the logical directories for apache (like /etc/httpd/,...) instead of /opt/adobe/fms/Apache...
- no more perl, cgi script are also visible...
- and now, we are unable to connect to mysql database. Whatever we do, the following message appears:
Fatal error: Call to undefined function mysql_connect()
modules are in the right folders but no way....
If someone can help us,
regards,
Tonyi answer to myself:
I finally managed to do it.
The best way was this:
- backup the Apache folders from fms
- reinstall fms w/o apache
- reinstall properly the standard httpd ( i launched yum remove httpd before)
- copy modules from fms backup to /etc/httpd/modules so i havve specific modules
- update httpd.conf with adobe version (easy with Kompare)
restart httpd and fms
Now everything works well: php, mysql, cgi, ... -
Problems with recordset in PHP/MySQL setting
We use Dreamweaver CS5 for creating dynamic pages (PHP pages with MySQL database). We test the site locally on a Windows 7 operating system with EasyPHP as WAMP server.
We often have a problem in managing the record set.
The following problem occurs quite often:
We take a PHP page. We create a recordset. We use a dynamic table or a repeated region to show the results of the recordset. So far so good.
Then we want to change something to the recordset for example the filter. When editing the recordset, the advanced mode is shown, it is impossible to swith to the simple mode.
By deleting the recordset the problem is not solved. By deleting and afterwards rebuilding the recordset, syntax errors occur. It seems that the php code for building the recordset didn't dissapear.
The only solutions till now seems to completely restart with a new PHP page.
Anyone has a solution for this or anyone did experience the same problem ?
Thank you very much in advance.
IlseYou cannot switch to Simple mode in the Recordset dialog box if you have made any changes to the SQL in Advanced mode.
Opening the Recordset dialog box to edit the settings does occasionally result in the code being inserted again instead of being changed. This appears to be an intermittent bug, which I have experienced myself, and know that others have complained about it, too. As far as I know, there is no solution other than to watch carefully the code that Dreamweaver generates.
If you don't understand the code, you would be well advised to learn what it means and does. Relying on Dreamweaver to do everything for you severely limits what you can do with PHP/MySQL. Adobe regards the server behaviors as quick prototyping tools, rather than for developing production websites.
Maybe you are looking for
-
Can't find photo gallery in files
I want to transfer/copy my photos and videos from my internal storage on my Razr Maxx HD. When I go into files, I don't see them anywhere! I have photos from messaging, but not the photos/videos that I took with my phone.
-
hi i have window, on that i need to give user options to select date from calender. is there any way to pop up the calender using a button click with lesser code i am right in expecting that component as initializing as a button like JButton b= new J
-
Keypad not working properly on Macbook pro
The key pad on my MacBook Pro does not work all the time and have had to resort to a separate mouse to be able to scroll etc. Any advice please.
-
Why does my ipad not work properly when charging
when my ipad is plugged to charger it does not work properly goes crazy
-
I am writing a report based on the number of customers. For ex: if the number of customers are greater than 50, peform this, if the number of customers are greater than 100, perform that etc. My question is - Should I declare 'number of customers' as