Re: [PHP] preg_replace

2013-11-01 Thread Adam Szewczyk
Hi,

On Fri, Nov 01, 2013 at 11:06:29AM -0400, leam hall wrote:
 Despite my best efforts to ignore preg_replace...
Why? :)

 PHP Warning:  preg_replace(): Delimiter must not be alphanumeric or
 backslash
 
 Thoughts?
You are just using it wrong.
http://us2.php.net/manual/en/regexp.reference.delimiters.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Adam Szewczyk
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote:
 Hi,
 
 I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP
 extension: I can't enable it.
 
 I have installed following packages related to this issue:
 curl, libcurl3, libcurl3-gnutls, php5-curl.
 
 I have in
 /etc/php5/mods-available/curl.ini
 ; configuration for php CURL module
 ; priority=20
 extension=curl.so
 
 I know that cURL extension is not enabled because I want to install
 Moodle and it complains about cURL extension.
 
 How can I solve this problem?

Hi,

what error message do you get?

Also, have you restarted apache after installing the extension?

Regards,
A.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Adam Szewczyk
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote:
 Hi,
 
 I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP
 extension: I can't enable it.
 
 I have installed following packages related to this issue:
 curl, libcurl3, libcurl3-gnutls, php5-curl.
 
 I have in
 /etc/php5/mods-available/curl.ini
 ; configuration for php CURL module
 ; priority=20
 extension=curl.so
 
 I know that cURL extension is not enabled because I want to install
 Moodle and it complains about cURL extension.
 
 How can I solve this problem?

Hi,

what error message do you get?

Also, have you restarted apache after installing the extension?

Regards,
A.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Adam Szewczyk
This is more of an apache question.

You can try below url.

http://lmgtfy.com/?q=mod_rewrite+exclude+css

On 1 June 2013 21:39, Farzan Dalaee farzan.dal...@gmail.com wrote:

 i starting to use mod rewrite but all my images or js links doest work
 my current query string is:
 index.php?r=blogpage=2
 i want to change it with this:
 /blog/2
 this is my .htaccess file
 RewriteEngine On
 RewriteRule ^([^/]*)/([^/]*)$ /framework/?r=$1page=$2 [L]

 but none of my js or css cant find

 i need a way with php to make urls
 thanks




-- 
A.