由买买提看人间百态

topics

全部话题 - 话题: php
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
q********s
发帖数: 1032
1
来自主题: BuildingWeb版 - 求助: Linux + Apache + Mysql + Php
对于创业型的小公司,LAMP (Linux + Apache + Mysql + Php ) 是不是还是一个比较
好的解决方案?所有的components都是比较成熟的免费开源。因为我们一般用python做的internal data processing and analysis,希望用Python替代php,是不是比较可行?
s****y
发帖数: 983
2
1,这种原始的ajax看着就头晕,上个jquery或者prototype吧
2,php代码段很多错误姑且认为你是粘贴错误吧
*3,最主要的就是xmlhttp.open("GET","mark.php?id="+id+"&v="value,true);这行
value前面少了一个连接符导致整个js函数无效



$db->query("update andsky_down set yan='$yan' where id='$id'");
b***y
发帖数: 2799
3
来自主题: BuildingWeb版 - 为什么php在$前加奇怪空格?
有一个php网页,通过表格输入一个价格比如MSRP+$1000,然后送入mysql数据库。但现
在发现php老是自动在$前面加一个空格,变成MSRP+&_e_n_s_p;$1000存在mysql里,如
何去掉这个ensp空格?
价格 <
/td>
k****s
发帖数: 1209
4
随便一个免费hosting都带php。
upload file例子
http://chinesebbs.tk/showthread.php?tid=214
e******x
发帖数: 925
5
来自主题: BuildingWeb版 - 求助php后台运行
更php funcion没有任何关系。楼主要将HTML的响应传递给后台用PHP接受,
如果不用ajax,就得用iframe或其插件。相对来说ajax应该是不错的选择。
c********l
发帖数: 8138
6
【 以下文字转载自 Programming 讨论区 】
发信人: coupondeal (Coupon Deal), 信区: Programming
标 题: 为什么这年代还有大量用PHP的网站??
发信站: BBS 未名空间站 (Tue Apr 23 14:24:28 2013, 美东)
要我看,网站框架要么用严格的java,要么用c#.net,要么用python
哪怕ruby, js.node都行
为什么还有大量人使用PHP???四不像,而且还容易出内存泄露
d****i
发帖数: 4809
7
来自主题: BuildingWeb版 - ruby会取代php吗?
http://w3techs.com/technologies/overview/programming_language/a
PHP作开源社区的LAMP stack的一员,还是占了80%多的份额,个人也不喜欢微软的那套
东东,Python和Ruby相比,Python的受欢迎程度远超过Ruby,而且Python的生态较好,
近来用于很多非web的其他项目,Java份额少估计还是因为太繁琐啰嗦了点,没有PHP,
Python, Ruby等那么简明快捷。另外忘了最近崛起的一个新贵:Node.js,这个是
JavaScript在server side的大作。
p*****u
发帖数: 214
8
来自主题: BuildingWeb版 - 请教高手们一PHP的问题
oo design pattern, php 什么机制允许使用 visitor pattern。我感觉design
pattern 天生是针对oo的,除了Php oo 可以相互引用彼此作为参数传递,想不出机制
k*******p
发帖数: 8821
9
问一个问题,包子奉上給有用的解决办法。
有一段小代码,是在一个表Customer_table查询Customer_ID.如果这个id 存在则输出"
good",否则输出"bad".'gooduser'这个id是表中存在的,执行代码的结果是输出“good
"。假如我把$uid换成一个不存在的id,比如$uid='bdxhsbfhbfhc';结果还是输出"good"
.我如果新建一个php文件,初始一个不存在的id, $uid='bdxhsbfhbfhc';输出“bad".
我如果把$uid换成一个存在的id,比如$uid='gooduser',结果还是“bad".也就是第一
次的结果永远存下来了。这是为什么呢?
$mysqli = mysqli_connect("localhost", "root", "abcde", "table1");
if (mysqli_connect_errno()) {
printf("Connect failed: %sn", mysqli_connect_error());
exit();
}
else {
... 阅读全帖
q******n
发帖数: 661
10
很多cms用的都是PHP,
需求量最大的还是精通PHP的?
只不过大公司不太用这个。。。
g****z
发帖数: 1135
11
是指浏览者不能访问么?如果是Apache, 设置mod_rewrite并在此目录下写入.
htaccess.
RewriteCond %{REQUEST_URI} .*\.(php|html)
RewriteRule ^(.*)$ [R=404,L]
或者这个更简单:
RedirectMatch 404 .*\.(php|html)
试试。
H*******g
发帖数: 6997
12
我真心没看大懂。。。
你想把你的ABSTRACT CLASS的内容写入数据库?然后再读出来,动态的生成CLASS?
你也许可以考虑用INTERFACE?或者FACTORY DESIGN PATTERN。。
不过我不知道PHP是否可以完成这些,我好久没碰PHP啦。
c********1
发帖数: 421
13
About LAMP
LAMP stack is a group of open source software used to get web servers up and
running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the
virtual private server is already running Debian, the linux part is taken
care of. Here is how to install the rest.
Set Up
Before running through the steps of this tutorial, make sure that all of
your repositories are up to date:
apt-get update
apt-get upgrade
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation... 阅读全帖
z******4
发帖数: 4716
14
来自主题: BuildingWeb版 - 怎么更改网页,是php
下载xampp 自带Apache MySql Php
再安装WordPress
都很容易
网上搜WordPress 教程 有一个网站是手把手教你怎么改php
s********1
发帖数: 581
15
做vision或者graphics的公司要用perl,php,python吗?
这些公司的软件一般是用c++写的。那么软件的用户界面哪?尤其是server端的界面哪
?要用perl,php,python吗?哪种最有用?
谢谢!
a****1
发帖数: 61
16
都是很容易入门的脚本.
PhP官方网站的那个教程就很好。
perl呢稍微比php难一点,不过可以随便搜索入门的资料
就可以入门,要短,因为长的话有很多细的东西其实不需要
掌握,用到再掌握。
s********1
发帖数: 581
17
做vision或者graphics的公司要用perl,php,python吗?
这些公司的软件一般是用c++写的。那么软件的用户界面哪?尤其是server端的界面哪
?要用perl,php,python吗?哪种最有用?
谢谢!
J*****v
发帖数: 314
18
来自主题: CS版 - PHP真火啊
The most popular Framework technologies on the internet.
Name Websites Usage 10k %
PHP 28,065,259 32.36
ASP.NET 10,206,517 19.43
Shockwave Flash Embed 7,461,998 7.94
Frontpage Extensions 4,172,152 2.32
Adobe Dreamweaver 3,496,944 3.33
DAV 1,654,660 1.6
Perl 1,488,459 0.87
Microsoft Frontpage 882,701 0.36
J2EE 822,847 6.87
ASP.NET Ajax 705,767 5.24
Python 456,616 0.28
Ruby on Rails 240,309 2.12
Adobe ColdFusion 204,0... 阅读全帖
q*******a
发帖数: 386
19
做生物的,想转到CS方向。因为自己业余时间会做动态网站,但限于使用模板和基本操
作服务器。转型想从比较熟悉的这个方向入手,也就是从PHP和mysql,html, css,
javascript这些方向入手。但不知道这个方向市场前景如何,是不是一个好的职业方向。
拖家带口的了,没钱去上学,只能自学。请这领域的朋友多多指点。
现在自己拥有一家小型网站,能做网站维护,如果有php入门级工作介绍给我,万分感
谢。
q*******a
发帖数: 386
20
做生物的,想转到CS方向。因为自己业余时间会做动态网站,但限于使用模板和基本操
作服务器。转型想从比较熟悉的这个方向入手,也就是从PHP和mysql,html, css,
javascript这些方向入手。但不知道这个方向市场前景如何,是不是一个好的职业方向。
拖家带口的了,没钱去上学,只能自学。请这领域的朋友多多指点。
现在自己拥有一家小型网站,能做网站维护,如果有php入门级工作介绍给我,万分感
谢。
n********6
发帖数: 1511
21
--Fixed---
It's more on IIS configuration.
set impersonate = 0 in php.ini
set network service in application pool.
set username & pwd blank in php page.
-----Problem------------
I can use the 'WebAppDBConn' user in Studio, but failed in web.
Internal Server Error CDbConnection failed to open the DB connection. An
internal error occurred while the Web server was processing your request.
Please contact the webmaster to report this problem.
Thank you.
Connection String failed:
$databasetype =... 阅读全帖
J*****u
发帖数: 44
22
来自主题: Database版 - PHP 和 .net
PHP的Framwork太多了,太乱了,几个人或是小公司也搞个PHP Framwork,完了还跟你说
,我们的Framwork支持这个不支持那个。真怀疑它们的Framwork有没有back door
谁敢用啊?
st
发帖数: 1685
23
well, many sites are using it, maybe some website will show higher
percentage websites using php than asp, simply because industry machines
will use other stuff but hidden by load balance, when personal user
more like to use php or other free stuff... also web traffic is impossible
to be counted by those websites....
p***n
发帖数: 635
24
a somewhat biased review from M$FT:
http://www.msdnaa.net/Resources/display.aspx?ResID=2315
a review from some guy using both:
http://www.sitepoint.com/article/871
but if you guys have invested heavily in terms of resources into PHP,
probably your boss won't make the effort to do it due to extra costs
involved. if there are new feature/requirement coming, a compromise
like mixing the old and the new seems more plausible to me.
hehe, in case your boss gets convinced:
0) Migrating from PHP to ASP.
G**T
发帖数: 388
25
来自主题: DotNet版 - can a server support .NET and PHP?
can a server support .NET and PHP at the same time? I have a system which
using php+mysql as the web UI, and a VB .NET program monitoring the change of
mysql. It is working on my local XP Pro since I installed a apache on my local
machine. Do you guy know any hosting server can support this?
thanks
d**s
发帖数: 920
26
来自主题: Internet版 - PHP book ?
Folks:
Can anyone recommend one PHP book ? (If I only want to buy one PHP book)
Thanks.
l*******e
发帖数: 1869
27
来自主题: Internet版 - Email Backup : How to handle .php file ?
I found my email service has a downloading option, allowing people to download
the whole "INBOX" to be a .php file.
But, how to read this .php file, can other email account easily load it up ?
Thanks
O*****c
发帖数: 171
28
需要从form里取用户名和密码, 然后去数据库里查, 不想搞很多php文件跳来跳去的,
只想在当前php文档里处理, 如果不是注册用户就出了错误信息就行了.
thanks
G****o
发帖数: 155
29
来自主题: Java版 - php程序员转java求指教
请问这里各位大侠,现在在做php方面的工作,可是还是比较喜欢java的东西,scjp也
考了,平时也喜欢看一下开源的项目,不知道如果4,5年以后找java工作,java的经验
应该怎么积累呢?
招人的公司会不会就已经把一个程序员定在了php的范围呢?还迷惑...
谢谢各位
H******C
发帖数: 700
30
来自主题: Java版 - php程序员转java求指教
那么说 php 不能做太久了?
我也是在做 php ,不喜欢。不过刚开始做,不到半年,赶紧转还来得及吧 ?
c*****n
发帖数: 75
31
【 以下文字转载自 BuildingWeb 讨论区 】
发信人: cyberon (执 着), 信区: BuildingWeb
标 题: 为何PHP这种script 语言大行其道?
发信站: BBS 未名空间站 (Mon Jan 30 23:31:46 2012, 美东)
刚开时学一些。 不了解为何这种script语言会大行其道? 在mission crital的地方(
比如说银行系统)也用的多吗?虽然易学易用, 但是很难维护吧? source code里
$sign, 各种标点符号漫天飞,感觉就是bash加上一个强大的库。
相比JSP应该规范多了,但好像不如PHP流行。
J*****v
发帖数: 314
32
来自主题: Java版 - PHP真火啊
source: http://trends.builtwith.com/framework/top
The most popular Framework technologies on the internet.
Name Websites Usage 10k %
PHP 28,065,259 32.36
ASP.NET 10,206,517 19.43
Shockwave Flash Embed 7,461,998 7.94
Frontpage Extensions 4,172,152 2.32
Adobe Dreamweaver 3,496,944 3.33
DAV 1,654,660 1.6
Perl 1,488,459 0.87
Microsoft Frontpage 882,701 0.36
J2EE 822,847 6.87
ASP.NET Ajax 705,767 5.24
Python 456,616 0.28
Ruby on ... 阅读全帖
B*****g
发帖数: 34098
33
来自主题: Java版 - PHP真火啊
我觉得做front的没有做back的挣的多,front做php没有做java的挣的多。不过我也要
做php了,到时有问题骚扰你

