J0K3R's Profile
Reputation: 13
Tradesman
- Group:
- Contributor w/DIC++
- Active Posts:
- 298 (0.18 per day)
- Joined:
- 19-December 08
- Profile Views:
- 8,186
- Last Active:
May 24 2012 03:08 AM- Currently:
- Offline
Previous Fields
- Country:
- ZA
- OS Preference:
- Mac
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- XBox
- Your Car:
- Who Cares
- Dream Kudos:
- 75
Latest Visitors
-
modi123_1 
28 Dec 2011 - 09:45 -
DimitriV 
22 Dec 2011 - 14:39 -
kallanar 
01 Oct 2011 - 06:58 -
NurulH 
18 Sep 2011 - 21:29 -
vandallist 
09 Mar 2011 - 01:47
Posts I've Made
-
In Topic: POST XML Data to server
Posted 6 Jan 2012
ok I got it working after a bit of playing around.
The key here is to make sure the data you send through is formatted correctly and also the SSL Verify Settings are set. Here is the code I used.
//Define POST URL and also payload define('XML_POST_URL',$url); $strdata = array('XML' => 'here goes the XML'); //Initialize handle and set options $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, XML_POST_URL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $strdata); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); //Execute Request $result = curl_exec($ch); //Check for Errors if(curl_errno($ch)){ $result = 'ERROR -> '. curl_errno($ch) .':'. curl_error($ch); } else { $returnCode = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE); switch($returnCode){ case 200: break; default: $result = 'HTTP ERROR -> '.$returnCode; break; } } //close the Handle curl_close($ch); //Output the Results echo $result; //Exit the script exit(0); -
In Topic: Link Color
Posted 26 Dec 2011
mindiapolis, on 26 December 2011 - 09:30 PM, said:the menu is in a function
function navBar() { echo "<div id = \"navBar\">"; echo "<ul id=\"menu\">"; echo "<li class=\"menuOption\"><a href=\"test.php\">Home</a></li>"; echo "<li class=\"menuOption\"><a href=\"managementTeam.php\">Management Team </a></li>"; echo "<li class=\"menuOption\"><a href=\"charities.php\">Rescue Organizations </a></li>"; echo "<li class=\"menuOption\"><a href=\"treats.php\">Treats </a></li>"; echo "<li class=\"menuOption\"><a href=\"checkOut.php\">Orders</a></li>"; echo "</ul>"; echo "</div>"; }
here's the external css file
#navBar { background-color: #CD5555; width: 200px; padding-top: 50px; padding-bottom: 250px; float: left; } #navBar #menu { margin-right: 6px; } .menuOption a{ color: #ff0000 !!important; background-image: url(assets/bone2a.gif); background-repeat: no-repeat; padding-bottom: 25px; list-style-type: none; height: 20px; padding-top: 26px; text-align: center; } body { background-color: #933; color: #D9D9D9; } #logo { text-align: center; margin-top: 5px; } #footer { font-style: italic; text-align: center; }
Why dont you add the background image to the <li> instead of the <a> but still it shouldnt remove the background image..
Remove the !!important from that color aswell.
Add Display:block; to the CSS for the a items aswell. -
In Topic: Link Color
Posted 26 Dec 2011
-
In Topic: Link Color
Posted 26 Dec 2011
mindiapolis, on 26 December 2011 - 09:01 PM, said:I'm really confused. I pasted screenshots so you can see what it looked like
first of all... You pasted it into a Word document.. and then added the Doc File.
Second of all I dont see why you say it didnt work.. in the Screenshot the link colors turned black when you added the CSS like Atli told you to?
Please specify why that didnt work? -
In Topic: Link Color
Posted 26 Dec 2011
Atli, on 26 December 2011 - 08:53 PM, said:Sorry, but I refuse to use Word documents on principle.
Judging by the size of it, I'm assuming you're just wrapping images into a Word document? Upload them here directly if you expect us to be able to look at them.
J0K3R said:
Atli. any reason you would use RGB instead of Hex color codes?
Not really no. I just prefer the way it looks.
It's basically the same thing, really, just in a more human-readable format. I mean, why type out #RRGGBB, where each color is a 00-FF HEX range, when you can just type of each color in our typical 0-255 range.
Unless you're really really starved for bandwidth...
Its easier for me to work with because photoshop gives the Hex value by default.. I just wondered.
My Information
- Member Title:
- D.I.C Regular
- Age:
- 27 years old
- Birthday:
- October 1, 1985
- Gender:
-
- Location:
- Bloemfontein
- Full Name:
- Janes Oosthuizen
- Years Programming:
- 5
- Programming Languages:
-
Well known : PHP, Classic ASP, Javascript, HTML/CSS, jQuery, SQL
In Progress : ASP.NET, C#
Contact Information
- E-mail:
- Click here to e-mail me
- MSN:
-
janesoosthuizen@hotmail.com
- Website URL:
-
http://www.janes.co.za
- Skype:
-
janes.oosthuizen
- Twitter:
- JanesOosthuizen
Friends
|
|


Find Topics
Find Posts
View Reputation Given

|
Comments
J0K3R has no profile comments yet. Why not say hello?