| |
thread by: googlegroups |
last post Aug 13 '05 by: Mladen Gogala
Hi, I wonder if anyone can help?
How do I see if one string is found within another string?
or how many instances of one string, is found within another.
ie.
a="Sheree smells of poo"
b="smells"
|
thread by: dk_sz |
last post Aug 13 '05 by: dk_sz
Can anyone point me to a guide or something for conversion?
I tryed
http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/index.en.html
but it doesn't work (not all parts anyway) - and as I can't find a
working IDE/debugger combination I can't currently figure out why.
I need to translate following code:
|
thread by: Oak Hall |
last post Aug 13 '05 by: John Dunlop
I have files (pdf) that users can view. They are in a protected site.
index.php's first function is to check the User Name and password. If they
are ok, it answers the request.
I want return a pfd file.
So if a user goes to
http://www.mysite.com/index.php?command=view&file=mydoc.pdf
|
thread by: news.onet.pl |
last post Aug 12 '05 by: mbstevens
Hello
I'm biting into the following problem: HTTP is stateless protocol
and thus net languages' designer had to find out session. As
far as I know session handling in any of the language (PHP, JSP, ASP)
is one of the of the following:
- user's IP, but ambiguous
- using cookies, sometimes disregarded due to possibility of turning off
in a...
|
thread by: ehendrikd |
last post Aug 12 '05 by: Gordon Burditt
hi all
i need some clarification on how the php session work in relation to
cookies.
we have a web site where users need to log in. a few of our users were
having troubles with their browser clients having different levels of
cookie security settings. i assumed a solution would be to have the php
site use the session only, and set...
|
thread by: Ant |
last post Aug 12 '05 by: Ant
Hi,
I'm a bit of a newbie to php.
I have some values that I'm getting via the post method which I want to
include in an sql statement - the problem is I need to enclose the value in
"'s but I dont know how.
e.g $id = $_POST;
|
thread by: comp.lang.php |
last post Aug 12 '05 by: comp.lang.php
PHP 4.3.8 with UNIX with option --with-magic_mime
echo mime_content_type('/images/myimage.png'); // RETURNS
"text/plain"
PHP 4.3.11 with UNIX with option --with-magic_mime
echo mime_content_type('/images/myimgae.png'); // RETURNS
"text/plain"
|
| |
thread by: Dave Thomas |
last post Aug 12 '05 by: kobi
I have an array, say something like this (to build a form):
$commands = array(
"Start Date" => "build_date('startdate')",
"End Date" => "build_date('enddate')"
);
Only it will have many more entries. I want to cycle through the array,
and print the first part, but then execute the second part so that it
goes to the function build_date...
|
thread by: comp.lang.php |
last post Aug 12 '05 by: drwxr-xr-x
Using Linux/PHP 4.3.2 CLI:
$fileID = fopen('myfile.txt', 'r'); // WORKS JUST FINE
Using Linux/PHP 4.3.8 CLI:
$fileID = fopen('myfile.txt'); // THROWS WARNING 'no such file or
directory "myfile.txt"
Using Windows XP/PHP 5.0.4 CLI:
|
thread by: Claire DURAND |
last post Aug 12 '05 by: kobi
Hi,
My mysql base was migrated from a version 3 under Windows to a version 4
under Linux and the base was placed on a new server different from the
web server (this one with phpmyadmin).
When I trie to upload a csv file with phpmyadmin, I obtain the following
error :
---------------
|
thread by: windandwaves |
last post Aug 12 '05 by: thehuby
Hi Folk
I was wondering to hear from you why you use classes in some instances
rather than functions. I have never used a class, but I use a lot of
functions.
I don't have a comp sci background, so I may miss some of the basics.
TIA
|
thread by: Marcin Dobrucki |
last post Aug 12 '05 by: Marcin Dobrucki
I am writing an app where an "environment" contains a few managers which
arbitrate access to objets. The scenario is something like this:
class Env {
var $db;
var $manager_a;
var $manager_b;
function Env () {
|
thread by: Ryan Lange |
last post Aug 12 '05 by: Erwin Moller
Well, I can connect to my Pg database through ZS just fine. It
lists all the databases, all the schemas, and quite a few items under
each schema. Unfortunately, all of *those* items are empty when I know
that, at the very least, the "Table" item shouldn't be.
I'm also getting the following error when trying to test queries
within ZS:...
|
thread by: Vaca Louca |
last post Aug 12 '05 by: Malcolm Dew-Jones
Hello,
I'm trying to run a few PHP applications (phppgadmin, Horde)
under Orion Java Server (http://orionserver.com) and so far
couldn't make it work.
I know this is more of an Orion-specific question but I can't
find a good Orion support forum.
I tried configuring Orion web-module to these applications but
|
thread by: bissatch |
last post Aug 11 '05 by: bissatch
Hi,
How would I go about destroying POST vars after their use in a script?
Is this possible?
The reason is that when I use a script that, for example, add a row to
a database. If for some reason the user refreshes the page, it will add
another row. Is it the browser that resends the POST vars when a page
is refreshed?
|
| |
thread by: bissatch |
last post Aug 11 '05 by: bissatch
Hi,
I have the following XML file:
<?xml version="1.0" encoding="iso-8859-1"?>
<items>
<item line="2">all that glitters is gold,</item>
<item line="1">Theres a lady thats sure,</item>
<item line="3">and she's buying a stairway to heaven</item>
</items>
|
thread by: Jay |
last post Aug 11 '05 by: Default User
Hey there,
Is there a way to have php automatically save a file that is being
downloaded without having the annoying "Save As.." dialog box that
appears? I would like to be able to create a txt file on the server and
automatically have it save in a user's specified folder.
-Jay
(patel at cs dot utk dot edu)
|
thread by: Michael Ferrier |
last post Aug 11 '05 by: Janwillem Borleffs
Hi,
I've used fopen() extensively to open web pages. I've found that there is a
small minority
of web pages that open fine in a browser, but are inaccessible using
fopen(). Here are
two such URLs:
http://www.homes.com/
http://www.dolbyproperties.com/
|
thread by: rik |
last post Aug 11 '05 by: John Dunlop
I was flicking through a PHP book (one of the teach in 24 hour ones)
and I came across something I had never seen before in PHP. It was a
method of printing out without using the print method, it was something
like :
<?= $myVar; ?>
Is this an out dated method? Is it compatible with all versions of PHP
(since implementation at least)?
|
thread by: SoSaucily |
last post Aug 11 '05 by: Guillaume ALLEON
I am getting the 'partially uploaded file' error with uploads over
about 4k-5k. $_FILE = 3. Rackin my brain on
this one, any help appreciated.
Php.ini
- upload_max_filesize=2M
- post_max_size=8M
and we have the <input type="hidden" name="MAX_FILE_SIZE"
value="5000000"> input tag appearing prior to <input type="file"
|
thread by: Guillaume ALLEON |
last post Aug 11 '05 by: Guillaume ALLEON
I use POST to transfer a file from my client to the server. It is
working up to a limit. Trying to transfer a file of 60 MBytes fails
with an error message of 3 which seems to mean "file partially
transfered" ?!
I did tried to increase both max_execution_time & max_input_time
without success ?
Is there a way to have php a bit more...
|
thread by: Sean Quinn |
last post Aug 11 '05 by: Sean Quinn
Hi,
I don't know if anyone has run into similar problems, but it seems like
when I use `require_once(...)' with files that contain functions I get
an error indicating that it can't redeclare the functions. I thought
the point of the once directive was to PREVENT the system from
including duplicate files (and thus attempting to redeclare...
|
thread by: Ramza Brown |
last post Aug 11 '05 by: Ramza Brown
I have this concept I throwing together. It is not professional or
anything, just something I thought might be interesting. The concept is
business(me) - to - consumer. It is, What did you buy?. You log into
this site and describe purchases you might have made over time. It
might be simple like:
'Tommy Shirt cost $30'
Whatever...you...
|
| |
thread by: Ramza Brown |
last post Aug 11 '05 by: Ramza Brown
Question, I am testing php scripts through the console app(php.exe) how
can I send form variables to it? Or can I? Can I just fill in
variables into _POST for example.
--
Ramza from Atlanta
http://www.newspiritcompany.com
|
thread by: Ray Muforosky |
last post Aug 11 '05 by: Rich
I have this:
------------
print "<FORM name=\"form3\" ACTION=\"cmdlog_rep.php\">\n";
print "<TD><INPUT TYPE=\"submit\" VALUE=\"Submit\"></TD>\n";
..
print "<INPUT type=\"HIDDEN\" name=\"year1\" >\n";
print "<INPUT type=\"TEXT\" name=\"when\" >\n";
print "</FORM>\n";
|