Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Europus
Jochem Maas wrote: ? whitespace character ... to avoid this in future never add the closing php bracket to the end of the php file (unless you explicitly want to output something after the code in question - which is almost never the case), it is not required. e.g. - 8 info.php

Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Jochem Maas
Europus schreef: Jochem Maas wrote: ? whitespace character ... to avoid this in future never add the closing php bracket to the end of the php file (unless you explicitly want to output something after the code in question - which is almost never the case), it is not required. e.g. -

Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Europus
Jochem Maas wrote: you also mentioned you changed the code when trying to test it on another machine - don't do that, test one thing at a time. I'm not the original poster, that wasn't me. anyway problem solved, preventative knowledge aquired, onto the next hurdle :-) I'm having some

Re: [PHP] session_start problems with FireFox on Mac

2008-01-13 Thread Jochem Maas
Europus schreef: Jochem Maas wrote: you also mentioned you changed the code when trying to test it on another machine - don't do that, test one thing at a time. I'm not the original poster, that wasn't me. anyway problem solved, preventative knowledge aquired, onto the next hurdle :-)

Re: [PHP] session_start problems with FireFox on Mac

2008-01-12 Thread Terry Calie
Hey... thanks for the replies. I installed the headers feature that Richard suggested and found that no headers were output. I started to transfer my php to another site to see if the problem replicated and I wasn't able to recreate the problem. It turns out that I require a file before

Re: [PHP] session_start problems with FireFox on Mac

2008-01-12 Thread Anup Shukla
Terry Calie wrote: Hey... thanks for the replies. I installed the headers feature that Richard suggested and found that no headers were output. I started to transfer my php to another site to see if the problem replicated and I wasn't able to recreate the problem. It turns out that I require

Re: [PHP] session_start problems with FireFox on Mac

2008-01-11 Thread Daniel Brown
On Jan 11, 2008 11:53 AM, Jason Pruim [EMAIL PROTECTED] wrote: With a problem like that, code and a web page are very helpful to track it down. I'm willing to take a look at what I can with my Mac firefox, and see what I can sort out :) I just need more info.. On Jan 11, 2008, at 11:34

Re: [PHP] session_start problems with FireFox on Mac

2008-01-11 Thread Jason Pruim
With a problem like that, code and a web page are very helpful to track it down. I'm willing to take a look at what I can with my Mac firefox, and see what I can sort out :) I just need more info.. On Jan 11, 2008, at 11:34 AM, Terry Calie wrote: Sorry if this is the wrong place to ask

[PHP] session_start problems with FireFox on Mac

2008-01-11 Thread Terry Calie
Sorry if this is the wrong place to ask this question... if so please help me figure out where to ask it. I've asked on FireFox forums and was told it was a PHP problem and to ask the developers of PHP. I have a PHP website that freezes in Firefox on a Mac. Every other browser/operating

Re: [PHP] session_start problems with FireFox on Mac

2008-01-11 Thread Richard Lynch
Install Live HTTP Headers and see what headers are being sent. Then search for those headers and FireFox Mac issues online. On Fri, January 11, 2008 10:34 am, Terry Calie wrote: Sorry if this is the wrong place to ask this question... if so please help me figure out where to ask it. I've

[PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Magnus Anderson
Hi, I have runned into a slight annoying problem with my code, that I have never had before. Either I have something wrong in my code or PHP 5.2.5 that I user is acting weird in windows. I have recently installed PHP on my windows machine for local developement instead of a remote server. What

Re: [PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Silvio Porcellana
Magnus Anderson wrote: ...snip... This will not work (I expect this to work since _USER['level'] is 5) if($_USER['level'] = 5) Try if($_USER['level'] = 5) maybe it helps ('=' is used when assigning values in an hash, maybe you are triggering something strange...) -- Antinori and

Re: [PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Casey
On Dec 30, 2007 8:04 AM, Silvio Porcellana [EMAIL PROTECTED] wrote: Magnus Anderson wrote: ...snip... This will not work (I expect this to work since _USER['level'] is 5) if($_USER['level'] = 5) Try if($_USER['level'] = 5) maybe it helps ('=' is used when assigning values in an

Re: [PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Richard Lynch
You want = and not = The = operator doesn't even make any sense in that context, as far as I know... On Sun, December 30, 2007 8:34 am, Magnus Anderson wrote: Hi, I have runned into a slight annoying problem with my code, that I have never had before. Either I have something wrong in my

[PHP] Re: problems accesing an object via globals

2007-12-03 Thread julian
however this will work... p1.inc 1 ?php 2 3 class dbb{ 4 5 var $var=10; 6 7function fun2(){ 8 return $this-var;; 9} 10 } 11 12 class obj { 13var $obj2=20; 14 15function f1(){ 16 global $db; 17 18 echo \n.$db-fun2()*$this-obj2.\n; 19

[PHP] Re: problems accesing an object via globals

2007-12-01 Thread julian
julian wrote: I want to open a database connection at program initialization and use that very same connection via globals initilizating ( loading from db) other objects. Basically index.php $db=new mysqli(host,us,pass,db); if(mysqli_connect_errno()){ die('errordb conex'); } switch

[PHP] trigger_error() problems

2007-09-28 Thread Alexander A Miroch
Hi, my php is 5.2.4 compiled in apache1.3.37 as module I have some trouble with trigger_error function code ? trigger_error ('error',E_USER_ERROR); ? I get 500 error status (Internal server error) and a record in my error log. And this ? ob_flush(); trigger_error ('error',E_USER_ERROR); ? returns

Re: [PHP] Re: Problems with matrix

2007-08-29 Thread Richard Lynch
Do you REALLY need all the values in one giant matrix at once? You might be MUCH better off to read a single line, process it, discard it, and move on to the next one. Your webhost is probably wrong and you probably ARE running out of RAM and/or running afoul of PHP's time_limit in php.ini

[PHP] Re: Problems with matrix

2007-08-28 Thread Felipe Alcacibar
Andres Rojas wrote: Hi all, I'm new in PHP programming and I have a problem with this script. I need to read a large file around 2Mb and several lines (28000). All start Ok, but suddenly the script stop without message error. ?php $fichero=62007lg.txt; $buffer = file($fichero);

[PHP] CURL problems posting data

2007-08-22 Thread Rahul Sitaram Johari
Ave, We need to login to a client¹s website in order to feed some data to their database, using their forms. To automate it, I¹m trying to use Curl to login. This is their form: form name=Form1 method=post action=http://www.website.com/Login.aspx; id=Form1 input type=hidden name=__VIEWSTATE

[PHP] php problems

2007-08-08 Thread racol
Dear Helpers, here are the 2 files I cannot make work. I have installed php in c:\php, my php.ini file is in Windows directory and my path to pear reads include_path = .;C:\php\pear in the phpinfo.php output. I have switched on error reporting and have received the following error messages:

Re: [PHP] php problems

2007-08-08 Thread Chris
a.) PHP Fatal error: main() [a href='function.require'function.require/a]: Failed opening required 'DB.php' (include_path='C:\php\pear') in C:\sambar64\docs\BondMovies.php on line 11 require_once('DB.php'); snip Isn't the pear db class DB/DB.php ? b.)PHP Parse error: syntax error,

[PHP] Re: Problems with mirror site script

2007-06-28 Thread Dan
If you're looking to build an web based proxy that supports ads, there's already tons of scripts out there that do it securely, and render very nicely. Most even supporting ad management. CGIProxy http://www.jmarshall.com/tools/cgiproxy/ PHProxy http://whitefyre.com/poxy/ Zelune

Re: [PHP] fsockopen problems

2007-06-22 Thread Tijnema
On 6/22/07, Ray [EMAIL PROTECTED] wrote: hello, I'm having some problems with fsockopen and was hopping for some help. I try to connect to a host via fsockopen and I get getaddrinfo failed errors, but if I try fsockopen with google, everything works. sample test code

Re: [PHP] fsockopen problems

2007-06-22 Thread Ray
On Friday 22 June 2007 10:59 am, Tijnema wrote: On 6/22/07, Ray [EMAIL PROTECTED] wrote: hello, I'm having some problems with fsockopen and was hopping for some help. I try to connect to a host via fsockopen and I get getaddrinfo failed errors, but if I try fsockopen with google,

[PHP] fsockopen problems

2007-06-22 Thread Ray
hello, I'm having some problems with fsockopen and was hopping for some help. I try to connect to a host via fsockopen and I get getaddrinfo failed errors, but if I try fsockopen with google, everything works. sample test code

Re: [PHP] mbstring problems

2007-06-15 Thread Martin Marques
Crayon Shin Chan wrote: On Friday 15 June 2007 04:09, Martin Marques wrote: Using PHP 5.2.0 and I get this error: Fatal error: Call to undefined function mb_list_encodings_alias_names() in /home/martin/prueba.php on line 3 But mb_list_encodings() works like a charm. What's wrong? RTFM

[PHP] mbstring problems

2007-06-14 Thread Martin Marques
Using PHP 5.2.0 and I get this error: Fatal error: Call to undefined function mb_list_encodings_alias_names() in /home/martin/prueba.php on line 3 But mb_list_encodings() works like a charm. What's wrong? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18

Re: [PHP] mbstring problems

2007-06-14 Thread Crayon Shin Chan
On Friday 15 June 2007 04:09, Martin Marques wrote: Using PHP 5.2.0 and I get this error: Fatal error: Call to undefined function mb_list_encodings_alias_names() in /home/martin/prueba.php on line 3 But mb_list_encodings() works like a charm. What's wrong? RTFM -- Crayon -- PHP General

[PHP] Re: problems in WHERE statment

2007-05-23 Thread Jared Farrish
Change the single quote to a double quote: code $query = SELECT * FROM `job listing` WHERE open = '$today' LIMIT 0 , 30 ; /code This tells the PHP string parser to replace all declared, in-scope variables that are detected in a string with the value of the variable (as a toString() method, so a

[PHP] Re: Problems when trying to use ibm_db2 extension

2007-04-17 Thread Leo Jokinen
Problem solved: I restarted my computer and after that apache loaded ibm_db2 extension. My conclusion: 1. When you add some extensions to php.ini, you need to restart windows in order to get those extensions available through apache 2. However, those extensions are instantly available if you

Re: [PHP] Re: Problems when trying to use ibm_db2 extension

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 1:21 am, Leo Jokinen wrote: Problem solved: I restarted my computer and after that apache loaded ibm_db2 extension. My conclusion: 1. When you add some extensions to php.ini, you need to restart windows in order to get those extensions available through apache 2.

[PHP] PHp Install problems on debian linux

2007-04-11 Thread Don Don
Hi all am having issues with a little problem regarding php5 installation on a debian linux machine. while trying to install php5 and supported modules I get the following error messages, what can i do to get rid of them and continue with the installation ? The following packages

Re: [PHP] PHp Install problems on debian linux

2007-04-11 Thread Robert Cummings
Despite the fact this question involves installing PHP5, it's actually a question about installing Debian packages. Maybe you should look into package managers for Debian. Personally I use dselect, and it usually auto selects any dependencies not already installed. PHP though, I install from

[PHP] Re: Problems with mail

2007-04-02 Thread itoctopus
Weird, this code should work. Are you sure there is no hidden space somewhere in the email. Try just to hardcode the email (eg. mail('[EMAIL PROTECTED]', $subject_users_subscription_confirmation, $message_users_subscription_confirmation); and see what'll happen. -- itoctopus -

Re: [PHP] install problems

2007-03-19 Thread jekillen
On Mar 18, 2007, at 10:54 PM, Chris wrote: jekillen wrote: Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to install php 5.2.1 --with-apxs=/usr/local/apache/bin etc etc

Re: [PHP] install problems

2007-03-19 Thread Chris
jekillen wrote: On Mar 18, 2007, at 10:54 PM, Chris wrote: jekillen wrote: Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to install php 5.2.1

Re: [PHP] install problems

2007-03-19 Thread jekillen
On Mar 19, 2007, at 5:58 PM, Chris wrote: jekillen wrote: On Mar 18, 2007, at 10:54 PM, Chris wrote: jekillen wrote: Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to

[PHP] install problems

2007-03-18 Thread jekillen
Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to install php 5.2.1 --with-apxs=/usr/local/apache/bin etc etc libphp5.so is no where to be found. It sure is not in

Re: [PHP] install problems

2007-03-18 Thread Chris
jekillen wrote: Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to install php 5.2.1 --with-apxs=/usr/local/apache/bin etc etc libphp5.so is no where to be found. It sure is

Re: [PHP] variables in CSS in PHP question/problems

2007-03-14 Thread Richard Lynch
Surf directly to your CSS URL and see what happens. There are several possibiliies: #1. Your CSS has ?php ... ? in its output, because you have not convinced your web-server to run your CSS file through PHP to compute the dynamic result. You need something like this in .htacces: File

Re: [PHP] variables in CSS in PHP question/problems

2007-03-14 Thread tedd
At 2:15 AM -0500 3/14/07, Richard Lynch wrote: Surf directly to your CSS URL and see what happens. There are several possibiliies: #1. Your CSS has ?php ... ? in its output, because you have not convinced your web-server to run your CSS file through PHP to compute the dynamic result. You need

[PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Bruce Gilbert
I stumbled upon this article http://www.chrisjdavis.org/2005/10/16/php-in-css/ and was trying out variables with PGP, but can't get it to work. I wanted to have a variable image that changes on refresh, and also set the body color with PHP/CSS and maybe get that to change on refresh too. sp

Re: [PHP] Session problems with 4.4.5?

2007-02-22 Thread alex handle
On 2/16/07, Jochem Maas [EMAIL PROTECTED] wrote: Ken Williams wrote: Is anyone else having problems with session in 4.4.5? I'm under apache 1.3.27 in linux 2.4.34 and all my web sites break under 4.4.5. As soon as a page tries to register a session variable with session_register apache

Re: [PHP] Session problems with 4.4.5?

2007-02-22 Thread steve
Yes... I think the test version of it goes out today. On 2/22/07, alex handle [EMAIL PROTECTED] wrote: On 2/16/07, Jochem Maas [EMAIL PROTECTED] wrote: Ken Williams wrote: Is anyone else having problems with session in 4.4.5? I'm under apache 1.3.27 in linux 2.4.34 and all my web sites

Re: [PHP] Session problems with 4.4.5?

2007-02-16 Thread Jochem Maas
Ken Williams wrote: Is anyone else having problems with session in 4.4.5? I'm under apache 1.3.27 in linux 2.4.34 and all my web sites break under 4.4.5. As soon as a page tries to register a session variable with session_register apache will segfault. Has worked perfectly fine for the

[PHP] Session problems with 4.4.5?

2007-02-15 Thread Ken Williams
Is anyone else having problems with session in 4.4.5? I'm under apache 1.3.27 in linux 2.4.34 and all my web sites break under 4.4.5. As soon as a page tries to register a session variable with session_register apache will segfault. Has worked perfectly fine for the past 2 years and like 10

[PHP] Date problems

2007-01-04 Thread Beauford
Hi All, I have a database with a bunch of dates in it. I want to count the number of entries for each year and then display the year and the count. i.e. YearCount 200622 200518 200414 200322 This is what I have tried but just not quite getting it. $query select count(date)

Re: [PHP] Date problems

2007-01-04 Thread Stut
Beauford wrote: $query select count(date) as count, YEAR(date) as thisyear from stats group ^ = needed here by thisyear; -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Date problems

2007-01-04 Thread Beauford
Yea, I just figured this out. When I cut and pasted I must have overwrote the =. Thanks -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: January 4, 2007 4:27 PM To: Beauford Cc: PHP Subject: Re: [PHP] Date problems Beauford wrote: $query select count(date

[PHP] Fwd: Problems with Zip+IE6

2006-12-05 Thread Javier Ruiz
BUMP! -- Forwarded message -- From: Javier Ruiz [EMAIL PROTECTED] Date: Dec 5, 2006 9:07 AM Subject: Problems with Zip+IE6 To: php-general@lists.php.net Hi all! I have a problem with zip files and Internet Explorer 6. I try to send to the user a dinamically generated zip file

Re: [PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread Ed Lazor
Check php.ini session settings. There are some options in there for you to use in your scripts. Set up scripts to test whether session cookies are being saved and then route accordingly. On Oct 28, 2006, at 12:41 PM, sit1way wrote: Hey all. I run a members-only hockey report that

[PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread sit1way
Hey all. I run a members-only hockey report that relies on Session variable(s) to grant/deny access to members-only site content. Generally members have no trouble accessing members-only content once logged-in to the site; however, since we have a few thousand members, I frequently receive

[PHP] Template Problems

2006-10-26 Thread Kevin
Hi, I have 3 domains: www.example1.com, www.example2.com www.template.com I have a PHP website on www.template.com with a database. in this database I have many tables one of which is sites, which has a list of the sites using the template with a site_id. Example of this data is: Site_id,

Re: [PHP] Re: Problems with open_basedir

2006-10-20 Thread Patrik Jansson
Colin Guthrie wrote: Patrik Jansson wrote: I ran into problems with openbase_dir when using symlinks... They only really reared their ugly head when I upgraded to 5.1.6 before that they were OK (tho' if memory serves I had to add both the symlink location and the directory it pointed to.

[PHP] Re: Problems with open_basedir

2006-10-20 Thread Colin Guthrie
Patrik Jansson wrote: Anyway, are symlinks to blame here? I've added the real path into open_basedir, I also removed the // error but still I get the restriction message: So then I changed the absolute path in Joomla from /home/... to /usr/home/... and now I don't get the error anymore so

Re: [PHP] Re: Problems with open_basedir

2006-10-20 Thread Patrik Jansson
Colin Guthrie wrote: Well, I was never sure that it was a bug or not. I wasn't sure if it was my distro's packaging and any custom patches it applies and also where it was some x86_64 wierdness. Recently (last week) it was confirmed to me that it was not x86_64 at fault, but it was still my

Re: [PHP] Re: Problems with open_basedir

2006-10-20 Thread Patrik Jansson
I noticed that this bug is already to be found in the bug database. This is exactly how I'm experiencing it: http://bugs.php.net/bug.php?id=37556 In that report they link the reader to http://bugs.php.net/bug.php?id=30188 which is also applicable. Although I can't understand the last answer:

[PHP] Re: Problems with open_basedir

2006-10-19 Thread Colin Guthrie
Patrik Jansson wrote: Hello, I'm having some difficulties with open_basedir. If I include the prefix /home/web25637/ in open_basedir shouldn't it include every directory within this? We're getting this error: Warning: file_exists() [function.file-exists]: open_basedir restriction in

[PHP] array problems

2006-08-16 Thread Chris G
Hi all Having a prob with a php script... 3 arrays $datay1=array(140,110,50,60); $datay2=array(35,90,190,190); $datay3=array(20,60,70,140); which have to be passed to a class like this $gbarplot = new GroupBarPlot(array($bplot1,$bplot2,$bplot3)); if I get data from a database, how can I

Re: [PHP] array problems

2006-08-16 Thread David Tulloh
Chris G wrote: Hi all Having a prob with a php script... 3 arrays $datay1=array(140,110,50,60); $datay2=array(35,90,190,190); $datay3=array(20,60,70,140); which have to be passed to a class like this $gbarplot = new GroupBarPlot(array($bplot1,$bplot2,$bplot3)); if I get

Re: [PHP] array problems

2006-08-16 Thread John Wells
On 8/16/06, David Tulloh [EMAIL PROTECTED] wrote: Chris G wrote: foreach ($user_input_array as $user_input) { $data_member = array(); # Create an empty array Do SQL query stuff foreach ($sql_results as $sql_member) { $data_member[] = $sql_member;

Re: [PHP] array problems

2006-08-16 Thread Richard Lynch
On Wed, August 16, 2006 1:08 am, Chris G wrote: while($line = mysql_fetch_array($result)) { $data1y[] = $line['rep_value_perc']; $dataly[][] = $line['rep_value_prec']; } This gives me just the one array from the above example, $datay1. How would you dynamically create the all of the

[PHP] HTTP_WebDAV_Server problems

2006-07-30 Thread Rory Browne
Hello All I'm trying to get a WebDAV server set up using PEAR::HTTP_WebDAV_Server, but so far I'm having little success. All I could get from the 11 Slides was that the Class had to be subclassed, and the methods overloaded, to provide the functionality. I gathered from the source-code, that I

[PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Jochem Maas
Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest that the CLI cache is not connected to the web server cache: From:

Re: [PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Ray Hauge
On Saturday 29 July 2006 05:47, Jochem Maas wrote: Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest that the CLI

Re: [PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Jochem Maas
Ray Hauge wrote: On Saturday 29 July 2006 05:47, Jochem Maas wrote: Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest

[PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-28 Thread Jochem Maas
hi people, PHP version:5.1.1 (last built: Dec 28 2005 16:03:22) APC version:3.8.10 Apache version: 2.0.54 (last built: Dec 29 2005 14:04:16) OS: debian I have a script that runs via the cmdline, it's used to import/update data in a database, after the script is run the APC

Re: [PHP] APC - problems with CLI ... could it be down to an install of SElinux?

2006-07-28 Thread Jochem Maas
Jochem Maas wrote: hi people, PHP version: 5.1.1 (last built: Dec 28 2005 16:03:22) APC version: 3.8.10 Apache version: 2.0.54 (last built: Dec 29 2005 14:04:16) OS: debian freudian slip; I wish it was debian, it's actually a red hat machine, dmesg gives this

Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-28 Thread Jon Anderson
Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest that the CLI cache is not connected to the web server cache: From:

[PHP] FTP Problems

2006-06-27 Thread James Nunnerley
I'm trying to create some functionality which requires FTPing onto another server, using the php functions. Doing the following comes up with a successful login, but cannot display the current directory; yet when I FTP directory from the server which is serving the php pages, it works fine. //

Re: [PHP] FTP Problems

2006-06-27 Thread nicolas figaro
I had many troubles with ftp_nlist since I discovered the -a option. try this : $buff = ftp_nlist($conn_id,-a); N F James Nunnerley a écrit : I'm trying to create some functionality which requires FTPing onto another server, using the php functions. Doing the following comes up with a

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
Nope - unfortunately, no change, still the same problems, logging in but no ftp_nlist or indeed ftp_rawlist Cheers Nunners -Original Message- From: nicolas figaro [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 14:12 To: James Nunnerley Cc: php-general@lists.php.net Subject: Re: [PHP] FTP

Re: [PHP] FTP Problems

2006-06-27 Thread chris smith
On 6/27/06, James Nunnerley [EMAIL PROTECTED] wrote: I'm trying to create some functionality which requires FTPing onto another server, using the php functions. Doing the following comes up with a successful login, but cannot display the current directory; yet when I FTP directory from the

Re: [PHP] FTP Problems

2006-06-27 Thread nicolas figaro
James Nunnerley a écrit : Nope - unfortunately, no change, still the same problems, logging in but no ftp_nlist or indeed ftp_rawlist even with a pathname ? ftp_nlist($conn_id, -a /) do you have any log on the server ? ( you can also sniff the network to watch what php sends). NF Cheers

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
: [PHP] FTP Problems On 6/27/06, James Nunnerley [EMAIL PROTECTED] wrote: I'm trying to create some functionality which requires FTPing onto another server, using the php functions. Doing the following comes up with a successful login, but cannot display the current directory; yet when I FTP

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
Just tried that, and still the same result - I think it's the server - going to ask the server admin now! -Original Message- From: nicolas figaro [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 14:19 To: PHP List Subject: Re: [PHP] FTP Problems James Nunnerley a écrit : Nope

Re: [PHP] FTP Problems

2006-06-27 Thread Jochem Maas
[mailto:[EMAIL PROTECTED] Sent: 27 June 2006 14:16 To: James Nunnerley Cc: php-general@lists.php.net Subject: Re: [PHP] FTP Problems On 6/27/06, James Nunnerley [EMAIL PROTECTED] wrote: I'm trying to create some functionality which requires FTPing onto another server, using the php

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
PROTECTED] Sent: 27 June 2006 14:29 To: James Nunnerley Cc: 'chris smith'; php-general@lists.php.net Subject: Re: [PHP] FTP Problems James Nunnerley wrote: Thanks for the reply Chris. How would you suggest displaying the current home directory for the user? I've tried / and indeed the real

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
: RE: [PHP] FTP Problems Thanks all - it would seem that php is failing to set the passive mode to true - I can get around it temporarily, but need to find a more permanent option. Does anyone have any experience as to why setting ftp_pasv to true fails? -Original Message- From: Jochem Maas

Re: [PHP] FTP Problems

2006-06-27 Thread Jochem Maas
:37 To: 'Jochem Maas' Cc: 'chris smith'; php-general@lists.php.net Subject: RE: [PHP] FTP Problems Thanks all - it would seem that php is failing to set the passive mode to true - I can get around it temporarily, but need to find a more permanent option. Does anyone have any experience

Re: [PHP] FTP Problems

2006-06-27 Thread Chris
James Nunnerley wrote: Thanks for the reply Chris. How would you suggest displaying the current home directory for the user? I've tried / and indeed the real directory name on that particular server. Funnily enough, I've also just tried a generic php/ftp script tool, and it works on a third

RE: [PHP] GD problems

2006-06-23 Thread Beauford
Since I know nothing of how this works, does this actually create a physical image, and if it does I'm assuming it would be in the originating directory from where the script was run - if this is the case, I got nothing. This is a moot point now as I have done what I need without using gd, but

Re: [PHP] GD problems

2006-06-23 Thread Chris
Beauford wrote: Since I know nothing of how this works, does this actually create a physical image, and if it does I'm assuming it would be in the originating directory from where the script was run - if this is the case, I got nothing. This is a moot point now as I have done what I need

RE: [PHP] GD problems

2006-06-23 Thread Beauford
Here's something else I just noticed. When I run the script below in Windows it works fine, in Linux I get this error: Fatal error: Call to undefined function bcmod() in /usr/local/apache/htdocs/home/cap.php on line 62 This is line 62: $pos_x = bcmod($code,$size_x-60) +3; Linux is running PHP

RE: [PHP] GD problems

2006-06-23 Thread Beauford
in Linux that is required by these scripts? This is what I've been fighting with the last two weeks. Thanks for all the help. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 23, 2006 2:20 AM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford

Re: [PHP] GD problems

2006-06-23 Thread chris smith
On 6/24/06, Beauford [EMAIL PROTECTED] wrote: Here's something else I just noticed. When I run the script below in Windows it works fine, in Linux I get this error: Fatal error: Call to undefined function bcmod() in /usr/local/apache/htdocs/home/cap.php on line 62 David told you about this

RE: [PHP] GD problems

2006-06-23 Thread Beauford
though. Thanks to everyone. B -Original Message- From: chris smith [mailto:[EMAIL PROTECTED] Sent: June 23, 2006 6:11 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems On 6/24/06, Beauford [EMAIL PROTECTED] wrote: Here's something else I just noticed. When I

Re: [PHP] GD problems

2006-06-23 Thread chris smith
On 6/24/06, Beauford [EMAIL PROTECTED] wrote: Honestly, I've never seen anything so ridiculous. How is one to know that in order to get one program to work you have to install 28 others. I'm not trying to be a smart ass here, but seriously - No where in any documentation I've read does it say I

RE: [PHP] GD problems

2006-06-22 Thread David Robley
Beauford wrote: There is something wonky with gd. I completely reinstalled Slackware today, including PHP, gd, and all the other stuff - and still nothing. I downloaded 5 separate captcha scripts and only got one to work. The code in all of them is very similar in that it creates a

RE: [PHP] GD problems

2006-06-22 Thread Richard Lynch
On Wed, June 21, 2006 1:06 pm, Beauford wrote: This is the output from ?php var_dump(gd_info()); ?. As far as I can tell, jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still doesn't work. Anyone know of a way I can test this further. A small script perhaps. ?php

RE: [PHP] GD problems

2006-06-21 Thread Beauford
Support]= bool(false) } -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 20, 2006 8:51 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: After my last email I searched around some more and found the following. /Q: gd keeps

Re: [PHP] GD problems

2006-06-21 Thread Chris
Beauford wrote: This is the output from ?php var_dump(gd_info()); ?. As far as I can tell, jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still doesn't work. Show us some code that doesn't work and you'll probably get some suggestions. -- Postgresql php tutorials

RE: [PHP] GD problems

2006-06-21 Thread Beauford
: June 21, 2006 8:41 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: This is the output from ?php var_dump(gd_info()); ?. As far as I can tell, jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still doesn't work. Show us some code

Re: [PHP] GD problems

2006-06-20 Thread Chris
Beauford wrote: After my last email I searched around some more and found the following. /Q: gd keeps saying it can't find png or jpeg support. I did install libpng and libjpeg. What am I missing?/ /A: Be sure to do make install-headers for libpng and make install-lib for libjpeg, in addition

[PHP] GD problems

2006-06-19 Thread Beauford
I finally broke down and reinstalled PHP using the info from the site below, but GD is still not working. Phpinfo() shows it is enabled, as are the other libraries. So I'm lost as to what I am missing? http://tanksoftware.com/tutes/installingphp.html Any help is appreciated. B -- PHP General

Re: [PHP] GD problems

2006-06-19 Thread Richard Lynch
On Mon, June 19, 2006 5:43 pm, Beauford wrote: I finally broke down and reinstalled PHP using the info from the site below, but GD is still not working. Phpinfo() shows it is enabled, as are the other libraries. So I'm lost as to what I am missing?

RE: [PHP] GD problems

2006-06-19 Thread Beauford
Message- From: Beauford [mailto:[EMAIL PROTECTED] Sent: June 19, 2006 6:43 PM To: php-general@lists.php.net Subject: [PHP] GD problems I finally broke down and reinstalled PHP using the info from the site below, but GD is still not working. Phpinfo() shows it is enabled, as are the other libraries

Re: [PHP] GD problems

2006-06-19 Thread Chris
Beauford wrote: Hi again, I started again to see if I could get it to work. I first removed everything (libpng, libjpeg, zlib, and PHP). Then as before I followed the info in the link below. Now I get the following when I run make for PHP. Note also that I can not compile gd on it's own, I had

RE: [PHP] GD problems

2006-06-19 Thread Beauford
frustrated. Thanks again -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: June 19, 2006 9:10 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] GD problems Beauford wrote: Hi again, I started again to see if I could get it to work. I first removed

<    1   2   3   4   5   6   7   8   9   10   >