Re: [PHP-WIN] Substr function

2004-12-13 Thread tg-php
In addition to substr() and explode() already mentioned, check out some of these: basename() - Returns filename component of path http://us2.php.net/manual/en/function.basename.php strrpos() - Find position of last occurrence of a char in a string http://us2.php.net/manual/en/function.strrpos.ph

[PHP-WIN] Substr function

2004-12-13 Thread S.D.Price
Hi can anyone explain to me how to manipluate strings. I have generated a file name ($_FILES['documenturl']['name']) Out of this server variable I need to grab the file and the extension and put them into seperate fields for database upload. Any idea how to do this by using substr? Thanks Stev

[PHP-WIN] im convert php-screw to windows dll

2004-12-13 Thread Andrew
Hi.. I'm trying to get PHP Screw working on Windows thru Visual C++ compiling it as a windows DLL, everything works except it doesn't actually replace the fopen function, it seems to ignore that command. I would really like to get this working, I have a project that you can look at if you are inte

RE: [PHP-WIN] Strange internet problem

2004-12-13 Thread Charles P. Killmer
I just got another message this weekend. Here are some of the contents of the phpinfo: _SERVER["REMOTE_ADDR"] x.x.x.x _SERVER["REMOTE_HOST"] x.x.x.x _SERVER["REQUEST_METHOD"] GET _SERVER["SCRIPT_NAME"] /index.php3 _SERVER["SERVER_NAME"] www.yahoo.com _SERVER["SERVER_PORT"] 80 The client app

[PHP-WIN] bar graph gd

2004-12-13 Thread jm
Hi guys: I'm using php5 on winxp with IIS. I'm trying to run a simple bar graph demo found it on phpbuilder site. When I run it I get nothing but an x in the top left corner of my web page(no errors nothing). GD is uncommented in my php.ini, ext dir set and I have verified that GD is installed t

RE: [PHP-WIN] Marty Yantzie - COM Object help- have working .asp example - Paymentech

2004-12-13 Thread Charles P. Killmer
It looks like PHP cannot set name based index arrays. I modified the code to look like this, fixing a few issues in his code. Type = 'CC.Authorize'; $trans->Field['MessageType']='AC'; $trans->Field['MerchantID']='1234567890123'; $trans->Field['BIN']='02'; $trans->Field['AccountNum']='1234