Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Tags
Member Avatar for EvilOrange

I'm sure this has been asked before but I searched to no avail. I'm very pleased that Apple include Apache2 and PHP in all their builds but the fact they don't include GD, PDO_mysql and mcrypt (among others) isn't so great. I had this sorted until a recent update by …

0
67
Member Avatar for EvilOrange

i have this code: [CODE] var current; startOff = $('#all').offset(), offString = "{top :"+ startOff.top +", left :"+ startOff.left + "}"; current.css(offString); [/CODE] When "offString" is alerted its fine - eg {top: 123, left: 342} BUT it doesn't seem to like it, but when the alerted output is added into …

Member Avatar for EvilOrange
0
94
Member Avatar for EvilOrange

Today went to use GD within PHP and a simple check of phpinfo() showed it wasn't installed, but running php -m show that both (pdo_mysql and gd) where installed. Does anyone know how to sort this? [INDENT] [CODE] - PHP Modules ctype curl date dom exif filter ftp gd <-- …

Member Avatar for EvilOrange
0
214
Member Avatar for EvilOrange

Just posted this in the PHP forum, but thought it was the wrong place: [URL="http://www.daniweb.com/forums/post1092005.html#post1092005"]pdo_mysql and gd recognised/enabled in terminal but not on phpinfo()[/URL] which is basically: I've got GD and pdo-mysql enabled on my version on php (ran php -m to check and they are both there) but when …

0
83
Member Avatar for EvilOrange

Hi, I want to apply a different style to my site if javascript is disabled to the user experience is unaltered. I'm using PHP so is there a method i could employ? - i know there isn't a specific javascript detection function within php itself. i would just put a …

Member Avatar for almostbob
0
56
Member Avatar for EvilOrange

every thing works till the fopen, the sprintf works as i'm printing to check that. i just doing know what is causing this not to work it prints "cannot open (null)" but the filename var does have something assigned to it. any help will be welcomed [CODE="c"] char tmpfilename[10]; char …

Member Avatar for EvilOrange
0
256
Member Avatar for EvilOrange

i'm trying to parse a string of digits that can be 1 to 3 chars long, but how to do this is eluding me. would an isDigit method work? like this: [CODE="c"] if(isdigit(vararray[v])){ if(isdigit(vararray[v+1]) || vararray[v+1]==NULL){ if(isdigit(vararray[v+2]) || vararray[v+2]==NULL){ if(isdigit(vararray[v+3]) || vararray[v+3]==NULL){ return; } return; } return; } return; } …

Member Avatar for Salem
0
97
Member Avatar for EvilOrange

hi was just wondering what the difference is between the echo and print_r commands bacause when i run this code: [INDENT][CODE]<?php $output = "this sentence"; $face = explode(" ", $output); print_r($face); echo $face; ?>[/CODE][/INDENT] it outputs Array ( [0] => this [1] => sentence ) Array so the echo isn't …

Member Avatar for EvilOrange
0
121
Member Avatar for EvilOrange

i'm trying to execute a program from my php. I want to execute it and pass it a variable, i've tried using exec($cmd, $op) but the array of $op doesn't have the output within it (or anything else). Should i be using a different function to get this working? any …

Member Avatar for EvilOrange
0
138
Member Avatar for EvilOrange

hi, its been a long time since i've had to work on c and i've stumbled. I'm basically trying to get a string[5] into a 2d array stringarray[10][1] [INDENT][CODE] char string[5]; char stringarray[10][1]; void workfunction(); int main(){ workfunction(); for(i=0;i<10;i++){ printf("%s", stringarray[i][0]); } } workfunction(){ for(j=0;j<10;J++){ //does something to get me …

Member Avatar for EvilOrange
0
118
Member Avatar for EvilOrange

Does PHP have a built in function that will allow me to find the size of a 2D array without having to first having to loop through the array and hitting a NULL (C style) When i say size i mean the number or rows in a 2D array. many …

Member Avatar for guru12
0
110
Member Avatar for EvilOrange

i have gotten this example print out of an array, i'm new to php and am confusing myself upon how to access it this is an example of the print out:[CODE] $myarray = array( [0] => Array ( [var_a] => something [var_b] => something else ) ...);[/CODE] so to access …

Member Avatar for ryan_vietnow
0
76
Member Avatar for EvilOrange

i have to access an array within an array using php, and i have very little experience working with php. can anyone point me towards a good tutorial or show me an example of how to go about it? eg: [0] contians [a],[b],[c] many thanks

Member Avatar for ShawnCplus
0
630
Member Avatar for EvilOrange

Hi, I have a website in development and i've made it centered regardless of width of the viewing browser window (eg. the browser is 1000px wide and the content is 600px wide and is centered with 200px each side) by using div's. Now it works perfectly in FF, IE and …

Member Avatar for dflor
0
192
Member Avatar for EvilOrange

I have written this Parser for a formal grammar, to me it looks like it should be ok but when i tried to run it a Segmentation Error comes up - i have run valgrind its got leaks but it does come up with an error. Can anyone spot what …

Member Avatar for mad93
0
123