Jump to content

squiggerz

Members
  • Posts

    59
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

squiggerz's Achievements

Member

Member (2/5)

0

Reputation

  1. Yeah, I was trying to bold that part, but apparently you can't do that within the[]code tags or something. No worries.
  2. Simple 'if' statement: if(@form_vars($_POST['action']) <> 'something' What does that <> operator mean? Is that literally less than or greater than?
  3. Try adding one more \ to the beginning. \\\vpvault\Backup\Miller\ I think the code is looking at your first \ as an escape character, so it's not displayed, now why it wouldnt show the other 2 as escapes, I dunno. But try that and see if it works.
  4. I'm pretty sure you can't pass an input tag's value to the next page without a form action, which would need an action from a user.. I hope someone proves me wrong though, that'd save me a lot of session hassle as well.
  5. You could just set them as session variables like $_SESSION['test'] = "blahblah"; Then just make sure you do a session_start(); at the beginning of each script. EDIT: blah, ninja'd
  6. Well it's not really going to be geared towards mainstream cms type usage, it's for a local advertising/directory network, it will maintain customer ads/banners as well as phone numbers and addresses on about 12 different sites. Think of a CMS that manages the data for http://www.yellowpages.com But anyway, the 3 database situation is meant to ensure that anytime someone accesses one of the 12 sites that the database is linked to, they will be able to access the information they are looking for. I know being able to ensure 100% availability is almost completely impossible, but I'm trying to cover as many bases as possible. The information in the database is minimal, mostly containing paths and small amounts of code for each individual ad/banner/info, so the 3 database set up seemed feasible from that standpoint. Even just a second database would probably work, the 3 database idea was sent down from above me, so I really don't have a whole lot of pull to change that unless I can find a much better idea. I hope this at least kind of explains what I'm trying to do, happy to hear any ideas you might have, it means a lot
  7. So I'm building my own CMS, mainly PHP, some js/ajax and all backed by a mySQL db. I want to have 3 separate databases that will be added to, deleted from, updated all concurrently, so to put it better, I'll have three identical databases all the time. The idea is if one goes down, one of the other two will pick up the slack.. somehow. I have two questions, and I don't necessarily need a definite answer, just a push in the right direction. I'm not sure if I'm just using the wrong search engine terminology or what, but I've done quite a bit of research and I can't seem to get on the right track. Anyway: 1. Is there any way I can set up these three databases to work the way I want to? That is to say if someone accesses a page that gets data from the db, that if the first db on one server is unavailable, it would be able to pull from another in a fluid fashion? 2. If I have these three dbs, and I make changes to them all simultaneously, is there any sort of verification that I can set up that will make sure all of them get changed so the data stays concurrent? Like I said, even a gentle shove in the right direction would be appreciated, I don't care to read and learn like everybody else, but I'm spinning my wheels here.. Thanks, Sq
  8. maybe (COMPOSITE)+(.*?)([ ])+(.*?)([ ])+(.*?) match [5] being the second set? Are you just trying to get to the "AGRI" word?
  9. Ok, let's say I preg_replace the a name="blah blah blah"> tag with nothing. Now I'm left with a whole bunch of '/a>' tags, can I use some sort of preg replace or something that checks only for ending 'a' tags that are NOT preceeded by opening a tags before hitting a preceeding '/a' tag? Maybe something like: ((??<!(?:<a (.*?)>)).)*) Yeah I know, I'm terrible with regex.. lol
  10. Have you taken the little '@' off of the include_once to see if you have any warning messages?
  11. I sort of asked this in the regex section but this may require a more general answer, I'm not sure. Here's what I got: <a name="blah blah blah"> <b> Blah blah blah </b> </a> I added the spaces in between the tags for readability, they are either there or not in the code I'm trying to mutate. What I'm trying to do is get rid of the opening and closing 'a' tags, is there an easy way to do this and make sure that only THAT set of 'a' tags get removed and leave the rest alone? Thanks, Sq
  12. Ok... I kinda came up with the same thing but I have another question... ((??!<(?:b|font|/li)).)*) Can I use that type of set up to remove a set of tags in some code but not the stuff between those tags? You see, I have these <a name="blah blah"><b><u>Stuff here</u></b></a> blocks of code... I'd like to remove just the <a name="blah blah"> and </a> tags, without affecting other 'a' type tags, like <a href tags.. Also can someone point me in the direction to where I can learn more about the assertions like ?: ?! and ?=, php.net doesnt seem to explain it in easy enough language for me to grasp. Thanks, Sq
  13. Post us some code.. always helps.
  14. <?php if (!isset($_POST['Fetch'])){ ?> <html> <head> <title>File Fetcher</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <table border="1"> <tr> <td colspan="2"><center><b>File Fetcher</b></center></td> </tr> <tr> <form method="post" action="<?php echo $PHP_SELF;?>"> <td><input name="fpath" type="text" size="60"></td> <td><input name="Fetch" type="submit" value="Fetch File"></td> </form> </tr> </table> </body> </html> <?php } else { $fpath = $_POST["fpath"]; echo '<a href="'.$fpath.'"><input type="button" name="Fetch" value="Fetch File"></a>'; } ?> That worked for me.. aside from the link I put in.. because it wasnt really a link lol.. but it echoed in the right spot and make the button clickable.. you didnt just copy & paste what I wrote out earlier did you?
×
×
  • 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.