[PHP] parse_str()

2003-03-31 Thread Jose
I might be wrong here, but with the code below I would expect $_GET to be
filled and the script to output the next line:

   

// expected output:
//
// array(2) { ["action"]=>  string(4) "kick" ["item"]=>  string(2) "me" }
//

Is my assumption wrong? What would be the workaround?

Thanks,

Jose


 



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



RE: [PHP] parse_str()

2003-03-31 Thread Jose
> I might be wrong here, but with the code below I would expect $_GET to be
> filled and the script to output the next line:
> 
>$example_string = 'action=kick&item=me';
>parse_str($example_string);
>var_dump($_GET);
>?>
> 
> // expected output:
> //
> // array(2) { ["action"]=>  string(4) "kick" ["item"]=>  string(2) "me" }
> //

Forgot to mention what I get. 

// actual output:
//
// array(0) { }


> Is my assumption wrong? What would be the workaround?
> 
> Thanks,
> 
> Jose
> 
> 
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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



RE: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked with 4.2.2

2002-09-23 Thread Jose

I did go back to PHP 4.2.2 to double check and it doesn't work there
either.

> -Original Message-
> From: Jose Fandos [mailto:[EMAIL PROTECTED]]
> Sent: 23 September 2002 21:12
> To: [EMAIL PROTECTED]
> Subject: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked
with
> 4.2.2
> 
> Hi,
> 
> I was working on some code and couldn't get the following form to
return
> anything under Windows XP with Apache 1.3.26 and PHP 4.2.3.
> 
> I've just tried in a Solaris machine with same versions of Apache and
> PHP and it works just fine. Same with a Linux machine running Red Hat
> and same versions of Apache and PHP. Could someone else confirm this
> under XP?
> 
> I have the magic_quotes set to Off, but tried with On with the same
> result. In fact the settings in the Unix machines and Windows XP with
> regards to Apache and PHP are as close to each other as they can be.
> 
> If it's a known bug, is there any way I can patch or update my PHP to
> have it working again?
> 
> The following code will dump the contents of $_REQUEST and $_FILES.
When
> a file is selected under Windows XP (and the Apache server and PHP are
> running in Windows XP) the information gets lost, without a trace of
an
> error. Works fine when the server is Solaris
> 
>   Jose
> 
> ===
> 
> 
> 
> Test
> 
> 
> Test
> 
>echo '$_REQUEST = '; var_dump($_REQUEST); echo "";
>   echo '$_FILES = '; var_dump($_FILES); echo "";
> ?>
> 
> 
> 
>  />
> 
> 
> 
> 
> 
> ==
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



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




RE: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked with 4.2.2

2002-09-23 Thread Jose


Hi,

The upload_tmp_dir in php.ini:

; Temporary directory for HTTP uploaded files (will use system default
if not
; specified).
;upload_tmp_dir =

So it uses c:\windows\temp

And file upload:

; Whether to allow HTTP file uploads.
file_uploads = On

The directory is valid and Apache should have permissions but I don't
know how to check that for granted, any hint?

What puzzles me is that the whole $_REQUEST comes empty, not even
MAX_FILE_SIZE is passed along, nor there is any error being thrown
anywhere. I have error reporting set to all.

    Jose


> -Original Message-
> From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
> Sent: 23 September 2002 21:49
> To: Jose Fandos; [EMAIL PROTECTED]
> Subject: Re: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?)
worked
> with 4.2.2
> 
> What are the settings for upload_tmp_dir and file_uploads in the
php.ini
> on
> the windows box? Does the Apache user have permission to write to that
> directory if it's valid?
> 
> ---John Holmes...
> 
> - Original Message -
> From: "Jose Fandos" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 23, 2002 4:12 PM
> Subject: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked
with
> 4.2.2
> 
> 
> > Hi,
> >
> > I was working on some code and couldn't get the following form to
return
> > anything under Windows XP with Apache 1.3.26 and PHP 4.2.3.
> >
> > I've just tried in a Solaris machine with same versions of Apache
and
> > PHP and it works just fine. Same with a Linux machine running Red
Hat
> > and same versions of Apache and PHP. Could someone else confirm this
> > under XP?
> >
> > I have the magic_quotes set to Off, but tried with On with the same
> > result. In fact the settings in the Unix machines and Windows XP
with
> > regards to Apache and PHP are as close to each other as they can be.
> >
> > If it's a known bug, is there any way I can patch or update my PHP
to
> > have it working again?
> >
> > The following code will dump the contents of $_REQUEST and $_FILES.
When
> > a file is selected under Windows XP (and the Apache server and PHP
are
> > running in Windows XP) the information gets lost, without a trace of
an
> > error. Works fine when the server is Solaris
> >
> > Jose
> >
> > ===
> > 
> > 
> > 
> > Test
> > 
> > 
> > Test
> > 
> >  >   echo '$_REQUEST = '; var_dump($_REQUEST); echo "";
> >   echo '$_FILES = '; var_dump($_FILES); echo "";
> > ?>
> > 
> >
> > 
> >  > />
> > 
> > 
> > 
> > 
> > 
> > ==
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



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




RE: [PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread Jose

I've been having the same problem, sort of. I.e. the blanking out of
POST data when uploading a file, though it also happens in some
instances when using phpMyAdmin when sending an SQL query through its
interface.

I run the whole thing under WindowsXP with PHP 4.2.3, MySQL 3.23.52-nt
(though that has no bearing in the code to upload the file), and PHP
running as a module of Apache 1.3.27 and 1.3.26 before that. phpMyAdmin
is 2.3.1. I have checked and rechecked everything, and can't seem to
find the problem. I do believe that is a bug in the PHP engine, and
possibly the one mentioned at the top of the phpMyAdmin home page at
www.phpmyadmin.net. But not sure how that affects the file uploads.

It happens most of the time, but not always. I do ocasionally get to
upload the file (an image). Same file can succeed or fail. This is in
the windows XP, that I use for development. On the real servers, running
on Solaris and Red Hat Linux but with the same version of PHP and Apache
the same scripts work perfectly!

I posted before and someone suggested to check for the upload dir. I did
and it worked the first time, so I went to claim victory, only to
realize that it was again one off.

I do use register_globals = off (though I have tested with
register_globals = on and the result is the same, even in the error
log). I have checked for sizes of different things where they
correspond. I have also disabled mod_gzip in case it was an issue. I
also set implicit_flush = On to see if that would help, but it didn't.
Set the logs of Apache to debug and yet can't see anything wrong in
there. In this environment I have everything set to report all errors
and notices. The only thing that I see in the error logs is a couple
undefined variables when the POST information dissapears. In the
access.log there is hardly any difference between successful and
unsuccessful uploads.

I have read over 2700 posts (all that has been collected since I
subscribed to the list with my original post) in the hopes that
something would give me a clue as to what is happening, and this thread
is the closest.

I could only think of it being some environment variable limiting some
kind of buffer size or similar, but given that sometimes it works,
sometimes it doesn't with files in different size ranges and coming from
different folders in the system, I had to ditch that idea, for the time
being.

I could also go back to php 4.2.2, but I'm lazy ;) but if that could
help debug? Any ideas when the next version of PHP is coming out? Or can
anyone confirm that there is a bug of PHP on Windows which would
manifest this way?

Any help or further hints deeply appreciated!  :)

Cheers,
 
Jose 

PS. I have attached the httpd.conf and php.ini file. As for the PHP code
I can include it if requested, but it reproducible with a simple upload
form in my system, nothing special.


> -Original Message-
> From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
> Sent: 08 October 2002 19:06
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] For my next bug... Upload filename gets blanked out
> 
> Is register_globals off? If it is, you should be using the $_FILES
array.
> 
> ---John Holmes...
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 08, 2002 1:35 PM
> Subject: [PHP] For my next bug... Upload filename gets blanked out
> 
> 
> > In the form below, when I specify a file to upload (in $filename),
it
> gets
> > blanked out by the time I hit the Upload button and the page
refreshes.
> My
> > test file is a text file that certainly does *not* exceed the
> max_file_size
> > (it goes to about 27 k).
> >
> >  "index.php?page=Uploadfile"
> > METHOD = "POST">
> > =
> > "0">
> >   
> >  
> > Upload
> > Upload (filename):  =
> > "FILE" NAME = "filename">
> >  > "102400">
> > 
> >  
> >   
> >
> > 
> >
> >
> 
> 
>

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



httpd.zip
Description: Zip compressed data


php.zip
Description: Zip compressed data

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


