CwCity Board >>> Allgemeines >>> CwCity in English >>> some problems about php
some problems about php

Seiten: 1, 2
cfanderek
Verfasst am: 28.01.2012 um: 16:16 Uhr
 
Cw Posting Dude
Poster Teufel
CwID: 170152
Beiträge: 101
SPAM:
0% Spam
I upload a php file to /htdocs.But when I was calling this file in another html file,it seems that the php file didn't work.

The php file was copied from another website.And when I was calling the original php file in the same html file,it works well.

So I wonder where the problem is.The permission of the php file is 777.

And when I was registering the Cwcity's ID,there's an e-mail saying that I am not allowed to upload php file to /cwphp,and all the php file should be in /htdocs.
So what file should I put in /cwphp?Can't I put anything in it?

Cfan==computer fan.
Cfan==C++ fan.
Cfan==chrome fan.
 



chrwhm
Verfasst am: 28.01.2012 um: 16:21 Uhr
 
Globaler Moderator
0
CwID: 9
Beiträge: 5157
SPAM:
0% Spam
hey,

all files have to be in the htdocs-path. Please ignore the cwphp-folder.

How did you call the PHP-file from the HTML-file? Does the file returns an error?



www.laptop-kaffee.de

"Normalised data is for sissies."
(Cal Henderson, chief software architect of flickr)

 

jsg
Verfasst am: 28.01.2012 um: 16:23 Uhr
 
Cw Guru
King
CwID: 30270
Beiträge: 558
SPAM:
0% Spam
You should upload all your files to the "htdocs" folder of your website.
I think the cwphp folder is only for CwCity-Admins.

_______________
Wer Rechtschreibfehler findet darf sie behalten!
 

cfanderek
Verfasst am: 28.01.2012 um: 16:52 Uhr
 
Cw Posting Dude
Poster Teufel
CwID: 170152
Beiträge: 101
SPAM:
0% Spam


Well,I know,I won't uplad anything to /cwphp.Thank you,  jsg.

@chrwhm,IE returns an error in Chinese,but I can't translate it accurately,so I'm very soory.Chrome didn't return any message,but I know the php file didn't work.

I call the php file in this way:
<script type="text/javascript">
var js=*******;
 js.src='bingimage.php?idx='+******
******</script>
This is the original text:

<script type="text/javascript">

var js=*******;

 js.src='
http://www.qiqiboy.com/bingimage.php?idx='+******



******</script> 
No matter I added "?idx=",it didn't work.I don't konw why.




Cfan==computer fan.
Cfan==C++ fan.
Cfan==chrome fan.
 

chrisiauer
Verfasst am: 28.01.2012 um: 19:12 Uhr
 
Cw Board Rocker
Da Board Rocker
CwID: 104136
Beiträge: 1901
SPAM:
0% Spam
Show us the source of the PHP-file

Twunkster
Twunkster jetzt für alle zugänglich! - Bist du noch nicht dabei? Schnell anmelden!

 

cfanderek
Verfasst am: 29.01.2012 um: 03:25 Uhr
 
Cw Posting Dude
Poster Teufel
CwID: 170152
Beiträge: 101
SPAM:
0% Spam
This is the php file.  http://www.qiqiboy.com/bingimage.php

