zoukankan      html  css  js  c++  java
  • PHP开发

    php.ini

    error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_CORE_WARNING & ~E_NOTICE & ~E_WARNING

    APACHE配置

    ERROR

    Alias /ss "E:/work/scrapytest/phpsrc"
    <Directory "E:/work/scrapytest/phpsrc">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        # Require all granted
        Order deny,allow
        Allow from all
    </Directory>

    6:28:08  [Apache]     Error: Apache shutdown unexpectedly.
    6:28:08  [Apache]     This may be due to a blocked port, missing dependencies,
    6:28:08  [Apache]     improper privileges, a crash, or a shutdown by another method.
    6:28:08  [Apache]     Press the Logs button to view error logs and check
    6:28:08  [Apache]     the Windows Event Viewer for more clues
    6:28:08  [Apache]     If you need more help, copy and post this
    6:28:08  [Apache]     entire log window on the forums

    OK

    Alias /ss "E:/work/scrapytest/phpsrc"
    <Directory "E:/work/scrapytest/phpsrc">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
        Order Allow,Deny
        Allow from all
        Deny from www.baidu.com
    </Directory>

     

    .frm .myd .myi导入mysql数据库

    .frm格式就直接放到MYSQL的安装目录下的DATA文件夹中

    php的session_register函数已经废除, 删除就可以了。

    // session_register("USERNAME");
    // session_register("USERID");

    scrapy

    scrapy startproject blogtastic

    cd blogtastic

    scrapy genspider blogtastic   blogtastic.com

    pydev + scrapy

    from: http://stackoverflow.com/questions/9809656/scrapy-eclipse-pydev-how-to-setup-the-debugger

    import scrapy.cmdline
    
    def main():
        scrapy.cmdline.execute(argv=['scrapy', 'crawl', 'wiki'])
    
    if  __name__ =='__main__':
        main()
  • 相关阅读:
    PyQt4布局管理——绝对定位方式
    PyQt4 菜单栏 + 工具栏 + 状态栏 + 中心部件 生成一个文本编辑部件示例
    PyQt4工具栏
    PyQt4菜单栏
    PyQt4状态栏
    PyQt4将窗口放在屏幕中间
    PyQt4消息窗口
    PyQt4关闭窗口
    Mysql基础之 ALTER命令
    电脑开机后win系统运行异常慢,鼠标移动卡
  • 原文地址:https://www.cnblogs.com/zhang-pengcheng/p/4601398.html
Copyright © 2011-2022 走看看