
Appzmaster
Members-
Posts
31 -
Joined
-
Last visited
Never
Everything posted by Appzmaster
-
I guess I am on my own with this one.
-
Maybe using a continue; ?
-
Well here is what actually updates the twitter status it connects to the db further up and uses a while to run this stuff require("config/config.php"); require("config/opendb.php"); require ("Twitter.class.php"); //Grab content from MySQL $data = mysql_query("SELECT * FROM users") or die(mysql_error()); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $data )) { // check whether get variables are existing and read xml file if (file_exists($path.$file)) { $xml = simplexml_load_file($path.$file); $xbltweet2 = $xml->Gamertag; $xbltweet = $xml->PresenceInfo->Info; $xbltweet1 = $xml->PresenceInfo->Info2; //if ($xml->PresenceInfo->Online == false){ //Some Code Once I figure It Out //}else{ //data to get $tuser = $row[twitteruser]; $tpassword = $row[twitterpass]; //echo $tuser $tweet = new Twitter("$tuser", "$tpassword"); // Set a new status. This can be called multiple times on the same object. // The update() function returns true if the status update was successful or // false if an error occured. In case of an error, a string describing the error // is stored in the error variable of the object (in our case $tweet->error) $success = $tweet->update("$xbltweet2 : $xbltweet : $xbltweet1"); if ($success) echo "Tweet successful!"; echo $tweet->error; } }
-
[SOLVED] printing individually selectable mysql rows to screen
Appzmaster replied to debuitls's topic in PHP Coding Help
I was just typing that same solution up as a suggestion -
[SOLVED] printing individually selectable mysql rows to screen
Appzmaster replied to debuitls's topic in PHP Coding Help
Would making each row a link work for your situation? -
Maybe you should try reformatting that if statement try something like if (condition) code to be executed if condition is true; elseif (condition) code to be executed if condition is true; elseif code to be executed if condition is false; else code to be executed if condition is true; //And so on.... Split each of the bad words up with the elseif but hey I am fairly new to this so that's just my 2 cents.
-
I have a script that updates a users status on twitter based on their xbox live info it works all great but I need to implement something that will allow it to only update users status if their xbox live status is online else it just spams the account away. I am pretty new to using arrays and what not so I am not really sure where to start with having it check that condition and if they are offline it would just skip to the next user in the database and not run the update on their account.
-
I shut off display_errors in php.ini that should keep the script quiet
-
Well then if you know how tell me cause I don't when the API server gets a bad name it just displays a HTML page saying ERROR which has no XML hence the error when you give it a bad name I just go to the php.ini and disable display errors that stops the messages.
-
Well they are just bad formatted XML files as the file name was weird my content server displays info from my API server the API server returns results and my content server stores the results as XML so I can cache the info and not whack the hell out of my API server lol. Once a weird name is sent it scrambles my XML hence the XML error. To me thats not that big of a deal as if I have error reporting off no one will see the errors.
-
I usually have error reporting off on that script but I was testing things also that is how I am using the simplxml:load function.
-
I finally started laying it out a little nicer also I will be adding a top games played based on the searches this weekend I hope
-
sure just shoot me a PM or what ever with your IP I have really strict firewall rules also strict mod_sec rules that will block in the firewall also.
-
OHHHH thats easy here: http://xbltwitter.com/phpfreakstesting.html
-
A document? like me typing I own this? lol I figured with how crude the layout and coding is it would be obvious. I don't know what document would show that I own it.
-
LOL I know it looks like shit but it is just something a threw together in a few hours to see if it is something interesting for people. i just hope it is not full of holes -.- lol
-
I had a small little project I was working on and decided I wanted to make it public if anyone could just bang away at it for a little that would be great. The idea is simple you enter a gamer tag and it gives you their info or tells you if that tag exists. Note the info is usually about 60 seconds delayed as I cache the data not to abuse the API server. http://xbltwitter.com/
-
Formatting VCard Data From A MySQL Table
Appzmaster replied to Appzmaster's topic in PHP Coding Help
Ok I will try that and you were helpful don't worry =) -
Formatting VCard Data From A MySQL Table
Appzmaster replied to Appzmaster's topic in PHP Coding Help
If I had that option I would love to do that but the thing is this is sort of an addon I am working on I have no control over the values going in as it is created by another application that is all java based I suppose I could rip it apart but I have never worked much with java before. -
Formatting VCard Data From A MySQL Table
Appzmaster replied to Appzmaster's topic in PHP Coding Help
Yes that is a copy and past from the field in the table. I am quite the noobie with php I have been playing with it a lot lately I love it so far. -
Formatting VCard Data From A MySQL Table
Appzmaster replied to Appzmaster's topic in PHP Coding Help
Actually the first replay is almost exactly what I have. The issue is the data in the table looks like XML to me and I was looking for a way to parse that info and display it how it should look like Name: Foo Org: Foo .inc etc I will post the data in the table also. <?php include 'config.php'; include 'opendb.php'; //include 'vcard.php'; //include 'Contact_Vcard_Parse.php'; $profile = $_GET['lookup']; if ( $profile == "" ) { exit("<h1> This user does not exist! </h1>"); } //Query database for VCard info $result = mysql_query("SELECT * FROM ofVCard WHERE username='".$_GET['lookup']."'") or die(mysql_error()); echo "<table border='1'>"; echo "<tr> <th>User Name</th> <th>Profile</th> </tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { $profilename = $row; // Print out the contents of each row into a table echo "<tr><td>"; echo $row['username']; echo "</td><td>"; echo $row['vcard']; echo "</td></tr>"; } if ( $profilename == "" ) { exit("<h1> This user does not have a profile yet! </h1>"); } echo "</table>"; ?> <vCard xmlns="vcard-temp"><N><FAMILY></FAMILY> <GIVEN>Gerry</GIVEN> <MIDDLE/> </N> <ORG><ORGNAME/> <ORGUNIT/> </ORG> <FN>Gerry</FN> <URL/> <TITLE/> <NICKNAME/> <PHOTO><TYPE>image/jpeg</TYPE><BINVAL>Lots of crazy text</BINVAL></PHOTO> <EMAIL><HOME/><INTERNET/><PREF/><USERID>gsvetly@</USERID> </EMAIL> <TEL><PAGER/><WORK/><NUMBER/> </TEL> <TEL><CELL/><WORK/><NUMBER/> </TEL> <TEL><VOICE/><WORK/><NUMBER/> </TEL> <TEL><FAX/><WORK/><NUMBER/> </TEL> <TEL><PAGER/><HOME/><NUMBER/> </TEL> <TEL><CELL/><HOME/><NUMBER/> </TEL> <TEL><VOICE/><HOME/><NUMBER/> </TEL> <TEL><FAX/><HOME/><NUMBER/> </TEL> <ADR><WORK/><PCODE/> <REGION/> <STREET/> <CTRY/> <LOCALITY/> </ADR> <ADR><HOME/><PCODE/> <REGION/> <STREET/> <CTRY/> <LOCALITY/> </ADR> </vCard> -
I have a database that has a table that stores vcard info from my messaging system. I am looking for a way to format this data on a web page I can parse the info if I paste it to a file and use a php class to parse it but i want to parse the data directly from the database possibly to a table on the web page. If anyone knows a way please let me know I have been up all night trying to get it to work. Thanks in advance.
-
I just finished getting a system working that shows all the users of a messenger system I have and turns all the names into links which once clicked show the users profile. The profile page is shotty as I am not to experienced in XML and the data stored in the MySQL table appears to be xml so i am not sure how to display that info right yet but for the most part it does what it is suppose to. I just want to throw out the link for people to test it to see if they can find possible exploits or bugs feel free to play with it. Here is the link: http://officialmc.com/messenger/ I thank you in advance for any help.
-
I don't usually say so but I kinda agree its not well put together but its a good start I made a ASP.net web based proxy =) needs alot of work though. keep it up though could be something good also try using an encoding system like base64 or rot13 or something because some content filters look for keywords so if its not encrypted will still be blocked.
-
ok done =) thanks