-
Posts
266 -
Joined
-
Last visited
Everything posted by devWhiz
-
put this xml data into an array but I need to change something..
devWhiz replied to devWhiz's topic in PHP Coding Help
anyone able to point me in the right direction? -
I have tried simplexml but I couldnt seem to get it.. the xml is like so <xml> <entry> <id>17</id> <name>brad</name> <age>18</age> </entry> <entry> <id>24</id> <name>clueless</name> <age>18</age> </entry> <entry> <id>22</id> <name>crazywhiteboy</name> <age>18</age> </entry> </xml> I need to get the information into an array where the ID is the attribute for the entry.. like $Info[17]['name'] so that would equal brad how can I do this? I have tried simplexml with a foreach loop $xml = simplexml_load_file("xml.xml"); foreach($xml->entry as $Info){ $ID = $Info->id; $Information[$ID]['Name'] = $Info->name; $Information[$ID]['Age'] = $Info->age; } print_r($Information); sleep(100000); That outputs a blank array.. what I can do?
-
I could do that but the script I wrote worked around values in an array Array ( [25] => Array ( [Name] => Clueless [Age] => 18 ) [15] => Array ( [Name] => Name2 [Age] => 20 ) ) and then I could call it like this $id = 20; echo $array[$id]['name']; // this would be name2
-
I use simplexml to parse the xml that is like this <xml> <data> <id>15</id> <age>18</age> <name>name</name> </data> <data> <id>23</id> <age>19</age> <name>name2</name> </data> <xml> I want to be able to grab the age and name like this $array[$id]['age']; $array[$id]['name']; where $id equals the id in each data element.. I want to get the age and name randomly use $id = rand(1,30); but I dont know how to set up the array, any help is appreciated
-
so I have a list of emails like so [email protected] [email protected] [email protected] [email protected] [email protected] say I want to remove all of the gmail and hotmail address and leave all of the yahoo address in the file, each address on a new line [email protected] [email protected] how can I do this
-
Its all from this page. Very strange.. http://www.myspace.com/mobsters_emailadds/blog/526750016 very strange? lol ok
-
[code] <article class="post-body"> <p class="mood">Current mood:<img src="http://x.myspacecdn.com/images/blog/moods/iBrads/angry.gif">betrayed</p> <div align="left"><font size="4"><b><font face="Courier">MOBSTERS MASS EMAILS LIST</font></b><br></font></div><font size="4"><font face="Courier">This list is for mobsters players only and allows you to add 45-50 people at a time. <br>What you do is copy a block of emails from the list and </font></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Click this Link</a></font><font size="4"><font face="Courier">, which takes you to the "Invite Friends" tab on the Myspace toolbar, paste the emails into the box that says "Enter Email Address" then hit enter. <br>If a captcha comes up click in the text box and just hit enter its the easiest way to deal with captcha.</font><b><font face="Courier"><br></font></b></font><font size="4"><font face="Courier">If you want to be added to the list leave me a comment with your email address(es)</font><b><font face="Courier"><br><br></font></b></font><font size="4"><font face="Courier"><font size="4">I have also included a<font size="1"> <a target="_blank" href="http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=104283&appParams=%7B%22energy_all%22%3A%22true%22%2C%22rsrc%22%3A%22not_send_energy_accept_effect%22%7D&canvas_source=appnotification">200 Free Energy Link</a> </font></font></font></font><font size="1"><font face="Courier" size="4">lol just cos i can</font><br></font><font size="4"><font face="Courier"><br><font face="Verdana" size="1">[email protected], [email protected]</font><font face="Verdana" size="1">, [email protected], [email protected], [email protected], [email protected], [email protected], gracey_91@live, [email protected]<br></font><br></font></font><font size="5"><font face="Courier">Blocks 1 <a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font></font><font size="1"><br></font><font color="#000000" face="Courier" size="1"><span style="color: rgb(255, 255, 255);"><span class="chat_message_text"></span></span></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], </font><b><font face="Courier"> <br><br><font size="5">2</font></font></b></font><font size="5"><font face="Courier"> </font></font><font size="5"><font face="Courier"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font></font><font size="1"><br></font><font size="1"><font face="Verdana"> [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected],</font><font size="1"><b><font face="Courier"><br><font size="4"><br><font size="5">8 </font></font></font></b></font><font size="5"><font face="Courier"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected],<br>[email protected],[email protected],<br>[email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], </font><b><font face="Courier"><font size="4"><font size="1"><font face="Verdana"><br><br></font></font><font size="5">9 </font></font></font></b></font><font size="5"><font face="Courier"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font></font><font size="1"><br></font><font face="Verdana" size="1">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br> </font><font size="1"><b><font face="Courier"><font size="4"><br><font size="5">10 </font></font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Courier"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], </font> </font><b><font face="Courier"><br><font size="4"><br><font size="5">11 </font></font></font></b></font><font size="5"><font face="Courier"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br><br></font><b><font face="Courier"><font size="4"><font size="5">12 </font></font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected],<br>[email protected],</font><b><font face="Courier"><font size="5"><font face="Verdana"><font size="1"><br><br></font></font>13 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected],[email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected],<br></font><b><font face="Courier"> <font size="5"><br>14 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],[email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br><br></font><b><font face="Courier"><font size="4"><font size="5">15 </font></font></font></b></font><font size="5"><font face="Courier"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],</font><b><font face="Courier"><font size="4"><font size="1"><font face="Verdana"><br><br></font></font><font size="5">16 </font></font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], </font><b><font face="Courier"><font size="4"><font size="1"><font face="Verdana"><br><br></font></font><font size="5">17 </font></font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],</font><b><font face="Courier"><font face="Verdana"><br><br></font><font size="5">18 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Courier"><font face="Verdana">[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],</font> </font><font size="5"><b><font face="Courier"><font size="1"><br><br></font>19 </font></b></font></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], </font><b><font face="Courier"><br><br><font size="5">20 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected],</font><b><font face="Courier"><br><br><font size="5">21 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], </font><b><font face="Courier"><br><br><font size="5">22 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],</font><b><font face="Courier"> <br><br><font size="5">23 </font></font></b></font><font size="5"><font face="Courier"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font></font><font size="1"><br></font><font size="1"><font face="Courier"><font face="Verdana">[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected],[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],</font> </font><b><font face="Courier"><br><br><font size="5">24 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],</font><b><font face="Courier"><br><br><font size="5">25 </font></font></b></font><font size="5"><font face="Courier"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font></font><font size="1"><br></font><font size="1"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], <br>[email protected], [email protected], <br>[email protected], [email protected], <br>[email protected], [email protected], <br>[email protected], [email protected], <br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],</font><b><font face="Courier"> <br><br><font size="5">26 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Courier"><font face="Verdana">[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], </font><br></font><b><font face="Courier"><font size="4"><br><font size="5">27 </font></font></font></b></font><font size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ=="><font face="Courier">I</font><font face="Courier">nvite Friends Link</font></a></font><font size="1"><br></font><font size="1"><font face="Courier"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],[email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],</font><br></font><font size="4"><b><font face="Courier"><br><font size="5">28 </font></font></b></font></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Courier"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], </font><br></font><b><font face="Courier"><br><font size="5">29 </font></font></b></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="1"><font face="Courier"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected],[email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], </font><br></font><font size="5"><b><font face="Courier"><br>30 </font></b></font></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br></font><font size="4"><font face="Courier"><font size="1"><font face="Verdana">[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], [email protected], [email protected], [email protected], [email protected], [email protected],<br>[email protected], </font><br><br><font size="5">31 </font></font></font></font><font face="Courier" size="5"><a target="_blank" href="http://www.msplinks.com/MDFodHRwOi8vaW52aXRlcy5teXNwYWNlLmNvbS9pbmRleC5jZm0/ZnVzZWFjdGlvbj1pbnZpdGUuaG9tZQ==">Invite Friends Link</a></font><font size="1"><br><font face="Verdana">[email protected], [email protected], [email protected],<br> [email protected], [email protected], [email protected], [email protected],</font> <br><br></font></font></font></font></font><font size="1"><br><br></font><font size="4"><font face="Courier"><font size="1"><font size="5"><br></font></font></font></font> </article> <ul class="post-footer mediaAction footer" data-blogid="526750016"> <li>4:26 AM</li> how would I go about extracting all of the emails from the page and writing them to a file, one email on each new line? if you could point me in the right direction or show me how i might be able to do this that would be great, thanks [/code] how would I go about extracting all of the emails from the page and writing them to a file, one email on each new line? if you could point me in the right direction or show me how i might be able to do this that would be great, thanks
-
I need to grab what is in between ('Row: 1, Field: 1')" and ('Row: 10, Field: 40') also, would it be possible for regex to remove certain emails from a list in this format [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], I want to remove all of the aol emails and msn emails and gmail emails and only leave yahoo.com, rocketmail.com and ymail.com, all other emails I want deleted
-
script to read text and remove certain emails?
devWhiz replied to devWhiz's topic in PHP Coding Help
so say I have this list in the file [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected] after running the script, the output file should look like this [email protected] [email protected] [email protected] [email protected] script would remove [email protected], [email protected], [email protected] is this possible? -
I have a huge list of emails in a text file in this format [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], I need a script to read the list and make a new list only including the yahoo, ymail or rocketmail email address in the format like this [email protected] [email protected] [email protected] [email protected] [email protected] so it would just need to remove all of the emails from the list that are not yahoo, rocketmail or ymail as well as the commas and put them in another text in the above format, if anyone is able to help me out with this is would be appreciated! thanks!
-
Im just having some trouble with this script, you actually helped me understand what it is that needed done when I first attempted to write the script months ago, Im having issues though... Let me try to explain I have an array like so $Values[15]['Value1'] = 15; $Values[15]['Value2'] = 1000; $Values[15]['Value3'] = 15000; $Values[15]['Value4'] = 15000; $Values[15]['Value5'] = 4000; $Values[15]['Value6'] = 0; $Values[5]['Value1'] = 5; $Values[5]['Value2'] = 3000; $Values[5]['Value3'] = 90000; $Values[5]['Value4'] = 90000; $Values[5]['Value5'] = 45000; $Values[5]['Value6'] = 0; The script calculates the best ratio for each element in the array, the ratio is determined by $Ratios[$ID] = sprintf("%.16f", $Value2 / $Value3); it then gets the ID that is associated with whatever element has the best ratio, so $Value[15]['Value2'] equals 1000 and $Value[15]['Value3'] equals 15000 the ratio would equal 0.6666666667.. the ratio for ID 5 = 0.033333333, I use max to find the highest ratio, then array search to get the ID associated with the highest ratio now this is the problem.. I use a for loop to increment the values in the array like this [/code] for($x=0; $x!=-1; $x++){ $Values[$BestID]['Value2'] += $Values[$BestID]['Value4']; $Values[$BestID]['Value2'] += $Values[$BestID]['Value5']; $Values[$BestID]['Value6'] += 10; } [/code] every time it loops, it increments value2 with value4, then takes the new value2 and adds value5, and value6 increments by 10 each loop.. well, what I want to do is, if value6 is under 10, then value2 -= value5.. I get value2 to show up correctly, but the ratio array doesnt update.., it loops, updates value2, but it doesnt update the ratio for the new cost when value6 is under 10.. This probably makes no sense.. when I try to explain, I confuse myself, let me know if I have to better explain Thank you
-
how would I reference the array inside of the foreach parameters, like this function CalculateRatios(&$ValueArray){ foreach($ValueArray as $ID => $ValueInfo){ $Value1 = $ValueInfo['Value1']; $Value2 = $ValueInfo['Value2']; $Ratios[$ID] = sprintf("%.16f", $Value1 / $Value2); } $BestRatio = max($Ratios); $BestID = array_search($BestRatio, $Ratios); return array($BestID, $BestRatio); } I have the ampersand in the function parameters, but since the array name changes in the foreach parameters, do I need to put an ampersand in front of the changed name?
-
Best language for these types of things?
devWhiz replied to devWhiz's topic in Other Programming Languages
The program would be a stand alone program in windows, that would authenticate through my servers, so if my servers are down, the program wont open, etc -
Best language for these types of things?
devWhiz replied to devWhiz's topic in Other Programming Languages
The application would be logging into a website, myspace for example, it would log into the myspace, and accept the friend requests, or... log into the myspace, fetch the data for a certain application and then use the data to load headers and such to automate certain things in the application. That is just an example. I would also want to write things like this <?php $link = "http://forums.psucomic.com/threads/"; $ch = curl_init(); $x = fopen('psuc111.html', 'a+'); for($z = 1; $z!=73600; $z++) { curl_setopt($ch, CURLOPT_URL, $link.$z); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); if(stristr(curl_exec($ch), 'No Thread specified')) { echo "No Thread specified\n"; } else { $thread_url = explode('<meta property="og:url" content="', curl_exec($ch)); $thread_url = explode('?s=', $thread_url[1]); $title = explode("http://forums.psucomic.com/threads/$z-", curl_exec($ch)); $title = explode("?s=", $title[1]); $title2 = str_replace('-', ' ', $title[0]); fwrite($x, '<a href="'.$thread_url[0].'"><b>'.$z.' : '.$title2.'</b></a></br>'); echo $thread[0]."\n"; } } fclose($x); curl_close($ch); sleep(100000); ?> I wrote that in php to load links on a forum and make an HTML with the hyperlinks to each thread available on the forum.. I would write the program and include a GUI for settings and to display information I might parse off of the page when I load.. This might be a web application, Im not real sure, thats why I got into explaining what I would write the programs to do to help you further understand what I am going to be doing to help suggest a language that suites my needs. Thanks[/code] -
Best language for these types of things?
devWhiz replied to devWhiz's topic in Other Programming Languages
aside from good interfaces, would csharp surpass what any other programming languages offer when it comes to features and other things I would need to incorporate like sessions, cookies, and other things like that? -
Best language for these types of things?
devWhiz replied to devWhiz's topic in Other Programming Languages
Ive had a few C Sharp recommendations, Java as well, what would be the main things that would make someone choose C Sharp over Java? Thanks -
Best language for these types of things?
devWhiz replied to devWhiz's topic in Other Programming Languages
Windows, I would be distrubuting to windows users, but if you could recommend a language that might be faster or better overall on linux, I would take them recommendations as well. But yes, windows would be the OS these programs would be run on. Thanks -
I was curious as to what programming language would be best for creating programs with a graphical user interface, including buttons, textboxes and such, something like this the language has to be capable with user logins, sessions, cookies and such, I would have to create code to login for myspaces, facebooks, various other social networking sites as well, Im looking for the language that would be the best for this type of programming.. right now I use php to login to various sites and such, I create scripts and run em in CLI, If I were to sell my scripts, someone who is not familiar with how things work wouldnt be able to edit the settings I set in the script to make it work how they want or set the script to do certain things.. So what language would you recommend for making programs like that? I would consider distributing the software as well once I get some experience, so the language would have to allow me to add security so it cannot be pirated among the ones I distribute it to as well.. And for whatever language you recommend, could you maybe point me in the right direction to where I might be able to learn the basics and the language in general Im up for suggestions towards books, websites, anything.. Thank you ! -CLUEL3SS
-
I did not write this <?php function addandsubtract ($firstvalue, $secondvalue){ $firstreturnvalue = ($firstvalue + $secondvalue); $secondreturnvalue = ($firstvalue - $secondvalue); $myarray = array (); $myarray[0] = $firstreturnvalue; $myarray[1] = $secondreturnvalue; return $myarray; } $myarray = array (); $myarray = addandsubtract (10, 3); echo $myarray[0] . "<br />"; echo $myarray[1]; ?> It was just one of the very few results I found when I was googling how to return in a function,trying to a find a solution to my problem
-
& makes the variables global right?
-
I mean do I have to use $variable = variable($one, $two, $three); to access the array values the are being returned in the function? because to access what is being returned in the function I would have to do $variable[0], $variable[1], etc
-
Ahhh I see I see, I don't know why that didnt register to me now is it possible to echo it without doing $variable = variable($one, $two, $three); just curious as to if its possible, thank you for the help btw, youre great
-
echoing each entry of the array in the function, outside of the function <?php $one = 20; $two = 25; $three = 30; function variable($a, $b, $c){ $a = $b + 10; $b = $c + 15; return $b; } $variable = variable($one, $two, $three); echo $variable; ?> the above echos the value for $b <?php $one = 20; $two = 25; $three = 30; function variable($a, $b, $c){ $a = $b + 10; $b = $c + 15; return array($a, $b); } $variable = variable($one, $two, $three); echo $variable; ?> that echos Array print_r shows both the $a and $b values, how would I echo just the $b value or just the $a value? Thanks
-
calling variable outside of the function? Sorry I'm a little confused
-
now how would I call the variable?