RE: [PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Jose


Yes, is there an issue? Just see my post under

RE: [PHP] For my next bug... Upload filename gets blanked out

Of a couple minutes ago

Cheers,
 
Jose 

> -Original Message-
> From: Hendrik Daldrup [mailto:[EMAIL PROTECTED]]
> Sent: 08 October 2002 20:15
> To: [EMAIL PROTECTED]
> Subject: [PHP] Bugs in php 4.2.3.?
> 
> Hi,
> 
> i recently had a problem with a script on a server, which uses php
4.2.3.
> I couldn't find the problem and so installed it on a different server
> and it worked right away.
> Only difference on that server was: php 4.2.2.
> 
> I checked some sites and it seems there are some issues with postnuke,
> xoops and several other scripts with php 4.2.3.
> 
> Is this a known bug, or is it s.th. like the register_globals thing,
> where you either need to update the script or set it to "On" in
php.ini?
> 
> Regards,
> Hendrik
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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




[PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jose


I'm making a proyect in php, and I have some doubts about the md5.
I encript a password with it, but I don't know how to decrypt it again.

Thanks.



--
Jose Fco. ( [EMAIL PROTECTED] ).
OLINET, S.L. Teléfono: 952207135 - Fax: 952207600
Avda. Juan Sebastián Elcano, 39-41. 29017 Málaga.

--




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jose

Then how can I encrypt the password?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Date format

2002-02-01 Thread Jose

Hi all.
How can I write the date in this format (dd/mm/) if php gives me
(,mm,dd)??

Thanks

--Jose Fco. ( [EMAIL PROTECTED] ).
OLINET, S.L. Teléfono: 952207135 - Fax: 952207600
Avda. Juan Sebastián Elcano, 39-41. 29017 Málaga. Spain

--




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Something wrong with the file() command.

2001-12-03 Thread Jose

I try to give it a value with a var, but it doesn't work.

The code is something like this.

$y=str_pad($y,5,".txt"); \\ To give it a filename from a var that contains
only 1 number (with 1 digit)
If in this step I do a "echo $y, it shows the correct string. Suposing it is
2, it shows 2.txt

$temp[]=file($y); \\ To load the file into the array.

But after the file nothing happens, the array only contains "Array".

Sorry for my bad english.
Jose.

Olinet S.L.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] File system management

2004-10-24 Thread Jose
Hi,
Some of the filesystem function can't be executed in a linux httpd server.
I tried,
mkdir();
chmod();
fwrite(); and some other filesystem functions. Those worked in widows enviornment but 
in linux i got a message "Permission denied"
My PHP version is 4.2.3 in linux.
What are the configurations should i make to creating directories and file uploading 
and to execute those filesystem functions in linux?
 

Yahoo! India Matrimony: Find your life partneronline.

[PHP] PHP + Apache + ODBC on linux

2002-07-31 Thread Jose Morales

Hi to all!!

I have a problem and i think maby somebody can help me.

I have an MS Sql server on a Windows 2000.
I have a PHP web in a linux debian. Im trying to access to the MS SQL server through 
unixodbc.
Unixodbc  works well becouse y test it under linux , with isql and sqsh, and i know 
that it works.
in my PHP code I load the odbc module with dl('odbc'), and it works, but 
the problem is that when i do odbc_pconnect("mydsn","myuser","mypasswd"); y have an 
error like this:

Warning: SQL error: [unixODBC] Could not find DSN in odbc.ini, SQL state 08001 in 
SQLConnect in /path/to/my/page.php on line XX 
Warning: Supplied argument is not a valid ODBC-Link resource in /path/to/my/page.php 
on line XX 

When i test the odbc with isql under linux, i think that isql find an .odbc.ini under 
$HOME
the file is like this:
[ODBC Data Sources]
cdr2 = FreeTDS

[cdr2]
Servername = 192.168.129.6
TraceFile = /tmp/odbc.log
Driver = /usr/lib/odbc/libtdsodbc.so
Description = logs del call manager.
DSN = cdr2
DB = CDR
User = myuser
Password = mypasswd
Port = 1433

[Default]
Driver = /usr/lib/odbc/libtdsodbc.so


and i think that the problem is that apache user dont find this file. My apache user 
is www-data, and i try to copy an .odbc.ini file to this user $HOME, but dont works...

the conclusions are: 
1º ODBC works 
2º I have PHP compiled with ODBC support.
3º other users with an .odbc.ini file under $HOME can access to ODBC.

but the problem is still there :(  
so my question is: how can i access from PHP on debian to a well configured ODBC ?



thanks in advance!!



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




[PHP] ODBC under linux + PHP + Apache problem.

2002-08-02 Thread Jose Morales

I write a few days ago to the list with a problem trying to find my ODBC DSN under 
linux debian. Well, i solve the problem, now i can find my dsn from PHP code, but its 
seems like it crash when i do a odbc_connect(...)

I know that unixodbc works becouse i test it with isql.

I have no warnings trying to find DSN, but now nothing happens. I suppose that it 
finds dsn but there is another error somewhere. But there is no logs, there is no 
output in the browser...  i dont know what to do, i have no information to try to 
resolve the error.

somebody can help me?

this is the reply from the browser;
The following error was encountered: 
Zero Sized Reply 
Squid did not receive any data for this request. 


this is my code:
^M
REGISTRO DE LLAMADAS^M
^M
";
$cx=odbc_pconnect("cdr2","mylogin","mypasswd","");
echo "connected";
?>






thanks in advance!

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




Re: [PHP] Cleanup script

2002-08-17 Thread Jose Arce


that's funny...the function oh_god_im_so_lazy does the job i think jeje...

>From: "Liam MacKenzie" <[EMAIL PROTECTED]>
>To: "php" <[EMAIL PROTECTED]>
>Subject: [PHP] Cleanup script
>Date: Sun, 18 Aug 2002 09:18:50 +1000
>
>I just had a massive open house party...
>
>Is it possible to write a PHP script to collect all the bottles and
>cans, mop the floor, fumigate the carpet and make me lunch?
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php




_
Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com


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




[PHP] object creation

2002-08-20 Thread Jose Jeria

The code below also works if you omit the declaration of the $userAgent,
will it be any difference?

/José J

class Browser
{
# the line below is not necessary?
var $userAgent;

function Browser()
   {
$this->userAgent = $GLOBALS["HTTP_USER_AGENT"];
}
}



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




[PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked with 4.2.2

2002-09-23 Thread Jose Fandos

Hi,

I was working on some code and couldn't get the following form to return
anything under Windows XP with Apache 1.3.26 and PHP 4.2.3.

I've just tried in a Solaris machine with same versions of Apache and
PHP and it works just fine. Same with a Linux machine running Red Hat
and same versions of Apache and PHP. Could someone else confirm this
under XP?

I have the magic_quotes set to Off, but tried with On with the same
result. In fact the settings in the Unix machines and Windows XP with
regards to Apache and PHP are as close to each other as they can be.

If it's a known bug, is there any way I can patch or update my PHP to
have it working again?

The following code will dump the contents of $_REQUEST and $_FILES. When
a file is selected under Windows XP (and the Apache server and PHP are
running in Windows XP) the information gets lost, without a trace of an
error. Works fine when the server is Solaris

Jose

===



Test


Test

";
  echo '$_FILES = '; var_dump($_FILES); echo "";
?>









==


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




[PHP] Errr... problem uploading files

2002-09-24 Thread Jose Fandos
bc.default_db
no value
no value
odbc.default_pw
no value
no value
odbc.default_user
no value
no value
odbc.defaultbinmode
return as is
return as is
odbc.defaultlrl
return up to 4096 bytes
return up to 4096 bytes
odbc.max_links
Unlimited
Unlimited
odbc.max_persistent
Unlimited
Unlimited

pcre
PCRE (Perl Compatible Regular Expressions) Support
enabled
PCRE Library Version
3.4 22-Aug-2000

session
Session Support
enabled

Directive
Local Value
Master Value
session.auto_start
Off
Off
session.cache_expire
180
180
session.cache_limiter
nocache
nocache
session.cookie_domain
no value
no value
session.cookie_lifetime
0
0
session.cookie_path
/
/
session.cookie_secure
Off
Off
session.entropy_file
no value
no value
session.entropy_length
0
0
session.gc_maxlifetime
1440
1440
session.gc_probability
1
1
session.name
PHPSESSID
PHPSESSID
session.referer_check
no value
no value
session.save_handler
files
files
session.save_path
c:\windows\temp
c:\windows\temp
session.serialize_handler
php
php
session.use_cookies
On
On
session.use_trans_sid
1
1

xml
XML Support
active
XML Namespace Support
active
EXPAT Version
1.95.2

wddx
WDDX Support
enabled

apache
Apache for Windows 95/NT

Apache Version
Apache/1.3.24
Apache Release
10324100
Apache API Version
19990320
Hostname:Port
localhost:80
Timeouts
Connection: 300 - Keep-Alive: 15

Directive
Local Value
Master Value
child_terminate
0
0
engine
1
1
last_modified
0
0
xbithack
0
0

Apache Environment
Variable
Value
COMSPEC
C:\WINDOWS\system32\cmd.exe
DOCUMENT_ROOT
c:/documents and settings/jose/my documents/__wwwserver HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=
0.1
HTTP_ACCEPT_CHARSET
ISO-8859-1, utf-8;q=0.66, *;q=0.66
HTTP_ACCEPT_ENCODING
gzip, deflate, compress;q=0.9
HTTP_ACCEPT_LANGUAGE
en-us, en;q=0.50
HTTP_CONNECTION
keep-alive
HTTP_HOST
localhost
HTTP_KEEP_ALIVE
300
HTTP_USER_AGENT
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910
PATH
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\
REDIRECT_STATUS
200
REDIRECT_URL
/testing/phpinfo.php
REMOTE_ADDR
127.0.0.1
REMOTE_PORT
3981
SCRIPT_FILENAME
c:/documents and settings/jose/my
documents/__wwwserver/testing/phpinfo.php
SERVER_ADDR
127.0.0.1
SERVER_ADMIN
[EMAIL PROTECTED]
SERVER_NAME
localhost
SERVER_PORT
80
SERVER_SIGNATURE
Apache/1.3.26 Server at localhost Port 80
SERVER_SOFTWARE
Apache/1.3.26 (Win32) PHP/4.2.3 mod_gzip/1.3.19.1a SystemRoot C:\WINDOWS
WINDIR C:\WINDOWS GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET QUERY_STRING

REQUEST_URI
/testing/phpinfo.php
SCRIPT_NAME
/testing/phpinfo.php

HTTP Headers Information
HTTP Request Headers
HTTP Request
GET /testing/phpinfo.php HTTP/1.1
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=
0.1
Accept-Charset
ISO-8859-1, utf-8;q=0.66, *;q=0.66
Accept-Encoding
gzip, deflate, compress;q=0.9
Accept-Language
en-us, en;q=0.50
Connection
keep-alive
Host
localhost
Keep-Alive
300
User-Agent
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910
HTTP
Response Headers X-Powered-By PHP/4.2.3 Keep-Alive timeout=15, max=100
Connection Keep-Alive Transfer-Encoding chunked Content-Type text/html

Additional Modules


Environment
Variable
Value
ALLUSERSPROFILE
C:\Documents and Settings\All Users
CommonProgramFiles
C:\Program Files\Common Files
COMPUTERNAME
YAL
ComSpec
C:\WINDOWS\system32\cmd.exe
NUMBER_OF_PROCESSORS
1
OS
Windows_NT
Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\
PATHEXT
..COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_IDENTIFIER
x86 Family 6 Model 8 Stepping 3, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
0803
ProgramFiles
C:\Program Files
SystemDrive
C:
SystemRoot
C:\WINDOWS
TEMP
C:\WINDOWS\TEMP
TMP
C:\WINDOWS\TEMP
USERPROFILE
C:\Documents and Settings\LocalService
windir
C:\WINDOWS

PHP Variables
Variable
Value
_SERVER["COMSPEC"]
C:\WINDOWS\system32\cmd.exe
_SERVER["DOCUMENT_ROOT"]
c:/documents and settings/jose/my documents/__wwwserver
_SERVER["HTTP_ACCEPT"]
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=
0.1
_SERVER["HTTP_ACCEPT_CHARSET"]
ISO-8859-1, utf-8;q=0.66, *;q=0.66
_SERVER["HTTP_ACCEPT_ENCODING"]
gzip, deflate, compress;q=0.9
_SERVER["HTTP_ACCEPT_LANGUAGE"]
en-us, en;q=0.50
_SERVER["HTTP_CONNECTION"]
keep-alive
_SERVER["HTTP_HOST"]
localhost
_SERVER["HTTP_KEEP_ALIVE"]
300
_SERVER["HTTP_USER_AGENT"]
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910
_SERVER["PATH"]
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\
_SE

[PHP] RE: ? (FIXED) (Errr... problem uploading files)

2002-09-25 Thread Jose Fandos

Hi there!

> Hi - it seems from your PHPinfo output that you have not specified, in
> your
> PHP.ini file, a directory where the server can put the uploaded files.
If
> this is not specified by a system defaul, you need to specifiy it
here.
> This means that : they will disappear into oblivion (at best).
Specifying
> C://temp or D://WINNT//Temp is a good place to start.
> 
> upload_tmp_dir  no valueno value

Yes!!! That did it. It doesn't work all the time. For some reason it
fails at times, even with the same image being uploaded, but it does at
least work now. I saw that option, but given that the following text was
preceeding it, didn't give it further thought.

; Temporary directory for HTTP uploaded files (will use system default
if not
; specified).
upload_tmp_dir = c:\\windows\\temp


> Also - your temp files will not have the name of the file you
uploaded,
> because they might interfere with other files uploaded into the temp
dir.
> They are usually named sequentially, while session files usually have
a
> MD5
> based name (long string of alpha characters)
> 
> Consequently the filenames might be like "php29.tmp" or whatever - not
> what
> you sent the file as. To recover the filename , check
> 
> $HTTP_POST_FILES["fieldname"]["name"]
> 
> Where fieldname is the name of the browse field that you gave in the
forms
> HTML.

Yep. That was taken care of. 

Thanks again,

Jose

 
> Cheers,
> Neil Smith.
> 
> At 00:39 25/09/2002 +, you wrote:
> >From: "Jose Fandos" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>,
> > <[EMAIL PROTECTED]>
> >Date: Tue, 24 Sep 2002 19:22:14 +0100
> >Message-ID: <000401c263f7$50dfa060$2000a8c0@YAL>
> >MIME-Version: 1.0
> >Content-Type: text/plain;
> > charset="us-ascii"
> >Content-Transfer-Encoding: 7bit
> >Subject: Errr... problem uploading files
> >
> >Hi,
> >
> >Under PHP 4.2.3 and 4.2.2 with Apache 1.3.6, all under Windows XP,
when
> >a
> >form has a file input field, if I browse and upload, all the
information
> >going with the post to the server gets lost!!! There is no trace of
it
> >(and
> >this is what's really frustating me, no trace in any log of any
errors).
> >var_dump's show everything empty. If I submit without browsing (i.e.
no
> >file
> >selected), I do see the $_FILES array signaling an error, but
otherwise
> >complete, and everything else (though, on further testing, it seems
that
> 
> __
> 
> VideoChat with friends online, get Freshly Toasted every day at
> http://www.fresh-toast.net : NetMeeting solutions for a connected
world.



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




[PHP] fopen() question

2002-06-04 Thread Jose Jeria

What I want to do is to the save a file with its new content, but when i
save the file
and the new content is less than it was before i opened it, you can see the
old content
after the new shorter content. How can i avoid this?

Now using:
 $fd = fopen($arrFileName, "r+");
 fwrite($fd, $arrFileContent);
 fclose($fd);

/Jose Jeria



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




[PHP] storing echo to MySQL or converting to a variable

2002-07-03 Thread Jose Arce

Hi, i want to know if i can convert this:

echo fgets($conexion,256);

to a variable, or store it to a MySQL database, and then email that variable 
or data in the MySQL database...thx :D

_
MSN Fotos: la forma más fácil de compartir e imprimir fotos. 
http://photos.msn.es/support/worldwide.aspx


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




[PHP] fsockopen question

2002-07-03 Thread Jose Arce

Hi, i'm making a script to transfer all the zips from my old server to my 
new one, i mean, server to server. That's the easy part. The cuestion is:

Can i open more than just one instance for fsockopen to retrieve more files 
in the same script, at the same time? i mean, not one by one (that will be 
slow), but 4 or 5 at the same time...
some people think it's possible, some people don't...thx :D

_
MSN. Más Útil cada Día. http://www.msn.es/intmap/


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




RE: [PHP] fsockopen question

2002-07-03 Thread Jose Arce

So...i can do more than one fsockopen()...but is not multi-thread? i don't 
understand...i mean...if i can open more than one fsockopen...it is 
multithread, or in wich cases php open more than one fsockopen?
thx :D


>From: Martin Towell <[EMAIL PROTECTED]>
>To: 'Jose Arce' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: RE: [PHP] fsockopen question
>Date: Thu, 4 Jul 2002 16:39:36 +1000
>
>you can do more than one fsockopen(), but since php isn't multi-threaded -
>you'll still only be able to download one file at a time.
>
>-Original Message-
>From: Jose Arce [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 04, 2002 4:39 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] fsockopen question
>
>
>Hi, i'm making a script to transfer all the zips from my old server to my
>new one, i mean, server to server. That's the easy part. The cuestion is:
>
>Can i open more than just one instance for fsockopen to retrieve more files
>in the same script, at the same time? i mean, not one by one (that will be
>slow), but 4 or 5 at the same time...
>some people think it's possible, some people don't...thx :D
>
>_
>MSN. Más Útil cada Día. http://www.msn.es/intmap/
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php




_
MSN Fotos: la forma más fácil de compartir e imprimir fotos. 
http://photos.msn.es/support/worldwide.aspx


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




RE: [PHP] fsockopen question

2002-07-03 Thread Jose Arce

now it's clear  thx :D
is not the same thing as:
while ($i < 100) {
$sock = fsockopen($host, 80);
fputs($sock, "GET /file".$i".html HTTP/1.0\r\n\r\n");
}
isn't?

>From: Martin Towell <[EMAIL PROTECTED]>
>To: 'Jose Arce' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: RE: [PHP] fsockopen question
>Date: Thu, 4 Jul 2002 16:49:59 +1000
>
>I mean, you can do
>
>// been a while, so syntax is prob. wrong :(
>$sock1 = fsockopen($host, 80);
>$sock2 = fsockopen($host, 80);
>
>fputs($sock1, "GET /file1.html HTTP/1.0\r\n\r\n");
>fputs($sock2, "GET /file2.html HTTP/1.0\r\n\r\n");
>
>$content1 = fgets($sock1, 102400);
>$content2 = fgets($sock1, 102400);
>
>$fclose($sock1);
>$fclose($sock2);
>?>
>
>each of the fgets()'s will be executed sequentially. But there's two 
>sockets
>open...
>
>
>-Original Message-
>From: Jose Arce [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 04, 2002 4:48 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: RE: [PHP] fsockopen question
>
>
>So...i can do more than one fsockopen()...but is not multi-thread? i don't
>understand...i mean...if i can open more than one fsockopen...it is
>multithread, or in wich cases php open more than one fsockopen?
>thx :D
>
>
> >From: Martin Towell <[EMAIL PROTECTED]>
> >To: 'Jose Arce' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> >Subject: RE: [PHP] fsockopen question
> >Date: Thu, 4 Jul 2002 16:39:36 +1000
> >
> >you can do more than one fsockopen(), but since php isn't multi-threaded 
>-
> >you'll still only be able to download one file at a time.
> >
> >-Original Message-
> >From: Jose Arce [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, July 04, 2002 4:39 PM
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] fsockopen question
> >
> >
> >Hi, i'm making a script to transfer all the zips from my old server to my
> >new one, i mean, server to server. That's the easy part. The cuestion is:
> >
> >Can i open more than just one instance for fsockopen to retrieve more 
>files
> >in the same script, at the same time? i mean, not one by one (that will 
>be
> >slow), but 4 or 5 at the same time...
> >some people think it's possible, some people don't...thx :D
> >
> >_
> >MSN. Más Útil cada Día. http://www.msn.es/intmap/
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>_
>MSN Fotos: la forma más fácil de compartir e imprimir fotos.
>http://photos.msn.es/support/worldwide.aspx
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php




_
Únase al mayor servicio mundial de correo electrónico: 
http://www.hotmail.com/es


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




[PHP] FTP routine

2002-07-04 Thread Jose Arce

Hi, i'm making a script to donwload files from a ftp server to the server 
hosting the script, but i don't know how to download all the files from a 
directory. I'm using the file system functions to conect to the ftp server, 
because the ftp functions in php does not always work, and, actually  they 
suck

@fputs($conexion,"RETR file.zip\r\n");
echo @fgets($conexion,256);
echo "" ;

I think that works, but i don't know how to retrive all the files from a 
directory. Also (ppff!! thats a lot of questions) some people say i can 
resume these downloads when i use fsockopen...is that true?. Oh yes, i 
almost forgot, when downloading large files, the script dies, is there a 
chance to let the script die, but the process can go on, and when it's 
finished send a email or something telling me that it transfer the files?

Thx :D

PD: English is not my languaje, sorry ñ_ñ


_
MSN. Más Útil cada Día. http://www.msn.es/intmap/


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




[PHP] FTP commands

2002-07-06 Thread Jose Arce


Hi, i'm making a script, that logs some ftp characteristics, like resume 
support and stuff...i try using ftp_site(), but it's not working

I want to send a command like REST, but ftp_site() send the command like 
this: SITE REST, with the SITE before the command...any way to do it?
Thx :D

_
Únase al mayor servicio mundial de correo electrónico: 
http://www.hotmail.com/es


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




Re: [PHP] Error: Parse error: parse error, unexpected $ in...

2002-07-06 Thread Jose Arce

that error appears many times to me...you can show some code so we all can 
see what's wrong, but i've solved it adding a }, as i told you, manny times 
it has appear to me, and that's the way i've solved it :D

>From: Shiloh Madsen <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] Error: Parse error: parse error, unexpected $ in...
>Date: Sat, 06 Jul 2002 20:03:35 -0500
>
>Hi all. Im getting the above mentioned error: *Parse error*: parse error, 
>unexpected $ in *c:\program files\apache group\apache\htdocs\login.php* on 
>line *38* when I try to view the page I just created. As a forewarning, I 
>am very new to PHP, so I may have done something stupid, and if it matters, 
>I am also using windows, not *nix. Any help with this would be greatly 
>appreciated.
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php




_
Únase al mayor servicio mundial de correo electrónico: 
http://www.hotmail.com/es


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




Re: [PHP] Re: FTP commands

2002-07-06 Thread Jose Arce




>From: "Richard Lynch" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] Re: FTP commands
>Date: Sat, 06 Jul 2002 17:02:20 -0500
>
> >
> >Hi, i'm making a script, that logs some ftp characteristics, like resume
> >support and stuff...i try using ftp_site(), but it's not working
> >
> >I want to send a command like REST, but ftp_site() send the command like
> >this: SITE REST, with the SITE before the command...any way to do it?
> >Thx :D
>
>This is just a Wild Guess, since I haven't read the manual (did you?) but
>I'm guessing that ftp_site() sends a command with "SITE" before it, but you
>can use other functions to open up an FTP connection and send any old
>command you like...
>
>Just a guess, though.  I'd have to actually read the manual *for* you to
>answer this one, and I'm not willing to do that.
>
>http://php.net/ftp
>
>--
>Like Music?  http://l-i-e.com/artists.htm
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


_
Únase al mayor servicio mundial de correo electrónico: 
http://www.hotmail.com/es


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




[PHP] ignore_user_abort question

2002-07-14 Thread Jose Arce

Hi, got a question.

What happend if ignore_user_abort is true, and the user closes the window?

Also, i tried, but i push the stop button, and the script stops, shouldn 
ignore that?.

Thx :D

_
MSN Fotos: la forma más fácil de compartir e imprimir fotos. 
http://photos.msn.es/support/worldwide.aspx


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




[PHP] draw statistics

2002-07-18 Thread Jose Morales

Hi!

Im looking for some class that alow me to draw an histogram, or a piechar, for display 
statistics. 

thx!

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




[PHP] Tables with scroll in HTML?

2001-03-18 Thread Jose Antonio

Is any way to make a dinamic table with its own scroll?

I'm trying make a table/form with a checkbox in every row and a submit
button, but, when the table becomes long, I have to scroll down ALL the page
to find the SUBMIT button. When you have make this operaton 3 times, it
becomes bored.

I have tryed to make several frames, but, if a put the submit button in a
diferent frame, how can i know wich are the selected rows of the form in the
other frame?

If I could make a table with a fixed size and its own scroll bar, the
interface would became more efficient.

Can anyone help me to make this? Any JAVA solution?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Debugger

2002-05-10 Thread Jose Leon

Hello:
  I have been browsing the web for a good solution to debug php code, I 
have found several ones, but none of them meet my requeriments. I 
create a development tool for PHP (QaDRAM Studio) and I want to be able 
to debug php code with it, my question here is: 

Why PHP 4 has no built-in debug features? This will simplify the setup 
for debugging php code and will allow php development tools provide 
debug support in a convenient way, instead force the user to change the 
php.ini file to support debug and to don't be able to debug every time 
the php version changes.

I have examined DBG and it's the one that fits my needs better, but 
there's not too much information on how to use it and what I have found 
is not complete. Also requires to load a 'listener' to be able to debug 
remotely. The Komodo solution looks nicer, but is propietary. Any help 
or comments?

Regards.



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




[PHP] Re: Debugger

2002-05-10 Thread Jose Leon

> php -l will let you know where your syntax errors are.

What?

Regards


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




Re: [PHP] Re: Debugger

2002-05-11 Thread Jose Leon

Hello:
> He said "php -l will let you know where your syntax errors are."
And what this has to do with my question? I was asking for a debugger, 
not for an error report. I want a mechanism to debug php programs step 
by step, watch variables and so on.

Regards.


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




Re: [PHP] Re: Debugger

2002-05-11 Thread Jose Leon

Hello:
> I think the OP has already looked at it, and wanted something 
> better :)

