Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Image verification
#5
(2016-10-31, 23:32:49)shawn_a Wrote:
PHP Code:
<?php
$filename 
GSDATAUPLOADPATH  get_page_slug() . '.jpg';
$fileurl get_site_url() . 'data/uploads/' get_page_slug() . '.jpg'
something like that, you are already in php also , why do you have inline php tags

Code was written by my friend, because I am not a PHP master, but I wanted a feature I cannot write on my own. Wink


I made something like this:


PHP Code:
<?php
$filename 
GSDATAUPLOADPATH  get_page_slug() . '.jpg';
$fileurl get_site_url() . 'data/uploads/' get_page_slug() . '.jpg';

$headers=get_headers($filename);
 
if (
$headers[0] == 'HTTP/1.1 200 OK') {
 
   echo $fileurl;
} else {
 
   echo "";
?>
But after saving it shows something like this: sample-pagehttp://base.kingarchee.pl/getsimple/demos/gsStellar/sample-page whitout .jpg format and proper address.
Glowczynski.pl - webmaster, graphic designer, translator.
For any job offers contact me via artur@glowczynski.pl.
Reply


Messages In This Thread
Image verification - by Artur - 2016-10-31, 02:51:23
RE: Image verification - by shawn_a - 2016-10-31, 06:49:00
RE: Image verification - by Artur - 2016-10-31, 19:42:28
RE: Image verification - by shawn_a - 2016-10-31, 23:32:49
RE: Image verification - by Artur - 2016-11-01, 07:09:56
RE: Image verification - by shawn_a - 2016-11-01, 11:10:34
RE: Image verification - by Artur - 2016-11-01, 17:52:36
RE: Image verification - by Carlos - 2016-11-01, 18:02:41
RE: Image verification - by Artur - 2016-11-01, 20:30:23



Users browsing this thread: 1 Guest(s)