Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1358

Re: PHP variable holding path string will not render remotely

From "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Newsgroups comp.lang.php
Subject Re: PHP variable holding path string will not render remotely
Date 2011-05-02 09:26 +0200
Organization http://alvaro.es/
Message-ID <iplman$amn$1@dont-email.me> (permalink)
References <15a1a452-2412-4b02-a964-09f712a7b144@q12g2000prb.googlegroups.com>

Show all headers | View raw


El 02/05/2011 2:16, goldtech escribió/wrote:
> As I learn about PHP I encounter a problem. I have a test server on my
> laptop and am serving flv Flash files. On my localhost laptop it's all
> OK. I serve a local flv file and watch the video. So I figure I'd go
> on a desktop in my local home network, dial in the ip of my laptop,
> and watch a video from the desktop. Everything works OK except this,
> (note: $vrelpath is the path to an flv file on my laptop), so:
>
> Given the code:
>
> echo "vrelpath: ". $vrelpath;

And $vrelpath comes from?


> $vv = 'ttttt';
> echo '<br>'.$vv;
>
> and I see on the local laptop web page:
>
> vrelpath: ./uploaded_vids/File28_final.flv
> ttttt
>
> But it renders on the "remote" desktop as:
>
> vrelpath:
> ttttt
>
> The $vrelpath string is not getting to the desktop, but another string
> $vv is getting to it. So what's going on here?
>
>
> BTW, If I hard code a link on my laptop with something like this and
> serve it to the desktop it works OK:
>
> <a href="./flowplayer/example/Food/tofu_video_preview.flv"
> style="display:block;width:520px;height:330px" id="player">  </a>
>
> and the desktop user will get a nice flash video w/control bars...
>
> There's something about that $vrelpath when it holds that path
> string(?) Note: if a stick 'zzzz' into $vrelpath it renders on the
> desktop OK.
>
> What is the issue? Thanks appreciate the help.

PHP is way simpler than you appear to think. All that happens is that 
the $vrelpath variable is NULL, not set or contains an empty string.  If 
you don't use $vrelpath, its value won't matter at all.

Have at look at http://php.net/var_dump


-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar


Thread

PHP variable holding path string will not render remotely goldtech <goldtech@worldpost.com> - 2011-05-01 17:16 -0700
  Re: PHP variable holding path string will not render remotely Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-01 20:49 -0400
    Re: PHP variable holding path string will not render remotely "Twayne" <nobody@devnull.spamcop.net> - 2011-05-02 12:14 -0400
      Re: PHP variable holding path string will not render remotely Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-02 14:12 -0400
        Re: PHP variable holding path string will not render remotely goldtech <goldtech@worldpost.com> - 2011-05-02 16:27 -0700
          Re: PHP variable holding path string will not render remotely Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-02 20:54 -0400
  Re: PHP variable holding path string will not render remotely "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-05-02 09:26 +0200

csiph-web