Yes, that's right, but I'm not saying dbg isn't good, I just said is 
too much complicated (AFAIK):
-Must have a listener running
-Use COM to interface with it
-User installation too hard:
 Change php.ini to load the extension
 Keep track of the php version and the extension version

I really like the Komodo solution, just copy a dll and it changes the 
php.ini for you. But I still must keep track of the PHP version.

It would be nice that php itself incoporates a system to debug php 
programs, like in PHP 3, in that way a development tool for php would 
be enabled to debug modifying the php.ini with debug.enabled=true and 
listening to a port. The system will work on any php distribution 
because will be part of php itself. Why the debugger was removed from 
PHP 3?

Regards.



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




[PHP] simple array question

2002-05-27 Thread Jose Jeria

in javascript i can build an array doing like this:

for(i=0; i < whatEver.length; i++){
myArray[myArray.length] = //
}

What is the equivalent to this in PHP?
Is this the only way:
$myArray[count($myArray)] = //..

/J




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




[PHP] request object

2002-05-27 Thread Jose Jeria

I have a page that creates form elements dynamically. Every time the amount
of form elements is different.

So to the page that I submit to I need to see how the whole request object.
Is that possible?

/Jose





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




[PHP] Re: request object

2002-05-27 Thread Jose Jeria

if I am not mistaken the equivalent in asp is
Request.Form();

