Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
~16.4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Danny159

Hey guys, I have the following code... And what I want it to do but cant get it to do is add up all the price fields and change the sum every time a number is changed or a new line is added... but its not working? Can anyone see …

Member Avatar for AndreRet
0
5K
Member Avatar for Danny159

Hey! Having some more fun with htaccess again! - I have tired everyhting and cant get it to play... Below is my code: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{REQUEST_URI} !(/$|\.) RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] RewriteBase /v2/ RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f # Admin Pages …

Member Avatar for andrevanzuydam
0
286
Member Avatar for Danny159

Hey! I have the following code for htaccess that directs /page/ to /page.php etc RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{REQUEST_URI} !(/$|\.) RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] #RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^([a-z0-9\-]+)/?$ $1.php [NC,L,QSA] However, I want to also add /admin/page/ that …

Member Avatar for Dani
0
535
Member Avatar for Danny159

Hey! I am a bit stuck with my htaccess... let me explain how I want it to work... I have a wildcard subdomain, for example, demo1.domain.com, demo2.domain.com... I want htaccess to take whatever the subpart of the domain is and pass it as a variable... Options +FollowSymlinks RewriteEngine On RewriteCond …

0
184
Member Avatar for Danny159

Hey, I have the following htaccess file but cant get the dam thing to work... I need the following... /admin/test/ -> /admin/test.php /home/ -> home.php (/xx/ -> xx.php Then to include ?key=var.... etc RewriteEngine On RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^admin/(.*) admin/$1.php [L] RewriteRule ^([a-z0-9\-]+)/?$ $1.php …

Member Avatar for Dani
0
269
Member Avatar for tapuwa2002

Hi guys I was hoping you could help I would like to add 10000 records in mysql db.All once with after running a single php script. in one of the fields should generate 10000 rand generated numbers. Any suggests would really help. I was thinking of a for loop. [CODE] …

Member Avatar for cereal
0
3K
Member Avatar for Danny159

Hi, I have a field that a user add's a curreny value to, on keyup I fire a Javascript function that checks the following but its not working at all... What I want it to do is... user add's say 10 On keyup the Javascript needs to add .00 to …

Member Avatar for Danny159
0
181
Member Avatar for Danny159

Hey, I am working on a project that requires dynamic sub domains... for example user1.mydomain.com and user2.mydomain.com etc... But I am having some trouble... I have setup the wildcard A record and all of that is working fine. The problem is my application uses ajax and because the domain is …

Member Avatar for Danny159
0
209
Member Avatar for Danny159

Hi, I have the following htaccess file: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule .* - [L] DirectoryIndex /index.php RewriteRule ^([^/.]*)$ $1/ [R] RewriteRule ^([^/.]*)/$ /$1.php [QSA] </IfModule> This works fine, if I put for example /legal/ it loads up …

Member Avatar for Danny159
0
166
Member Avatar for Danny159

Hi All, I have the following script that works fine, it createds a png of the first page of a given PDF. However I also want to screenshot the first page of a .doc file. Can this be done with imagick as well? $im = new imagick($pdf.'[0]'); $im->setImageFormat("png"); $getfilename = …

Member Avatar for andrevanzuydam
0
110
Member Avatar for Danny159

Hey guys... I have some code im using in a sub directory called /manager/ and I have the following htaccess file RewriteEngine on RewriteOptions inherit RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule .* - [L] Options +Indexes IndexOptions +FancyIndexing #Rules for root RewriteRule ^$ /index.php RewriteRule …

Member Avatar for LastMitch
0
114
Member Avatar for Danny159

Hey guys, I am currently learning wordpress and I am having some trouble with Custom Post Types... I have added all the code for custom post types in my theme functions.php file however the links to the single posts done seem to work... they just go to my 404 page? …

Member Avatar for brainfo
0
123
Member Avatar for Danny159

Hey guys, I am having some trouble with json_decode... I used json_encode to encode a string that is the following: {"id":"121","firm":"DSD","address":"Test","address2":"Test","city":"Test","region":"Test","postcode":"Test","countryid":"13","firmtype":"Marketing","phone":"01545454587","fax":"","email":"dan@test.com","url":"http://www.test.com","mainuser":"Dan","contacts":"dan@test.com","info":"","numstaff":"15","numoffices":"1","disc":"","cat":"{"35":"1"}"} And I am using this php code to try and get it back into an array... however its just not working... the print_r(); doesnt echo anything out at all... …

Member Avatar for Danny159
0
187
Member Avatar for Danny159

Hi! I have the following table: <table width="63%" border="0" align="right" cellpadding="0" cellspacing="0" class="findUsResults"> <tr> <th align="left">Company</th> <th align="left">Location</th> <th align="left">Products offered</th> <th align="left">Distance</th> </tr> <tr> <td rel='1'>Company Ltd</td> <td>Town</td> <td><a href="/stockists/ajax.php?id=3" class="various fancybox.ajax">Click to view</a></td> <td>0.9 mil</td> </tr> <tr> <td rel='2'>Company Ltd</td> <td>Town</td> <td><a href="/stockists/ajax.php?id=5" class="various fancybox.ajax">Click to view</a></td> <td>11.56 …

Member Avatar for Danny159
0
177
Member Avatar for Danny159

Hey Guys, I am having some trouble... I have the following XML from Google: <GeocodeResponse> <status>OK</status> <result> <type>street_address</type> <formatted_address> 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA </formatted_address> <address_component> <long_name>1600</long_name> <short_name>1600</short_name> <type>street_number</type> </address_component> <address_component> <long_name>Amphitheatre Pkwy</long_name> <short_name>Amphitheatre Pkwy</short_name> <type>route</type> </address_component> <address_component> <long_name>Mountain View</long_name> <short_name>Mountain View</short_name> <type>locality</type> <type>political</type> </address_component> <address_component> <long_name>Santa …

Member Avatar for veedeoo
0
176
Member Avatar for Danny159

Hey, I have the following code and I am trying to get Google Maps API to add a parker to each location and thats working fine! However, I cant seem to get my tab's working in each info window? Here is my code: <script type="text/javascript"> var locations = [ ['Jackson …

Member Avatar for pritaeas
0
301
Member Avatar for Danny159

Hi Guys, I have the following code in a massive string... but there all different: ##component5#?1,4,1## They all start with ##component and end with ## but the bit in the middle can be anything... and I need to remove this text completely from the string... What would be the best …

Member Avatar for pritaeas
0
115
Member Avatar for Danny159

Hi All, I have a WordPress installation at the following: http://www.domain.com/wordpress/ However I need some help... When a use goes to http://www.domain.com I want it to redirect to http://www.domain.com/wordpress/ however I want to hide the /wordpress/ so the user only sees http://www.domain.com But it still needs to work with links …

Member Avatar for Beattle55
0
242
Member Avatar for Danny159

Hey guys, I have a script that will resize an image, .jpg, .png or .gif The .jpg works fine! But the .png doesnt work at all and I just cant get it to work... On from URL I get the following: ‰PNG  IHDR,Éᘧ Why is this? I have a …

Member Avatar for Danny159
0
176
Member Avatar for Danny159

Hey guys, I need some help with preg_replace() I have something like this.... {$gallery_20} And I want to use preg_replace to replace it with nothing.... however gallery_20 can be anything... but im not sure on the patten... Can anyone help please? I don't understand how to change all this.... $patterns …

Member Avatar for pritaeas
0
102
Member Avatar for Danny159

Hey guys, I am looking to encrypt some data into a database, however it will need to be decypt to be read... I know there is the base64 commands but im looking for something a little more secure? Does anyone know of any good solutions? Dan

Member Avatar for pritaeas
0
100
Member Avatar for Danny159

Hey, We have a good few websites that use Google's reCAPTCHA and in the past 24 hours spammers have been bypassing the reCAPTCHA... has anyone else been having this problem?? Or know of a fix. Spammers haven't been able to use the form until last night when somehow they got …

Member Avatar for Danny159
0
78
Member Avatar for Danny159

Hey guys, How would I work out the date range for the current week...? Then +1 week or +2 weeks time... I hope you understand... So... This week... 20.02.2012 26.02.2012 +1 week will be 27.02.2012 04.03.2012 I will set an offset url variable Thanks Dan

Member Avatar for Danny159
0
105
Member Avatar for Danny159

Hey guys, I need a bit of help... I have the following.... [CODE] <input name="title[1]" type="text" id="title[1]" size="30"> <textarea name="desc[1]" id="desc[1]" cols="50" rows="5"></textarea> <textarea name="keywords[1]" id="keywords[1]" cols="50" rows="5"></textarea> <hr> <input name="title[2]" type="text" id="title[2]" size="30"> <textarea name="desc[2]" id="desc[2]" cols="50" rows="5"></textarea> <textarea name="keywords[2]" id="keywords[2]" cols="50" rows="5"></textarea> <hr> [/CODE] Thing I want to …

Member Avatar for phper
0
87
Member Avatar for Danny159

Hey guys, I am in the process of making a website that will take file uploads for different things... 1. Add Photos to a project 2. Add Profile photos 3. Add Gallery photos But I was to use the same uploader for each section of the site but im not …

Member Avatar for diafol
0
77
Member Avatar for Danny159

Hey, My following code doesnt seem to be working, it doesnt change the onclick function when you click the image... can someone please help me? Jquery is includes at the top of my page... [CODE]<script type="text/javascript"> function addfav(id){ var div = '#fav_'+id; $(div).attr("src","images/star.png"); $(div).unbind('click'); $(div).click(function() { removefav(id); return false; console.log('did …

Member Avatar for Danny159
0
154
Member Avatar for Danny159

Hey... Can anyone help me fix this error please... [CODE]Parse error: syntax error, unexpected T_STRING in /mailer.php(45) : eval()'d code on line 1[/CODE] Line 45 is [CODE]eval("\$body = \"$body\";");[/CODE] But im not sure how to fix it :/ Dan

Member Avatar for Danny159
0
77
Member Avatar for Danny159

Hey, I am having some trouble with Google Maps API... I have the following code: [CODE]function geocodePosition(pos) { geocoder.geocode({ latLng: pos }, function(responses) { if (responses && responses.length > 0) { updateMarkerAddress(responses[0].formatted_address); } else { updateMarkerAddress('Cannot determine address at this location.'); } }); } [/CODE] However this shows the full …

Member Avatar for Airshow
0
166
Member Avatar for Danny159

Hey, I am a programmer in PHP Procedural and have just applied for a new job to further my career as a PHP Programmer, however they said it's advised to learn PHP OOP... so I have been watching some tutorials about PHP OOP and it just looks like OOP is …

Member Avatar for diafol
0
212
Member Avatar for Danny159

Hey guys! I have the following script... Resize works... Scaleup works... but watermark, black and white doesnt work or sepia... Can anyone see why? Or help? Thanks Dan [CODE] <?php header ("Content-type: image/jpeg"); ini_set("memory_limit","80M"); /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ REQUIRES PARAMS: path - path to file from domain root w - sets width to …

Member Avatar for Danny159
0
164