python
c*c
发帖数: 447
34

to
There is SAMP. Solaris +apache+mysql+php. SUN has been shipping apache and
PHP in solaris for a while..
There are big companies hosting some ofr their sites on VM..
But if you use solaris and zones, why would you care about VM. Zone virtualization has much better performance than VM..
o**n
发帖数: 1249
35
PHP的manual里找不到,google了半天才找到,主要搜一个符号不好搜
If you place an @ before a function that generates an error, PHP will catch
the error and silence it entirely.
x**m
发帖数: 941
36
来自主题: Linux版 - 问个php logging 的问题
用syslog可以吧?
http://php.net/manual/en/function.syslog.php
l***s
发帖数: 11
37
来自主题: Programming版 - help with PHP programming!!! (转载)
【 以下文字转载自 CS 讨论区 】
发信人: Louis (生日快乐), 信区: CS
标 题: help with PHP programming!!!
发信站: BBS 未名空间站 (Mon Dec 11 16:42:00 2006)
i want to program in php to open a web page, say google
i use the following code:
$page="http://www.google.com";
$open=fopen($page, 'r') or die();
however, it doesn't open because i use "automatic configuration script" for
accessing web pages. the purpose of it is to find some web proxy to use
given the url. it's located under 'tools'-->'internet options'-->'
connection
l******g
发帖数: 14
38
【 以下文字转载自 BuildingWeb 讨论区 】
发信人: lilyrong (ATLAS), 信区: BuildingWeb
标 题: help on php for dynamic dependent list box
发信站: BBS 未名空间站 (Wed May 2 03:41:00 2007)
Hello, could somebody please help or give me an php example on the following
issue? I couldn't find a suitable example by google. thanks so much in
advance.
I have two lists, they are parent-child relationship, when I select the
option in parent list, the options in child list will correspondingly change
. After I select the option in child
A*****d
发帖数: 220
39
来自主题: Programming版 - 推荐一个好的PHP (IDE)软件
请PHP牛人推荐一个免费的PHP(IDE)软件.
c***k
发帖数: 1589
40
【 以下文字转载自 BuildingWeb 讨论区 】
发信人: chick (Por Los Momentos Dif Ciles), 信区: BuildingWeb
标 题: 如何最简单的获得一个随机字符串(PHP)?
发信站: BBS 未名空间站 (Mon Dec 3 00:08:08 2007)
How to generate a random string in PHP?
Can I do this? Or does it look stupid?
$a = rand();
$b = crypt($a);
d**s
发帖数: 920
41
Hi, Big Cows:
What is the best (free) PHP development toolds (IDE) ?
Need to learn to write some PHP code.
Thanks in advance.
d**s
发帖数: 920
42
来自主题: Programming版 - 请推荐本php programming的书
I have done lots of C/C++/Python programming, now I need to write some PHP
code, can someone recommend one PHP programming book ?
I am looking for a "complete reference type book".
thank you in advance.
b*h
发帖数: 353
43
来自主题: Programming版 - Help please: Passing PHP values to Javascript
Hi,
I need to pass some PHP values to Javascript. I tried the following example:


