Help with Mac Dreamweaver PHP
Well, I finally have PHP embedded within HTML working however the directory structure is totally confusing me. I place files is /MAMP/htdocs and yet nothing works unless I add /MAMP/htdocs/htdocs and place the index and other php files ALSO in there. I must open the ones in /MAP/htdocs and yet when I run them using my test server the files in /MAMP/htdocs/htdocs are the ones that are actually used.
My configuration in SITES is
Test Server
local/network
/Applciations/MAMP/
http://localhost:8888/
I would appreciate help understanding how to properly configure DreamWeaver SITE so that I can place all files in the MAMP/htdocs directory and eliminate the reducntant one.
Thanks,
Rick
If you're using MAMP, your DW local site folder should be something like this:
/Applications/MAMP/htdocs/sitename
Because htdocs is the default folder MAMP routes to as localhost. Whatever site you have within htdocs folder will be suffixed with localhost in your browser for testing.
For example, your site files (working files) can be put in a folder and that folder should be placed within 'htdocs' folder in MAMP Application folder.
Say, you have a folder called 'test' containing index.php and this folder is placed within htdocs, your DW local site folder will be:
/Applications/MAMP/htdocs/test
To check this in browser, you'll simply enter
http://localhost:8888/test
This will run the index.php file within test folder by default.
Your testing server can be the same as 'localhost:8888/test' for the site.
If you want your Remote FTP also configured, enter your webhost's details and get that configured.
-ST
Similar Messages
-
I Need Some Help With My Dreamweaver
Hello, there i need some help with my dreamweaver i already made a forum about this but that one i maded didnt make sense soo i will make it more details in it soo i will tell you what i did i tell you what i downloed and all that just now but i tell you the things what it does i downloaded Adobe Design and Web Premium CS6 its a 30 day trial then and now i will tell you the details look below please
Details
Soo i opened my start menu then went on all programs then clicked on Adobe Design and Web Premium CS6 then i clicked on the dreamweaver CS6 then when i clicked on it i heard my computer shut down then it shuted down when i opened it straight away then it turns it self back on
What did i do about this when it happened?
I made a question so please can telll me what to do or what ever
Why did i download it?
i downloaded it because i am making a website and i want to use dreamweaver CS6 because i use notepad++ i do not like the notepad++ its harder and dreamweaver helps a bit i think because i watched a video of it
What if you dont have an answer?
Well, i will be very angry because i am making a good website its gonna be my frist publish website ever i made 20 websites but i never published them i deleted them because i wiped my computer
What kind of Computer Do You have?
System:
Micfosoft windows xp
Media Center Edition
Version 2002
Service Pack 2
Computer
ei-system
intel(R)
pentium(R) 4 CPU 3.20ghz
3.20 ghz, 960 MB of RAM
Btw i am using dreamweaver CS6 if you fogot and dont say add more details because there is alot off details there and if you help me i will show u the whloe code when i am done but leave ur emaill address below
(C) Connor McIntoshNo.
Service Pack 3 just updates your OS. All of your files, folders and programs will still be there.
You will start running into more problems like this the longer you stick with XP though. That particular OS is over 11 years old, service pack 3 hs been out for over 4 years.
It may be time for a system upgrade. I personally went from XP to Windows 7 and I haven't looked back one bit. -
Hello,
I want to format my Macbook which (I assume) means I need to get everything off it and on to another computer temporarily. (If I don't have to then that would be awesome, can someone tell me how?)
Unfortunately for me, the only computer available is a lame PC. I've read guides and instructions galore but they either don't work, tell me to select some option that I don't seem to have or just confuse me.
If someone could tell me, simply, how to set it up so I can dump everything onto the PC I would be very appreciative.
I am running Tiger 10.4.11 (too poor to upgrade) and the PC has XP Pro with service pack 2. PC is ethernet to the modem and Mac is wireless via a router to the modem.
Let me know if you need any more info.
Thanks heaps to anyone who can help!I think the majority (or maybe it's the vocal majority) would say you do not need to defragment the way you do on a PC. OSX does automatic defragmentation of files under 20MB. Read the articles below and decide for yourself but I think you will find that not many OSX owners have a defragmentation utility.
Apple KBase article [About disk optimization with Mac OS X|http://docs.info.apple.com/article.html?artnum=25668]
Two different view about defragmentation:
[Optimizing Disks Is a Waste of Time|http://db.tidbits.com/article/7254]
[Macintosh OS X Routine Maintenance|http://www.macattorney.com/ts.html#Anchor-31774]
There is a difference between defragmentation and optimizing. Defrag. makes files occupy contiguous space, optimizing puts things in a specific order. Techtool has a defragmentation feature. idefrag also does optimizing.
You can defragment a drive by completely copying off all the files (use a cloning tool), reformatting it and then copying all the files back on. Again, I don't see mention by many people here of ever doing that.
Try some of the suggestions in the articles below for speeding up your computer:
Mac Tune-up: 34 Software Speedups
[http://www.macworld.com/article/49489/2006/02/softwarespeed.html]
52 Ways to Speed Up OS X
[http://www.imafish.co.uk/articles/post/articles/130/52-ways-to-speed-up-os-x>
Tuning Mac OS X Performance
[http://www.thexlab.com/faqs/performance.html]
11 Ways to Optimize Your Mac's Performance
[http://lowendmac.com/eubanks/07/0312.html]
The Top 7 Free Utilities To Maintain A Mac.
[http://mac360.com/index.php/mac360/comments/thetop_7_free_utilities_to_maintain_amac>
Mac OS X: System maintenance
[http://discussions.apple.com/thread.jspa?messageID=607640]
Macintosh OS X Routine Maintenance
[http://www.macattorney.com/ts.html#Anchor-31774] -
Need Urgent Help with Apache and PHP
I have been struggling with apache and php for a week now and I finally broke down to post a message.
I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
/etc/httpd/users/
Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
<pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
Now check the Apache configuration:
<pre>apachectl configtest<pre>
If it says "Syntax OK", start Apache:
<pre>sudo apachectl start<pre>
Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring. -
Help with osCommerce + Dreamweaver
I know what you are thinking, why use DW with osCommerce.
Well the problem i'm having is
I need to click on a category e.g. Leaflets and then have a
grid/table come up with all the quantities coming down on the left
hand column and the Sizes (A4, A5, A6) across the top. The user
would have to click the price to add to cart.
Like below:
A6 A5 A4
250 £70 £120 £150
500 £69 £117
1000
I ideally need a price grid to be called up from the database
and the price to click through to the product page.
Is there anything you can do? I have been stuck on this for 4
weeks :'(The_FedEx_Guy wrote:
> I know what you are thinking, why use DW with
osCommerce.
>
> Well the problem i'm having is
>
> I need to click on a category e.g. Leaflets and then
have a grid/table come up
> with all the quantities coming down on the left hand
column and the Sizes (A4,
> A5, A6) across the top. The user would have to click the
price to add to cart.
>
> Like below:
>
> A6 A5 A4
> 250 ?70 ?120 ?150
> 500 ?69 ?117
> 1000
>
> I ideally need a price grid to be called up from the
database and the price to
> click through to the product page.
>
> Is there anything you can do? I have been stuck on this
for 4 weeks :'(
>
osCommerce isn't easy in any shape or form to work with in
Dreamweaver,
and its code is bloody hard work too, I attempted once to
help a friend
customize his home page, and I was disgusted by the lack of
good
documentation. If you are not a very competent coder, find
someone who
knows how to customize osCommerce, and pay them.
Steve -
Hello to whoever is looking at this posting. This may be somewhat out of the norm, but for some odd reason, if I ever try to use the Help function in finder, nothing displays. I just get a blank screen with the "ask a question column", but it acts like it is trying to load continuously. I have to force quit to exit.
Does anyone know why this would be or if there is a specific software update to rectify this problem. This machine is still under 1 year basic warrenty, would it make sense to contact support for this? I have no other software conflicts which is the weird thing. Im using Mac OSX Version 10.3.9.
Thank you for any help with this help issue!
AndrewHelp Viewer crashes or shows blank....
http://discussions.info.apple.com/webx?[email protected]@.6897a2ae http://www.thexlab.com/faqs/helpviewer.html
This is a common bug in Panther. The solution to this problem is simple though:
• (~ means your home directory)
Go to ~/Library/Preferences and delete the following files.....
com.apple.help.plist
com.apple.helpui.plist (you may or may not have this one).
com.apple.helpviewer.plist
Next go to ~/Library/Caches and delete the folder......
com.apple.helpui
Log out and log in. If the problem is gone, empty the trash. If not, put everything back.
or you can open MacHelp directly from .....
/Library/Documentation/Help and it works fine.
george
iMac Flat Panel 1.25GHz 80GB 256MB Mac OS X (10.3.9) -
Help with Mac 10.4.11 and Adobe CS5 compatibility?
I have a Mac OS X 10.4.11, and am attempting to
open Adobe Illustrator CS5. The program is only compatible,
however, with Mac 10.5 and higher. Is there a way I can upgrade
my software or what should I do? (my computer says
no new upgrades are available.)
Thanks!Sadly, Firefox no longer includes support for MacOS 10.4, however you can still use browsers similar to Firefox. <br>
[http://www.tenfourfox.com/ TenFourFox] is an unofficial build of Firefox for older Macs, and so will work on your computer. However since you are using a really old computer, it doesn't have all the features Firefox has. <br>
[http://caminobrowser.org/ Camino] is a community project to make the best Gecko-based browser for Macs around. Unlike TenFourFox it doesn't try to be Firefox, but instead does its own thing. <br>
[http://www.seamonkey-project.org/ SeaMonkey] is another community effort and is a continuation of the original Mozilla Suite which shares a few similar properties with Firefox. SeaMonkey is great for people who like their browsing experience retro. -
Help With Various Dreamweaver Issues
Dear Friends,
This is my first post and I appreciate any help any of you
can give me. My knowledge of web design is minimal, but I do have a
basic understanding. The fundamentals of HTML and web design as a
whole are pretty clear. My weakness, however, shows in the fine
detailed issues that come up throughout the course of designing a
website, and much of it may have to do with a lack of knowledge
with the software I'm using. I love Dreamweaver CS3. It's an
excellent program. I'm totally hooked!
I'm in the process of building a website for a friend who
owns a retail gift store. The site has a total of 41 pages. The URL
is
http://www.southerncharmgifts.net
It has taken me over a month to get this site to the place
where it is now. I've learned a TON about web design, CSS, and the
Dreamweaver program itself. I've been able to work through many of
the issues I've had, but I'm stuck on a few things:
1.
Browser Issues.
I've found it hard to sync the content between browsers:
namely IE and Firefox.
For example:
In IE the sub-menus wrap (as I want them to), but in Firefox
they do not. But in Firefox the sub-menu
box borders are visible (vertical menus), even though the
text doesn't wrap, but it's obviously in the dimensions that are
seen in IE.
In Firefox, the sub-menus are too far from the parent. It
looks bad. But they are perfect in IE.
The background image is centered in IE between the menus and
adverts, but not in Firefox. How do I get the background image to
remain between the menus and adverts? (Note: There is no background
on the home page. Also, wider screens seem to move the background
in IE, too.)
In the horizontal menu "Category" the sub-menu item "Babies"
cannot be selected in Firefox. In IE it works.
There are gaps between items in the horizontal sub-menu. It
appears to be related to items not wrapping, but it doesn't seem
that enlarging the sub-menu box causes the item to not wrap. For
example, under "Category" "Candles & Fragrances" is wrapped and
it seems to be the reason why there is a large gap between "Babies"
and "Eyewear." If I can find a way to get Candles & Fragrances
to NOT wrap it might remove the gap.
2. CSS Issue.
I can't find a way to have the sub-menu hover
underline instead of highlight the items. I want it to
underline.
3. "False" Issue.
In the
vertical sub-menu "by CATEGORY" the word "false" shows up
just below the word "Babies." (It's hard to see, but it's there.)
THANKS!!> In the limited research and reading I've done in the
last few
> years I've never heard anyone say this about APdivs.
Your limited research has failed to uncover the essence of
proper technique
in creating web pages. Layers are NOT a general layout tool
and will cause
you much more grief than you ever imagined. Here's one big
reason -
http://www.great-web-sights.com/g_layer-overlap.asp
> divs/layers are an excellent tool in Dreamweaver
They are, but only for specialty applications.
> "Is this true or is this
> bregent's personal opinion?"
It is my personal opinion based on seeing hundreds (if not
thousands) of new
users throw themselves on their swords as a result of having
committed to
pages built with layers, on this very forum.
> Starting over from
> scratch isn't an option and the owner of the website
likes my work.
Starting over from scratch need not involve a redesign of the
graphics. But
on a site built from layers, it would certainly involve a
rethinking of the
layout method. Read this -
http://apptools.com/examples/pagelayout101.php
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Mark 8:36" <[email protected]> wrote in
message
news:[email protected]...
>
quote:
Originally posted by:
bregent
> >I'm in the process of building a website for a
friend who owns a retail
> >gift
> store.
> >The site has a total of 41 pages. The URL is
> >
http://www.southerncharmgifts.net
>
> It is unfortunate that you started working on a
production site without
> first
> having a grasp of the techniques and tools required. You
wouldn't start
> building cabinets until you had a basic knowledge and
experience with wood
> and
> woodworking tools, or you'd end up with a large pile of
sawdust. And
> unfortunately that's where you are heading with this
site. You've made the
> basic mistake of laying out the site using AP divs. AP
Divs should be used
> rarely if ever, and only for special purposed. They are
not a primary
> layout
> tool. Honestly, I would start over from scratch. But
first, spend the next
> few
> weeks or months learning proper layout techniques and
working through
> tutorials
> before actually starting on a production site. Good
luck.
>
> Ok, forgive me for doubting what you said here, but this
is the first I've
> heard of this. In the limited research and reading I've
done in the last
> few
> years I've never heard anyone say this about APdivs.
Because I think
> divs/layers are an excellent tool in Dreamweaver. And
with the exception
> of my
> background image problem, which probably can be fixed by
changing the
> perameters, the only problems with the website are the
menus. Everything
> else
> looks good on both IE and Firefox.
>
> So my question for the rest of the forum is: "Is this
true or is this
> bregent's personal opinion?" No offense meant bregent,
but equating a
> months+
> worth of extremely hard work to sawdust is rather
disturbing. I just want
> to
> make sure what you're saying is the general consensus
before I take this
> too
> seriously.
>
> Thanks for your input, though. I appreciate your
honesty. Starting over
> from
> scratch isn't an option and the owner of the website
likes my work. But
> I'll
> keep these things in mind for the future. Take care.
>
> -
So my little brother gave me a macbook & he doesnt know the administrator password,,,
so my friend gave me a white mac OS X tiger includes Xcode 2 install dvd,,, i tried to install it but says it cant be installed with this machine,,,, can anyone help me with this ?? thank you plzzzzzz
my macbook info,,
Model Name: MacBook
Model Identifier: MacBook2,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache (per processor): 4 MB
Memory: 1 GB
Bus Speed: 667 MHz
Boot ROM Version: MB21.00A5.B07
SMC Version: 1.17f0AppleCare Support Phone Number: 1-800-275-2273
open 6am to 6pm Pacific Time
Changing password from single user mode:
You can also change the administrator's password from single user mode or create a new administrator account.
You need to get into single use mode for steps one and two that are listed below.
This page will tell you how to get into single user mode.
http://www.securemac.com/macosxsingleuser.php
Basically, you hold down the command-s key then powering on your machine. The command key has a little apple symbol on the lower left. It is between the alt/option key and the space bar. On a PC keyboard, it will be the windows key, I think.
1) You can change the password on an account. ( Do you know Unix. You are in a Unix single user console. ) The setup commands you need should be listed on the screen. For Mac OS 10.4.11, the commands are:
# Type the follow two instructions to accessing the startup disk in read/write:
/sbin/fsck -fy
/sbin/mount -uw /
# Start up some utility processes that are needed.
sh /etc/rc
# You will probably need to press the enter key once the system stops typing.
# To find out the users on the system type, use the list command:
ls /Users
# One of these accounts will be the administrator.
# Pick one of the users which I'll call a-user-name and type it in this command:
passwd a-user-name
# and enter the new user password. You need six characters.
# You will need to enter your password twice. Your typing will not show up on the screen just
# press enter when you complete the typing.
# For cryptic information on these commands try:
man ls
man passwd
The root account isn't enabled by default. I am not sure if changing the password on root will enable it.
2) Get the Mac to set up an additional administrative account. You can then change the password on your old account.
Start with your computer power off. Hold down command-s. Power on your computer.
Type in the following:
The first two commands will depend on your release of Mac OS X. Looked at what is typed out in the console to determine the exact format.
# Type the follow two instructions to accessing the startup disk in read/write. Press return after each command.
/sbin/fsck -fy
/sbin/mount -uw /
cd /var/db
pwd
mv -i .applesetupdone .applesetupdone.old
reboot
Once you've done that the computer reboots and it's like the first time you used the machine. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!
The above the idea came from a post by JoseAranda at September 9, 2006 3:48 AM
http://www.askdavetaylor.com/howdo_i_reset_my_mac_os_x_admin_rootpassword.html
You will need to scroll down to see this post. Search for applesetupdone
Or see:
http://superpixel.ch/articles/running-setup-assistant-again/
Once you have a new administrative account, you can change the password of your old administrative account
blue apple > System Preferences > Accounts -
How to link to and open external document with Mac Dreamweaver
I'm evaluating Dreamweaver on the Mac. I know how to link to
an external document, such as a Word or Excel document. However, I
would like for the file to automatically open when the link is
clicked, rather than taking me to a directory window (where I then
have to double-click the file icon). Another option would be to
easily import data from a Word or Excel document, but the Help
indicates that's only possible when using Dreamweaver on Windows.
Thanks for any guidance you can provide.What you need to do is this:
1.) back up all your data from your iPod
2.) reformat it on the Windows machine.
You'll then be able to use your iPod on both Windows and Mac:) If you need more help, let me know! -
Need help with Mac & PC not recognizing external drive (disk not readable)
I am having trouble getting my computer(s) to recognize my Seagate External Drive.
Have tried on my MacBook, iMac, 2 Mini's & my roommate's PC and all reveal the same issue: The Disk you inserted was not readable by this computer.
MacBook/iMac both are working off of Leopard
Both Mini's are on Tiger
It won't show up in finder, rendering it unobtainable. I need to get the information if at all possible off of this hard drive (very important!!) so any help I can get would be greatly appreciated!
It allows me to go into disk utility where it shows up with this information:
Name : ST316002 3A Media
Type : Disk
Partition Map Scheme : Master Boot Record
Disk Identifier : disk4
Media Name : ST316002 3A Media
Media Type : Generic
Connection Bus : USB
USB Serial Number : 3LJ07T540000
Device Tree : /PCI0@0/USB7@1D,7/@4:0
Writable : Yes
Ejectable : Yes
Mac OS 9 Drivers Installed : No
Location : External
Total Capacity : 149.1 GB (160,041,885,696 Bytes)
S.M.A.R.T. Status : Not Supported
Disk Number : 4
Partition Number : 0
And it is in the "about this mac" section with this information:
Seagate Mass Storage:
Capacity: 149.05 GB
Removable Media: Yes
Detachable Drive: Yes
BSD Name: disk4
Version: 0.00
Bus Power (mA): 500
Speed: Up to 480 Mb/sec
Manufacturer: Seagate
Mac OS 9 Drivers: No
Partition Map Type: MBR (Master Boot Record)
Product ID: 0x0500
Serial Number: 3LJ07T540000
S.M.A.R.T. status: Not Supported
Vendor ID: 0x0bc2Additional info:
on the disk4s1 info in disk utility, this information is seen:
Name : disk4s1
Type : Volume
Disk Identifier : disk4s1
Mount Point : Not mounted
Connection Bus : USB
Device Tree : /PCI0@0/USB7@1D,7/@4:1
Writable : Yes
Capacity : 149.0 GB (160,022,790,144 Bytes)
Owners Enabled : No
Can Turn Owners Off : No
Can Be Formatted : No
Bootable : No
Supports Journaling : No
Journaled : No
Disk Number : 4
Partition Number : 1
so it looks like a whole lot of no's that need to be turned around! I can't understand why it won't be read by either Mac or PC with all of this, or how I can fix it -
Hi, I'm trying to develop an application on a Machintosh OSX 10.2.8 machine.
I'm having a herrendous time trying to get quicktime to work on it.
I've somehow managed t oget 1.3.1 and QTJava.jar to work together but now i need encryption, however that requires 1.4+
Now 1.4.1 doesnt work with quicktime
I've downloaded the latest software upgrades but Ive got no idea how to set up quicktime to work with java 1.4.1
Now to add on top of that mac reports it can use AES encryption. this is from source code ripped striaght from this website.
But first and foremost can anyone, annyonee help me out with setting up 1.4.1 with quicktime?
Thank youIf you need encryption with Java 1.3.1, download the JCE from either Sun (http://java.sun.com/products/jce/) or Bouncy Castle (http://www.bouncycastle.org/).
Cheers,
--Arnout -
Hi All,
I have created a page that shows thumbnail images of all
images in a
given directory. Here is the function that searches the
directory and
builds an array of qualified files:
> function getImages($dir) {
> $directory = new DirectoryIterator($dir);
> $fileTypes =
'#\.jpg$|\.jpeg$|\.gif$|\.png$|\.JPG$|\.GIF$|\.PNG$#i';
> $filtered = new RegexIterator($directory, $fileTypes);
> $array = array();
> foreach ($filtered as $item) {
> $array[] = $item->getFilename();
> }
> return new ArrayIterator($array);
> }
>
> // get an ArrayIterator of filenames and the total
number:
> $images = getImages('../images/images_news/');
> $totalImages = $images->count();
Here is the HTML and PHP used to display the images (I'm
excluding code
that is specific to the paging function):
> // Implement offset and files per page
> foreach (new LimitIterator($images, $offset,
$filesperpage) as
> $image) { ?>
> <div class="imgcont">
> <div class="imgholder">
> <img src="../images/images_news/<?php echo $image;
?>"
> alt="<?php echo $image; ?>" height="55"
class="center" />
> </div>
> <p class="smallname"><?php echo $image;
?></p><br />
> </div>
> <?php } ?>
> <div class="clear"><br />
My question is this. I need to provide a way to delete images
that will
no longer be needed. Actually, I need to be able to delete
the main
image and the thumbnail image, each of which is in a separate
directory. What I don't know is how this type of thing is
normally done
(I don't want the FTP route because I don't want a client
messing about
in the directory structure). And what I don't understand is
how to
select one or more files to delete when they were produced by
an array.
For ease of use, it would be nice if I could add a checkbox
that the
user could check to indicate that the image(s) should be
deleted. I
just can't figure out how to select the file(s). I sure hope
this is
not one of those simple things that will make me hide my head
in shame.
Any help would be most appreciated.
BrettBrett wrote:
> the thumbnail images now have _tmb inserted between
> the file name and the extension. So when deleting I keep
getting
> warnings that the file mypic001.jpg cannot be found in
the thumbs
> directory. How do I get the _tmb into the file name?
foreach ($_POST['images'] as $image) {
unlink($mainImgDir . $image);
$pos = strrpos($image, '.');
$thumb = substr($image, 0, $pos) . '_tmb' . substr($image,
$pos);
unlink($thumbsDir . $thumb);
> By the way, you used unset() where I think you meant
unlink().
Yes, I did. Sorry about that.
> Finally, I have discovered that if I upload a file named
Ti301.JPG, I
> get Ti301.JPG001_thb.jpg. It seems that the strtolower()
function in
> getNextFilename5.php is not converting the uppercase
extension, it is
> just adding the incremented number plus _tmb and the new
extension. Any
> ideas about how to correct that?
That shouldn't be happening, but I don't have time to look
into that
now. Sorry.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Hello,
I use dbxml version 2.2.13 with PHP.
I am trying to index a document but seems that without success because the performance doesn't change.
The doc has 1600 elements and executing a query takes about 0.22 secs
The xquery looks like this (a bit simplified):
<pre>
declare namespace ns1 = "urn:...";
declare function local:foo ($p1 as element(), $p2 as element()) as item() {
let $a := data($p2/AAA)
let $b := data($p2/BBB)
let $r := $p1//CCC/*[name()=\$a][@ns1:attr1=\$b]
return $r/DDD
local:foo( doc("...")/*[1] , ... )
</pre>
I create the container like this:
$mgr->createContainer($qcname,DBXML_INDEX_NODES);
I have 4 questions:
Q1) Which index strategy should I take?
I have tested using "CCC" , "node-element-presence-none" but no speed up occurs.
The qplan shows sth like:
<OQPlan>P(node-element-presence-none,=,CCC)</OQPlan>
So seems the index is correctly set.
It is strategy ok? Which other indexes should I use?
Q2) should the indexes be inserted before or after inserting the document, or is this irrelevant?
Q3) If I create the container from php as shown before, and then I open it with dbxml it shows:
Type of default container: NodeContainer
Index Nodes: off
However if I create the container directly from dbxml it
Type of default container: NodeContainer
Index Nodes: on
Why is that?
Q4) I need to repeat several times $mgr->query(....) . Does this affect somehow the data base acces performance?
I'd be glad if someone could help me to make the indexes work..
Best,
/EnricQ2) should the indexes be inserted before or after
inserting the document, or is this irrelevant?In the sense that this will not affect what the indexes contain, this is irrelevent. However, we normally recommend adding indexes before documents, or you would risk a lengthy re-index operation.
Q3) If I create the container from php as shown
before, and then I open it with dbxml it shows:
Type of default container: NodeContainer
Index Nodes: off
However if I create the container directly from dbxml
it
Type of default container: NodeContainer
Index Nodes: on
Why is that?This is a bug in the PHP API - it is also why your indexes made no difference for you. You will need to create your container outside PHP using DBXML_INDEX_NODES.
Q4) I need to repeat several times $mgr->query(....)
. Does this affect somehow the data base acces
performance?If the query is run several times, you would benefit from preparing it once, and executing it from the XmlQueryExpression object.
John -
I recently bought a wre56g v3 for my gf and tried to get her to set it up.
problem is she is on a wireless network with her appartment and due to her being on "the bad side" of the building, she does not get good signal throughout her appt. I want to setup the expander to get the signal to the rest of her apartment.
i cant use the CD since she is using a mac, and i dont know much about macs anyway. she dose have an old dell that i tried and it found the correct network and channel, but when it was searching for the expander it either found a diffrent SSID network (a0756030) or nothing at all (it has a very weak wireless card.
i tried to plut it into the dell but that didnt help anything.
Can anyone point me to directions/insturctions on setting up the wre54g with a mac book pro wirelessly?
can you set it up on the iphone?What is the Model no of the Router...?
Try this link and configure all the wireless settings on the WRE54G same as of the Router.
Maybe you are looking for
-
Has anyone a solution to my newly purchased lightning to USB camera adapter not connecting my Sony Cybershot DSC-W730 to my new ipad Air? It says the connected device requires too much power.
-
SORT in a BSP applicaiton doesnt work
Hi Experts, In my BSP Application , I use a table and below is code for the <htmlb:tableView id = "WRKLST" headerText = "My Worklists" headerVisible = "true"
-
Hi, We are facing this issue in 4.7 as 4.6 version is working absolutely fine, so please look into this asap
-
[Solved]Computer slow down and freeze during data transfer syncing
Hello, Everytime I make a data transfer, my computer slow down, and sometimes freeze during a few seconds, work for a fraction of seconds and freeze again. I don"t understand why. As an example, here is a bench of files i transfered during a syncing
-
Bluetooth won't connect WP 8.1 to Lumia 925 phone
Your up date of the WP 8.1 for the Lumia 925 phone has now stopped accepting ANY Bluetooth devices. FIX the freakin problem and send an update!