/j

"Jose Jeria" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a page that creates form elements dynamically. Every time the
amount
> of form elements is different.
>
> So to the page that I submit to I need to see how the whole request
object.
> Is that possible?
>
> /Jose
>
>
>
>



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




[PHP] Avoid escaping

2002-05-29 Thread Jose Jeria

i have some html that i submit using html
example

Perro


When i submit this and retrieve it on the target page the value looks like
this:
Perro

Can I somehow avoid that somehow?



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




[PHP] no ciphers supported in phpinfo()

2004-09-18 Thread Jose Ramirez
I compiled mcrypt and php without problem, but phpinfo() shows there
are no supported ciphers and modes; following a suggestion I try to
change mode to 755 on libdirs (/usr/local/libmcrypt,
/usr/local/libcrypt), but nothing happens.

Please help!


-- 

José M. Ramirez

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



[PHP] installing php 5.2.1

2007-03-29 Thread Jay Jose
Its my first time to install and use php on my computer with IIS 5.1... I used 
the MSI of php 5.2.1 for intallation but every time i run the

phpinfo();
?>
i always get the following result:
CGI Error
The specified CGI application misbehaved by not returning a complete set of 
HTTP headers. The headers it did return are:

PHP Warning:  PHP Startup: Unable to load dynamic library 
'C:\PHP\ext\php_exif.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'C:\PHP\ext\php_oci8.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'C:\PHP\ext\php_pdo_oci.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'C:\PHP\ext\php_pdo_oci8.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'C:\PHP\ext\php_pspell.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic librar

i installed the php on C:\PHP and the extentions at C:\PHP\ext and set the the 
php.ini
extension_dir = "C:\PHP\ext"
i also tried the extension_dir = C:\PHP\ext but still same result... can anyone 
show me what i've done wrong or if you can, please guide my in the whole 
process of installing and configuring... thanks
 Send instant messages to your online friends http://uk.messenger.yahoo.com 

[PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-03 Thread Jose Nobile
Hi,

In Apache 2.2  forward all request that
point to phisical .php file to PHP-FPM  is as follow:

LoadModule fastcgi_module  modules/mod_fastcgi.so

FastCGIExternalServer /usr/sbin/php-fpm -socket
/usr/local/php/lib/php.sock -idle-timeout 900AddHandler php-fastcgi
.phpAction php-fastcgi /usr/sbin/php-fpm.fcgiScriptAlias
/usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm

 But in Apache 2.4  is different, I'm
following the tutorial in Apache Wiki
 but
I don't understand as enable PHP for all virtual host, not each one.

I search in PHP documentation, there is not mention about install on Apache
2.4:

   - Install PHP on Apache 2.x on Unix
systems
   - PHP-FPM Install 
   - PHP-FPM Documentation 

This question was initially posted on stackoverflow:

http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host

Thank you for your help.

Saludos,
José Nobile


Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
Hello, I wrote the question differently:

How to redirect requests for .php files to PHP-FPM for all virtual hosts in
Apache 
2.4?<http://stackoverflow.com/questions/15773901/how-to-redirect-requests-for-php-files-to-php-fpm-for-all-virtual-hosts-in-apac>

Thank you for your help.


Saludos,
José Nobile


On Wed, Apr 3, 2013 at 6:50 PM, Jose Antonio Nobile Rendon <
jose.nob...@gmail.com> wrote:

> How to forward all request to files .php of any virtual host to
> PHP-FPM in Apache 2.4? Not each one.
>
> Saludos,
> Jose Nobile
> -Mensaje original-
> De: tamouse mailing lists
> Enviado:  03/04/2013, 6:35  PM
> Para: Jose Nobile
> Cc: php-general@lists.php.net
> Asunto: Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all
> virtual host
>
>
> Sorry, in all of that, I don't see what the question is?
>
> On Wed, Apr 3, 2013 at 3:27 PM, Jose Nobile  wrote:
> > Hi,
> >
> > In Apache 2.2 <http://httpd.apache.org/docs/2.2/> forward all request
> that
> > point to phisical .php file to PHP-FPM <http://php-fpm.org/> is as
> follow:
> >
> > LoadModule fastcgi_module <http://www.fastcgi.com/>
> modules/mod_fastcgi.so
> >
> > FastCGIExternalServer /usr/sbin/php-fpm -socket
> > /usr/local/php/lib/php.sock -idle-timeout 900AddHandler php-fastcgi
> > .phpAction php-fastcgi /usr/sbin/php-fpm.fcgiScriptAlias
> > /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm
> >
> >  But in Apache 2.4 <http://httpd.apache.org/docs/2.4/> is different, I'm
> > following the tutorial in Apache Wiki
> > <http://wiki.apache.org/httpd/PHP-FPM> but
> > I don't understand as enable PHP for all virtual host, not each one.
> >
> > I search in PHP documentation, there is not mention about install on
> Apache
> > 2.4:
> >
> >- Install PHP on Apache 2.x on Unix
> > systems<http://www.php.net/manual/en/install.unix.apache2.php>
> >- PHP-FPM Install <
> http://www.php.net/manual/en/install.fpm.install.php>
> >- PHP-FPM Documentation <http://php-fpm.org/wiki/Documentation>
> >
> > This question was initially posted on stackoverflow:
> >
> >
> http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host
> >
> > Thank you for your help.
> >
> > Saludos,
> > José Nobile
>


Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
How?

If is required set the website path to PHP-FPM, from Apache Wiki:

ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1




Saludos,
José Nobile


On Thu, Apr 4, 2013 at 3:15 PM, Matijn Woudt  wrote:

> On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile 
> wrote:
>
> > Hi,
> >
> > In Apache 2.2 <http://httpd.apache.org/docs/2.2/> forward all request
> that
> > point to phisical .php file to PHP-FPM <http://php-fpm.org/> is as
> follow:
> >
> > LoadModule fastcgi_module <http://www.fastcgi.com/>
> modules/mod_fastcgi.so
> >
> > FastCGIExternalServer /usr/sbin/php-fpm -socket
> > /usr/local/php/lib/php.sock -idle-timeout 900AddHandler php-fastcgi
> > .phpAction php-fastcgi /usr/sbin/php-fpm.fcgiScriptAlias
> > /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm
> >
> >  But in Apache 2.4 <http://httpd.apache.org/docs/2.4/> is different, I'm
> > following the tutorial in Apache Wiki
> > <http://wiki.apache.org/httpd/PHP-FPM> but
> > I don't understand as enable PHP for all virtual host, not each one.
> >
> > I search in PHP documentation, there is not mention about install on
> Apache
> > 2.4:
> >
> >- Install PHP on Apache 2.x on Unix
> > systems<http://www.php.net/manual/en/install.unix.apache2.php>
> >- PHP-FPM Install <
> http://www.php.net/manual/en/install.fpm.install.php
> > >
> >- PHP-FPM Documentation <http://php-fpm.org/wiki/Documentation>
> >
> > This question was initially posted on stackoverflow:
> >
> >
> >
> http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host
> >
> > Thank you for your help.
> >
> > Saludos,
> > José Nobile
> >
>
>
> Hi,
>
> You should follow the instructions on the Apache site, and just place all
> settings outside of the virtualhost (eg. in httpd.conf).
>
> - Matijn
>


Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
But we have two process manager, in Apache with mod_fastcgi and PHP-FPM?


Saludos,
José Nobile


On Thu, Apr 4, 2013 at 4:27 PM, Matijn Woudt  wrote:

>
>
>
> On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile wrote:
>
>> How?
>>
>> If is required set the website path to PHP-FPM, from Apache Wiki:
>>
>> ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1
>>
>>
>>
>>
>> Saludos,
>> José Nobile
>>
>>
>>
> with mod_proxy_fcgi you indeed need this line in each vhost. If you don't
> want this, then you need to use something else, like mod_fastcgi or
> mod_cgid?
> mod_cgid should work out of the box, with mod_fastci you might to compile
> this version for Apache 2.4:
> https://github.com/ByteInternet/libapache-mod-fastcgi
>
> - Matijn
>


Re: [PHP] looking for a PDF generator class/library for PHP 5?

2013-05-17 Thread Jose Nobile
Hi, try DOMPDF , is a powerful conversor from
HTML/CSS to PDF.


Saludos,
José Nobile


On Fri, May 17, 2013 at 8:05 PM, dealTek  wrote:

> Hi all,
>
> I'm looking into a good versatile PDF generator class/library to use with
> PHP 5? --- Preferably one which is maintained somewhat recently...
>
> Mostly needed for basic pages, but I also have some longer reports (more
> than one  8.5" x 11" page) and it would be nice if  the pdf was able to
> split it up without losing part of the font when crossing page boundaries
> etc...
>
>
>
> --
> Thanks,
> Dave - DealTek
> deal...@gmail.com
> [db-3]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Symfony?

2013-05-20 Thread Jose Nobile
Hi, I'm using Symfony 1.4 Templating
Component


Saludos,
José Nobile


On Mon, May 20, 2013 at 11:40 AM, Tedd Sperling  wrote:

> Hi gang:
>
> Who uses Symfony?
>
> Cheers,
>
> tedd
>
>
> _
> t...@sperling.com
> http://sperling.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Figuring out file-encoding

2011-02-28 Thread Jeffrin Jose
On Mon, Feb 28, 2011 at 06:20:30PM +0100, Asmann, Roland wrote:
> I need to read several files from the HD, but they are saved in 
> different encodings. Can I somehow figure out which encoding I should 
> use when reading the file?

i think detect the file encoding and decode it.
as for detection try using mb_detect_encoding function.
http://php.net/manual/en/function.mb-detect-encoding.php
it works with (PHP 4 >= 4.0.6, PHP 5)

/Jeffrin.

-- 
software engineer.
department of computer science
rajagiri school of engineering and technology.

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



Re: [PHP] Need help Wth PHP

2011-10-10 Thread Jeffrin Jose
there is a file called wp-config.h  in wordpress files mostly located 
in the source parent there you can see the database name , username
and password. that file also may contain the site url. This way you may
be able to identify the database from the original site. 

If you do not have wordpress in your new server you may be able
to install it using cpanel application..


 
software engineer
department of computer science
Rajagiri school of engineering and technology.


>
>From: Rod Lindgren 
>To: 'Lester Caine' ; php-general@lists.php.net
>Sent: Monday, 10 October 2011 1:37 PM
>Subject: RE: [PHP] Need help Wth PHP
>
>I was able to install Wordpress, but how do I identify the database from the
>original site? Do I need to change some settings in it somewhere with the
>authorizations from the new install on the new server? Right now, if you go
>to the website, a generic page created by the install comes up. I seem to
>have lost the original page. 
>
>Thanks,
>Rod
>
>-Original Message-
>From: Lester Caine [mailto:les...@lsces.co.uk] 
>Sent: Sunday, October 09, 2011 11:31 PM
>To: php-general@lists.php.net
>Subject: Re: [PHP] Need help Wth PHP
>
>Rod Lindgren wrote:
>> Thanks for the link. I am now wondering if Wordpress is available on my
>> server.
>If it's not, you can add it yourself in much the same way you uploaded the 
>'profile' for the wordpress site ... http://wordpress.org/download/
>Essentially it is just another PHP application, but you do need the database
>
>that goes with the original site.
>
>-- 
>Lester Caine - G8HFL
>-
>Contact - http://lsces.co.uk/wiki/?page=contact
>L.S.Caine Electronic Services - http://lsces.co.uk
>EnquirySolve - http://enquirysolve.com/
>Model Engineers Digital Workshop - http://medw.co.uk//
>Firebird - http://www.firebirdsql.org/index.php
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>-
>No virus found in this message.
>Checked by AVG - www.avg.com
>Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
>-
>No virus found in this message.
>Checked by AVG - www.avg.com
>Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
>-
>No virus found in this message.
>Checked by AVG - www.avg.com
>Version: 10.0.1410 / Virus Database: 1520/3943 - Release Date: 10/07/11
>
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>

Re: [PHP] PHP Web Mail

2004-07-05 Thread Jose Leon
Hello,
> Does anyone know a good PHP-based (free if possible) web mail other than
> UebiMiau that they would recommend?
Why not Squirrel Mail?

http://www.squirrelmail.org

Regards.
--
qadram :: software development
http://www.qadram.com

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



Re: [PHP] PHP Web Mail

2004-07-05 Thread Jose Leon
Hello,
On Mon, 5 Jul 2004 12:33:38 +0100, I.A. Gray <[EMAIL PROTECTED]> wrote:
> Thanks- looked at Squirrel Mail.  Looks really good, however we use POP3- I
> don't think Squirrel Mail uses POP3 does it?
SquirrelMail is a web interface to an IMAP mail server, you can set up
fetch mail to retrieve your POP3 mail accounts and put the mail into
the Cyrus IMAP server, that way, you can handle all your mail from a
single point.

Regards.
-- 
qadram :: software development
http://www.qadram.com

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



[PHP] Hey Php-general@lists.php.net ;)

2007-09-02 Thread Jose Ramirez



http://www.hi5.com/register/XlneT?inviteId=A_90991ca_0C09xs.2txp151622090

Jose

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



[PHP] CURL_OPTION in foreach statement

2006-03-29 Thread Jose Lopez

It seems something is not working so well here:

$extra_curl_params = array ('CURLOPT_POST'=>TRUE);
foreach ($extra_curl_params as $curl_opt_name=>$curl_opt_value) {
curl_setopt ($curl_handle, $curl_opt_name, $curl_opt_value);
}

I use this "foreach" method to set up curl options and actually 
curl_setopt function does not complaint about it. But some or all of the 
options set seems not to be properly working when curl actually make the 
connection.


Anyone could help?

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



[PHP] Problems running PHP.

2004-11-22 Thread Jose Arguello
I just install in my computer PHP 5.0.2, I followed
the instruction on the book PHP and MySql Web
Development by Luke Welling and Laura Thomson.
But, it is not working. I have tried to use this
codes, one is just a html form and the other is a php
code. I tried to pass the values from the form to the
php code but it is not getting the values.

HTML Form:
 
 
 
 
  Item
  Quantity
 
 
  Tires
  
 
 
  Oil
  
   
 
 
 
  Spark Plugs
  
   
 
 
 
  
 
 
 
 
 Php Code:
 
 
 
 

   Bob's Auto Parts - Order Results


  Bob's Auto Parts
  Order Results
  Order pordessed at ';
echo date('H:i, jS F');
echo '';

echo 'Your order is as follows: ';
echo $tireqty.' tires';
echo $oilqty.' bottles of oil';
echo $sparkqty.' spark plugs';
  ?>

 
 
 
 I am sure that this code works because I tried it on
a server who is running php 4.0, I know that in php
 5.0.2, I can use $_POST and $_GET instead of
 $HTTP_GET_VARS or $HTTP_POST_VARS. But, I have tried
 them and they are not working.
 So, I hope you can help me to fix it, because I
really want to learn how to program with PHP.
 
 Best Regards,
  Jose



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 

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



[PHP] Fwd: Re: Problems running PHP.

2004-11-22 Thread Jose Arguello

Note: forwarded message attached.




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 
--- Begin Message ---
Hi Jose,
Since your report is not about the php.net website, this is not the 
right address to send it. Please consult [EMAIL PROTECTED] for 
support questions.

Regards,
Gabor Hojtsy
Jose Arguello írta:
I just install in my computer PHP 5.0.2, I followed
the instruction on the book PHP and MySql Web
Development by Luke Welling and Laura Thomson.
But, it is not working. I have tried to use this
codes, one is just a html form and the other is a php
code. I tried to pass the values from the form to the
php code but it is not getting the values.
HTML Form:



 Item
 Quantity


 Tires
 


 Oil
 
  



 Spark Plugs
 
  



 



Php Code:


   
  Bob's Auto Parts - Order Results
   
   
 Bob's Auto Parts
 Order Results
 Order pordessed at ';
echo date('H:i, jS F');
echo '';

echo 'Your order is as follows: ';
echo $tireqty.' tires';
echo $oilqty.' bottles of oil';
echo $sparkqty.' spark plugs';
 ?>
   

I am sure that this code works because I tried it on a
server who is running php 4.0, I know that in php
5.0.2, I can use $_POST and $_GET instead of
$HTTP_GET_VARS or $HTTP_POST_VARS. But, I have tried
them and they are not working.
So, I hope you can help me to fix it, because I really
want to learn how to program with PHP.
Best Regards,
 Jose
		
