Instll php on Window 2003 64Bit questions
Dear All,
If the OS is Windows 2003 64Bit (IIS)...
So, which php package must download and how to config it for running
with IIS ?
Due to I don't quite the online manual:
http://www.php.net/manual/en/install.windows.iis.php
Which installation mode is suitable of it ?
Thanks !
Edward.
|
1/3/2010 7:10:32 AM
|
3
|
edward...@ita.org.mo ("Edward S.P. Leong")
|
[PHP] Regexp and Arrays
--001485f854c6e58ca9047c34e740
Content-Type: text/plain; charset=ISO-8859-1
I have been plauged for a few days by this, can anyone see a problem with
this function??
function printByType($string, $mode)
{
(string) $string;
$lengths = array(
'VARCHAR' => 10
, 'TINYINT' => 1
, 'TEXT' => 10
, 'DATE' => 7
, 'SMALLINT' => 1
, 'MEDIUMINT' => 2
, 'INT' => 2
, 'BIGINT' => 3
, 'FLOAT' => 4
, 'DOUBLE' => 4
, 'DECIMAL' => 4
, 'DATETIME' => 10
, 'TIMESTAMP' => 10
, 'TIME' => 7
, 'YEAR' => 4
, 'CHAR' => 7
,
|
1/2/2010 9:09:37 PM
|
0
|
allenmcc...@gmail.com (Allen McCabe)
|
mod rewrite
--0016e64b970e641091047c29c616
Content-Type: text/plain; charset=ISO-8859-1
hi
i am using a cms which requires mod_rewrite to be enabled for seo urls
in the wamp that i use in my local machine in the httpd.conf file i have
this line and removed the comment
LoadModule rewrite_module modules/mod_rewrite.so
when i view the phpinfo i can see that mod_rewrite is on in the Loaded
Modules
i am guessing that my hosting might not allow to edit the httpd.conf file so
i tried adding the following to the .htaccess which is in the root directory
Options +FollowSymLinks
RewriteEngine
|
1/2/2010 7:52:50 AM
|
1
|
sudhakarar...@gmail.com (Sudhakar)
|
[PHP] Arrays & Regexp - Help Requested
--00504502b1c1d66c69047c22dee6
Content-Type: text/plain; charset=ISO-8859-1
Happy New Year, here's my first question of the year (and it's only 15 hours
into the year!).
I am creating a small database management tool for my a website (my work IP
blocks my access to PhpMyAdmin) and I don't want to install any additional
software.
I am working on adding rows and need to format the input boxes properly (ie.
VARCHAR needs an text input, TEXT needs a textarea input). Using a mysql
query I can determine the data types for each field. I have a function that
uses this information to re
|
1/1/2010 11:38:36 PM
|
1
|
allenmcc...@gmail.com (Allen McCabe)
|
PHP uploaded files logs
--0016e64606cafab0a4047c150776
Content-Type: text/plain; charset=ISO-8859-1
Hi,
Is PHP maintaining the logs regarding files uploaded? Actually I needed it
because recently in my developed web site upload functionality seems to stop
working even for the correct file and i want to check that which type of
files are uploaded. Actually I cannot debug through PHP on the server as my
site is on production.
Please help me out.
Regards,
Manoj
--0016e64606cafab0a4047c150776--
|
1/1/2010 7:07:56 AM
|
4
|
manojsingh2...@gmail.com (Manoj Singh)
|
Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?
Meant to send this to the list, sorry.
---------- Forwarded Message ----------
Subject: Re: [PHP] If design patterns are not supposed to produce reusable
code then why use them?
Date: Thursday 31 December 2009
From: Larry Garfield <larry@garfieldtech.com>
To: "Tony Marston" <tony@marston-home.demon.co.uk>
On Wednesday 30 December 2009 10:50:40 am Tony Marston wrote:
> I have recently been engaged in an argument via email with someone who
> criticises my low opinion of design patterns (refer to
> http://www.tonymarston.net/php-mysql/design-patterns.html ). He says that
> des
|
12/31/2009 11:43:16 PM
|
5
|
la...@garfieldtech.com (Larry Garfield)
|
Happy New Year
--0015175ce0947eaa3b047c02d2a5
Content-Type: text/plain; charset=UTF-8
hi all my friends,
Happy New Year... from BANGLADESH
regards,
saeed
--0015175ce0947eaa3b047c02d2a5--
|
12/31/2009 9:24:30 AM
|
0
|
saeed....@gmail.com (saeed ahmed)
|
Happy New Year All!
<?php
/** this going to be a long wish from Malaysia
* @author paragasu
*/
do { echo 'wish you .. \n'; } (date('Y') < 2010) ;
exit (' Happy New Year');
?>
|
12/31/2009 7:11:04 AM
|
13
|
parag...@gmail.com (paragasu)
|
PHP excel graph generator
--0016e68ee0399b37ee047bff98b3
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I have the task to create excel sheet with embedded charts and graphs
through PHP. The charts are pie chart and bar chart. The project will be run
on the linux server. My question is it is possible to implement this through
PHP? If yes, then please suggest the available implementations.
Thanks in advance.
Regards,
Manoj
--0016e68ee0399b37ee047bff98b3--
|
12/31/2009 5:33:33 AM
|
0
|
manojsingh2...@gmail.com (Manoj Singh)
|
Survey+Report in PHP
--0016e6d7ea6845b6f9047bfe17fd
Content-Type: text/plain; charset=ISO-8859-1
Hello Guys,
I am trying to make a web app which has a survey and report based on the
survey.The app is like a suvery and I have to generate a report based on the
survey.Can someone please give a clue of how to generate the report .I have
the answers to the questions of the survey and based on them a report will
be generated.
Thanks
Aditya
--0016e6d7ea6845b6f9047bfe17fd--
|
12/31/2009 3:45:49 AM
|
2
|
adityashukla1...@gmail.com (aditya shukla)
|
If design patterns are not supposed to produce reusable code then why use them?
I have recently been engaged in an argument via email with someone who
criticises my low opinion of design patterns (refer to
http://www.tonymarston.net/php-mysql/design-patterns.html ). He says that
design patterns are merely a convention and not a reusable component. My
argument is that something called a pattern is supposed to have a recurring
theme, some element of reusability, so that all subsequent implementations
of a pattern should require less effort than the first implementation. If
design patterns do not provide any reusable code then what is the point of
using them?
|
12/30/2009 4:50:40 PM
|
5
|
t...@marston-home.demon.co.uk ("Tony Marston")
|
Help with security configuration for a shared hosting environment
--0023543328f68424ef047bef5053
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I am setting a shared hosting server and I'd like to gather some advices
regarding the security. Since the code will not be produced by me I'd like
to focus on environment strategies.
For now I've added a noexec in the mount options of the /tmp and the homedir
of the web server, disabled the devel tools (such as gcc).
In terms of the PHP I am inclined to use mod_suPHP to avoid having the
problem with the script generated files (such as uploads) being owned by the
webserver itself and I'd like to u
|
12/30/2009 10:08:05 AM
|
0
|
robert.m...@gmail.com (robert mena)
|
not able to use mysql server
--0016e64ce5a2ed9daa047bec034e
Content-Type: text/plain; charset=ISO-8859-1
hi
i am using windows vista and installed wamp server, initially i installed
wamp and accessed phpmyadmin and while setting a password for the root i did
a mistake and could not access phpmyadmin and also renamed some php files so
i uninstalled wamp server and re installed
now the problem i am facing is when i click on mysql.exe located at
D:\wamp\bin\mysql\mysql5.1.36\bin i am getting the following error
error 2003 cant connect to Mysql server on localhost 10061
in config.inc.php located at d:\wamp\a
|
12/30/2009 6:11:55 AM
|
2
|
sudhakarar...@gmail.com (Sudhakar)
|
output buffer
--_000_B0D7C0A3F35FE144A70312D086CBCA9B03D0F094CCExchMailbox2u_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I am receiving the "Cannot send session cookie - headers already sent" mess=
age even though I am using ob_start() at the top of my script.
The php.ini file has output_buffering set to 4096 4096.
My server is running Red Hat Enterprise Linux 5.2
I am using PHP 5.1.6
Is there some other setting I need to adjust to be able to start a session =
within the php script?
Thanks
Marc
--_000_B0D7C0A3F35FE144A70312D086CBCA9B03D0F
|
12/29/2009 9:09:40 PM
|
3
|
Marc.Fr...@wwu.edu (Marc Fromm)
|
[php] Question about jsmin-php code
I'm see some code from jsmin-php like follow:
<?php
error_reporting(E_STRICT);
fwrite(STDERR, memory_get_peak_usage(true)."\n");
require './jsmin.php';
echo JSMin::minify(file_get_contents('ext-all-debug.js'));
fwrite(STDERR, memory_get_peak_usage(true)."\n");
?>
I have some question about code
1.what is E_STRICT error level mean?I'm found an explain at
http://www.php.net/manual/en/errorfunc.constants.php
but i don't understand which situation need this level?
2.document for STDERR is at http://php.net/manual/en/wrappers.php.php
but why it write some output to STDERR ?
|
12/29/2009 11:07:02 AM
|
1
|
hack...@dev.htwap.com (hack988 hack988)
|
Merry Xmas and Happy New year
--=-krJ6Mt0rQkqHN/ZhBkU3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Hey Guys,
Have a great new year and merry Christmas.
Regards,
Gautam Bhatia
mail2gautambhatia@gmail.com
--=-krJ6Mt0rQkqHN/ZhBkU3--
|
12/29/2009 7:54:11 AM
|
0
|
mail2gautambha...@gmail.com (Gautam Bhatia)
|
Multiple Inheritance Needed in OOP?
Hello,
Okay so PHP designers explicitly decided against multiple inheritances,
but aren't there legitimate needs for multiple inheritance in OOP?
For example, consider the following three classes (A,B,C) with the
following properties (a number is a distinct property or method).
A: 1, 2, 3
B: 1, 3
C: 1, 2,
I would like to set the 3 classes up so that no object has 'extra'
properties than it requires, so that no property has to be
declared/defined in two or more classes, and so that we are strictly
using single inhertiance. I don't think it's possible. I've been
incorrec
|
12/29/2009 3:45:03 AM
|
4
|
kolb0...@umn.edu (Daniel Kolbo)
|
MySQL Increment/Decrement
------=_NextPart_000_00C8_01CA87F7.82724840
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I hope this isn't a bone-head question - Is there a MySQL query that will
increment/decrement the value in an integer column with a single query - in
other words, I don't have to run a SELECT query to get the value,
add/subtract to/from the value, and then run an UPDATE query to store the
new value?
Thanks in advance.
Ben
------=_NextPart_000_00C8_01CA87F7.82724840--
|
12/29/2009 2:54:04 AM
|
5
|
...@tottd.com ("Ben Miller")
|
404 page
--0016e64b92dc5e6869047bc3641a
Content-Type: text/plain; charset=ISO-8859-1
hi
1.
i have a .htaccess file in my root directory on unix hosting
following is the code in .htaccess file
ErrorDocument 404 /filenotfound.html
the file filenotfound.html is also in the root directory as the htaccess
file
when i intentionally type a wrong url either if a misspell a file ex=
http://domainname.com/filenam.html or a folder ex =
http://domainname.com/100
to test if this is working filenotfound.html is not being called
any reason why this is happening
also the same thing wi
|
12/28/2009 5:43:59 AM
|
3
|
sudhakarar...@gmail.com (Sudhakar)
|
Unable to get output from exec "ssh remote-server 'ping -c4 ip'"
--00163683269c12e612047bbcd0b7
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I need to develop an interface that will, for example, ping IPs from a
remote server. So the php script will be hosted in a server with ssh access
(key) to the remote server.
I can make it work from the console but when I try
$cmd = "ssh remote-server 'ping -c 4 ip'"
exec($cmd, $ouput);
the output is empty.
the same command (with the remote-server and IP changed to the real ones)
works fine from command line.
I've added the key/config in the webserver's user .ssh directory so I am
assumin
|
12/27/2009 9:53:01 PM
|
3
|
robert.m...@gmail.com (robert mena)
|
Noob stuff - Zend/Opcode/Cache/Optimizer
Hello,
I'm missing some unifying piece of the zend/php puzzle...
I understand the basics of zend engine opcode, caching the opcode,
optimizing the opcode, and caching the optimized opcode, etc... The
part I'm struggling with is somewhere in the zend world.
Under a typical php install where does the zend engine live (like what
file)?
I am under the impression that I need to install the Zend Server
Community Edition (ZSCE) to get the zend optimizer+. I thought PHP came
with the zend engine...why do i now have to download this ZSCE just to
add a component to the engine i alre
|
12/27/2009 2:57:43 AM
|
3
|
kolb0...@umn.edu (Daniel Kolbo)
|
[PHP] Accessing Objects - Object to Object Communication
--001636e0b95b27535c047ba87f4f
Content-Type: text/plain; charset=ISO-8859-1
I have a Database class that I instantiate with credential information. The
connect method connects and creates a resource by the name $link_id. So if I
do this:
$db = new Database($server, $user, $password, $database);
$db->connect();
To get the resource (for use by mysql_insert_id() for example), I use
$db->link_id, so to get the last inserted record:
$id = mysql_insert_id($db->link_id);
Now for my question:
I have another class for creating pages (content). I have a method called
newPage() that
|
12/26/2009 9:38:44 PM
|
1
|
allenmcc...@gmail.com (Allen McCabe)
|
uninstalling wamp
--0016e648f0aed649a6047ba1fc71
Content-Type: text/plain; charset=ISO-8859-1
hi
after installing wamp when i accessed phpmyadmin i got an error about root
having no password, i have tried various steps but could not get to use
phpmyadmin, so i uninstalled and reinstalled wamp, i deleted the old wamp
folder when i access phpmyadmin i get the same error message
i read that there are some files of wamp that need to be deleted from the
registery of windows, i am not very sure about regsitry as it is a bit risky
thing
can anyone advice how i can remove any unwanted wamp files and
|
12/26/2009 1:52:48 PM
|
1
|
sudhakarar...@gmail.com (Sudhakar)
|
Multiple Inheritance Concern
Hello PHPers,
I've learned that php doesn't support multiple inheritance, b/c if you
need multiple inheritance usually it is a sign you've got a design
imperfection...or so they say.
Well, I'm using a framework (Codeigniter), and i'm extending the core
libraries. The trouble is, I want to also extend a second custom class,
and I don't want to change the core codeigniter class definitions as
this makes for awkward upgrades.
I read about mixins - no thank you. i do not want to even think about
mixins as it looks like it would be the source of all debug hell...
What's a progra
|
12/26/2009 2:02:06 AM
|
3
|
kolb0...@umn.edu (Daniel Kolbo)
|
imagerotate bug?
Can anybody email me off-list to comment on whether the bug
demonstrated here for imagerotate is fixed in current PHP?
http://6112northwolcott.com/dogfight/rotate.htm
All the backgrounds should be white, not black.
I can't easily test on a newer version of PHP at the moment.
--
Some people ask for gifts here.
I just want you to buy an Indie CD for yourself:
http://cdbaby.com/search/from/lynch
|
12/25/2009 7:39:58 PM
|
0
|
...@l-i-e.com ("Richard Lynch")
|
Question Answer based report.
--0016e6d588b9528c27047b8fce14
Content-Type: text/plain; charset=ISO-8859-1
Merry Christmas Guys,
I am trying to make a small web application which has some question and some
answers for that questions.My aim is to create a report based on the
questions and answers
related to questions.Please suggest a way to go about the application.Should
I go for a if-else or switch case format for the answers or is there a
better way.? The app is something similar to the apps on facebook where
questions-answers give us a report.
Thanks
Aditya
--0016e6d588b9528c27047b8fce14--
|
12/25/2009 4:11:18 PM
|
1
|
adityashukla1...@gmail.com (aditya shukla)
|
Merry Christmas!
Merry Christmas from Texas, USA!
--
Thanks!
-Shawn
http://www.spidean.com
|
12/25/2009 2:16:13 PM
|
6
|
nos...@mckenzies.net (Shawn McKenzie)
|
idea? add set_trace_handler() to PHP
--00151747856e6aaa2c047b862e2e
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I would like the opinion of the readers of this list on whether or not they
agree on the usefullness of adding some new functions to the core of PHP.
Background Info:
I want more debug-information from my scripts.
And I want to perform lengthy operations in a more robust way.
And I want to monitor such operations in real-time, with points of interest
highlighted, from a webbrowser, using jquery ajax calls.
For instance, when 1000 items are being processed and 10 fail, i want those
listed (with fu
|
12/25/2009 4:42:21 AM
|
3
|
rene7...@gmail.com (Rene Veerman)
|
strtotime - assumptions about default formatting of dates
------=_NextPart_000_05B6_01CA84E7.4917D190
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all. I need to allow users to enter dates and times, and for a while =
now I've been forcing them to use javascript date/time pickers so I can =
be absolutely sure the formatting is correct.
Some users are requesting to be able to type the entries themselves so =
I've decided to allow this.
I'm in Australia, and the standard formatting of dates here is =
DD/MM/YYYY or DD-MM-YYYY
I recognize this is different to what seems to happen in the
|
12/24/2009 12:20:23 PM
|
2
|
angusm...@pobox.com ("Angus Mann")
|
PHP/SWFUpload progress
--000325574fb26a7816047b77cd6b
Content-Type: text/plain; charset=UTF-8
Hi all,
Wishing you a merry xmas! As a gift to you a little thing that I figured out
through long googling and trial and error:
We are using the swfupload (flash) upload tool to upload files to a php
script. For a rather cryptic reason on some clients the progress would show
too quickly when AVG Link scanning was activated on a windows machine. The
upload would have completed, but it was actually still uploading. Sound
weird? Yes that's what we thought.
We ended up solving it by installing SSL (https) on t
|
12/24/2009 11:33:04 AM
|
1
|
geek....@gmail.com (German Geek)
|
Tracking file download progress
Hi all!
Here is the problem: i have PHP script that takes URL of file from
client and downloads it to my server. But when file is downloading,
clients see blank page. How can I track file download progress on the
server side(easier) and send result to client lively, to show it like
a progress bar in web browser?
Googled around, found JQuery and JsHttpRequest, but can't understand
both for my task =3D) If everyone knows please give me some advice
Best regards
|
12/24/2009 7:28:36 AM
|
6
|
vla...@mail.kna.ru (STEEL)
|
sending email with php
--001636b148eaeea8dd047b6b94ab
Content-Type: text/plain; charset=ISO-8859-1
<?php
$headers = "Content-type: text/html; charset=iso-8859-1";
$to="myemailaddress";
$subject="Email Newsletter";
$message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Email Newsletter</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<link rel="stylesheet" type="text/css" href="style.
|
12/23/2009 8:58:17 PM
|
4
|
sudhakarar...@gmail.com (Sudhakar)
|
PHP on-line instructor led TRAINING with ZEND Technologies
------_=_NextPart_001_01CA83FC.03CFB370
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Did you know that Zend Technologies is known as The PHP Company? And,
that we offer training? Check out details about our upcoming on-line
instructor led classes at
http://www.zend.com/en/services/training/administration/course-schedule.
Here are the classes we have coming up in January:
=20
PHP I: Foundations: Jan. 4, 6, 8, 11, 13, 15, 18, 20 & 22 from 8-10am
PST
=20
PHPII: Higher Structures: Jan. 4, 6, 8, 11, 13, 15, 18, 20 & 22 from
|
12/23/2009 6:16:14 PM
|
0
|
debbie....@zend.com ("Debbie Otterstetter")
|
Application Help Provider for my website
--0023545bd6444aa187047b619f62
Content-Type: text/plain; charset=ISO-8859-1
I'm looking for any Application help provider that created by php. Is any
php application help provider written, so far?
--0023545bd6444aa187047b619f62--
|
12/23/2009 9:05:21 AM
|
0
|
aliasghar.tor...@gmail.com (Ali Asghar Toraby Parizy)
|
DailyWTF - Maybe I Needing Later
------=_NextPart_000_0338_01CA8342.D88697E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
http://thedailywtf.com/Articles/Maybe-I-Needing-Later.aspx
You get what you pay for. Ondra M didn't use those exact words, but that's
effectively what told his friend and colleague, Derrick. "There's a reason
it costs one tenth as much to build in Kerbleckistan," were Ondra's exact
words, "there's not only the language barrier, but time zone differences,
cultural diff-"
"It's just code, which is just a bunch a bytes!" Derrick shot back, "who
cares if it's
|
12/23/2009 4:10:38 AM
|
3
|
dae...@daevid.com ("Daevid Vincent")
|
TCPDF line breaks
PHP Users,
Anyone using TCPDF? I find that their own forums are near dead.
I want to accomplish something simple, but their documentation is far
from easy.
I have a PDF where I place text in various places around the page, like so:
$pdf->SetXY(50, 187);
$pdf->Write(0, "hello world");
However, in the case of really long text, the text spreads out to the
width of the page, which can break the formatting.
All I want to do is be able to constrain the width of the text being
written, ideally by number of characters, so that it will have line
breaks and form a column of text n
|
12/23/2009 1:40:51 AM
|
2
|
mar...@autotelic.com (Dave M G)
|
OOP: __construct() and "extend"
Hey list,
I'm writing my own class which extends upon the Memcached class
(php.net/memcached).
I'm a bit confused as to how the constructor works when extending a class.
class caching extends Memcached {
function __construct() {
echo "Caching Class Construct!";
}
}
For something like the above code, is the Memcached constructor
called? Or do I have to explicitly call it via parent::__construct()
within the caching class?
Thanks.
|
12/22/2009 10:45:49 PM
|
2
|
apseudouto...@gmail.com (APseudoUtopia)
|
File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name']
--0-834447625-1261520971=:40733
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,
=A0
On my production & testing servers (production runs on a centrino and testi=
ng runs on Windows) I can only access the temporary uploaded file using=20
ini_get( 'upload_tmp_dir' . '/' . $_FILES['filename']['name'];
while the file $_FILES['filename']['tmp_name'] simply does not exist (check=
ed with file_exists() function, and also looking in the temporary folder).
=A0
Is there a problem with my PHP installations? Is there any directive to cha=
nge th
|
12/22/2009 10:29:31 PM
|
1
|
poni1...@yahoo.com (Andrei Iarus)
|
Form validation issue
------=_NextPart_000_0001_01CA81BD.7E39F510
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0002_01CA81BD.7E3A9150"
------=_NextPart_001_0002_01CA81BD.7E3A9150
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Good Day,
I need help in in validating a form.
The for is valdated be a javascript frist then if all the
fields are filled in its valaded be PHP.
The Form starts with:
<form name="myForm" action="<?php echo
$_SERVER['PHP_SELF'];?>" metho
|
12/21/2009 2:43:38 AM
|
5
|
ernie.k...@sympatico.ca ("Ernie Kemp")
|
SQL Queries
--0016368e2a67324d23047b2fb0cd
Content-Type: text/plain; charset=UTF-8
Hey, Lets assume I got a table named "users".
It contains id & name.
I have another table called "notes" - which contains id, user_id, contents
I want to delete all users from table "users" that don't have notes (SELECT
.... FROM notes WHERE user_id=ID) returns empty result.
What is the fastest way to do it?
--
Use ROT26 for best security
--0016368e2a67324d23047b2fb0cd--
|
12/20/2009 9:30:56 PM
|
3
|
danondan...@gmail.com (=?UTF-8?B?15PXoNeZ15DXnCDXk9eg15XXnw==?=)
|
File and Directory Ownership Question
I've got a PHP script running on a shared host [Blue Host] that creates a
directory and writes files in it.
The directory and files are "owned" by the site name, not "nobody" as I've
always seen on other shared hosts.
Anyone have a possible explanation for this?
Thanks, Al.........
|
12/20/2009 5:58:50 PM
|
2
|
n...@ridersite.org (Al)
|
PHP and SEO Workarounds
--=-W3tpHsmmHKLVc6Ajnc9D
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
hey folks,
This is in regards to SEO and PHP, From what i have
read , most (Not all) the PHP Contents is dynamic , which makes it so
powerfull , but it also means that chances of it being indexed in search
engines are less , am i right in saying this ? . If so how do i optimize
my site for search engines which is being powered by PHP and content is
Dynamic. Please guide in this regard. Thank you.
Regards,
Gautam Bhatia
mail2gautambhatia@gmail.com
--=-W3tpHsmmHK
|
12/20/2009 5:15:45 PM
|
3
|
mail2gautambha...@gmail.com (Gautam Bhatia)
|
efficiency of include()
Hello PHPers,
This is a two part question:
1) Is it faster to include one file with lots of code, or many separate
smaller individual files? Assume the one massive file is merely the
concatenation of all the smaller individual files. (I am assuming the
one massive file would be faster..., but i wanted to get confirmation).
2) Suppose php has to invoke the include function 100 times. Suppose
all files are on average the same size and contain the same number of
instructions. Would it be faster to include the same exact file 100
times as opposed to 100 different file names? Ba
|
12/20/2009 4:45:45 PM
|
3
|
kolb0...@umn.edu (Daniel Kolbo)
|
OOP Design Question
Hello PHPers,
I have a collection of about 60 objects (class definitions). They are
all very similar. They all share a substantial % of the same core. But
they all have slight variations as well. The approach I took was to
make an abstract core class, and each of the 60 objects extends that
core. This works, but...
Here's my problem, not every php/http request requires all 60 objects.
At this point, I do not know in advance which objects will be required,
so i include the class def of all 60 objects every time... I don't like
this idea as it seems a 'bloated' approach.
So
|
12/20/2009 4:35:56 PM
|
3
|
kolb0...@umn.edu (Daniel Kolbo)
|
Re: [PHP] PHP and SEO Workarounds
Look into using your web server's mod_rewrite functionality to alter the
URL that the search engines see. For an example, look at Wordpress'
permalinks or Joomla's SEF (search engine friendly) URLs.
What this will do is make all your dynamic pages look more like static
ones. If all your PHP pages had unique names like "about.php" and
"ourmission.php", then the file name sort of lends itself to SEO already,
but that would be a pretty boring website, and probably one that doesn't
need PHP, if that was the case.
The big issue are pages that take parameters:
domain.com/catal
|
12/20/2009 1:30:56 PM
|
0
|
tg-...@gryffyndevelopment.com ("TG")
|
Checking for internet connection.
Hi all.
I'w writing a PHP app that is designed to run over a LAN, so internet
connection for the server is not really essential. Some users may
deliberately not connect it to the internet as a security precaution.
But I'd like the app to make use of an internet connection if it exists to
check for an update, and notify the user.
Is there a simple way for a PHP script to check if it has an internet
connection?
I thought of this :
if(fsockopen("www.google.com", 80)){
// we are connected
}
Is this OK or is there something better for the purpose?
|
12/20/2009 12:13:37 AM
|
19
|
angusm...@pobox.com ("Angus Mann")
|
Re: [PHP] Logic of conditionals and the ( ) operators (RESOLVED)
--001636e0a88084dbb6047b0568e2
Content-Type: text/plain; charset=ISO-8859-1
Thank you Ashley, it makes perfect sense. I don't know why I didn't just set
up some tests like Shiplu suggested!
I've rewritten all my code BACK to the correct way. (I thought it looked
cooler, oh well).
On Fri, Dec 18, 2009 at 10:47 AM, Ashley Sheridan
<ash@ashleysheridan.co.uk>wrote:
> On Fri, 2009-12-18 at 10:21 -0800, Allen McCabe wrote:
>
> In a nutshell:
>
> Will this work?
>
> if ($perm == (11 || 12))
>
>
> Explanation:
>
> I am laying the groundwork for a photo viewing system with
|
12/18/2009 7:04:25 PM
|
0
|
allenmcc...@gmail.com (Allen McCabe)
|
[PHP] Logic of conditionals and the ( ) operators
--000e0cd4ce92dc78ce047b04ce51
Content-Type: text/plain; charset=ISO-8859-1
In a nutshell:
Will this work?
if ($perm == (11 || 12))
Explanation:
I am laying the groundwork for a photo viewing system with a private and
public mode, and additionally if an admin is logged in, there is an
additional level of permission. I came up with a number system to make it
easier (and is calcualted by a class) so now, instead of checking against
the $mode variable, if the user is logged in, and then what their user level
is if they are logged in, I just check against some numbers (the c
|
12/18/2009 6:21:27 PM
|
2
|
allenmcc...@gmail.com (Allen McCabe)
|
PHP to answer HEAD requests
--Apple-Mail-18--642332710
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed;
delsp=yes
Content-Transfer-Encoding: quoted-printable
Is it possible to use PHP to answer HEAD http requests? Is it as =20
simple as doing something like:
header('blah')
exit;
I'd expect PHP to produce a full page rather than just a header though.
--=20
Dan Field <dof@llgc.org.uk> Ff=F4n/Tel. +44 1970 632 =
582
Peiriannydd Meddalwedd Senior Software Engineer
Llyfrgell Genedlaethol Cymru National Library of Wales
|
12/18/2009 10:38:28 AM
|
1
|
...@llgc.org.uk (Dan Field)
|
$_POST is empty , but were are the variables posted??
--000e0cdfc5aed06a56047af33635
Content-Type: text/plain; charset=ISO-8859-1
Hi,
sorry for ask this again, but i really can't solve it.
It must be easy but i can't find the solution
this is my code:
//form.php
<form id='form1' action="mail.php" method="POST" >
name : </td><td><input id="myname" type="text">
<input type="submit" value="enviar">
</form>
//and this is the mail.php
$name = $_POST["myname"];
var_dump($name);
and the result is:
NULL
i'm using php 5, i don'd know what is wrong and i have readed a lot of blogs
and forums, there is a lot of people wit
|
12/17/2009 9:21:42 PM
|
3
|
dany...@gmail.com (gato chlr)
|
Fixe Point Decimal Data type
--0-1441322339-1261059694=:42856
Content-Type: text/plain; charset=us-ascii
Hello,
Is there a way to represent numeric values as fixed point decimals in PHP? If not, why was this datatype not added?
I think is very important to have fixed point decimals when working with money values. This would make it much easy than having to use the BCMath functions.
If PHP had support for operator overloading then we could have easily implemented this datatype as a class:
$a = new FixPoint(34.56, 2);
$b = new FixPoint(34.55, 2);
$c = $a-$b;
echo ($c);
$c+= 3;
echo $c;
--0-1441322
|
12/17/2009 2:21:34 PM
|
3
|
xwis...@yahoo.com (Raymond Irving)
|
RE:bcompiler.so fails to load
--001636c5b1e27d0ff5047aec15ec
Content-Type: text/plain; charset=ISO-8859-1
Dear Team, I have successfully installed bcompiler-0.9.1 from
http://pecl.php.net but apache fails to upload it. I am using PHP 5.3.0,
SUSE 11.2, apache2.2.13.
Below is the error message generated by apache
[
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/extensions/bcompiler.so' -
/usr/lib/php5/extensions/bcompiler.so: undefined symbol: free_zend_constant
in Unknown on line 0
]
Could some one kindly give me a clue on how I could get around this?
--
Tumwijukye Vincent
|
12/17/2009 12:51:38 PM
|
0
|
vtumwiju...@gmail.com (Vincent Tumwijukye)
|
Open source project management tool - PHP
Hi guys
I would like to know what open source project management tools you use for
your projects.
We are looking at installing one that is PHP based and is easy to use.
We have found:
http://www.projectpier.org/
and
http://trac.edgewall.org/
Has anyone used the above and how did you find them? Also are there any
others you would recommend or not recommend and why?
Thanks in advance.
Regards
Angelo
http://www.wapit.co.za
http://www.elemental.co.za
|
12/17/2009 10:24:47 AM
|
7
|
ang...@elemental.co.za ("Angelo Zanetti")
|
A PHP-driven script to determine if the environment is configured correctly (checklist)
--00032555833afaf8c1047ae7d317
Content-Type: text/plain; charset=UTF-8
Dear list,
e-Greetings,
I've developed some PHP-driven web applications. These applications will be
installed on different
linux-based servers (typically Debian and Redhat). Usually, after I copy the
files to the
server, they DO NOT WORK, so I spend hours to debug the problem. Problems
are very funny,
for example, the program is giving strange errors, and it is not working
because "short_open_tags" are off !
I decided to write a PHP script to check if server's configuration meets my
requirements.
- check
|
12/17/2009 7:46:59 AM
|
2
|
behzad.esl...@gmail.com (AmirBehzad Eslami)
|
Tracking the progress of download
Hello to all!
Who knows how to track the progress of the download using PHP and
JavaScript? I have a script that downloads file from net to the
server, and I want to the process including the speed to the
clientside. How can I do that?
Best regards,
Sam
|
12/17/2009 6:12:47 AM
|
1
|
saminsi...@inbox.ru (Sam)
|
A strange question about mysql_close()
--000e0cd519e61f3b89047ae4a4aa
Content-Type: text/plain; charset=ISO-8859-1
I want to ask a strange question.
As we know, if we connect a mysql database in the same host twice with the
same username, we won't get two new link, but two handle to only one link.
Then, if I close one of them, whether the other one will be closed together?
I wrote two pieces of code. The first is like this
<?php
$db1 = mysql_connect($host, $username, $pwd);
$db2 = mysql_connect($host, $username, $pwd);
$sql = 'show databases';
mysql_close($db1);
$res = mysql_query($sql, $db2);
$a = mysql_fetch_ro
|
12/17/2009 3:58:51 AM
|
2
|
tjxing.1...@gmail.com (=?GB2312?B?zMa80tDL?=)
|
[JOB] Senior LAMP Developer needed immediately in Seattle, WA or Lake Forest, CA
Hey guys, I've been on this list since 1997, wow, 12 years! Anyways, we've
been desperately trying to find a talented LAMP developers/Linux "admin".
We've got recruiters hunting, but all the candidates are sub-par and it's
wasting a lot of my/our time. It seems that many people CLAIM to be LAMP
devs, but when you actually quiz them, they fail horribly. Or they don't
know their way around a Linux system, if it doesn't have a pretty GUI. So,
I apologize if this is not allowed on the list, but I don't see a "job"
list (http://www.php.net/mailing-lists.php maybe there should be? )
Since
|
12/17/2009 3:47:19 AM
|
0
|
dae...@daevid.com ("Daevid Vincent")
|
Debian Lenny: Which 5.3 package should I use?
--000e0cd112bcc02708047ac31afa
Content-Type: text/plain; charset=UTF-8
Hi Guys & Gals,
I've been playing around with PHP 5.3 for a while now on development servers
and servers solely used for start-ups and lower-profile apps. But now I'm
about to upgrade the servers for a high profile/high traffic website and
with this upgrade I'd also like to make the switch from 5.2 to 5.3. But -
which package should I choose? I want to rely on community tested builds, so
compiling myself is out of the question.
The server will run on Debian Lenny. The Two and a Half options I've been
able to
|
12/15/2009 11:58:12 AM
|
0
|
wou...@interpotential.com ("Wouter van Vliet / Interpotential")
|
Parsing JSON; back-slash problem
This seems like a pretty basic question, but it has me stumped.
Here's my scenario: I'm using Douglas Crockford's JSON2.js to parse an
object in JavaScript, which I then pass to a PHP script to store in a
file. I use JSON.stringify() on the object, which logs to the console
as this:
{"employees":{"data":{"John":{"fname":"John","lname":"Doe","city":"Toronto","country":"Canada"}}}}
Then I use the jQuery POST function to send it to a PHP script. Before
doing anything with it in PHP, I log the received value to the
console, and this is what I get:
{\"employees\":{\"data\":{\"John\
|
12/15/2009 11:52:17 AM
|
4
|
a06p...@gmail.com (Andrew Burgess)
|
Re: [PHP] MySQL Appeal from Monty
On 14 Dec 2009, at 22:01, Ashley Sheridan <ash@ashleysheridan.co.uk>
wrote:
> On Mon, 2009-12-14 at 15:59 -0600, Philip Thompson wrote:
>
>> On Dec 14, 2009, at 12:51 AM, Lester Caine wrote:
>>
>>> Lenin wrote:
>>>> You might also like this:
>>>> Come on Monty - Lukas Smith http://bit.ly/5lmwwD
>>>
>>> I've been watching some of this debate with interest, but I'll
>>> stay with a database that has none of the baggage that MySQL has
>>> always had, and IS currently replacing Oracle in many large sites :)
>>>
>>> --
>>> Lester Caine - G8HFL
>>
>> Do share your db of int
|
12/15/2009 2:53:41 AM
|
5
|
yousif.mas...@gmail.com (Joseph Masoud)
|
[PHP] Class not functioning
--00504502b0ea7d9875047ab9bbd0
Content-Type: text/plain; charset=ISO-8859-1
Hey everyone, I just delved into classes recently and have been having
moderate success so far.
I have a puzzler though.
I have the following class decalred and instantiated:
class Notify {
var $q = array();
public function addtoQ($string, $class)
{
$message = '<span class="'. $class .'">'. $string .'</span>';
$this->q[] = $message;
}
public function printQ()
{
if (isset($q))
{
echo '<p align="center" class="notification">';
foreach($this->q as $msg)
{
echo $ms
|
12/15/2009 12:47:19 AM
|
7
|
allenmcc...@gmail.com (Allen McCabe)
|
strip tags but preserve title attributes
--=-OD/RIs4Hg80aUVORxbYd
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I'm looking for a way to strip HTML tags out of some text content
(sourced from a web page) to leave just the text which I'll be running
some basic analysis on. The thing is, I want to preserve text that is in
alt and title attributes. I can't use any DOM functions, as I can't
guarantee that the content will be valid XHTML, although it should be
valid HTML.
I'm happy doing this with string functions and regular expressions, but
I was wondering if something for this already existed? The server I plan
|
12/14/2009 11:43:27 PM
|
4
|
...@ashleysheridan.co.uk (Ashley Sheridan)
|
PHP + ODBC
Hello all.
My head hurts from hitting it on my desk all day, so I thought I'd turn =
to a fresher set of eyes. The issue I'm having is getting PHP to connect =
ODBC. I can get it to work using isql from the command line. Can you =
verify my settings....:
/etc/odbc.ini:
[MySQL]
Description =3D MySQL 3.51 ODBC driver
Driver =3D MySQL
Host =3D s-irv-web02
Server =3D s-irv-web02
UID =3D user
Password =3D pass
Database =3D clients
Port =3D 3306
/etc/odbcinst.ini:
[MySQL]
Description =3D ODBC 3.51 fo
|
12/14/2009 11:33:38 PM
|
6
|
philthath...@gmail.com (Philip Thompson)
|
[PHP] can't retrieve more than 1 record at the time still
Hi Again,
Following the suggestions I received from a earlier post, I've closed
the statement
while ($stmt->fetch(PDO::FETCH_BOUND))
before $stmt = NULL;
I don't get an error anymore, but still retrieve only one record.
To check that the array was being filled correctly, I inserted in several places
$ncand = count($_SESSION['numberCand']);
$ndocid = count($_SESSION['DOCIDs']);
and the count is always 0 for $ndocid and 1 for $ncand.
Now I believe that the array is not being filled, and that's why only the last record gets processed.
Can anybody see what I'm doing wrong in the
|
12/14/2009 7:21:14 PM
|
3
|
cmad...@berkeley.edu (Catherine Madsen)
|
Problem with XPath query
Given the following XML:
<Pages>
<Page>
<DisplayRef alias="Widget">
<parameter alias="widgetType" type="variable" value="system"/>
</DisplayRef>
</Page>
</Pages>
I'm using the following query:
$oXPath->query( '//DisplayRef/parameter[@alias="widgetType and
@value="system"]' );
and I'm getting the following error:
Warning: DOMXPath::query() [function.DOMXPath-query]: Invalid predicate
If I remove this part of the query
[@alias="widgetType and @value="system"]
the error goes away.
As far as I can tell from googling around, the query is valid. I
|
12/14/2009 4:52:57 PM
|
4
|
christoph.bo...@gmail.com (Christoph Boget)
|
[PHP] Highlighting image map on load
I have image map with dynamic circle areas whose coordinates stored in
database. I'd like to colorize these areas so that it's obvious to see them.
Most solutions I found on the net highlights the area on mouse hover, while
my needs is to do it once when the window is loaded. Any idea?
--
View this message in context: http://old.nabble.com/Highlighting-image-map-on-load-tp26777088p26777088.html
Sent from the PHP - General mailing list archive at Nabble.com.
|
12/14/2009 12:37:04 PM
|
4
|
leledumbo_c...@yahoo.co.id (leledumbo)
|
Strange MySQL Problem
Hello there,
Here's a short PHP script a friend has written, and given to me to test.
However, I am getting a MySQL error saying that the syntax error, on the
line that contains mysql_connect(); is wrong, near '')'
(note that it is not a PHP error, but a MySQL error.)
Here's the code:
[code]
<?php
$username = "root";
$password = "abc";
$con = mysql_connect("", $username, $password);
mysql_select_db ("test", $con);
$sql = "INSERT INTO BOOK(bookname, authorsname, ISBN) VALUES
('$_POST[bookname]', '$_POST[authorsname]', $_POST[ISBN]')";
if (!mysql_query($sql, $con))
{
die( 'err
|
12/14/2009 8:41:16 AM
|
7
|
parha...@gmail.com ("Parham Doustdar")
|
PHP live chat
Hi all,
I know there are a lot of scripts that one can pay for, for "live chat" -
website support.
Are there are any free open source ones that work well?
I found: www.phplivechat.com
But still waiting to evaluate it.
Please send you comments, good or bad and what you would recommend or not
recommend and why
Thanks in advance.
Angelo
http://www.wapit.co.za
http://www.elemental.co.za
|
12/14/2009 8:14:13 AM
|
2
|
ang...@elemental.co.za ("Angelo Zanetti")
|
Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?
I was wondering why CURLOPT_FOLLOWLOCATION requires open_basedir and
safe_mode to be turned off.
The following was found in the
changelog(http://www.php.net/ChangeLog-5.php):
Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode
are enabled. (Stefan E., Ilia)
Also I read some forum posts about security restrictions blah-blah but
didn't find anything specific, unfortunately.
Can anybody explain the reasons of such a strange restriction or tell
what security issues raises CURLOPT_FOLLOWLOCATION when open_basedir is set?
|
12/13/2009 1:18:49 PM
|
2
|
...@kamazee.name (Alex S Kurilo)
|
MySQL Appeal from Monty
Hi,
You might have already seen this, however if you haven't this may interest you:
http://monty-says.blogspot.com/2009/12/help-saving-mysql.html
--
Richard Heyes
HTML5 canvas graphing: RGraph - www.rgraph.net (updated 12th December
- now with IE support!)
Lots of PHP and Javascript code - http://www.phpguru.org
|
12/13/2009 9:37:43 AM
|
5
|
rich...@rgraph.net
|
(Slide Show) Developing PHP Web Applications with the Raxan Framework
--0-193454076-1260340019=:27746
Content-Type: text/plain; charset=us-ascii
Hello Everyone,
I've put together a quick slide show for those who are interested in learning about Raxan for PHP. It only takes a minute or two
Here's the url: http://tinyurl.com/yhdqc9k
Best regards
__
Raymond Irving
--0-193454076-1260340019=:27746--
|
12/9/2009 6:26:59 AM
|
0
|
xwis...@yahoo.com (Raymond Irving)
|
Force-Saving an Audio File
Hi folks,
I'm trying to force save .mp3 files so this is a test page (found on
the net). It works fine when:
$directory = ""; // so the audio is in the same local directory
but fails when I use a REAL web directory - (the audio file is here
- http://mysite.com/test1/audio.mp3 )
$directory = "http://mysite.com/test1/";
says - The file $file was not found.
Q: Any ideas how to get it to download from the website?
=====
<?php
$file = 'audio1.mp3';
$directory = "http://mysite.com/test1/";
//$directory = "";
$path = "$directory$file";
if(ini_get('zlib.outpu
|
12/9/2009 2:36:16 AM
|
1
|
c...@hosting4days.com ("c...@hosting4days.com")
|
[PHP] Filtering results via user input
--001636d34bfe1b13b3047a3c09e8
Content-Type: text/plain; charset=ISO-8859-1
I wrote a function (inferior no doubt) that takes the values of a form with
a get method to filter results from the database.
It is a list of orders, and I need to be able to filter by the user, the
user's school, or specific items (find all orders that have *this* item).
I thought I figured out how to do it all, but it's just not returning a
'valid resource'.
How do most people go about this? POST or GET? POST is obviously the most
secure, but since this is on an employee only page, security (to my
|
12/8/2009 6:49:36 PM
|
2
|
allenmcc...@gmail.com (Allen McCabe)
|
How to properly serve a file via a wrapper.
Please help.
I thought I had this squared away, but apparently not.
I need to be able to use a php wrapper to serve a file stored outside
the web root.
Works great for downloads / images - but my wrapper seems broken for
media files to be played.
My wrapper:
http://www.shastaherps.org/bugs/rdb_audio.phps
Demonstration of issue:
http://www.shastaherps.org/bugs/wrapperBug.html
What am I missing??
|
12/8/2009 3:11:19 PM
|
0
|
mpet...@mac.com ("Michael A. Peters")
|
request for support
--_420e062d-c376-4efa-9c81-83f3fc55d592_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'm using PHP 5.2.11 with Apache 2 (and i also tried Apache 2.2)
However=2C when I add this entry to my httpd.conf:
<code>
LoadModule php4_module "C:/Program Files/php/sapi/php4apache.dll"
</code>
Apache will crash when trying to start the service.
If I comment the line out=2C Apache starts just fine.
Thanks for your help.
Regards=2C=20
=20
_________________________________________________________________
Windows Live Hotmail
|
12/8/2009 11:29:12 AM
|
1
|
stevewiese...@hotmail.com (Tarek Kaddoura)
|
Passing HTML array index to JS?
Hey all,
I have an HTML field like this
<input type="text" name="qty[]" value="!!quantity!!" size="4"
style="text-align: right;" onblur="calculateBidUnit();">
.... and what I need to do is pass to the calculateBidUnit
function the value of quantity, do a calculation on it and
plug into this field.
<input type="text" name="bid_unit_value[]" value="" size="4">
Which of course I know how to do for non-array values, but not
sure how to get the values to do the calculation on the JS
side if the fields are in an array.
Any help, as always, is greatly appreciated,
Skip
|
12/7/2009 11:02:39 PM
|
7
|
s...@bigskypenguin.com (Skip Evans)
|
[PHP] cookies and carts
--00504502ad3b561e94047a2b2112
Content-Type: text/plain; charset=ISO-8859-1
I have a shopping cart type system set up which keeps track of the cart
contents using a SESSION variable, where $_SESSION['cart'][$item_id'] is
equal to the quantity, so the name/value pair is all the information I need.
But sessions are unreliable on the free server I am currently using for this
website (not my choice), so I had start using cookies because users were
being sporadically logged out, sometimes just on a page refresh.
I want to find a way to set a cookie to remember the cart items as well,
|
12/7/2009 10:39:28 PM
|
4
|
allenmcc...@gmail.com (Allen McCabe)
|
[PHP] mysterious include problem
--00504502b22ee8a714047a28f4bf
Content-Type: text/plain; charset=ISO-8859-1
I have been using includes for my content for a while now with no problems.
Suddenly it has stopped working, and it may or may not be from some changes
I made in my code structure.
I use default.php for most or all of my pages within a given directory,
changing the content via page numbers in the query string.
So on default.php, I have the following code:
<?php
if(isset($_GET['page']))
{
$thispage = $_GET['page'];
$content = 'content/'.$_GET['page'].'.inc';
}
else
{
$thispage = "defaul
|
12/7/2009 8:03:52 PM
|
5
|
allenmcc...@gmail.com (Allen McCabe)
|
Live PHP Code Templates for NetBeans - accelerate your php development.
--0-692054031-1260190122=:27824
Content-Type: text/plain; charset=us-ascii
Hello Everyone,
I've made a few code templates (HTML, PHP) available for everyone to
download and use with NetBeans 6.7 or higher. It will greatly
accelerate your php development.
http://code.google.com/p/raxan/downloads/detail?name=code-templates.zip&can=2&q=
And if your interested in further accelerating your PHP/Ajax
development, then you might want to check out the new and improved
Raxan for PHP (http://raxanpdi.com/)
__
Raymond Irving
Raxan for PHP - Ajax just got a whole lot easier!
--0-6
|
12/7/2009 12:48:42 PM
|
2
|
xwis...@yahoo.com (Raymond Irving)
|
logic operands problem
Hello everybody,
I am having trouble finding a logic for following problem:
Should be true if:
page = 1 OR page = 3, but it should also be true if page = 2 OR page = 3
The result should never contain 1 AND 2 in the same time.
This obviously does not work:
(page = 1 OR page = 3) OR (page = 2 OR page = 3)
This also does not work:
(page = 1 OR page = 3 AND page != 2) OR (page = 2 OR page = 3 AND page != 1)
Has somebody an idea how to solve this?
Thank you in advance for any help!
Merlin
|
12/7/2009 10:52:42 AM
|
0
|
merli...@fastmail.fm (Merlin Morgenstern)
|
[PHP] includes linking to other files, help with relatives
--00504502b22e4745df047a1cfeff
Content-Type: text/plain; charset=ISO-8859-1
I am creating a database connection path that check for a session variable
to get the username, password, dbname, etc., but if the session has not been
set yet, I need my script to get those values from another file
(KEY.txt) where they are saved. I want to access this class from two
directories, and this text file (KEY.txt) is in a directory above both. Like
this:
root: folder1 - folder2
folder1: KEY.txt
folder2: index.php - database.php - folder3
folder3: index.php
I need to use database.php i
|
12/7/2009 5:47:30 AM
|
0
|
allenmcc...@gmail.com (Allen McCabe)
|
session overwriting global
Hi,
I have a very strange problem.
I am the new developer of an existing site. They have a custom session
handler that stores the session in the database. The application
connects to the database, registers the session handler with
session_set_save_handler. Nothing interesting so far.
Then it calls session_start which updates one of the global variables!!!
I checked the session read(..) method and just before returning the
global is untocuhed.
Can anybody explain how could that happen?
additional info:
the global variable is also stored in the session.
php 4.4.9, the probl
|
12/5/2009 5:32:37 PM
|
0
|
e...@freemail.hu (=?ISO-8859-2?Q?Horv=E1th_K=E1roly?=)
|
[PHP] CMS - Deployable Zip and MySQL idea
--001636ed657cb063b10479f9667b
Content-Type: text/plain; charset=ISO-8859-1
For the fun (and experience) of it, I am building a PHP content management
system compatible with MySQL. I want to be able to drop a ZIP file into
someone's root folder, extract, and load the index file in the admin folder
is deploys.
I had that part worked out, redirect the user to a "Add MySQL Connection"
form if no MySQL database connection is available. I had pretty much all the
code in place when I realized,how am I going to add database connection
information through a webpage that isn't already manu
|
12/5/2009 11:19:43 AM
|
0
|
allenmcc...@gmail.com (Allen McCabe)
|
Use specific IP for outbound traffic.
Hello,
I have 3 IPs in my VPS. Everytime I request to a site it uses only 1
IP as gateway. So all the outbound traffic goes thorough that IP.
What I want is one of my script will always communicate using an
specific ip. Not default one.
I'll use 3 scripts for 3 IPs. How can I do that?
I know it can be done by changing the routing table. I think this
technique has a problem. If one script changes the gate way to its own
IP other script will be using that IP too.
Is there any way to achieve this without changing the routing table gloablly?
--
Shiplu
Innovation distinguishes bet
|
12/5/2009 12:56:12 AM
|
0
|
shiplu....@gmail.com (shiplu)
|
json_last_error
None of the servers I run on have PHP 5.3, and I have no idea when
they'll be updated. The json_last_error function is in 5.3. What can I
do to provide a temporary json_last_error function until my servers get
updated to 5.3? Is there source available for json_last_error somewhere?
Thanks,
Kirby
|
12/4/2009 6:23:08 PM
|
0
|
ki...@magnaspeed.net (Kirby Bakken)
|
php.ini session_auto.start = 1
Hello All,
In my previous LAMP position, I developed an intranet system from
scratch, and chose to use session_auto.start = 1 for sessions.
My new employer has auto-start turned off, and I have been tasked with
re-writing the entire system. I would like to use auto-start, but
during testing I found a couple of system calls that don't work if the
session has " already been started ".
I there a resource somewhere out in google-land which will show me a
list of system functions don't play nice session_auto.start = 1 ?
Also, what are the thoughts of the folks on t
|
12/4/2009 1:50:46 PM
|
0
|
scotdid...@silverdarkroom.com
|
php.ini session_auto.start = 1
Hello All,
In my previous LAMP position, I developed an intranet system from
scratch, and chose to use session_auto.start = 1 for sessions.
My new employer has auto-start turned off, and I have been tasked with
re-writing the entire system. I would like to use auto-start, but
during testing I found a couple of system calls that don't work if the
session has " already been started ".
I there a resource somewhere out in google-land which will show me a
list of system functions don't play nice session_auto.start = 1 ?
Also, what are the thoughts of the folks on t
|
12/4/2009 1:46:22 PM
|
0
|
scotdid...@silverdarkroom.com
|
php.ini session_auto.start = 1
Hello All,
In my previous LAMP position, I developed an intranet system from
scratch, and chose to use session_auto.start = 1 for sessions.
My new employer has auto-start turned off, and I have been tasked with
re-writing the entire system. I would like to use auto-start, but
during testing I found a couple of system calls that don't work if the
session has " already been started ".
I there a resource somewhere out in google-land which will show me a
list of system functions don't play nice session_auto.start = 1 ?
Also, what are the thoughts of the folks on t
|
12/4/2009 1:46:11 PM
|
0
|
scotdid...@silverdarkroom.com
|
Good SQL builder class
Good day.
I'm looking for a good class to handle building dynamically from and
array (and if it is good it will automatically determine / or even
have different methods) to handle mutli-dimensional arrays or simple
associative arrays ... and build the SQL statement :
for example I have an array :
$home[$suburb]["street"] = test1;
$home[$suburb]["housenr"] =2;
Ok to keep it simple to 2, then I want to build the SQL like
insert into homes (STREET, HOUSENR) VALUES ($val1,$val2);
something like that, but I could also pass some array like :
$home["street"] = test2;
$ho
|
12/4/2009 1:09:55 PM
|
0
|
anto...@gmail.com (Anton Heuschen)
|
How to read a certificate and compute hash of it
--0023541872d082011d0479e4d7c6
Content-Type: text/plain; charset=ISO-8859-1
Hi
Currently I am doing some coding in php to match a client certifcate with an
openldap certificate of that same user just to verify.
I mean the user stored one copy of this certficate in openldap previously
and now when he shows his certificate to server the server will then fetch
that users certificate from ldap and match.
and later I want to do hash. Now in ldap its stored in .der format and in
browser its in .p12
So what I am doing is as below:
<?php
$HASH_ALG='md5';
include_once '../ldapconne
|
12/4/2009 10:48:01 AM
|
0
|
tanveer.chowdh...@gmail.com (Tanveer Chowdhury)
|
amount of overlaping dates
Hello again,
I am searching for a way to identify the amount of simultanious date ranges.
Example:
array start=('1.12', '5.12', '9.12');
array end =('8.12', '12.12', '16.12');
Looks like this in a table:
start end
1.12 8.12
5.12 12.12
9.12 16.12
Obviously the first and last daterange do not overlap. So the amount of
overlaping bookings is 2. But how to identify this with PHP?!
Any ideas?
Thank you for any help on this!!
Merlin
|
12/3/2009 10:52:32 AM
|
0
|
merli...@fastmail.fm (Merlin Morgenstern)
|
[PHP] XAMPP for windows (7)
Can smbd please explain me in XAMPP for windows what does SVC
checkboxes at modules Apache, Mysql, FileZilla, Mercury ... stands for
- when must they be checked and why?
The first time I start a service (eg Apache) it asks me where should I
allow it to communicate. Primarily it is checked only home network.
Should I also allow this services to communicate on public networks?
- And how is this at home different them at library where different
people will use them?
Because I clicked too quick in allowing a service to communicate
through a network (home/public access) where can I chan
|
12/3/2009 10:45:44 AM
|
0
|
legr...@gmail.com (=?UTF-8?Q?Grega_Leskov=C5=A1ek?=)
|
Finding out the first possible booking date with php
Hello everybody,
I am pretty much stuck with a problem and I was hoping to find some help
here with you guys.
A PHP Script with MySQL as DB has to find out the first possible booking
period available. I can't figure out the logic behind and if there is a
trick with PHP to do it.
Following facts:
- There can only be 3 bookings in the same time period
- I want to find out the first period available
- There should be a less as possible periods that are unbooked
Example:
Start End
1.12 14.12
4.12 18.12
5.12 19.12
In this example the first possible booking would be 14.12 -
|
12/3/2009 8:26:43 AM
|
0
|
merli...@fastmail.fm (Merlin Morgenstern)
|
remove namespace from xml
Hi all,
i'm trying to connect to a SOAP Server but i'm having a problem. Look
the xml that i need send to the server:
// THIS IS THE XML CORRECT THAT NEED BE SENT TO THE SERVER
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CalcPrecoPrazo xmlns="http://tempuri.org/">
<nCdEmpresa>XXXXX</nCdEmpresa>
<sDsSenha>XXXXXX</sDsSenha>
<nCdServico>40010</nCdServico>
<sCepOrigem>30840300</sCepOrigem>
<sCepD
|
12/2/2009 6:12:57 PM
|
0
|
afla...@gmail.com (Augusto Flavio)
|
Powerpoint from PHP?
Hey all,
I have a client who creates PowerPoint presentations to sell
their clients on projects. What he would like his site to do
is allow his clients to arrange their own PP presentations
from an existing collection of slides with images, but then
add their own text.
So the problem I need to solve is to take a set of PP slides
with images, and then insert text into each one below the
image and then assemble a .ppt file consisting of the selected
slides.
I'm Googling around now for a solution, but if anyone has
tackled this before and can point me in a productive dire
|
12/2/2009 4:19:50 PM
|
0
|
s...@bigskypenguin.com (Skip Evans)
|
Re: [PHP] Best way to read first 20 characters of a string?
Tm90IGV4YWNsdHkgYSBwaHAgdGhpbmdpZSBidXQgd2VsbCA7KQ0KDQpTcWw6IFNlbGVjdCBsZWZ0
KGNvbHVtbiwgMjApIGFzIGMgDQpmcm9tIHRhYmxlLg0KDQpPciB5b3UgY2FuIGRvIGl0IHdpdGgg
4oCcc2VsZWN0IHN1YnN0cihjb2x1bW5uYW1lLCAwLDIwKeKAnC4gU2VlIHRoZSBteXNxbCBtYW51
YWwuIER1bm5vIHdoaWNoIG9mIHRoZSB0d28gaXMgZmFzdGVyLCBidXQgaSB0aGluayDigJxsZWZ0
4oCcIGlzLg0KDQpNYWprDQoNCi0tLS0tIE9yaWdpbmFsIE1lc3NhZ2UgLS0tLS0NCkZyb206IG94
eWdlbmV0MzJAZ21haWwuY29tIDxveHlnZW5ldDMyQGdtYWlsLmNvbT4NClRvOiBwaHAtZ2VuZXJh
bEBsaXN0cy5waHAubmV0IDxwaHAtZ2VuZXJhbEBsaXN0cy5waHAubmV0Pg0KU2VudDogV2VkIERl
YyAwMiAxNjoxMTo1NSAyMDA5DQpTdWJqZWN0OiBbUEhQXSBCZXN0IH
|
12/2/2009 3:17:20 PM
|
0
|
Majk.Sko...@eventim.de
|
Best way to read first 20 characters of a string?
Hi everyone,
I'm pulling data from a mysql database, but need only the first 20
characters of each string for a short description, what is the best
method to just grab the first 20 characters from a string regardless
of whether they are letters or numbers?
Chris
|
12/2/2009 3:11:55 PM
|
4
|
chris_pa...@danmangames.com (Chris Payne)
|
Compatiabilty issues
--001517402ba8e6c39b0479bb7c2e
Content-Type: text/plain; charset=ISO-8859-1
Hello Everyone,
I am having trouble with the mod_rewrite. This is not working on windows
64bit. I am also having trouble with the directory password protection.
However thse bot work perfectly on my UNIX Mac.
From my experince I can see that this is due to file system compatibility.
Can anyone confirm this. You would be of greate help as I am going through
HELL right now. Can any suggest the best Unix or Linx OS for hosting phph
websites and MySQL.
Thank you very much in advanace.
--001517402ba8e6c
|
12/2/2009 9:27:48 AM
|
9
|
opensourc...@gmail.com (Julian Muscat Doublesin)
|
SOAP CLIENT and HEADER
hi All,
I'm trying to access a SOAP service but i have one doubt. I paste a
sample SOAP request for you know the problem:
//---------------- START SOAP REQUEST
POST /wbm/shopping/script/CalcPrecoPrazo.asmx HTTP/1.1
Host: shopping.correios.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CalcPrecoPrazo" //NOTE THIS LINE
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.or
|
12/2/2009 1:08:42 AM
|
0
|
afla...@gmail.com (Augusto Flavio)
|
Emergency! Performance downloading big files
This is a holiday-crunch emergency.
I'm dealing with a client from whom we need to download many large PDF =
docs 24x7, several thousand per hour, all between a few hundred K and =
about 50 MB. Their security process requires the files to be downloaded =
via https using a big long URL with lots of credential parameters.
Here's how I'm doing it. This is on Windows, a quad Xeon with 16GB RAM:
$ctx =3D stream_context_create(array('http' =3D> array('timeout' =3D> =
1200)));
$contents =3D file_get_contents($full_url, 0, $ctx);
$fp =3D fopen('D:\\DocShare\\'.$filename, "w");
$bytes_w
|
12/1/2009 10:48:45 PM
|
12
|
br...@briandunning.com (Brian Dunning)
|