Jump to content

sillysillysilly

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sillysillysilly's Achievements

Member

Member (2/5)

0

Reputation

  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.
×
×
  • 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.