__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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

Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-24 Thread Jose M.Herrera
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bogdan Ribic wrote:
| Here's a little test script:
|
| 
| $x = 2;
| $y = 10;
|
| $b1 = is_null($x) or ($y > 5);
| $b2 = ($y > 5) or is_null($x);
Yes, of course.
Your code or example, is just like:
( $b1 = is_null($x) )  or ( $y > 5  ) ;
( $b2 =  ($y > 5)   )  or  is_null($x) ;
The ">" has more precedence than "=", "or" it has a very low precedence.
Then, $b1 = false and $b2 = True... that's ok! :P
You example, must have been:
$b1 = (   ( is_null($x) )  or ( $y > 5  ) );
$b2 = (   ( $y > 5  )  or ( is_null($x) ) );
I this example the value of $b1 is all between the parenthesis (explicitly).
Bye!
- --
Jose Miguel Herrera M.  -  User #246070 counter.li.org
Est.Ing.Civil Informatica - UTFSM
Valparaiso, Chile -  http://www.inf.utfsm.cl/~jherrera
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBzHJdl/j2VHFHn8wRArZdAKCJbv8W54vlpeinK1hMF3xEttjuiACeIIUs
63OX2bn+h9zLUDHhSvSTr/M=
=3vfi
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-27 Thread Jose M.Herrera
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rory Browne wrote:
| I think what Jose is trying to say, is that because 'or' has a lower
| precidence than =, you are interpreting the expression wrong.
Yes, I was trying to say that. The () are very important when you need
to use OR, AND, ||, &&, etc...
Bye!, Merry Christmas and a happy new year for all!!
- --
Jose Miguel Herrera M.  -  User #246070 counter.li.org
Est.Ing.Civil Informatica - UTFSM
Valparaiso, Chile -  http://www.inf.utfsm.cl/~jherrera
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB0DJ/l/j2VHFHn8wRAp7DAJwOKLs64UJMDiLFpOv/4vJ494UZxgCeJPzh
WTBDqE0yj4abqyM9Nabjm4Y=
=sH6h
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php explained in sql

2005-08-21 Thread Jose Miguel
We should use:

if (!empty($mydata->email))

 in php, right?

On 8/19/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> John Taylor-Johnston wrote:
> > In php, if I wanted to know if $mydata->email contained something, I
> > would do this, right?
> > if ($mydata->email)
> > {}
> >
> > How would I express this in SQL (MySQL)?
> 
> That doesn't tell you if $mydata->email contains something. It tells you
> whether the value of $mydata->email, when cast to boolean, equals TRUE.
> If $mydata->email equaled zero or the string "0", it would still contain
> something, but that if statement would not get executed.
> 
> In MySQL, it would depend on the datatype. You could do any of the
> following, depending on what you actually want to do:
> 
> colname<>''
> colname<>0
> colname IS NOT NULL
> 
> Or, if you're in MySQL >= 5.0.2 and are using true boolean values:
> 
> colname IS TRUE
> 
> or, if you just want to check if it's TRUE or UNKNOWN:
> 
> colname IS NOT FALSE
> 
> 
> Jasper
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Jose Arce
http://sinexion.com - http://josearce.com

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



Re: [PHP] Cookie-question?

2005-09-07 Thread Jose Miguel
Ok, please correct me if i'm wrong...

First of all, i'd rather use $_COOKIE instead of $HTTP_COOKIE_VARS.

And in the line...

