Jump to content

phpinfo()

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Everything posted by phpinfo()

  1. I have a php function that is getting and displaying a list of text. - I am trying to make it so each text item displayed will also be a link. (The link will be a javascript link to put the specific line of text into a form field) <script> function inserttexttoformfield() { var newtext = '<?php echo htmlentities($variable) ?>' + ','; document.f1.outputtext.value += newtext; } </script> <a href="javascript:inserttexttoformfield();"><?php echo htmlentities($variable) ?></a> This works, but if you have a list of 10 items, each has the same link as whatever the last item was. For example, if you have a list displaying numbers 1-10, each number will have a link for 10 to post to the form. How can I have a "running" link for each item? Would I post the php variable + another character that I call to?
  2. http://www.rovexchange.com/wc_maritime_employment.php Any issues with our site. Specifically with the database login - exploits, injections, errors etc. Thanks!
  3. I am not really asking for opinions at all. I am asking how programmers on the forum think something like this would be done. Is this done through special software, or could you theoretically program this in php on a server with switched lines?
  4. I understand how some might find it to be an inconvenience. I am just trying to figure out how these companies do it and if one could do it on their own. It anybody has any ideas, it would be great if you could share them. Also if anybody has other ideas on how to further verify a user, short of credit card or SSN verification, it would be great if you could share that as well. But ultimately I am looking for info on the phone verification system.
  5. Yeah definitely. - If anybody has an idea on this, it would be great if you could post your thoughts or some code.
  6. If I had a computer hooked to a modem with multiple lines available, would it be possible to create a script that would send a verification code to a phone, which the receiving party would hear the code in a computer voice and then have to enter the code to finish the form or whatever? Basically creating a service that these sites offer: http://www.formvalidator.net/phone_forms.html http://www.onverify.com/ http://www.phoneconfirm.com/Index.aspx How is this done? Would it be possible to program and run something like this yourself? Thanks!
  7. This basically pulls an RSS feed and displays it on your site.
  8. Any tips on how I might update this to avoid using fopen? <?php $insideitem = false; $tag = ""; $title = ""; $description = ""; $link = ""; function startElement($parser, $name, $attrs) { global $insideitem, $tag, $title, $description, $link; if ($insideitem) { $tag = $name; } elseif ($name == "ITEM") { $insideitem = true; } } function endElement($parser, $name) { global $insideitem, $tag, $title, $description, $link; if ($name == "ITEM") { printf("<dt><b><a href='%s' class='cyanText' target=_blank>%s</a></b></dt>", trim($link),htmlspecialchars(trim($title))); printf("<dt>%s</dt><br><br>",htmlspecialchars(trim($description))); $title = ""; $description = ""; $link = ""; $insideitem = false; } } function characterData($parser, $data) { global $insideitem, $tag, $title, $description, $link; if ($insideitem) { switch ($tag) { case "TITLE": $title .= $data; break; case "DESCRIPTION": $description .= $data; break; case "LINK": $link .= $data; break; } } } $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); $fp = fopen("http://www.feed.com/rss/feed/index.xml","r") or die("Error reading RSS data."); while ($data = fread($fp, 4096)) xml_parse($xml_parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); fclose($fp); xml_parser_free($xml_parser); ?>
×
×
  • 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.