Jump to content

Renidrag

Members
  • Posts

    12
  • Joined

  • Last visited

About Renidrag

  • Birthday 01/22/1972

Profile Information

  • Gender
    Male
  • Location
    St. John's, Newfoundland

Renidrag's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks davidannis for your reply, I use a config.php file also, everything works fine with my define paths, the sites always work fine, I guess I am just trying to seek out a way to have intellasense work correctly in Dreamweaver when you got /pageA.php in the root with /include/pageB.php included in /pageA.php and /classes/pageC.php included into pageB.php so that is: define Root = dirname(__FILE__); In /pageA.php -> include(ROOT . "/include/pageB.php"); In /pageB.php -> include(ROOT . "/classes/pageC.php"); All works fine on the server and includes the pages - but in dreamweaver, in order for intellasense to work, the above include will not work to show the class and its methods as you type/create the code -> they need a relitive path without the var ROOT as this doesn't get defined until runtime on the server Just wondering if anyone knows a work around for this or something that can be defined in Dreamweaver, Any thoughts on the best IDE with intellasense like this and a good all around solution for creating sites - I am going to check out a few and a few pointers in that direction would be good too, going to check out Aptana Studio 3 and see what that offers again, any thoughts would be great
  2. I use Dreamweaver as my IDE for development, something i have always found to be a pain but haven't had much time to look into is the best way to include or require a file in other directories and have the intellasense still work for custom classes and then to add a bit more these files that have the include or require code are also in files that sit in the root and have them as include or require - so i just set up a define ROOT but then I loose all intellasense which comes in very handy when working with a large amount of custom classes and their functions / methods any solutions to this include or require relative or absolute working in multiple includes throughout a site? Looking for thoughts, thanks
  3. So, here is an update, and one small problem I am still having first brief details: -new revised website is now on hosting company's server -old website still sits on inhouse server -email is MS Exchange Server and is inhouse as always advance settings applied to DNS provider are all working fine -www points to new IP on host company -@(none) points to new IP on host company -*(all) points to new IP on host company -mail.sitename.com ponts to IP of inhouse (where email always was) ** Problem with blackberry phones not connecting and recieving emails was solved by deleteing the email account off the phone and setting it up with email and password again and all worked fine ************ Problem now is, all employee's in the office (inhouse) put in www.sitename.com and still go to the old site - cache has been cleared, history cleared, DNS flushed but I think it is pulling locally, I dropped by and took a quick look and Primary DNS Suffix is ABC.local (ABC being the site name first initals) strange thing is they get the new site sometimes, in the morning, briefly if at all and the rest of the day it seems to pull locally any ideas?
  4. hey requinix, thanks for the reply, I have setup the www, @(none), *(all others) to point to the new hosting provider and then I setup the mail.sitename.com MX and A-Record to send the email related to the inhouse server where it always resided Everything is working fine, only change was when all was hosted inhouse email users connected to the MS Exchange server online at http://www.sitename.com:81/exchange/ and now they have to go to http://XXX.XXX.XXX.XXX:81/exchange the ip of the inhouse so that is ok if I cant find a work around, not sure if I can use CNAME alias in the DNS Manager and put in the url www.sitename.com:81/echange and point it to the ip of the inhouse Another bigger problem thou is the OWNER uses a blackberry Storm and can not connect to his email, all workers with blackberries can not connect to the email but IPHONE users can connect fine I dont have a blackberry to test this issue, IMAP on the inhouse server is setup and running so not sure what to do there any thoughts would be great
  5. I have a site that i split up, the website is now hosted on a hosting service but we kept the email server in place inhouse, i setup the dns records to send all web related to the hosting and mail to the inhouse problem i ran into is a lot of employees use the www.sitename.com:81/exchange/ to get / manage their emails but since i have set advance settings in the DNS the name does not work, the IP does but I would like to see if there is a way to catch the request and then send the user to 142.XX.XX.XXX:81/exchange/ the IP does work fine or any other php or code to catch this and redirect or settings in a cpanel hosting package thanks in advance
  6. put that in, and yes it comes back with the page name to open
  7. the $_GET['a'] is the name of the file to be open for writting to - in the page before it the file does get open with fopen("filename", "r") and it works fine - the content of the page gets diplayed on the page, then i make changes to it and click submit the next page opens the file (from beginning) and over writes the old content with the new content at least that is what it suppose to do but on the follow-up page the file will not open with fopen("filename", "w") or "a" or "r+" or "w+" Warning: fopen(banner_con1.php) [function.fopen]: failed to open stream: Permission denied in /home/xxxxxxxxx/public_html/dev3/xxxxxxxxx_edit.php on line 10 says permission denied, but as i mentioned above folder is set to 777 and file is set to 777 and php is not in safe mode and fopen shows as allowed in phpinfo()
  8. sorry should have put the code here in the first place [pre]<?php ini_set ("display_errors", "1"); error_reporting(E_ALL); $loadcontent = $_GET['a']; if(isset($_POST['btnSave'])){ $savecontent = stripslashes($_POST['content']); clearstatcache(); ignore_user_abort(true); ## prevent refresh from aborting file operations and hosing file $fh = fopen($loadcontent, 'a'); ## use 'r+b' so file can be read and written if($fh){ if(flock($fh, LOCK_EX)) ## don't do anything unless lock is successful { $count = fread($fh, filesize($loadcontent)); rewind($fh); fwrite($fh, $savecontent); fflush($fh); ftruncate($fh, ftell($fh)); ## better than truncating to 0 before writing, per 04-Mar-2003 comment below flock($fh, LOCK_UN); }else{ echo "Could not lock current file '$loadcontent'<br />"; echo "<a href='cms_edit.php?a=" . $_GET['a'] . "&link=static'>click here to go back now</a>"; } fclose($fh); }else{ echo "<br />Could not open current file '$loadcontent'<br />"; echo "<a href='cms_edit.php?a=" . $_GET['a'] . "&link=static'>click here to go back</a>"; } ignore_user_abort(false); ## put things back to normal } ?>[/pre]
  9. I know, another fopen question - but this one is stumping me server isn't in safe mode, fopen is allowed, directory set to 777, and file to 777 - I can open and read and display the contents of a file but i can not open for "w" writing what else causes the fopen not to open a file with write capabilities? basically i just want to open a file from a custom back end section of my website, i want to display this content in a text box, edit it and have the contents of the file on submit saved to the file so on submit i go to open the file and it will not open for writing. any input is good, thanks in advance
  10. Update, I found the solution, when using xml_parser() you set the xml_set_element_handler($this->parser,"start","stop"); which iterates through the xml feed, during this iteration the xml_set_character_data_handler($this->parser,"char"); is called and you use the function set above "char" to handle the data within the xml elements where as the "start" and "stop" functions handle the element attributes. So basically the xml_parser is setup to do these steps, you have to set the name you want on the functions and you get to tell the functions what they will do - Documentation could be better thou and some examples of the flow of iteration etc. but all in all my faith is restored
  11. I am using the XML_Paser to parse Yahoo Search XML and it has been years since I worked with XML and these classes and functions in PHP are new to me, I can easily go throught and display the search listings that are contained in the attributes - BUT - I can not display the value of the text within the ClickURL element, I can only seen to get display element attributes with my function start($parser,$element,$attr) I was looking into using Simple XML but the hosting service only uses php 4.3.9 and Simple XML requires PHP 5 Can someone show me how to display the text within the element, not the attributes, thanks
  12. Just trying to figure out how people are doing the feature of Darkening the background window or desktop when a popup or div tag is displayed? Any Ideas or a point in the right direction would be great Renidrag
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.