Just out of curiosity. Can you please tell me how you initiated the download?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Thanks all, I've found the solution! PHP Backend + JQuery works great!
Just out of curiosity. Can you please tell me how you initiated the download?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
most probable error in your case is the dev server has output
buffering enabled while it is turned off on the live server. try
phpinfo to verify
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
better try using ssh2_* functions
http://www.php.net/manual/en/function.ssh2-tunnel.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I am trying to use http://code.google.com/p/xmpphp/ package. It uses
stream_socket_client to connect to XMPP servers. I am behind a proxy
server so obviously this is not working. Tried proxychains but to no
avail.
Am I missing something obvious?
Kranthi.
--
PHP General Mailing List
> When I first started using sessions, I was alarmed to read a very similar
> statement about
> sessions, but I soon found that if I started my program with the statement
> "session_start();" I could then set up, access, modify or clear any session
> variable at
> any time in my program. This is
Hi all,
I want to run fsockopen etc behind a proxy.
proxychains (http://proxychains.sourceforge.net/) may be helpful,
unfortunately the support for that is pretty bad. Please inform me of other
alternatives
KK.
I did'nt understand completely. But I noticed that if i do
$opts = array('http' => array('proxy' => 'tcp://10.3.100.212:8080',
'request_fulluri' => true));
$context = stream_context_set_default($opts);
fopen, file_get_contents, etc. are working fine, but fsockopen is not
KK.
stream_socket_client("tcp://talk.google.com:5222")
i m trying to use http://code.google.com/p/xmpphp/ actually
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you can do that by using .htacess in the required directory
http://www.askapache.com/htaccess/apache-speed-cache-control.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>> print $a[0]; // prints 5
>> print $a[100]; // Notice: Uninitialized string offset: 100
Yup, this should happen when 5 is treated as an array of characters.
In other words as a string.
$a = '5';
echo $a[0];
echo $a[100];
gives you the expected result
regarding the original question, i think t
you forgot httpd
KK.
On Fri, Apr 9, 2010 at 08:32, David McGlone wrote:
> Hey guys, quick question. I had to re-install my Ubuntu, and I forgot
> what package I needed so firefox will display the php files and not ask
> me to if I want to download them. I've done installed PHP5, mysql, and
> ph
header('HTTP/1.1 200 Ok');
in /subapp_members/search_user.php will do the job
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have you tried using a profiler like xdebug? or may be it is not a php
issue at all..
i find https://addons.mozilla.org/en-US/firefox/addon/1843 to be
helpful in these situations
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You can use javascript to trigger an onclick function every time a checkbox
is selected.
The onclick function can make an ajax call to a remote php script which can
then make the database query.
guess you are looking for
http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PEAR's mail package does support authentication.
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
In case you get a "Sent Successfully" message (but didn't get a mail
in your inbox or spam folder) there is a problem with your SMTP server
configuration. And
>> The
thats weired...
Mail.php contains the class Mail. So getting a "class not found" error
is not possible... (require_once stops the script in case it can't
find Mail.php)
>> Do I need to move the Mail PEAR class to the same folder as my web folder
ensure that C:/xampp/php/PEAR folder is added to your
when you install pear package Mail a file called Mail.php will be
installed into C:/xampp/php/PEAR
>> Mail.php contains the class Mail. So getting a "class not found" error is
>> not possible..
are you sure you are doing require_once 'Mail.php' ?
--
PHP General Mailing List (http://www.php.net/)
>> because arithmetic operations with "Unknown" operands should result to
>> "Unknown" ...
in PHP "Unknown" values are represented by NaN, not NULL
http://php.net/manual/en/function.is-nan.php
but what surprises me is
is_nan(6/0) = (bool)false (along with a warning)
>> Now PHP uses NULL as a 0 (
Hi all,
My PHP script is running as CLI. Can I get the Power Management
Settings of the server ?
I am using PHP 5.3.2 on Fedora 12 Machine (2.6.32.10-90.fc12.i686)
KK.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>> Your server management software may provide a way to get this information
>> either through the command line or through a network interface
Using exec('gconftool-2 -g
/apps/gnome-power-manager/timeout/sleep_display_ac') helped. Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsu
may be it is not the error with the code. The problem may be with some
' in the input. Print out the mysql error and/or the sql query to see
what is going wrong.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
== operator type casts the string to integer before comparing
so the comparison boils down to 0 == 0 which is true
these rules also apply to the switch statement
http://php.net/manual/en/language.operators.comparison.php
but with === the typecasting does no occur
--
PHP General Mailing List (htt
http://www.php.net/manual/en/function.mysql-get-server-info.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i prefer using a template engine like smarty http://www.smarty.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i would use a single point of entry to solve this problem
1. keep the files outside your doc root
2. in the php file files.php check for an authorized user, if so allow
the user to download the file
the path http://site.com/files/we23h4hk234hjksdjrjkl23jfasdf will
actually be http://site.com/files
i would configure apache to let php interpreter handle all kinds of
extensions ( http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addhandler
)
even then u'll have go through all the steps pointed out by Ash.
the only advantage of this method is more user friendly URL
--
PHP General Mailing Lis
i have an array
$parms = array('1' => 'a', 'b' => array(3 => 'test'));
i want $mail = '1:a 3:test';
array_walk_recursive($parms, function($val, $key, &$mail) {
$mail .= ucwords($key) . ': '. ucwords($val) . "\n";
}, &$mail);
The above function worked perfectly well
but i am getting: Call-time
use some thing like http://uploadify.com
u can always check for the uploaded file extension/mime-type on the server side
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i m not sure if i usderstood your question completely.
by database you mean something like phpmyadmin, right ?
i would save the latest session id of the boss in a file, and every
time an employee tries to log in, verify the time stamp of the session
file in the tmp folder.
and if the boss logs out
> Is MAX_FILE_SIZE passed to PHP as $MAX_FILE_SIZE?
only if register_golbals is set to ON in php.ini. This is a very bad
practice and should be avoided. Use $_POST['MAX_FILE_SIZE'] instead.
But in this case dont use the post variable also. define a constant in
your configuration file and use that c
uperglobal array
http://php.net/GLOBALS
http://php.net/heredoc
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
probably not the issue, but is the php engine behind a proxy server ?
wget uses the environment variable, but PHP does not
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
As pointed out echo $insertSQl should help you locate many trivial
problems. But using PDO will avoid these kind of problems
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http_proxy or HTTP_PROXY i m not sure
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
they should be something like error_log-[date] not sure about windows though
>>However I have found that if I paste the html into my web page created by
>>Serif WebPlus 10 I get the "html" line but not the "php" line.
are you saying that you are getting the php code in your browser ?
This is a P
apache error logs will be helpful in this case. Their location varies
depending upon your installation. But in any case they'll be insde
your server directory (IIRC it is c:/Program Files/Apache Software
Foundation/Apache by default)
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
and if proxxy is the issue http://proxychains.sf.net/ will help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
echo $query;
before
$result = mysqli_query($dbc, $query);
might be of help to understand what is going wrong
copy that query and execute in phpMyAdmin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
apache log files will be of help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The exact error message will help understand your situation
Most probable reason is Zend is not included in your include path
develop with error_reporting set to E_ALL & E_STRICT that will help
you understand many trivial errors
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
in this case when you put a tab before the closing heredoc it is not
an error in itself. Its equivalent to removing the closing heredoc. so
PHP treats the rest of the code as part of the string.
A Parse error is reported when ?> OR end of the file is reached
--
PHP General Mailing List (http://w
wats the setting of display_errors php.net/display_errors ?
if you are not getting any output it might be because of a simple
parse error (mismatched brackets, misplaced semicolon etc) or an
exit/die command
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing List (http://www.php.net/)
To
you script looks (and works) fine. so i dont think the problem is in your script
I found firebug/live http headers firefox addons to be helpful in this situation
see if your client is actually sending "Authorization Basic" header
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing
I never had a problem with FirePHP. Among other tools I have used,
some gave "Headers already sent" problem. The rest failed in case of
AJAX requests.
AFAIR Breakpoints are used for debugging and are different from
Logging. For debugging you may have a look at xDebug
Kranthi.
http://g
this might be of use
http://php.net/posix-getpwnam
<http://php.net/manual/en/function.posix-getpwnam.php>
Kranthi.
http://goo.gl/e6t3
>> But the example will NOT work via the web browser on my Apache 2
>> (2.2.17) / PHP (5.3.5) Web Server!
May be a problem with the permissions ?
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
> Perhaps your server is configured to have output buffering enabled by default
Thanks. That was the problem. I spent a day trying to debug this.
Kranthi.
http://goo.gl/e6t3
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
101 - 149 of 149 matches
Mail list logo