Hi all, i am building a system using php and am trying to separate the html
codes from the php codes (i.e. placing them in separate files), I am from the
java struts/spring background and seem to be finding it difficult doing that at
the moment with php.
I've got a registration form in htm
I've got the following url rewriting problem.
on page 1 i've got this
See
and on page 2 i've got this
$messageID = $_REQUEST["messageId"];
$userID = $_REQUEST["userId"];
when i check to see the values of these variables its says its empty, but when
i place my curs
inside double qoutations.
Hope that helps
On 3/12/07, Don Don <[EMAIL PROTECTED]> wrote: I've got the following url
rewriting problem.
on page 1 i've got this
See
and on page 2 i've got this
$messageID = $_REQUEST["messageId"];
$userID = $_REQUEST[
inside double qoutations.
Hope that helps
On 3/12/07, Don Don <[EMAIL PROTECTED]> wrote: I've got the following url
rewriting problem.
on page 1 i've got this
See
and on page 2 i've got this
$messageID = $_REQUEST["messageId"];
$userID =
; wrote:
You should use urlencode() on variables that will go into URL arguments.
You might have a whitespace in any of those variables and the URL stops at
the first whitespace. If those spaces are at the ends and are not
significant, you might want to use trim().
- Original Mess
Hi all,
my program outputs some characters along with text from the database, these
texts contain chars like â â. How can i get rid of theses chars and
display their meaning instead ? I am thinking htmlspecialchars or html
entities will do the job will it ?
Cheers
-
Hi all, i've got apache/php4 running on windows xp with good hardware
configuration etc. However, the speed of execution of php pages is really slow.
When testing on my local development machine it takes a few more seconds
executing php files than it should normally take.
How can I up th
Hi all
whats the best open source (free) xml parser for php (4 >) ? I've come across
a few but am looking the best as adjudged by the industry.
Cheers
-
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
I am using simple xml to parse an xml file, the program parses the file and
produces an error at the end of the foreach loop when it reaches the end of the
tag, it tries to look for an element/tag when there is none and produces an
error "Call to a member function attributes() on a non-object" t
tes() on a non-object in line
(see problematic line)
How can i solve that or determine when there are no more tags to parse.
JM Guillermin <[EMAIL PROTECTED]> wrote:
And with :
foreach ($xml as $cs) {
.
}
??
jm
----- Original Message -
From: "Don Don"
To: "PHP
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 have
ugins out there ?
Cheers
Don.
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
phplist. its awesome, opensource and will support all your needs.
srihari naidu <[EMAIL PROTECTED]> wrote: Hi,
I am searching for a good open source php mailing list manager for some
days. can any one suggest me one please.
Thanks in advance.
Regards,
Sri.
---
Hi all I have a table below
CREATE TABLE `friends` (
`id` int(11) NOT NULL auto_increment,
`member_id` int(11) NOT NULL,
`member` varchar(32) NOT NULL,
`friendwith` varchar(32) NOT NULL,
`friendWithId` int(11) NOT NULL,
`status` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyIS
27; instead.
Actually, I think you may need to swap member/friendwith as well...
But why you are storing everybody's NAME twice is beyond me...
Or maybe I'm guessing wrongly what the fields are...
On Thu, January 24, 2008 10:49 am, Don Don wrote:
> Hi all I have a table below
>
http://nuedream.com/nuequizpro/
I cant get the above product to work in php5. The product works in php4 but
has problems with a $this variable in the database class with php5. Has anyone
used the above product in php5 and found a way arround it ?
Cheers
Don
Hi all how can i make my phpmyadmin run fast on windows ? I installed
phpmyadmin on a linux and windows machines, but the windows version runs
(executes) too slow, i.e. it takes to long for a page to be loaded, while it
take less that 3 secs for the linux version. Both however run on the same
both running the same version of Apache, and that both are
running as either CGI or an apache module?
-Logan
-Original Message-----
From: Don Don [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 22, 2007 4:34 PM
To: PHP List
Subject: [PHP] PhpMyAdmin slow on windows but fast on linux
Hi all h
Hi all, whats the best way to perform a redirect after out put has started ?
using header:location will not work unless theres been no output.
I usuall use the method below, however am concerned for browsers that do not
support javascript.
$location = 'index.php';
echo "\n";
e
Hi all, i've changed my server's apache config to recognize my custom extension
for php files. And all my development filenames now come with this new
extension.
However my IDE (Php Eclipse) will not recognise this new extension as a php
file, even though it opens it up but it looses all t
Hi Roberto, i tried out your tip, it does work but it looses the syntax
highlighting functionality. Is there anyway I can make the new extension open
up its contents with syntax and other php oriented functionalities ?
Cheers
Roberto Mansfield <[EMAIL PROTECTED]> wrote:
Don Don
The new custom extension now behaves exactly like a php file.
Cheers..at least your tip lead me there.
Don Don <[EMAIL PROTECTED]> wrote:
Hi Roberto, i tried out your tip, it does work but it looses the syntax
highlighting functionality. Is there anyway I can make the new extension open
How can i disable soap client and server for php5, reason is that i've got
NuSOAP (which i must use) and its classes clash with that of PHP5. My php
configuration (when using displays soap client and server enabled
for php5. I need to disable if ..amd looking into the configs..to see how
che
really hope
I'm mistaken, is to recompile php
with "--disable-soap".
I don't think you can do it from php.ini.
--
itoctopus - http://www.itoctopus.com
"Don Don"
wrote in message
news:[EMAIL PROTECTED]
> How can i disable soap client and server for php5, reason i
I am having a bit of a confusion printing the values of an array i have. When i
print_r this array it contains the following:
Array ( [ValueA] => ValueA [ValueB] => valueB [TestValue] => TestValue [Errors]
=> Array ( [0] => Array ( [ErrorId] => AD27JH [ErrorMsg] => OK ) ) )
I can get the va
oops ! [0]
cheers
Richard Davey <[EMAIL PROTECTED]> wrote:
Don Don wrote:
> I am having a bit of a confusion printing the values of an array i have. When
> i print_r this array it contains the following:
>
> Array ( [ValueA] => ValueA [ValueB] => valueB
Hi All, am trying to integrate a poke me poke you functionality to a web 2.0
application am developing. I've got some ideas of how to do this but am not
sure if its the best aproach. i am using the idea of a PM system since i've
done that earlier.
Does anyone have any way of implementing a po
Hi all, am trying to run a regular expression to a list of user entered data on
some forms.
I've creating what i think is a matching pattern for each category as shown
below:
function validateEntry($regularExpression, $fieldValue)
{
if(preg_match($regularExpression, $fieldValue))
{
oad a page?
This is an extremely general question, like "I want users to be able to view
each other's profiles, how?"...
--rob
On 5/22/07, Don Don
wrote:
>
> Hi All, am trying to integrate a poke me poke you functionality to a web
> 2.0 application am developing. I've
Hi all,
Am kind of confused between htmlspecialchars and htmlentities. I've got data i
need to display data on a page containing e.g. " but will like it to be
displayed as "
htmlspecialchars or htmlentities or page character set ?
Cheers
-
Take the I
I am reading the following xml data in a very large file using XML reader, the
xml structure looks like the xample given below
head
tail
head
part head 1
Part head 2
tail
head
tail
head
part head 1
Part head 2
tail
I can read al
hi all, am trying to cut some texts from a serries of string values e.g.
"this is how we do (50 cents feat. the game)"
"give it to me (nelly feat timerland)"
"let me hold you (bow wow feat omarion)"
i want to cut off the text between the comas and i've seen some examples
this is a test";
preg
I meant i want to get rid of the braces. e.g. get the text up to the start of
the first brace and ignore anything from the first brace onwards
Dan Shirah <[EMAIL PROTECTED]> wrote: Maybe I'm blind, but I don't see any
commas in the text you are referring
to.
On 8/2/07, Don Don
Hi all,
I've set up a url rewrite code below.
Options +FollowSymLinks
RewriteEngine on
RewriteRule profile/username/(.*) profile.php?username=$1
It only works when I type in this url
http://www.example.com/profiles/profile/username/baller/
If i do not then the normal url
http://www.example
/profiles/profile/username/baller
--- On Fri, 7/25/08, Per Jessen <[EMAIL PROTECTED]> wrote:
> From: Per Jessen <[EMAIL PROTECTED]>
> Subject: Re: [PHP] URL Rewrite not working for me
> To: php-general@lists.php.net
> Date: Friday, July 25, 2008, 3:15 AM
> Don Don wrote:
&
Hi All,
Has anyone created or has tips for the creation of user groups in a app. e.g.
a Facebook group ?
I am trying to create groups in a social application where users on the site
can join a group etc its just much like a facebook group.
Any help will be appreciated.
Ta.
--
PHP
Hi All,
I've been reading on the internet that is most secure to store your database
details outside of the public accessible folder.
I am a bit stuck on how to do this.
I've got a folder "db_details" that contains the file "dbdetails" which
contains the database login info. I normally includ
Hi all,
I've got dates in the following formats e.g.
August 05, 2008, 10:14 am (e.g. today's date)
August 04, 2008, 7:08 am (e.g. yesterda's date)
August 03, 2008, 9:08 am (e.g. in the past)
I am trying to format these dates do I can display them like this
Today at 10:14 am (today)
Yesterday at
Hi,
I need to search a MySQL table based on a condition that can change at
runtime.
Example
==
$condition = CustCode = "$HTTP_SESSION_VARS['logoncustcode']";
$queryID = mysql_query("SELECT * FROM CustTariff WHERE " . $condition . "
ORDER BY CustCode&qu
#x27;HTTP_' . getenv('REQUEST_METHOD') . '_VARS';
global $$request;
if ($$request[$val]['size']) {
However, it is always failing the test and therefore not working. Any ideas?
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus sy
e page has been reloaded. Is this a normal effect of setting
register_globals OFF? Is there a way to continue caching?
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
> Don wrote:
>
> >
> >I'm using I.E. 6.
> >
> Its not a browser thing, but a PHP thing.
>
> > I noticed that register_globals was set ON in my php.ini file so I
changed it to OFF in as per the security warning. I've noticed a side
effect. When I su
reality still).
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7, I get a page not found error. Looking at Netscape's address
bar, it says:
http://www.lclnav.com/staging_area/login/..%5Cphpscript%5Cgeneral%5Cformmail.php
Why is it encoding my URL???
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://
- Original Message -
From: "Chris Shiflett" <[EMAIL PROTECTED]>
To: "Don" <[EMAIL PROTECTED]>; "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 4:24 PM
Subject: Re: [PHP] Why is my URL encoding itself?
> --- Don <[EMAI
Hi,
How do I access $DOCUMENT_ROOT when register_gobals is set off? I think
there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't
find it in the documentation.
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG ant
ng the user that they are no longer logged in. This is what I want
to emulate. Is there a PHP method to always force a reload the first time a page is
called?
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
session
cookies are enabled in the user's browser?
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003
--
PHP General Mailing List (http://www.php.net/)
To unsubs
what the install is looking for?
Thanks in advance,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
I altered the configuration to say --> --with-curl=/usr/bin as that is the
location of the curl executable but I am still getting the compile error.
Any other suggestion?
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Don" <[EMAIL PR
rl 7.9.5
exit 0
;;
So, all I did was change the 7.9.5 to 7.10.3 and no more compile error.
Silly huh?
- Original Message -
From: "Adam Voigt" <[EMAIL PROTECTED]>
To: "Don" <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 11:19 AM
Subject: Re: [PHP]
Ok, now that I've solved my 'curl' problem, I've run in to another problem.
Now I am getting teh following error:
"configure: error: snmp.h not found. Check your SNMP installation."
I've installed the ucd-snmp rpms so what am I missing?
Thanks,
Don
-
l/curl.c:1053: `CURLINFO_REDIRECT_COUNT'
undeclared (first use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c:1077: `CURLINFO_REDIRECT_TIME'
undeclared (first use in this function)
make: *** [ext/curl/curl.lo] Error 1
> Assuming you also installed ucd-snmp-devel-*.rpm, likely y
Yup, you were correct. the 7.10.3 rpm was installed but I forgot to install
the 7.10.3 development rpm. I did so and all compiles fine now.
Thanks,
Don
> My guess you have a mess in your curl library installation. For example
> you use header from version 7.9.5 and specify that you have v
MySQL extension". This extension may be part of the PHP server
(compiled-in), otherwise it needs to be loaded dynamically. Its name is
probably mysql.so or mysql.dll. phpMyAdmin tried to load the extension but
failed.
What was I missing fom my install that is causing my problem?
Thanks,
Don
Hi,
Trying to install PHP with the ability to interact with MySQL. In my
configuration, I've included the option:
--with-mysql=shared,/usr
There are no compile errors. Any idea why PHP is not recognizing any MySQL
functions?
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Check
Forgive my ignorance but I don't follow. I am not getting any compiling
error messages or warnings.
> > 2) Installed PHP 4.3.1
> > One of my config options was --with-mysql=shared,/usr
>
> I may be completely off base, but where did you intend the mysql
> installation to go? Did it end up there?
PHP install; I want to start
over from scratch? I've alrweady upgraded the MySQL package to version
4.0.12.
Thanks,
Don
> > 2) Installed PHP 4.3.1
> > One of my config options was --with-mysql=shared,/usr
>
> I may be completely off base, but where did you intend the mys
The expected MySQL section is not even listed in the phpinfo() page. This
would explain my "undefined function" errors when attempting MySQL
functions. What I can't figure out is why MySQL is not being recognized by
PHP.
> At 16:58 03.04.2003, Don
n all instances of 'mysql' and found the following.
However, any change I made to the mysql config. directory gives me the
error:
"error: Cannot find header file under "
Please tell me what the directory should be in my mysql config option.
Thanks,
Don
/usr/bin/mysql
/usr/lib
Are Classes and Objects supported in PHP 3.0.14?
I am getting an error: "Call to unsupported or undefined function
phpmailer()"
on a server running PHP 3.0.14 but it works in PHP 4.3.2
Thanks,
Don
_
This email and any files transmitted with it are strictly confidential
Hi,
Is the a PHP command that will empty the browser's current cache?
Thanks,
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am having trouble with sessions. I've created a user login/password
section that uses session variables. Within this section, I have a form
where the user enters data and submits. When the user clicks on the Browser
back button, they should get back to the form with their data intact. T
- Original Message -
From: Jay Blanchard
To: 'DonPro' ; 'php list'
Sent: Thursday, October 31, 2002 3:43 PM
Subject: RE: [PHP] Saving form input fields to MySQL br clicking on a button
[snip]
I created a button called "Memorize" but how do I have the page save the
values to my MySQL datab
ssl' '--enable-track-vars'
'--enable-force-cgi-redirect' '--with-gettext'
When I attempt to start apache, I get the following error message:
"Cannot add module via name 'mod_php4.c'. not in list of loaded modules."
I've sourced the net but could not find a resolution. Does this have anything to do
with /etc/ld.so.conf ?
Help!
Don
which states the full path to apxs so I still don't get it?
When you use the --with then you need to specify a directory...
Read up on the configuration of php on php.net
Thank you,
RAY HUNTER
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Friday, June
e for mod_php4.c, why would it tell me it's not on
the list?
Thanks,
Don
Did you add the module info to your httpd.conf file?
Thank you,
RAY HUNTER
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 1:56 PM
To: Ray Hunter;
just use:
echo "\n";
But, how can I tell where the user is coming from?
I've seen these types of searches before so maybe someone can clue me in?
Thanks,
Don
Would that solve my probem with the BACK button?
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'Don'" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 10:38 PM
Subject: RE: [PHP]
Hi,
Does anyone have a PHP method of passing variables from a form to another page without
using "sessions" or encoding within the URL?
I remember someone mentioning a class but I lost the reference. My site uses PHP
4.0.1Pl1
Thanks,
Don
; feature where I can place/remove information
into/out of the array.
Thanks,
Don
Hi,
I'd like to print one or more specific characters many times. For example, let's say
I'd like to display the '*' 50 times on one line. Is there a function that will do
this? Something like:
? replicate('*',50);
Thanks,
Don
$field = "phone" . $i;
$name =& $field;
echo $field . ":" . $name . "\n";
}
The docs state that references are NOT pointers. So., how can I
access my variables? I could not find any information on Macros or
Pointers.
Thanks,
Don
--
PHP General Mailing
that I should close other programs).
Note: Third may not be a PHP problem but as I am unsure, I have to start
somewhere.
Note2: I have already queried the HTML newsgroup and the feedback I
received was that large forms should not cause this problem.
Thanks,
Don
--
PHP General Mailing List (http
> Don wrote:
>
> > Hello,
> >
> > Has anyone run into problems using PHP to access a database (MySQL) and
> > build a form. I am trying to build a form that contains anywhere from
> > 10 to 20 tables. Each table will contain drop down menus, text boxes
>
y
original script and stuff it into the array at the element chosen?
Thanks,
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
s this possible using PHP? I figure that since PHP is server side, I will have to
use JavaScript to provide some of the functionality I require but how do I set and
access PHP variables from JavaScript?
If the above is not workable, Is there another way I can accomplish this?
Thanks in advance,
Don
()
get_html_translation_table(HTML_ENTITIES)
I've read the documentation but am still confused about what to use when.
When passing data from forms to database, which do I use?
When retrieving data from database to display in forms, which do I use?
Thanks,
Don
ies() but I cannot get that line to appear on the browser. Any ideas?
Thanks,
Don
Does any one know how I use ClibPDF with PHP? I assume I have to recompile PHP with a
switch but I can't find anyting in the docs.
Thanks,
Don
start of the next row so I can read it, etc... until eof?
Thanks,
Don
So far so good.
Now I have to process each line and extract the fields. My question is, how do I
search for the TAB character? Is it as simple as searching on the ascii code by using
the "chr" function? If so, what value do I use in "chr" to look for TAB?
Thanks,
Don
e (but the same group)?
Thanks,
Don
I did. That's why I'm confused. phpinfo() is telling me that the user is
myself (I don't see the group). So what is the "permission" difference
between running PHP and logging on to the server via telnet as myself?
> On Tue, 12 Mar 2002, Don wrote:
>
&
Hi,
I need to create a dBase III file however, my ISP does not have PHP compiled with
--enable-debase. Does any one have or know of a class that could accomplish this?
Thanks,
Don
new Globals("/staging_area/phase-2/");
?>
Within my html page, I am tesing the class by trying the following:
root_path . "";
echo $global->relative_path . "";
?>
However, nothing is being written to my browser. Is there a problem with the code?
Thanks,.
Don
Hi,
Does anyone know of a personal web server that I can installon my Win 98 machine that
supports PHP 4.x?
Thanks,
Don
Is there a way, in PHP, for me to read client-side files or upload them to a server?
Thanks,
Don
ns?
hanks,
Don
depend on whether the machine is Windows or UNIX? If so, is there a system
independent routine?
Thanks,
Don
Hi,
I have a class that allows me to send e-mail with an attachment. I have a form that
gathers information and I would like to allow the user to attach a file from his local
drive. Is there a PHP routine that allows the user to browse his drive and choose a
file?
Thanks,
Don
Hi,
I have a class that allows me to send e-mail with an attachment. I have a form that
gathers information and I would like to allow the user to attach a file from his local
drive. Is there a PHP routine that allows the user to browse his drive and choose a
file?
Thanks,
Don
7;s HTML
>
>
> -Original Message-
> From: Don [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 3:37 PM
> To: php
> Subject: [PHP] emailing attachments
>
>
> Hi,
>
> I have a class that allows me to send e-mail with an attachment. I have a
> form tha
Is there a limit to the number of variables once can pass in a URL using urlencode()?
I seem to be hitting a wall where the browser returns a page not found once I go past
a limit and I can't find any bugs in the code.
Thanks,
Don
n has determined that there is a 1Kb limit on the total
size of a request (URL+params) and I have one form that must be exceeding the limit.
Question: Is there a way to emulate my above scheme via an HTTP POST as POST has no
limit? Alternatively, is there another way to pass variables from a PHP script to a
HTML form where I won't run into this limit?
Thanks,
Don
Hi,
I have a PHP script that uses the following code to redirect to a page of the user's
choice:
header("Location: http://www.mypage.net/";);
In examples of this type of coding in various scriots, the above line is always
followed by the statement:
exit;
I am wondering why. When executin
Hi,
Has anyone tries any test loading PHP pages into IE 5.x and Netscape
4.7x?
As an experiment, I have a page that issues a phpinfo(). WIth I.E. 5.5,
it takes about 3 seconds. With Netscape 4.77, it takes almost 20
seconds.
Thanks,
Don
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
I have a cron script that issues a:
mysqldump --opt -p"password" myfile_db /home/ftpadmin/pub/myfile_db.backup
Now, I wish to do the opposite, that is, restore it into my database. After
issuing a:
mysql -p
and entering the password, what command do I enter to restore my database
from t
rwise, some pointers to head me in the correct direction would
be appreciated.
Thanks,
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
t;Submit" does. As a FORM
tag can only have one POST operation, I'm in a quandary here.
Thanks,
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
1 - 100 of 531 matches
Mail list logo