But the screen output is "" instead of "Hello". I have turned
the short_open_tag to "on" in the php.ini file.
What's wrong with my code? How to make it work?
Thanks a lot for any help.
t*********n
发帖数: 278
44
来自主题: Programming版 - 请教 PHP vs Perl
I wrote a perl script for handling the web forms at the web server. And then
, someone told me that PHP is more popular. it is why i want to know the
difference between php and perl. thanx.
s********1
发帖数: 581
45
做vision或者graphics的公司要用perl,php,python吗?
这些公司的软件一般是用c++写的。那么软件的用户界面哪?尤其是server端的界面哪
?要用perl,php,python吗?哪种最有用?
谢谢!
s******8
发帖数: 2131
46
来自主题: Programming版 - Looking for a PHP programmer
【 以下文字转载自 WashingtonDC 讨论区 】
发信人: summer98 (summer is not over), 信区: WashingtonDC
标 题: Looking for a PHP programmer
发信站: BBS 未名空间站 (Sun Apr 3 15:35:48 2011, 美东)
Anyone interested doing a small PHP database interface project? We have
mysql datbases and want a nice web interface to qury and visualze the data.
Drop me a line if interested.
Thanks.
j******t
发帖数: 22
47
client直接和各种service的交互,server只返回数据。
什么是Service? Server 如何返回数据? 仍然需要PHP/JSP/ASP/C# 等服务器端支持的
语言与数据库/源 交互后返回结果(JSON, XML or even HTML fragment)。所谓的
Service无非就是服务器端的一个程序,可以是CGI也可以是PHP/JSP/ASP 程序。
JavaScript并不能直接读取服务器。所以楼主的断言有点早。
d****y
发帖数: 910
48
你没做过比较大点的正规网站吧?不熟悉流行的web服务器的技术规格吧?无知者无畏
,用你身上太贴切了。
Server Side JavaScript的是什么?怎么运用?是不是也是一种脚本语言?它跟ASP/
PHP/JSP比有什么优劣?知道点皮毛就想来发表高见或是唬人?
不用ASP/PHP/JSP,那服务端用什么脚本语言?Server Side JavaScript? Ruby?
Python? Servlet? Perl? C? (理论上你用bash都可以编写HTML页面的)别跟我说直接
用VB, Java什么的,因为web服务器不能直接支持。
每种语言的创建都有它独特的用处和考量,不是一种主流或几种主流语言就能胜任所有
工作的。所以,不要以为什么语言都可以用在一切应用上。
任何一种语言,都有被淘汰的时候;不过,现在还不是脚本语言被淘汰的时候。
N**********d
发帖数: 9292
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)