[PHP] webmail or script for giga mail
Hi, i'm looking for a webmail or script project with giga attachment features, something like Tiscali mail. The email recipent receives only a link, where it can downlod the file. Do you know something about? Thanks, Luca. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IPB post date check
Hi, I'm writing a bot that should let a user log in an IPB forum and do some actions after checking that the right conditions are verified in the user's account's profile. These conditions are: 1) the user must have registered his account before a certain date 2) the user must have posted a message in a defined period of time (between date 1 and date 2) I'm using a set of functions to get infos about the user from the board's db: http://projects.pc-intern.com/index.php?showforum=150 I've been able to verify condition 1, but I don't know what to do about the second, since I cannot seem to find a way to check if a user posted a message on a certain day. Do you have any idea on how I should do this check? Thanks for your help, Luca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP GD library installing
On Apr 10, 2008, at 5:15 PM, Daniel Brown wrote: On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella [EMAIL PROTECTED] wrote: How do I install/activate the GD library with my existing PHP version? I'm quite sure it isn't already, since I got this error: Fatal error: Call to undefined function imagecreate() in /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/ image.php on line 6 First, this is a server to which you have root access, correct? You won't be able to install it otherwise, such as if you're on a shared web host. Secondly, what *NIX are you using? It looks to me like a BSD-style system maybe MacOS? -- /Daniel P. Brown Ask me about: Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo., and shared hosting starting @ $2.50/mo. Unmanaged, managed, and fully-managed! Yes, it's Mac OSX and I have root access on the machine; I just checked my mail, so sorry for the delay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP GD library installing
How do I install/activate the GD library with my existing PHP version? I'm quite sure it isn't already, since I got this error: Fatal error: Call to undefined function imagecreate() in /Volumes/Data/ Users/luca/Library/WebServer/Documents/reloadTest/image.php on line 6 Please forgive my ignorance, and thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] quicktime new window php
This isn't related to php, so i think you should ask somewhere else... Anyway, to answer your question, if I may, you can't guarantee what you're asking: that's because most browsers will open a new browser window containing a player which IS Quicktime, but has a different appearance. IMHO the only way to be sure that the video will be opened with Quicktime is to have the user download it using some Save linked file... option and then opening it. On Nov 24, 2007, at 2:17 PM, kNish wrote: Hi, Given that a pc has quicktime loaded, how is it possible to have a hyper link open a new quicktime window. i.e. a window that has a .mov file playing. Along with it, it has the play stop pause options too. BRgds, kNish On 11/24/07, marco [EMAIL PROTECTED] wrote: you mean's that just open a quicktime window ? expect with a clip? 2007/11/23, kNish [EMAIL PROTECTED]: Hi, How is it possible to have a hyper link open a new quicktime window BRgds, kNish -- 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] Can I make a process run in background?
Hi, I'm very grateful for your help (thanks to everybody!), but maybe I didn't explain myself correctly, I'm sorry. What I need is the bot to log onto the server and, being logged as a user, to send some periodic messages on a channel (Bot Hello!) while listening for events and reacting consequentially (User !say Hi Bot Hi), so running two parallel scripts that connect separately won't do. A friend of mine suggested me a solution: he said that maybe two php scripts could share the same connection to the irc server so that while the first one processes the events, the second one acts in background, is it possible? The script already runs via terminal, anyway, on Linux (Debian) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can I make a process run in background?
This can be done quite easily using shared memory and/or a database to share data between the scripts. Really? could you give me a little briefing about this method? Actually, what you are looking for is an eggdrop bot which is written in TCL. PHP in my humble opinion was not designed to handle something like that as it requires realtime processing. Someone correct me if I'm wrong but that isn't what PHP was designed to do was it? There are many eggdrop bots out there and are very easy to setup and administer. Yeah, I know, but as I said in my first message I'm unfortunately tied to php; that's because I need some very specific functions that aren't standard at all (thus I have to script them myself and php is the only language I'm enough familiar with), plus I need to be always able to edit them (so again, I need to know the language) according to the needs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can I make a process run in background?
Hi, Before I start explaining my problem I'd like to say one thing: I'm aware that php isn't the best-suited language for what I'm trying to do (an IRC bot), but unfortunately by now it's the only way I have for various reasons; I want the bot to run a process in background (a periodic message, for example) while listening for events (like a user joining a channel or using a certain command) and consequentially executing the corresponding functions, is it possible? and how? if it can be of any help, I'm using a (pretty old) PEAR library of irc functions named Net_SmartIRC Thanks, Luca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems compiling PHP 5 RC3
U, how do I set the make commands to do that? -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: 13 June 2004 15:43 To: [EMAIL PROTECTED] Subject: Re: [PHP] Problems compiling PHP 5 RC3 Luca Spiller wrote: I am having a few problems compiling PHP 5 RC 3. I am following the tutorial at http://uk.php.net/install.apache2 and everything works up until I start to compile PHP. It all seems to work fine but then when running make at the end I get: ln: creating hard link 'libxml.o' to 'libxml.lo': Operation not permitted Possibly because creating a hard link between two partitions is not allowed you will have to use a symbolic link instead. (ln -s) -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.706 / Virus Database: 462 - Release Date: 14/06/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems compiling PHP 5 RC3
I am having a few problems compiling PHP 5 RC 3. I am following the tutorial at http://uk.php.net/install.apache2 and everything works up until I start to compile PHP. It all seems to work fine but then when running make at the end I get: ln: creating hard link 'libxml.o' to 'libxml.lo': Operation not permitted make: *** [libphp5.la] Error 1 I am running this as root so I don't get why I am not permitted to do this. I am also fairly new to Linux (about half a year) so please don't reply with anything too compicated. Thanks, Luca Spiller P.S. I have posted this here as well as in the installation problems list as this seems much more active. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.705 / Virus Database: 461 - Release Date: 12/06/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] An Application Server in PHP
Hi guys, some times ago I started a project called PHPlet with this purpose: implement an application server where phplet can be deployed. phplet are just like Java servlets, they have init(), destroy() and service() methods; they run into the phplet container, from which they receive an HttpPhpletRequest and send an HttpPhpletResponse. API for all these class are similar to java one. I've developed a lot of modules yet, the daemon works both in sigle process (win32, Linux) multiprocess mode (on Linux). The project can be found here: http://phplet.sourceforge.net . I'm writing here to have some feedback from PHP lovers; what do you think about this idea? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] reading pre-extension file
How to read pre-extension of file with regular expression? Example: name.preextension.doc I need to read preextension Tanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using EditPlus with PHP
I'm sorry if this question has been asked before but could anyone give me instructions on how to debug and interpret php scripts using Edit Plus ? I download the php modules for edit plus so it recognise the syntax. But how do I setup the user tools , so I can check for bugs in the script and run it Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] xmldoc undefined with domxml apparently enabled
Hi, I can't get DOMXML to work. The line $doc = xmldoc($xml); // (line 26) (where $xml is a string containing a valid xml document) raises a fatal error: Fatal error: Call to undefined function: xmldoc() in d:\...\class.xmltemplate.php on line 26 I'm running PHP 4.1.1 as an Apache module with Apache 1.3.22 on Win98 (but I was experiencing the same problem with PHP 4.0.6, 4.0.7, 4.1.0 and Apache 1.3.14). All the required dlls (libxml2.dll, iconv-1.3.dll) have been copied to the system directory, and phpinfo() tells me that DOMXML is enabled (with libxml 2.4.1). Same problem with xmldocfile(). Best regards, Luca -- 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] Problems with multiple query
Hi, I've recently migrated a system with PHP 4.0.3pl1 and PostgreSQL 7.0.2 - RedHat Linux 5.1 (yes 5) to a new one with PHP 4.0.4pl1 - PostgreSQL 7.0.2 - RedHat Linux 7.0. All my database applications work fine except one which does strange things: this is a piece of code: 8--- CUT $conn = pg_connect("dbname= user=y password=xx"); $sql = "select * from table_a where condition_a"; $qry1 = pg_exec ($conn,$sql); $obj1 = pg_fetchobject($qry1,0); // Until here everything works fine $sql2 = "select * from table_b where condition_b=".$obj1-value_a; $qry2 = pg_exec ($conn,$sql2); 8--- CUT The second query is nested in a for-loop running for every object in the first query; for performance reason I need to maintain the two queries independent. After executing (correctly) the first one, the system starts doing strange things with the second one: Warning: Unable to jump to row 0 on PostgreSQL result index 23 in cerca.php3 on line 467 and it fails to read data. The strange thing is that the system does the same things for EVERY database where I must use two consecutive queries ! Is there anyone who can help me ? Thanks in advance Luca Lazzeroni -- 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] Problems with multiple query
Thanks; in fact I've tryed the second solution and it works for me; but I can't understand why the script stop working during the upgrade of system. The most strange thing is that, after a deeper investigation on the code, I've found the PHP engine does something like closing the connection after the second pg_exec command. In fact, by using persistent connections I've partially corrected the problem and the codes doesn't complain about using an invalid (but not null) connection descriptor; but it stills be unable to get results from successive queries, also if result index are valid ! This sounds very strange for me. Thank you for your help ! Luca Lazzeroni "Nuno Silva" [EMAIL PROTECTED] ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, if the second query loops inside a _for_ statement and needs values from the first query you have two options: 1. save all the results from query one to some array and then loop inside the array within the _for_ statement executing new sql; 2. open two separate connections to the database and work with the two. like this: $conn1 = pg_connect(...); $conn2 = pg_connect(...); ... qry1 = pg_exec($conn1, $sql1); ... for ($i=.) { ... $qry2 = pg_exec($conn2, $sql2); ... } Hope this helps, Nuno Silva Luca Lazzeroni wrote: Hi, I've recently migrated a system with PHP 4.0.3pl1 and PostgreSQL 7.0.2 - RedHat Linux 5.1 (yes 5) to a new one with PHP 4.0.4pl1 - PostgreSQL 7.0.2 - RedHat Linux 7.0. All my database applications work fine except one which does strange things: this is a piece of code: 8--- CUT $conn = pg_connect("dbname= user=y password=xx"); $sql = "select * from table_a where condition_a"; $qry1 = pg_exec ($conn,$sql); $obj1 = pg_fetchobject($qry1,0); // Until here everything works fine $sql2 = "select * from table_b where condition_b=".$obj1-value_a; $qry2 = pg_exec ($conn,$sql2); 8--- CUT The second query is nested in a for-loop running for every object in the first query; for performance reason I need to maintain the two queries independent. After executing (correctly) the first one, the system starts doing strange things with the second one: Warning: Unable to jump to row 0 on PostgreSQL result index 23 in cerca.php3 on line 467 and it fails to read data. The strange thing is that the system does the same things for EVERY database where I must use two consecutive queries ! Is there anyone who can help me ? Thanks in advance Luca Lazzeroni -- 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 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]