Jump to content

sillysillysilly

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Everything posted by sillysillysilly

  1. Yes, I was keying off that to start checking since I want to remove links and images and most images from photoshop start with that. the second test would be for the image itself then take that out. So I guess I could have been more accurate in saying I wanted to remove the anchor link first. I figured if I could get the link removal to work then I could get the image removal to work as well. Any ideas. I am certain its in my syntax of the $removeimagetag='/<a href/';
  2. I am trying to pull out the image HTML tag but its not working as expected. Here is what I am doing $removeimagetag='/<a href/'; $replacwith = "illegal"; $_POST['descr']=preg_replace($removeimagetag,$replacwith,$_POST['descr']); in the 'descr' there is a <a href="http://s635.photobucket.com...... When it post it does not strip out the <a href So the image is displayed. I tried a modified version to test to see if it work that looked like this. $removeimagetag='/goofy/'; $replacwith = "illegal"; $_POST['descr']=preg_replace($removeimagetag,$replacwith,$_POST['descr']); When the word goofy appears in the text then its replaced with the word illegal, Also I would like to make it so that it replaces the entire line from the <a href....... to the </a> with a phrase that says "this feature is not allowed" rather than just the part in the front...the <a href. Any help you can be will be greatly appreciated.
  3. thanks, now I feel like such an idiot I thought i had everything set up as needed on the router; but I was wrong. You made my day so much better. Now I can get to it from the other machines. Thanks
  4. Welll apparently I was wrong. I did an online port scan and it tells me that its not responding on 3306 (when I telnet through local command line I get a response.) I have tried looking through the windows 7 port settings but it looks like it should be able to see the mysql. I am at a loss to know what to do at this point.
  5. small update. I set up for a minute that any user, any host with no password could connect and still get the error on the connection. I see that it can talk to the database on 3306 so its not being blocked. this has to be some simple, stupid setting somewhere. I have the line "skip-network" commented out as #skip-network. (don't have the # in front then not even the local host will connect.). uggg
  6. Thanks, Looks like I am connecting to the host in that I get some garbaly-gook back, then connection lost. So now I am down to the permissions. I have the following set up on the host mysql user Host Password Global privileges grant brian % Yes All Privileges Yes brian alxxx.org Yes All Privileges Yes I am at a loss to know what I need to do know. I think that either of the two would allow me in. the connection stuff in php looks like this. define("DB_SERVER", "alxxxxx.org:3306"); define("DB_USER", "brian"); define("DB_PASS", "xxxxxxl"); define("DB_NAME", "xxxxx");
  7. I am trying to set up my database so that a script I am running on another server can access the main database. my my.cnf has #skip-networking So it should listen for TCP IP connections. but when I set the connection information to: define("DB_SERVER", "axxxxx.org"); define("DB_USER", "xxxxxxxx"); define("DB_PASS", "xxxxxl"); define("DB_NAME", "xxxxs"); I get the error: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'altimagroup.org' (10061) in C:\xampp\htdocs\xxxxxs\x.php on line 6 Can't connect to MySQL server on 'axxxxxx.org' (10061) any ideas?
  8. I think I am getting closer; I found some info that tells me I have to config mysql to allow tcp/ip I tried it but it caused scripts that were running before to crash; I think however this is because I have those looking to localhost since they are on the local host. I might try hardcoding those systems to the server name and see how that goes.
  9. Mysql is definitely running, I have the firewall turned off, I'm not sure how to re-config the port; I would think the default setup would be ok.
  10. The error I get is; Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'xxxxxx.org' (10061) in C:\xampp\htdocs\cows\cowboy.php on line 6 Can't connect to MySQL server on 'xxxxx.org' (10061)
  11. I tried that but still get the same error. Do I need to set up a virtual server on my apache? Right now I just have the basic install, then have dyndns sent requests directed to my current IP. sorry, I"m a bit of a newb to this stuff, but I appreciate all the help you guys give.
  12. I would like to run a script on one server to access the mysql database on another server (both I own). For example I want to run a script on my laptop that will read data from the mysql database on my home computer running apache 2.2 I am using dyndns to ensure I am always able to get to the computer. I have gone to the www.mypage.org and can run the scripts on that site (my computer) but the scripts on that computer are set for localhost as the domain. When I set the config up on my computer I use define("DB_SERVER", "localhost"); define("DB_USER", "fakeusername"); define("DB_PASS", "fakepassword"); define("DB_NAME", "fakedatabase"); When I set up the laptop I use: define("DB_SERVER", "mypage.org"); define("DB_USER", "fakeusername"); define("DB_PASS", "fakepassword"); define("DB_NAME", "fakedatabase"); Is there something different I need to do in the PHP, the Mysql or the apachie?
  13. Actually not solved yet. I have set it to run as a service and giving it permission to interact with the desktop in services. when I do this i get a blank screen. When I turn it off as a service the function works ok.
  14. I am using imagegrabscreen() to try and take a screenshot of an image. I have been able to get that to work but the problem is it is taking the screenshot of the web server and not the laptop I am working on. What I would like to do is to ad a button to the webpage I am making that when clicked the clients computer will take the screenshot and save it on the webserver. does anyone know how I can accomplish this?
  15. Update. I turned off apache as a service so it has to be started manually and I can get it to take screenshots. Not sure why it running as a service causes this problem. I am using apache 2.2 with windows 7. When installed as a service apache has permission to interact with the desktop.
  16. I have a script I am running that I want it to grab a screen shot when the user presses a button to do so. when I operate the function I get a black screen. I googled it and followed the instructions to get Apache to allow it to interact with the desktop; but it is still black. Ironically I had this feature running on my laptop with Apache and had no problems. Any other ideas what I might have set wrong?
  17. Ah that got it. I feel like such an idiot. I am a bit of a newbie hack to this stuff so forums like this are a real god send. Thanks.
  18. I have a script that looks to the database and collects some variable that will be echoed back inside the form field so they can update it. I had this running on another server just fine - it would give the detail inside the form field. When I installed the latest and greatest xampp on my own computer is when it started putting <? echo $detail ?> in the form field instead of what is in the variable. The HTML is right; its probably something in the php.ini settings but I don't know what it would be. Any ideas? <tr><td><label>First Name </label><input name="firstname" type="text" size="16" maxlength="16" value="<? echo $firstname; ?>"/> Also where can I get the wysiwig that is shown in the posting windows here, those are cool.
  19. Thanks, I found a good one that was easy to implement. When I looked at it the first time most of what I found were HTML writers to write web pages rather than one that is a plug in to a form. I appreciate the help.
  20. no not an editor, I want something I can put inline in a form, just like the one when you are submitting a post to this site, or adding your comments in a fark.com message board etc. It should sit above the form. When someone highlights the section of words and hits a button it adds the HTML tags to make it bold, underline etc.
  21. Does anyone know where I can get a simple HTML assistant much like the one on this page. I don't need, nor want smileys etc. I need something I can easily put into a form I am using on my web page. thanks
  22. I have an iframe that I am loading a form from another website into. What I want to do is to automatically set the focus on a button in their form. I can find the value of the form but cannot seem to set the focus then cause a click to occur. I can find buttons in my parent frame just fine and set focus and click buttons. I am using a syntax like this. window.frames["formFrame"].focus(); $('#Submit').window.frames["formFrame"].focus(); any ideas.
  23. Ken The first part really did the trick, I can't figure out what I was doing wrong with my first attempt, you are obviously way better at this than I am.... Want a quick coding job/? I edited the first half to show what you helped with there and all the boxes showed up, even without editing the bottom section. Now my next task is to convert this into checked boxes where corresponding dates exist in the database. I really do appreciate your help.
  24. ben, Now that is really funny. I would put 'days' at closer to 40. My wife would get so mad at me for that especially since she is about to download brian 1.1 in a few months!! Ken Thanks I have not tried it yet, I had tried a version of just setting the $inputmorning = array(); first but did not work. What I am trying to do is to set up a series of checkboxes that will display in a table somewhat like a calander, then ask the database if any dates on orders matches those dates in the checkboxes. Based on true or false I will make them checked. (the customer can add more days if they wish or delete days). This is a stop gap measure until I can figure out a piece of javascript that I found that has sticky days. Here is what I want it to look like now. Date Morning Afternoon Evening 2009 july 21 X 2009 july 22 X X 2009 july 23 X X X 2009 july 24 X X
  25. Sorry to bother you guys so late at nigth but I have a problem (besides women, drinking, global warming and women) I have a script where I want to pass data to an array; later I will check to see if some of the data is in the database based on a date in a form using check boxes. Basicly I am creating a series of checkboxes based on a datename. I can create them once, but later when I call that same variable array there is nothing there. Here is a snippet of my code. while ($i <15){ $inputmorning= array( $i => "Morning <input type='checkbox' name='$orderdate morning' value='' /> "); echo $inputmorning[$i]; $inputafternoon= array($i => "<input type='checkbox' name='$orderdate afternoon' value=''/> "); echo $inputafternoon[$i]; $inputafterevening= array($i => "<input type='checkbox' name='$orderdate evening' value=''/> "); $i++; } Later I try to recall all of those same check boxes with. $i=0; while ($i<14){ $date = mktime(0,0,0,date("m"),date("d")+$i,date("Y")); $orderdate = date("Y/m/d", $date); echo "<tr><td>".$orderdate . "</td><td>$inputmorning[$i]</td><td>$inputafternoon[$i]</td><td>$inputevening[$i]</td></tr>"; //echo "<tr><td>".$orderdate . "</td><td>test $i</td><td>test $i</td><td>test $i</td></tr>"; $i++; } the date shows up, but no check boxes. Any ideas. (on the script - I'm not sure anyone can help us on the global warming or women)
×
×
  • 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.