[{"imgurl":"http:\/\/cn.bing.com\/az\/hprichbg?p=rb% 2fananaLeaf_ZH-CN1525059005.jpg","title":"\u5fb7\u5 6fd\u5c0f\u5c9b\u7684\u9999\u8549\u53f6\u7279\u5199 (\u00a9 Egon B\u00f6msch\/Age footstock)","desc":"\u9999\u8549\u7684\u690d\u682 a\u957f\u5f97\u53c8\u7c97\u53c8\u9ad8\uff0c\u6709\u7684\u53ef\u8d85\u8f c7\u5341\u7c73\uff0c\u8fd9\u201c\u5927\u578b\u201d\u690d\u7269\uff0c\u6 62f\u6811\u5417\uff1f\u5728\u8fc7\u53bb\uff0c\u9999\u8549\u53f6\u5c31\u 50cf\u201c\u5916\u5356\u9910\u76d2\u201d\uff0c\u53ef\u4ee5\u7528\u6765\ u6253\u5305\u98df\u7269\uff0c\u53f6\u5b50\u4e0e\u98df\u7269\u597d\u50cf \u603b\u662f\u6709\u7740\u4e0d\u89e3\u4e4b\u7f18\u2026\u2026\u9999\u854 9\u597d\u5403\uff0c\u9999\u8549\u76ae\u4e5f\u4e0d\u80fd\u968f\u610f\u4e 22\u5f03\uff0c\u4e00\u662f\u53ef\u4ee5\u6709\u6548\u9884\u9632\u201c\u6 e9c\u51b0\u201d\u4e8b\u6545\u7684\u53d1\u751f\uff0c\u4e8c\u662f\u56e0\u 4e3a\u9999\u8549\u76ae\u8fd8\u6709\u8bb8\u591a\u5999\u7528\u3002\u6211\ u4eec\u5e38\u5e38\u5173\u6ce8\u852c\u83dc\u6c34\u679c\u7684\u8425\u517b \u4ef7\u503c\uff0c\u800c\u5ffd\u7565\u5b83\u4eec\u8272\u5f69\u7f24\u7eb 7\u7684\u9753\u4e3d\u5916\u8868\uff0c\u76f4\u5230\u6709\u4e00\u5929\uff 0c\u5b83\u4eec\u53d8\u6210\u98ce\u666f\u753b\uff01"}]

I use it to get the Bing's pictire.Here's the page.http://cfanderek.cwsurf.de/works/bing.htm


Cfan==computer fan.
Cfan==C++ fan.
Cfan==chrome fan.
 

chrisiauer
Verfasst am: 29.01.2012 um: 11:50 Uhr
 
Cw Board Rocker
Da Board Rocker
CwID: 104136
Beiträge: 1901
SPAM:
0% Spam
The Page cfanderek.cwsurf.de/works/bing.htm is not found (404)

Twunkster
Twunkster jetzt für alle zugänglich! - Bist du noch nicht dabei? Schnell anmelden!

 

cfanderek
Verfasst am: 29.01.2012 um: 12:31 Uhr
 
Cw Posting Dude
Poster Teufel
CwID: 170152
Beiträge: 101
SPAM:
0% Spam
I'm sorry.I deleted it several hours ago.I have uploaded it again.

Cfan==computer fan.
Cfan==C++ fan.
Cfan==chrome fan.
 

chrisiauer
Verfasst am: 29.01.2012 um: 12:58 Uhr
 
Cw Board Rocker
Da Board Rocker
CwID: 104136
Beiträge: 1901
SPAM:
0% Spam
And where's the problem? I can see the image ;)

Twunkster
Twunkster jetzt für alle zugänglich! - Bist du noch nicht dabei? Schnell anmelden!

 

cfanderek
Verfasst am: 29.01.2012 um: 13:38 Uhr
 
Cw Posting Dude
Poster Teufel
CwID: 170152
Beiträge: 101
SPAM:
0% Spam
I called the original php file from the html file and it works well.

But I have copied it and saved it.If I call the copied php file from the html file,the copied php file wouldn't work.

Please look at this one.http://cfanderek.cwsurf.de/works/bingimg.htm

In this page,I typed the copied php file's address instead of  the original php file.Here's the copied file's address.http://cfanderek.cwsurf.de/works/bingimage.php (the permission of it is 777)

And the changed html file can't show the image.


Cfan==computer fan.
Cfan==C++ fan.
Cfan==chrome fan.
 

 
Seiten: 1, 2

Folgende User sind hier gerade aktiv:
-

ANZEIGE