Ok, I still have the problem.
If I echo the string to a webpage, it still contains the ?
So I viewed the source in a notepad, and the thing that shows up next to
"string" is a TM.
I tried using htmlentities on the string that I'm echoing but the question
mark/tm is still there.
Anybody know how
Solved my own problem.
I ran the script itself from the unix prompt and forced it's output to a
text file
I then viewed the text file and saw the actual wierd character. I then used
strtr to replace the wierd character with a single space.
Pretty simple and clean way to fix this.
-Brent
- O
Hi Guys,
I think that a string that I'm grabbing from a website was actually created using
ms-word. If I echo the string out, it has a question mark in it.
If you look at the website, the text is fine
ie"string some more text"
but when I grab it from the website, and then echo the string, I get
* Thus wrote Bostjan Skufca @ domenca.com:
> Hello,
>
> every now and then I notice in apache logs there were few segmentation faults
> (on a daily basis) and all I am stuck with is PID of that process (which is
> of course dead by then) and nothing about what it was doing. Is there any way
> t
Hello,
On 10/18/2004 02:23 AM, Justin French wrote:
I was hoping to do this with an educated guess based on user input like
country, state and town, rather than by asking the user (who isn't too
technically minded) to decide.
One easy way to do what you want is to use the Javascript Date object
Hello,
every now and then I notice in apache logs there were few segmentation faults
(on a daily basis) and all I am stuck with is PID of that process (which is
of course dead by then) and nothing about what it was doing. Is there any way
to figure out what request that apache process was servi
On 17/10/2004, at 3:03 PM, Curt Zirzow wrote:
* Thus wrote Justin French:
I have an event CMS where really, I should know the TZ of the events,
which can happen world wide. However the user base is not computer
heads, so I can't just "ask them".
So, I'm faced with the prospect of making an educate
You have some restriction on the size of the data u send
through GET method.. like i remember it as 256Kb or so.
So if u r sending data larger than this limit ...u need to use the post
method
/sagar
- Original Message -
From: "Mag" <[EMAIL PROTECTED]>
To: "Greg Donald" <[EMAIL PROTECTED]>;
--- GH <[EMAIL PROTECTED]> wrote:
> I know about sessions... but I am even more concerened now about
> the use of cookies but I am not 100% sure on how to accomplish
> this
When you say you are concerned about cookies, what do you mean exactly?
When used properly, cookies can afford a heighte
We have a client using a Windows system:
PHP 4.3.4
Windows NT WEBSERVER 5.2 build 3790
I'm attempting to use exec() to run a system command. I don't seem to be
able to call any command, or at least I don't see any output.
Indeed, the following produces nothing:
echo `dir`; //i.e. backticks
It
Hi Rory,
The passing score is not revealed. There is only a pass/fail on the test.
Best,
Daniel Kushner
On Sun, 17 Oct 2004 19:08:32 +0100, Rory Browne <[EMAIL PROTECTED]> wrote:
> I've been looking all over the Zend Cert site, trying to find the
> passing rate, ie how many questions I have to
--- Rory Browne <[EMAIL PROTECTED]> wrote:
> I've been looking all over the Zend Cert site, trying to find the
> passing rate, ie how many questions I have to get right in order
> to pass.
>
> Is this information secret, or have I just not looked in the right
> place.
It's not public information.
Hi,
I dont really have a problem in converting from POST
to GET but the html FILE box does not post its
variables if it is not in POST
eg:
if you do a submit with $_GET the $_FILES array will
be "" or not existant
How to pass that?
Thanks,
Mag
--- Greg Donald <[EMAIL PROTECTED]> wrote:
> On
[snip]
Notice: Undefined index: 0 in
L:\localhost\catalog\catalog_0.1.0\includes\classes\tree.class.php on
line
77
[/snip]
It's telling you that $data['0'], which is used twice in your query, is
not a valid index (ie. it doesn't exist) for the $data array.
Why don't you dump the $data array after
Hello Everyone,
I keep getting the following errors in my class and I don't know why. Maybe
something has changed in PHP 5.x that I don't know about? Here are the
errors and the methods of that class:
---
Notice: Undefined index: 0 in
L:\localhost\catalog\catalog_0.1.0\include
On Sun, 17 Oct 2004 17:23:14 -0700, bruce <[EMAIL PROTECTED]> wrote:
> i have a prob/issue that i can't see.. i'm trying to geneate a page with
> multiple lists so that the user has to select an item from all 3 lists in
> order to access the next page...
>
> the 1st select/list allows the user to
On Sun, 17 Oct 2004 17:16:09 -0700 (PDT), Mag <[EMAIL PROTECTED]> wrote:
> Warning: Page has Expired
You can use the GET method instead of POST in your form if that's appropriate.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List
hi...
i have a prob/issue that i can't see.. i'm trying to geneate a page with
multiple lists so that the user has to select an item from all 3 lists in
order to access the next page...
the 1st select/list allows the user to select either one or more items. the
2nd/3rd select lists require the us
Hi,
Heres my problem:
I am offering a form for the client to upload his
picture, then his pic is shown and he can pick some
text to write on the image, then I am using GD to
write the text.
If the client does not like the position of the text
he can press the back button and change the position,
bu
Sorry about the two lists. The echo's are fine. The
problem was iterating through the 3 arrays.
Stuart
--- Graham Cossey <[EMAIL PROTECTED]> wrote:
> Stuart, now I'm confused.
>
> You seem to be posting slightly different versions
> of problems relating to
> the same script(s) on 2 lists.
>
>
Stuart Felenstein wrote:
John,
Sorry, I'm not trying to be unclear.
There are 3 columns in the table.
In the user form. there are 30 fields, 10 text and 20
dropdown.
The 10 text are:
$_SESSION['skills'] = $_POST['skill'];
The first dropdown is :
$_SESSION['skys'] = $_POST['sky'];
The second dro
Stuart, now I'm confused.
You seem to be posting slightly different versions of problems relating to
the same script(s) on 2 lists.
What is the current situation? Iterating through the 3 arrays or inserting
into MySQL?
Graham
> -Original Message-
> From: Stuart Felenstein [mailto:[EMAIL
Stuart,
Having read what you've written so far, you may want to try something
like this.
In your HTML (I've left the selects empty, but you can see what I mean):
...
Then in PHP
foreach ($_POST['skills'] as $skill)
{
$skillname = $skill['name'];
$yearsused = $skill['years'];
$lastus
John,
Sorry, I'm not trying to be unclear.
There are 3 columns in the table.
In the user form. there are 30 fields, 10 text and 20
dropdown.
The 10 text are:
$_SESSION['skills'] = $_POST['skill'];
The first dropdown is :
$_SESSION['skys'] = $_POST['sky'];
The second dropdown is:
$_SESSION['slu
Stuart Felenstein wrote:
Here is the printout :
Using-
print_r ($skills);
print_r ($skys);
print_r ($slus);
Array ( [0] => skillone [1] => skilltwo [2] =>
skillthree [3] => [4] => ) Array ( [0] => 2 [1] => 3
[2] => 4 [3] => [4] => ) Array ( [0] => [1] => [2] =>
[3] => [4] => ) 1
FYI - The skills is
Okay, I will try -
I have these three fields in a form for user input.
There are 10 sets of these, i.e. Users can enter three
sets of skills, with the yearsused and when last used.
I have set them up as arrays, since it's probably not
wise to manage 30 seperate variables.
I'm using session varia
On Sun, 2004-10-17 at 13:08 -0700, Stuart Felenstein wrote:
> They are related in the sense that they are part of
> one record in the database.
> Fields
> Skill YearsUsed LastUsed
>
> When you say array of arrays you are referring to a
> multi-dimensional ? I'm not sure what you mean by
>
They are related in the sense that they are part of
one record in the database.
Fields
Skill YearsUsed LastUsed
When you say array of arrays you are referring to a
multi-dimensional ? I'm not sure what you mean by
are the [0] related.
Thank you,
Stuart
--- Robby Russell <[EMAIL PROTECTED]
On Sun, 2004-10-17 at 12:40 -0700, Stuart Felenstein wrote:
> Robby
>
> Here is the printout :
> Using-
> print_r ($skills);
> print_r ($skys);
> print_r ($slus);
>
>
> Array ( [0] => skillone [1] => skilltwo [2] =>
> skillthree [3] => [4] => ) Array ( [0] => 2 [1] => 3
> [2] => 4 [3] => [4] =>
Robby
Here is the printout :
Using-
print_r ($skills);
print_r ($skys);
print_r ($slus);
Array ( [0] => skillone [1] => skilltwo [2] =>
skillthree [3] => [4] => ) Array ( [0] => 2 [1] => 3
[2] => 4 [3] => [4] => ) Array ( [0] => [1] => [2] =>
[3] => [4] => ) 1
FYI - The skills is a string, skys
On Sun, 2004-10-17 at 09:53 -0700, Stuart Felenstein wrote:
> I have 3 arrays. 3 for 3 fields in a table (all part
> of 1 record)
> array1 - field1
> array2 - field2
> array3 - field3
>
> What I've been doing which works good with one array:
> if ( is_array( $_SESSION['foo'] ) ) {
> forea
I am running a Windows 2003 web server with IIS 6. I currently have PHP
4.3.8 installed as CGI and it is almost working perfectly. Occasionally, I
get the following error: "No input file specified." I will be upgrading to
4.3.9 soon and am considering switching to ISAPI. I have heard good a
I've been looking all over the Zend Cert site, trying to find the
passing rate, ie how many questions I have to get right in order to
pass.
Is this information secret, or have I just not looked in the right place.
If it's the latter, please enlighten me.
Thanks
Rory
--
PHP General Mailing List
Brent Clements wrote:
Hi Everybody,
I'm running php 4.3.2
When I run the following
$fname = tempnam('mytmp/', 'PREFIX_');
and then echo $fname, it returns
/tmp/FILENAME rather than mytmp/FILENAME
I'm running under RHEL 3 U3
Anybody know what's going on?
If 'mytmp' does not exist (relative to your s
I'm not sure, but I think the only way you are going to get MI in PHP,
is if you implement if yourself. By this I mean, implementing the
correct __get(), __set(), and __call() functions.
On Sun, 17 Oct 2004 18:32:34 +0400, M Saleh EG <[EMAIL PROTECTED]> wrote:
> Thanx Mathew
> I guess I found it
- Original Message -
From: "Brent Clements" <[EMAIL PROTECTED]>
When I run the following
$fname = tempnam('mytmp/', 'PREFIX_');
and then echo $fname, it returns
/tmp/FILENAME rather than mytmp/FILENAME
--
From the manual:
Creates a file with a unique filename in the specified dire
I have 3 arrays. 3 for 3 fields in a table (all part
of 1 record)
array1 - field1
array2 - field2
array3 - field3
What I've been doing which works good with one array:
if ( is_array( $_SESSION['foo'] ) ) {
foreach ( $_SESSION['foo'] as $x ) {
sql .= "INSERT INTO TABLE (...
Hi Everybody,
I'm running php 4.3.2
When I run the following
$fname = tempnam('mytmp/', 'PREFIX_');
and then echo $fname, it returns
/tmp/FILENAME rather than mytmp/FILENAME
I'm running under RHEL 3 U3
Anybody know what's going on?
thanks,
Brent
M Saleh EG wrote:
Yes it does! It aint off topic.
Pate is trying to figure out how to integrate mod_rewrite
functionality with his PHP scripts.
Ah well, I should just ask a question or two about how to integrate
mod_perl functionality then, eh? It's as offtopic as MySQL, JavaScript,
etc questio
Yes it does! It aint off topic.
Pate is trying to figure out how to integrate mod_rewrite
functionality with his PHP scripts.
If you're new to mod_rewrite then you can use this alternative PHP
script that does the work for u. Here you go:
http://www.zend.com/codex.php?id=674&single=1
On Sun,
Thanx Mathew
I guess I found it, it's disapointing though.
Here was the answer: http://www.zend.com/php5/andi-book-excerpt.php#Heading3
4. Interfaces
Gives the ability for a class to fulfill more than one is-a
relationships. A class can inherit from one class only but may
implement as many inter
On Sat, 16 Oct 2004 22:04:33 -0400, Gh <[EMAIL PROTECTED]> wrote:
Your right, this is not what I was expecting, I was thinking there was
another way... Sounds good.. but any other suggestions?
On Sat, 16 Oct 2004 21:40:56 -0400, Minuk Choi <[EMAIL PROTECTED]>
wrote:
well, this is probably not w
* M Saleh Eg <[EMAIL PROTECTED]>:
> Is direct multi inhertance supported in PHP5?
I believe so -- this was one of the new features of the object model
introduced in PHP5. My understanding is that you have to create
interface classes that a class can then implement. Unfortunately,
interface classe
hello all,
i need to install php, postgresql and apache. i had redhat 7.3 running. i like to
know, the comaptible versions of the above three. i couldn't install the current
version of the above three as it is asking for GLIBC-2.3. but i had GLIBC-2.2.5
running. it is not possible to update GLIB
Pete wrote:
I have just started using mod-rewrite, and have two questions...
And neither one of them have anything to do with PHP.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
secure it with apache .ht* files for directory and file settings or
the main config file.
On Sun, 17 Oct 2004 15:35:58 +0600, raditha dissanayake
<[EMAIL PROTECTED]> wrote:
> GH wrote:
>
> >Is there a way to make sure that a page is only loaded via a
> >
> >require or include statement? or other
Is direct multi inhertance supported in PHP5?
I'm on PHP4, didnt find this on the docs nor at zend's. It might be
the reason of migrating to PHP5 for me. Any Idea? anyone who tested
it? by this I dont mean the chaining method of inheriting. I mean
direct multi inheritance!
Thanx in advance.
--
Wow - this is *really* spooky!
When I wrote that, with RewriteRule "relative URLS within that page no
longer work correctly", I had not realised that those within PHP worked
ok, whereas those in raw HTML didn't...
--
Pete Clark
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
I have just started using mod-rewrite, and have two questions...
I see everywhere on the net that I can change file names to lower case -
at present they are an ex-Windows based mess of upper and lower. But I
can't see anywhere how to actually do it, just that it is possible.
Also, I use
Rewri
GH wrote:
Is there a way to make sure that a page is only loaded via a
require or include statement? or other type of SSI?
I would like to make sure that a 'parent document' (namely
admin_template.php) only calls the php file?
Thanks
leave if outside htdocs
--
Raditha Dissanayake.
-
50 matches
Mail list logo