if ($voteNow == 'Y' AND $userVote == 'Y' AND $cookieJoke != 'voted') {

Why don't you use the operator NOT IDENTICAL (!==), cause != will also 
return true if the variables are the same type sometimes.

On 9/7/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> 
> Hi there!
> 
> Look at following code below, and please give me a clue why this
> cookie-thing doesn't work?
> $IDJoke is set before and is an ID from a row in a db
> It seems to work a while, but is there a limit for the expire-parameter?
> 
> /G
> http://www.varupiraten.se/
> 
> 
> //Get cookie from users computer for current joke to tell if user is
> allowed to vote or not!
> //
> $cookieJoke = $HTTP_COOKIE_VARS["$IDJoke"];
> if ($cookieJoke == 'voted') {$showVoteValues ='N';$userVote = 'N';}
> 
> //User wants to vote?
> //
> if ($voteNow == 'Y' AND $userVote == 'Y' AND $cookieJoke != 'voted') {
> 
> $showVoteValues = 'N'; //Don't show values directly after
> vote...
> 
> //Save IDJoke to a cookie with the value - voted to users
> computer
> setcookie("$IDJoke", 'voted', time()+60*60*24*30*12*100); /*
> expires in about 100 years*/
> 
> //END User wants to vote
> //
> }
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Jose Arce
http://sinexion.com - http://josearce.com


Re: [PHP] A dumb question - Regarding a php cms

2005-09-17 Thread Jose Miguel
Regarding paths, in a Windows enviroment, you should use double slash, like:

c:\\www\\syntax desktop\\

Cheers.

On 18 Sep 2005 09:13:56 +1000, Troy Pieterman <[EMAIL PROTECTED]> 
wrote:
> 
> Im trying to run Syntax desktop which is a php cms (on my own server
> win2003).
> 
> In the installation readme it tells me to edit a cfg.php file, i have done
> this but the cms still does not load, i have a feeling its becuase it 
> dosnt
> know where to load its files from, here is the code that tells it, its 
> path
> and relative path.
> 
> 
> 
> ///
> // AUTO CALCULATED VARIABLE
> 
> 
> //
> 
> //phisical path. I.e. /var/www/html/site1/
> $synRealBasePath=substr(dirname(__FILE__),0,strlen(dirname(__FILE__))-6);
> 
> //relative path. I.e. /site1/
> $synBasePath="/".basename($synRealBasePath)."/";
> 
> 
> //
> 
> How do i write in there its "phisical path and relative path" are
> c:\www\syntax desktop\
> 
> thanks for your help
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Jose Arce
http://sinexion.com - http://josearce.com


Re: [PHP] Can anyone recommend a hosting company

2005-12-16 Thread Jose Miguel
Try browsing the forums webhostingtalk.com, they have some pretty good
reviews about several hosting companys.

On 12/16/05, Marty <[EMAIL PROTECTED]> wrote:
>
> Can anyone recommend a fair priced, reliable hosting company that would
> best
> meet my needs as follows:
>
>
> Shared plan with
> PHP
> Windows server
> Mssql
> Need to host multiple domains under one account.
>
> thanks in advance
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Jose Arce
http://sinexion.com - http://josearce.com


[PHP] PHP errors in Apache error logs

2005-12-19 Thread Jose Borquez
I am attempting to configure Group Office which is a Project Management 
suite on FreeBSD 5.4 with apache+mod_ssl-1.3.34+2.8.25_1, MySQL 5.0.16, 
PHP5-MySQL 5.1.1, and PHP5.1.1 and I keep getting the following error 
messages in my error logs when I attempt to open a php page:


[Mon Dec 19 10:37:36 2005] [error] PHP Fatal error:  Call to undefined 
function
session_save_path() in 
/usr/local/www/groupoffice-com-2.14-FINAL-4/Group-Office.

php on line 792
/usr/local/www/groupoffice-com-2.14-FINAL-4/Group-Office.php(792) : 
Fatal error

- Call to undefined function session_save_path()

Could someone please give me any ideas as to what the problem is?  Any 
help would be greatly appreciated.


Thanks in advance,
Jose

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



[PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Jose Borquez

John Nichel wrote:


Jose Borquez wrote:

I am attempting to configure Group Office which is a Project 
Management suite on FreeBSD 5.4 with apache+mod_ssl-1.3.34+2.8.25_1, 
MySQL 5.0.16, PHP5-MySQL 5.1.1, and PHP5.1.1 and I keep getting the 
following error messages in my error logs when I attempt to open a 
php page:


[Mon Dec 19 10:37:36 2005] [error] PHP Fatal error:  Call to 
undefined function
session_save_path() in 
/usr/local/www/groupoffice-com-2.14-FINAL-4/Group-Office.

php on line 792
/usr/local/www/groupoffice-com-2.14-FINAL-4/Group-Office.php(792) : 
Fatal error

- Call to undefined function session_save_path()

Could someone please give me any ideas as to what the problem is?  
Any help would be greatly appreciated.



How is your version of PHP configured?  Was --disable-session set?

Setup a phpinfo page, and you'll be able to see the configuration 
line, and whether or not sessions are enabled.


I installed PHP from the ports and did not do any configuration.  I set 
up the phpinfo page and the configuration line did not set disable session.


Thanks in advance,
Jose

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



[PHP] Re: [Bulk] Re: [PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Jose Borquez

Silvio Porcellana [tradeOver] wrote:


Jose Borquez wrote:
 


I installed PHP from the ports and did not do any configuration.  I set
up the phpinfo page and the configuration line did not set disable session.

Thanks in advance,
Jose

   



Maybe you have this:
'--disable-all'
(not sure, thou, this should enable sessions anyway, IIRC...)

Maybe you could point us to your phpinfo(), it sure would help.

Cheers
Silvio

 

The Makefile configuration did have "--disable-all" included.  Here is 
the link to my phpinfo page;

http://68.127.38.82/install/test.php

Thanks in advance,
Jose


[PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Jose Borquez

John Nichel wrote:


Jose Borquez wrote:


The Makefile configuration did have "--disable-all" included.  Here 
is the link to my phpinfo page;

http://68.127.38.82/install/test.php



You have no session support.

I am not sure what to do now.  Do I need to uninstall and reinstall it 
with session support?  What is the configuration I need to specify?


Thanks in advance,
Jose

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



[PHP] Invalid argument supplied for foreach()

2005-12-19 Thread Jose Borquez

I am getting the following errors when accessing a php page:

/usr/local/www/groupoffice-com-2.14-FINAL-4/configuration/index.php(299) 
: Warni

ng - Invalid argument supplied for foreach()
[Mon Dec 19 15:10:52 2005] [error] PHP Warning:  Invalid argument 
supplied for f
oreach() in 
/usr/local/www/groupoffice-com-2.14-FINAL-4/configuration/index.php

on line 299

I solved previous php error problem by installing the php5-extensions, 
but now I am getting the following errors in my log files and I have no 
idea what it could be.  Any help would be greatly appreciated.


Thanks in advance,
Jose

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



[PHP] Importing from MIVA

2003-12-16 Thread Jose Maria Vazquez
Hi there!

Does anyone know which is the best way to import orders from MIVA Merchant
into a MySQL DB? Currently, I'm using a Perl script that parses a plain file
generated by a script, but I'm looking for something more "professional"
like XML, Web-services, etc.

Thanks!

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



Re: [PHP] Splitting at word count

2001-01-26 Thread Jose Casal-Gimenez


> I'm doing a page where the front page will show "news" > 
stories.  What I'd > like is if the story is longer than X 
> words/chars/etc, the index page will > show the first X 
> words, then a link for the full story. >
> Does anyone have a good idea on how to split after a > 
certain number of > words?
> 

We have a "news" section with an index page that shows the 
first 3 articles in our queue. These articles are limited 
to their first 29 words. We then add a link to the full 
article.

You can view this live: http://www.ukc.ac.uk/news/index.php

   $article = fgets($fd, 8192)
   /* Full text of your article. We get it from a file 
  using fgets($fd, 8192) */

   /* remove tags if there are any */
   $newscontent = strip_tags($article) ; 
   $pattern = " " ;
   $arr = split($pattern, $newscontent, 50);
   $story .=  ("") ;
   for ($i = 0 ; $i < 29 ; $i++)
   {
  $story .= (" " . $arr[$i]) ;
   } 
   $story .= (" (cont.) Full article\n");


We use this PHP in the  of our document, so whenever 
we want it to be published we just use  

It may not be very elegant, but it does work fine!

Hope it helps

Jose

Jose Casal-Gimenez <[EMAIL PROTECTED]>
University Web Support Officer
Communications & Development Office
G17, The Registry, University of Kent, CT2 7NZ
Tel: (01227) 823102


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] large commercial websites that use php?

2001-08-07 Thread jose d lopez

I'm trying to convince some suits that PHP is widely
used on large commercial websites- not just intranets
and small sites.

I've seen some posts on this, but since this mailing
list keeps getting bigger- I wanted to put the
question out again:

What large commercial websites use php?



Some that I have found:
nbci.com
sprint.ca
livebid.amazon.com
xoom.com 
mp3.lycos.com
admworld.com
communityconnect.com
indy500.com
viant.com
dialpad.com
ElectronicArts.com
Viacom/MTV

Thanks all for any input!

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] splitting text after 25 words

2001-08-08 Thread jose d lopez

someting i've used.






At 03:57 PM 8/8/2001 +1100, Justin French wrote:
>Hi all,
>
>I'd like to split a text block at 25 words, as a teaser for the full
>article.  Now I know how to split at a certain character, but i don't
>want a half word or anything, so I want (i guess) to hunt for the 25th
>occurence of " " (a space), and split $text into two new variables,
>$text_a and $text_b.
>
>Then I'll prolly want append something like "... click here to read
>more" on the end of $text_a.
>
>Seems easy enough, but I can't see anything in the manual about
>splitting on a numbered occurence of a string (but I could be looking
>in the wrong spot :)
>
>Running PHP4 BTW
>
>
>
>Thanks heaps in advance
>Justin French
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP file slow, same file in HTML faster

2007-11-26 Thread Jose Toroscani Hernandez
All  .php files are displayed in 10 seconds (aprox).
Example:  test.php
hello world

But, the same file with extension html   (test.html), is displayed in 1 second.


The system is:
- RHEL 5
- PHP 5.1
- Apache

I apreciate your help.

Toroscani


[PHP] Why PHP reads local php.ini?

2003-04-04 Thread Jose Luis Pérez Ruiz

I mean than when you run PHP in CGI mode, PHP doesn´t read default php.ini
location. It first to look php in your actual path. An example...

ecazfe04:/home3/www# php -v
PHP 4.3.1 (cgi), Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies


ecazfe04:/home3/www# export REQUEST_METHOD="POST"
// Now we are in CGI mode as if it was called from Apache.

ecazfe04:/home3/www# export REDIRECT_STATUS="200"
// To avoid force-cgi-redirect

ecazfe04:/home3/www# php -v
Content-type: text/html
X-Powered-By: PHP/4.3.1

No input file specified.
// Ok, we are in CGI mode and it looks for a file.

/home3/www# cd 
/home3/www# php index.php
Everithings gos OK, except that if exists php.ini in  PHP
uses it. That overrides default compilation option. You can see it if you
use phpinfo() in 'index.php'.

I think this shouldn´t be the correct way of reading php.ini, but maybe
I´m wrong. Can anybody help me? I run a webserver (Apache+PHP) that hosts
some virtualhosts and I don´t won´t that my customers could use an alternate
php.ini.

PS: Sorry, I´m Spanish and I don´t know if my explanation is clear
enough.











José Luis Pérez Ruiz
Arrakis Servicios y Comunicaciones S.L.U.
Edificio Expo, C/ Inca Garcilaso s/n
Isla de la Cartuja
41092 Sevilla
Telefono: 955 550 509


**
Noticia legal
Este mensaje electrónico contiene información de BT Ignite España S.A.U. que
es privada y confidencial, siendo para el uso exclusivo de la persona (s) o
entidades arriba mencionadas. Si usted no es el destinatario señalado, le
informamos que cualquier divulgación, copia, distribución o uso de los
contenidos está prohibida. Si usted ha recibido este mensaje por error, por
favor borre su contenido lo antes posible. Gracias.


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



RE: [PHP] Why PHP reads local php.ini?

2003-04-04 Thread Jose Luis Pérez Ruiz


What´s wrong with my question?, can anybody help me?

-Mensaje original-
De: Jose Luis Pérez Ruiz [mailto:[EMAIL PROTECTED]
Enviado el: viernes 4 de abril de 2003 10:57
Para: [EMAIL PROTECTED]
Asunto: [PHP] Why PHP reads local php.ini?



I mean than when you run PHP in CGI mode, PHP doesn´t read default php.ini
location. It first to look php in your actual path. An example...

ecazfe04:/home3/www# php -v
PHP 4.3.1 (cgi), Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies


ecazfe04:/home3/www# export REQUEST_METHOD="POST"
// Now we are in CGI mode as if it was called from Apache.

ecazfe04:/home3/www# export REDIRECT_STATUS="200"
// To avoid force-cgi-redirect

ecazfe04:/home3/www# php -v
Content-type: text/html
X-Powered-By: PHP/4.3.1

No input file specified.
// Ok, we are in CGI mode and it looks for a file.

/home3/www# cd 
/home3/www# php index.php
Everithings gos OK, except that if exists php.ini in  PHP
uses it. That overrides default compilation option. You can see it if you
use phpinfo() in 'index.php'.

I think this shouldn´t be the correct way of reading php.ini, but maybe
I´m wrong. Can anybody help me? I run a webserver (Apache+PHP) that hosts
some virtualhosts and I don´t won´t that my customers could use an alternate
php.ini.

PS: Sorry, I´m Spanish and I don´t know if my explanation is clear
enough.











José Luis Pérez Ruiz
Arrakis Servicios y Comunicaciones S.L.U.
Edificio Expo, C/ Inca Garcilaso s/n
Isla de la Cartuja
41092 Sevilla
Telefono: 955 550 509


**
Noticia legal
Este mensaje electrónico contiene información de BT Ignite España S.A.U. que
es privada y confidencial, siendo para el uso exclusivo de la persona (s) o
entidades arriba mencionadas. Si usted no es el destinatario señalado, le
informamos que cualquier divulgación, copia, distribución o uso de los
contenidos está prohibida. Si usted ha recibido este mensaje por error, por
favor borre su contenido lo antes posible. Gracias.


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


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



Re: [PHP] Help with JPGraph in PHP.

2002-02-01 Thread Jose Daniel Ramos Wey

Unfortunatly header("Content-type: image/png") won´t help in IIS when PHP is running 
as CGI. You would have to be using PHP as an apache module or something similar. IIS 
won´t let CGIs change the headers. 

The solution is change your webserver, try to run PHP as an ISAPI module or save the 
image as a PNG, then display it.

Regards,
Daniel Wey

---   ---
- José Daniel Ramos Wey -
- Diretor de Tecnologia -
- ONE 2 ONE Interativa  -
- email: [EMAIL PROTECTED] -
- Tel: (11) 3814-9249   -
- Fax: (11) 3819-5263   -
---   ---
- Original Message - 
From: "Matthew Walker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 6:24 PM
Subject: RE: [PHP] Help with JPGraph in PHP.


You need to send the headers to tell the browser what kind of data
you're sending. Try something like this:

header("Content-type: image/png");

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 31, 2002 7:57 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Help with JPGraph in PHP.

Also I am using GD2.0.
Does any one know where I can get GD older version ( like GD1.6)?


-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 9:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Help with JPGraph in PHP.


Hi All,

Is any one is using JpGraphs to display graphs with PHP.
If so could you please help me?.

Here is what I have done.

1. Enabled extension php_gd.dll
2. Included jpgraph.php and jpgraph_line.php files.
3. Try to run the following code

$ydata = array ( 11,3,8,12,5,1,9,13,5,7);

$graph= new Graph(300,200);
$graph->setscale("textlin");

$lineplot = new LinePlot($ydata);

$graph->Add($lineplot);
$graph->Stroke();

I am not getting the graph abut I am getting some junk characters like

"‰PNG  IHDR,È/"

Am I missing anything here?. Do I need to set anything in php.ini file
?. Do
I need to set anything in jpgraph.php?

I am using PHP 4.06 On IIS, WinNT.

Thank you in advance!
Sridhar Moparthy






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





[PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Jaime Jose Perera Merino
Hi Ralph.

If u want to understand the Martin's job u need to read about
design patterns. A good place to start? Wikipedia (
http://en.wikipedia.org/wiki/Design_Patterns).

The use of Design patterns is an advanced programming method.
It helps us to improve our object oriented programation.

I hope this helps you,

 Jaime


Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Jaime Jose Perera Merino
Hi Ralph,

Sorry, I haven't understand your question.

Do you  think OOP isn't usefull for PHP? The PHP
task is just to output a text file but the process might involve
a lot of work: database access, communication with web services, etc.

Do you think duplicate code is better than use more memory?
What is your proposal?

I'm very interested in more opinions.



2009/8/13 Ralph Deffke 

> Thanks Jaime,
>
> very nice, but I'm a programmer since 1982 and into OOP since 1988 with the
> outcome if IBM's C++ compiler on the OS2 platform.
>
> Don't u think it could be reasonable to ask if such an overhead IN PHP is
> necessary?
>
> does anybody agree that PHP might be the wrong language to accomplish such
> a
> designpattern. Specialy if I find classes about interpreting things.
>
> Don't u think to blow up a servers memonry just to have a nice little
> framework could be ask?
>
> Don't u think it makes sence to remember that PHP is just to output a
> simple
> text file?
>
> Has inbedween all the OOP ability everybody forgotten that this is the
> simple purpose?
>
> Are there anybody who understands that PHP is an INTERPRETING language and
> has anybody an idear what is the amount of code running to do a simple
>
> $something = new object();
>
> versus echo $something
>
> Design pattern are very good, standarizing even better. but would u agree
> that, out of Martins presented work, u can not see the how AND how fast the
> code is created to output the header the head and body and all other tags.
>
> What I can see, the result will be a lot of code, lots of includes for a
> view bytes.
>
> For me, wrong language with unneccesary overhead.
>
> as i can see there must be some more folks out there thinking  a bit
> similar, or why is the feetback so relatively poor.
>
> and at least u create design pattern for a PURPOSE.
>
> so again for what pupose are this overhead in PHP
> As long as nobody tells me for what benefit this work is done I would say
> the design pattern should be done in other packages ready made for that
> with
> an PHP output.
>
> this would not affect any server resources.
>
> now after more then 25 years behind the keyboard I got possibly a bit
> thumb.
> lets open the discussion.
>
> ralph_def...@yahoo.de
>
>
> "Jaime Jose Perera Merino"  wrote in message
> news:62f65ec80908130320t70078242y65308d2ef0288...@mail.gmail.com...
> > Hi Ralph.
> >
> > If u want to understand the Martin's job u need to read about
> > design patterns. A good place to start? Wikipedia (
> > http://en.wikipedia.org/wiki/Design_Patterns).
> >
> > The use of Design patterns is an advanced programming method.
> > It helps us to improve our object oriented programation.
> >
> > I hope this helps you,
> >
> >  Jaime
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Jaime J. Perera Merino
Aplicaciones Informáticas. Desarrollo y Formación
jaimejper...@gmail.com - 655460979


Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread jose javier parra sanchez
 On 24 March 2010 10:38, Rene Veerman  wrote:
> and if threading and shared memory aren't implemented, then hey, the
> php dev team can build something else in that these naysayers DO need
> eh...
>
> lol...
>

take a look at this -> http://nanoserv.si.kz/

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



Re: [PHP] how to do cloud computing with php

2010-03-24 Thread jose javier parra sanchez
I have already answer that on the other thread, but anyway
http://nanoserv.si.kz/ , or use the web webserver made with it
http://nanoweb.si.kz/. And thinking about your 'requirements', avoid
mysql from that equation. There are other faster alternatives in the
SQL world. Or even better think about an alternative like mongodb that
scale really well.

2010/3/24 Rene Veerman :
> Hi..
>
> As a way to take a few steps back from the kinda heated "when will php
> grow up and support threading" thread, i'm requesting you people list
> how you scale from 1 server to many servers; what's called cloud
> computing.
>
> In particular, i'm interested in how to set up an application that
> deals with great amounts of input from many 3rd-party servers, and say
> a million concurrent viewers who need html calculated from those input
> streams.
>
> So this goes beyond 1 mysql server, and beyond 1 php server.
>
> Let's hear it, coz quite frankly i have my doubts about php's ability
> to scale to cloud computing.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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



Re: [PHP] I'm a newbie and running php on Linux

2010-03-31 Thread jose javier parra sanchez
Check your php.ini , look for output_buffering

2010/3/31 King Coffee :
> Hi,
>
> I ran the following code snippet on Windows IIS 7, in my index.php file and
> it worked fine. But when run it on Linux, the "die" code is executed.
>
> Is there an include file or something else I need to to process this on a
> linux server?
>
>         echo 'Redirecting... Please Wait';
> /*
>        redirect('welcome.html');
> */
>        if (!headers_sent()) {
>                header('Location: ' .
> 'http://auction.househops.com/index.php');
>        } else {
>                die('Could not redirect.');
>        }
> ?>
>
>
> Thanks,
> King
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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



Re: [PHP] php array in different OS

2010-07-27 Thread jose javier parra sanchez
you are probably getting a memory limit error, check your php.ini

2010/7/21 fyang :
> Dear all,
>   I have a simple test code in different OS ,but it give me a different
> result.
>   the code as follows:
> $n= 5;
>   for($i=0;$i<$n;$i++)
>   {
>$data[]=array("",$i,$i/1000);
>echo $i,"  ",$data[$i][1],"";
>   }
>   echo "count:",count($data);
>  ?>
>  OS1:  Red Hat Enterprise Linux Server release 5.1
>Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux
>  test result:  the result is correct,it can display 5 data and
> count:5.
>
>  OS2: CentOS release 5.4
>   Linux 2.6.18-164.el5 x86_64 x86_64 x86_64 GNU/Linux
>  test result: the result is wrong,it can only display 31148 data and it can
> not display count value.
>  I'm not sure the result relate to array capacity in different OS.
>  Please give me some tips,thanks in advance.
>
> good luck,
>
> Yang Fei
> 2010-7-20
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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



RE: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-03 Thread Jose Antonio Nobile Rendon
How to forward all request to files .php of any virtual host to
PHP-FPM in Apache 2.4? Not each one.

Saludos,
Jose Nobile
-Mensaje original-
De: tamouse mailing lists
Enviado:  03/04/2013, 6:35  PM
Para: Jose Nobile
Cc: php-general@lists.php.net
Asunto: Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all
virtual host


Sorry, in all of that, I don't see what the question is?

On Wed, Apr 3, 2013 at 3:27 PM, Jose Nobile  wrote:
> Hi,
>
> In Apache 2.2 <http://httpd.apache.org/docs/2.2/> forward all request that
> point to phisical .php file to PHP-FPM <http://php-fpm.org/> is as follow:
>
> LoadModule fastcgi_module <http://www.fastcgi.com/> modules/mod_fastcgi.so
>
> FastCGIExternalServer /usr/sbin/php-fpm -socket
> /usr/local/php/lib/php.sock -idle-timeout 900AddHandler php-fastcgi
> .phpAction php-fastcgi /usr/sbin/php-fpm.fcgiScriptAlias
> /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm
>
>  But in Apache 2.4 <http://httpd.apache.org/docs/2.4/> is different, I'm
> following the tutorial in Apache Wiki
> <http://wiki.apache.org/httpd/PHP-FPM> but
> I don't understand as enable PHP for all virtual host, not each one.
>
> I search in PHP documentation, there is not mention about install on Apache
> 2.4:
>
>- Install PHP on Apache 2.x on Unix
> systems<http://www.php.net/manual/en/install.unix.apache2.php>
>- PHP-FPM Install <http://www.php.net/manual/en/install.fpm.install.php>
>- PHP-FPM Documentation <http://php-fpm.org/wiki/Documentation>
>
> This question was initially posted on stackoverflow:
>
> http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host
>
> Thank you for your help.
>
> Saludos,
> José Nobile

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



[PHP] Refresh Problem

2005-02-10 Thread Jose Angel Sanchez \(Jone\)
Hi 

First of all: I'm sorry for writing errors - I don't speak English too
much (spanish)

I'm building an application which works that way:

I use url parameters to set zone (document location), actions and
params.

I've badly make security part so only registered people
($_session['USER'] <- which is set after check Login/pass form) can
access different zones but my problem is on refreshing page that
contains action

i.e.
http://www.mypage.com?index.php&zone=contact&action=newcontact&name=geor
ge

only registered/valid users can make this zone code runs

my pseudocode basicly works this way:

function contactzone (no params)

get URL parameters (like $action=$_get['action']



switch ($action)

case 'new'
$html.= show form (on submit set action to
'newcontact'
break;
case 'newcontact'
Insert on database
On success -> $html
Default
Show simple $html
}


return $html


My problem is on refresh or back events on navigator; the action will
execute again.

How do I prevent that? Session variables? Check a single table storing
used hashes sent by form (generated with md5 or any) on all forms
containing actions event for all tables? What do you think?

Sorry again and thx for reading and helping :D

j0n3 


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



[PHP] RV: Call to Oracle stored procedure

2005-02-21 Thread Jose Angel Sanchez \(Jone\)

Hi everybody..

I have two servers:

LINUX DEBIAN WEB SERVER (apache, php, oracle client) and LINUX REDHAT
ADVANCED SERVER (Oracle Database Server)

I can execute all kind of basic sql from php to oracle, it works fine
except accents and symbol of html's ñ (I'm Spanish)

But the problem comes when I try to call a stored procedure using
variable binding:

$db_conn = ocilogon ($GLOBALS["User"],
$GLOBALS["Password"],$GLOBALS["DatabaseName"]);
$cmdstr = 'begin MyPackage.MyProcedure(:var1, :var2); end;';

$parsed = ociparse($db_conn, $cmdstr);

OCIBindByName($parsed,':var1',$firstVar);
OCIBindByName($parsed,':var2',$secondVar);

OCIExecute($parsed,OCI_DEFAULT);



Output error:

Warning: ociexecute(): OCIStmtExecute: ORA-06550: line 1, column 30:
PLS-00553: character set name is not recognized ORA-06550: line 0,
column 0: PL/SQL: Compilation unit analysis terminated in
/var/www/test.php on line 913

Column 29 is ':' character.

I have been looking for solutions all around the whole web and many
forums, setting environment variables like NLS_LANGUAGE and others... on
linux, apache and php, but the same.

Does anybody know what must I exactly set on system or code to make it
works?

I'have this problem from 2 months ago to now, and nobody knows how to
do!! (except any of you, I wish).

Thx for reading...

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



Re: [PHP] php-cli vs python

2007-06-07 Thread jose javier parra sanchez

Hi. One big diferrence is that python can be run interactively, while
php not. That's  a really good advantage to debug the scripts. Anyway,
use the one you fell more comfortable.


2007/6/7, Abdullah Ramazanoglu <[EMAIL PROTECTED]>:

Hello,

I'm already (going to) use php for web based development. Shell scripting
and compiled languages have their own places, but there's also a place for
a high level scripting language. While people usually use python (for
higher level and perl for lower level tasks) for this, I really wonder
whether this would be worthwhile for me.

I have just cursory info about python, and I'm by no means a php expert. So
I can't reliably compare the two, but my rationale so far is simple: If
php5, with its enhanced object oriented features and rich libraries is on
par with python on the command line, then wouldn't it make better sense
for me to use php for both web and cli/gui development?

Nevertheless, I can't ignore the fact that people do use python almost
exclusively for high level CLI/GUI scripting. Where's the catch? What's
the top 3 killer features of python against php (and vice versa)?

Any ideas, pointers, analysis, insights are most welcome. This is a rather
strategical crossroads for me, and I'd very much like to make an informed
decision.

Thank you and kind regards.
--
Abdullah Ramazanoglu
aramazan ÄT myrealbox D0T cöm

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




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



RE: [PHP] New to PHP

2008-10-13 Thread Juan Jose Rosales Rodriguez
He i not speak very good englis, pliss can you tel me abaout list in spanich?

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



RE: [PHP] New to PHP

2008-10-13 Thread Juan Jose Rosales Rodriguez
 
 
Hola.
 
"No son los años los que te enseñan sobre la vida, sino como vives en la vida 
los años"
 Universidad de las Ciencias Informáticas
   Juan José Rosales Rodriguez 
 Tel: 02366792 (Gr) - 078358458 (UCI) 



De: Micah Gersten [mailto:[EMAIL PROTECTED]
Enviado el: lun 13.10.2008 11:48
Para: PHP General
Asunto: Re: [PHP] New to PHP



The problem with bottom posting is that if you follow the conversation,
you have to scroll to find the new content.  I guess if you trim and
bottom post it's not so bad.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com  



Wolf wrote:
> By Bottom Posting (common when on a mailing list or NG) it gives greater 
> context as you read through the previous posts and by the time of getting to 
> where the new response is, it is in sync.  No skipping back and forth to read 
> to get the context.
>
>  

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




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



RE: [PHP] New to PHP

2008-10-13 Thread Juan Jose Rosales Rodriguez
Ok thank you,  i try learn yor post, and make meny aport, for the list, 
apologize me  for my english, i am new  in this theme but in php i have 
experience. 

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