Crappy Developer not helping.

Hello everyone,

About a year ago I hired someone to do some web work on my drupal website. Since then I hadn’t really utilized what he created and one of the file structures for his code was modified so I don’t know what the name of the file this particular certain string of PHP is requesting. (a profile picture) He isn’t responding to emails and has changed his number since then and now I’m screwed…

[size=10pt]

[/size]

Is there anyway you can tell what the name of or filetype I should be naming this image that the php is requesting from my server should be? or how I can figure this out?

Thanks in advance.

why don’t you print this output in this page to know the filename:

<?php print $p->field_image[0]['filepath']; ?>

A little off topic, but even that little bit of code above looks like the developer has done a crappy job.

Inspecting the HTML output should give you a clue.

P.S: looks like he’s pulling from either a config file or a MySQL table ([0][‘something’] in crappy dev code usually indicates a structure similar to mysql_query(); $arr = array(); while ($r = mysql_fetch_assoc()) { $arr[] = $r; } return $arr;. May be worth checking your database for a table which has a filepath column.

(Also, this may look bad, but believe me - I have seen 100x worse and had to maintain 100x worse, too)

Sponsor our Newsletter | Privacy Policy | Terms of Service