php-windows Digest 25 Sep 2001 19:49:57 -0000 Issue 773 Topics (messages 9505 through 9522): gd graphic problems... 9505 by: Richard Morris mysql_fetch_array() doesn't work 9506 by: Web user 9516 by: Mike Flynn Re: CGI Error and not able to load DLL error 9507 by: Phil Driscoll Re: Com Help 9508 by: park Re: upload file 9509 by: Alistair Austen ftp_nlist, ftp_rawlist doesn't work. (ftp_connect, ftp_login DOES work!) 9510 by: BoonHead PHP and Oracle Client 9511 by: Leon Santos Filho Re: IIS Installation] 9512 by: Craig Morrison 9513 by: Phil Driscoll 9520 by: Mark Re: Retrieving records 9514 by: Oliver Ruf How to use REST FTP command 9515 by: Tomas Vasek 9519 by: John Lim Iplanet webserver crashes after ldap request 9517 by: Jason Bourne Cannot using session variables with fopen() 9518 by: Alessio XML functions 9521 by: Augusto Cesar Castoldi &$this? 9522 by: Ming-Chieh Lee Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Hello all, I was wondering if anyone ran across these three problems that I have been having. I have been developing two php scripts that dynamically build a JPEG image from a series of PNG images. I was originally using PHP 4.0.5 but wanted to use the true colour support of PHP 4.0.6. However, 4.0.6 has the font problem. I have resolved that by finding out that if I create the folder \usr\share\fonts\truetype and put my fonts in there, the TTF functions work correctly. When I did that, the script was able to generate the image, but the font was all screwed up, almost as if the font was corrupted. I have replaced the font several times and the problem still occurs. If I use the same script under 4.0.5, there is no problem, and no true colour. Has anyone else had this problem? The other problem that I have had has to do with the ImageCopy function. I use the function to copy the various PNG images on to the main image which eventually gets outputted as a JPEG image. Under 4.0.5 the script runs without a problem. However, under 4.0.6 the script appears to go into an infinite loop. The image never gets generated and the server eventually times out the connection. By using a series of die() statements, I was able to find out that the ImageCopy function is where the script seems to lockup. The thing is, it isn't on the first ImageCopy but on the second one that I use and every one after that. I managed to work around it via using ImageCopyMerge with 100% opacity. Has anyone had this problem either? The last problem that I see to be having is to do with the PNG transparencies. The image that is generated has a background that is the full size of the image. The PNG images that I copied on top of the background have a transparency. The idea is that when the PNG images are laid on top of the background, the background can still show through. The problem that I seem to be having is that when I use the PNG transparent images under 4.0.6, the transparency doesn't work and as a result chunks of the image are blocked where they shouldn't be. I am not quite sure what the actual problems are of these three. I would really like to use 4.0.6 for the true colour, but it seems that I am running into severe problems. If anyone could shed some light on these problems, I would really appreciate it. -- Richard Morris [EMAIL PROTECTED]
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98 <? ...... ...... $res=mysql_query($query); $num=mysql_num_rows($res); for($i=0; $i<$num; $i++){ $arr=mysql_fetch_array($res); ... } ... When PHP is running at the line: $arr=mysql_fetch_array($res); The IE always show info as below: "Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\...\page.php on line ..." What's the problem wiht mysql_fetch_array() or other? Thanks! Mike
Look at the line number indicated by the error. A parse error has nothing to do with the mysql functions. Your code looks fine. What did you leave out with the ...'s? By the way, an easier way to do what you're doing here is: $res = mysql_query($query); while ($arr = mysql_fetch_array($res)) { ... } At 04:21 PM 9/25/2001 +0800, Web user wrote: ><? >...... >...... >$res=mysql_query($query); >$num=mysql_num_rows($res); >for($i=0; $i<$num; $i++){ >$arr=mysql_fetch_array($res); >... >} >...
On Monday 24 September 2001 7:25 pm, Sridhar Moparthy wrote: > Phil, > > 2. I have php_ldap.dll, php_oracle.dll, php4ts.dll and php.exe in "c:\php\" > directory. All these files are accessible to iusr_* users with full > control. Also these users have access to php.ini with full control. Also > "Everyone" has "Fullcontrol" on all these files. I just gave administrator > to iuser_ users. My next step would be to disable the ldap and oracle extensions. Cheers -- Phil Driscoll
"Andy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When i try to use COM, my machine just doesn't do anything, for example, you > click a link to a php page that has the COM line in it, the browser stays > still for a while, then just times out. Does anyone know what could be > causin this? Please let me know asap please :) email is preffered. I'll email you as well but.... I have had this problem when php can resolve the name to a registered CLSID ( using the registry ) but cant resolve get a pointer to an object instance. It might be because the object your trying to use dosent support the IDispatch interface. ( in which case you need to find and add the type lib to you php.ini ) or it could be that it is a 'local server' COM object and it isnt running ( and didnt 'un-register' itself last time it exited ) Park
Hi, I'm not an expert as regards the Windows install. But I'm guessing that in your php.ini file you have the upload_max_filesize set too low. This will give you the problem you describe. Alistair Austen "Stanley Cheung" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all, > > I tried to upload file with my php script... > but my win2k always reject the file which is larger than 1.5MB > can anyone help me to fixed this problem. > pls advise. thx! > > Stanley > >
I havn't installed any module of any kind after the installation of the latest versions Apache (1.3.20) and PHP (4.0.6). I searched the whole newsgroup for ftp problems. Mine wasn't there... My script DOES execute the ftp_connect command. (so ftp must be buildin, load and/or enabled) The ftp_login command also works. My problem: I can't list a directory. Not even root /! With ftp_nlist nor ftp_rawlist The ftp is fully open!!! This is my script <? // ----------------------------------------------------[ Start connection $ftpFolder = ftp_connect("192.168.168.2"); if ($ftpFolder == false) { echo "Error: No connection."; } // ----------------------------------------------------[ Login $intLogin = ftp_login($ftpFolder, "Anonymous", "[EMAIL PROTECTED]"); if ($intLogin == false) { echo "Error: Wrong login."; } // ----------------------------------------------------[ Mid ftp_pasv($ftpFolder, true); echo ftp_systype($ftpFolder) . " " . ftp_pwd($ftpFolder) . "<br>\n"; $arystrFolder = ftp_nlist($ftpFolder, ftp_pwd($ftpFolder)); echo $arystrFolder; if ($arystrFolder == false) { echo "Error: No folder."; } else { if (Is_Array($arystrFolder) == false) { echo $arystrFolder; } else { foreach ($arystrFolder as $strItem) { echo $strItem; } } } // ----------------------------------------------------[ End connection ftp_quit($ftpFolder); ?> And this is the out put: UNIX-V / Error: No folder. If anyone can shed some light on it...thanx... BoonHead, The Lost Philosopher... _______________________________________________________________________ | | Hackers made you computers to make your work easy. | Hackers build the internet so you can have almost every information at your fingertips. | Hackers make you a firewall to keep you safe. | | We love what we do! | | You say we destroy. | You say we're evil. | You call us crackers. | And you think you are so much better then us. | | You love what you do! _______________________________________________________________________ // ################################### // ## website: www.boonhead.f2s.com // ## email: [EMAIL PROTECTED] // ## icq: #53380888 // ## msn: boonheadtlp // ################################### (Stop cracking, start hacking...Greensneeze?)
Hello! I'm using an PHP application with IIS to access an Oracle DB in a W2K server, but I want to install PHP in a Linux Server with APACHE. Anybody knows how can I get Oracle Client for Linux ? Thank's. Leon .
It's answers like this that persuade people to find another solution (read--product) to their problems. If you don't have anything useful to say, please keep your mouth shut. Corporations and businesses make decisions that admins can not over-ride. This is a case where IIS is being thrust upon us. Now does anyone have anything useful to add to the discussion? Mark wrote: > > >Suggestions? > > I suggest you use Apache. how many worms later will it be before you > make the switch? -- Craig Morrison MTS Professional @ http://www.mtsprofessional.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org
On Tuesday 25 September 2001 2:15 pm, Craig Morrison wrote: > Now does anyone have anything useful to add to the discussion? Maybe you need to give us more info. Clearly the problem is to do with permissons - when you run php in cgi mode, IIS does the authentication, in the event of a non-anonymous access, it completes the request with the privileges of the authenticated user. So if you log in as administrator, then php gets to run as administrator. If you are logging in as some other user, then that user MUST have access to all the files involved (including the php executable, dlls and ini file) and also nust have the user rights to 'log on locally'. It would help a great deal if you could produce a minimal script which exhibits the problem. Cheers -- Phil Driscoll
? you posted an IIS question to a php list and now you're complaining about not getting a useful response? On Tue, 25 Sep 2001 08:15:16 -0500, Craig Morrison wrote: > >It's answers like this that persuade people to find another solution >(read--product) to their problems. um, that was the whole idea of my post. >If you don't have anything useful to say, please keep your mouth >shut. let's keep this civil, craig. >Corporations and businesses make decisions that admins can not over- >ride. This is a case where IIS is being thrust upon us. maybe you could have mentioned that in the first place. I would hope that in light of code red and nimda your company would want to reconsider. >Now does anyone have anything useful to add to the discussion? > >Mark wrote: >> >> >Suggestions? >> >> I suggest you use Apache. how many worms later will it be before >>you >> make the switch? > -- Mark, [EMAIL PROTECTED] on 09/25/2001
Hi try it without the first '$resp=mysql_fetch_array($dados);' in the first php-block! there you actually fetch your first info. In the next php-block you simply overwrite it. --> then you only can process 49 records. Give it a try :) -Oliver [EMAIL PROTECTED] (Danilo Meles) wrote in news:009001c59733$7b2fe5b0$23cecac8@paraisonet: > > ----- Original Message ----- > From: "Danilo Meles" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 02, 2005 4:21 AM > Subject: Retrieving records > > >> Hi everyone; >> >> I'm trying to retrieve data from a table inmy database, I've used the >> php code as you can see below. But supose the table has 50 records, >> the code above only retrieve 49 records. >> >> what I'm doing wrong??? Can you help me??? >> >> Thank's a lot !! >> >> Danilo Meles >> >> <? >> mysql_pconnect("host","root","password") >> or die("Unable to connect to SQL server"); >> mysql_select_db("pesquisa") or die("Unable to select database"); >> $query="Select * from coleta order by id asc"; >> $dados = mysql_query($query) or die("Select Failed!"); >> $resp = mysql_fetch_array($dados); ?> >> >> <? >> while($resp = mysql_fetch_array($dados)){ ?> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> >> >> <html> >> <head> >> <title>Untitled</title> </head> >> >> <body bgcolor="White" leftmargin=0 topmargin=0> >> <table cellspacing="2" cellpadding="2" border="0"> <tr> >> <td><?echo $resp[pergunta];?></td> >> <td><a href="link.php?id=<?echo $resp[id];?>">Responder?</a></td> >> </tr> <tr> <td></td> <td></td> </tr> <tr> <td></td> <td></td> >> </tr> </table> >> >> >> >> >> </body> >> </html> >> <?}?> >> > >
Hallo, is any possibility to use ftp commands (REST, RETR, STOR,...) from PHP 4.0.6 (Win2K)? Thanks Tomas Vasek
We are using the built-in ftp functions on W2K with PHP 4.0.6. Works fine. Is that what you require? See http://php.net/ftp Bye. John "Tomas Vasek" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hallo, > > is any possibility to use ftp commands (REST, RETR, STOR,...) from PHP > 4.0.6 (Win2K)? > > Thanks > > Tomas Vasek
Hi all My Config: w2k advanced server; Iplanet Enterprice server 6 Iplanet directory server 5 i have written a php script which does the following: Getting username and password from a form; with username do a anonymous search for username's dn login with username when i run this page on iplanet i can do this only once then my webserver isn't reachable any more for a while. Sometimes the server keeps running other times the webserver stops. With iis the script runs well. Please someone help me because a can't find any info on this subject. Regards, Jason
Hi, if i use fopen or similars commands to open a file i've see that the session variables included in it are not valorized. Using fopen i've defined the absolute http path to the file, and the file is correctly parsed by the PHP interpreter, the only problem is that the session variables remain set to null. Can someone help me? Thanks a lot, Alessio.
I'm trying to use the XML function but PHP crash. I'm using "php_domxml.dll", but isn't working. How can I use XML functions on Windows? regards, Augusto _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil e grátis! http://br.geocities.yahoo.com/
does anyone know what does &$this mean? I saw this on the php.net tuturial for references inside a constructor. I thought that $this is already a reference? The way it was used : class Foo { function Foo($name) { // create a reference inside the global array $globalref global $globalref; $globalref[] = &$this; // set name to passed value $this->setName($name); // and put it out $this->echoName(); } thanks for any input!