Incidentally, does anyone know how this would be achieved on IIS?
We've got a site at work that's running off a CMS I knocked up, but
they'd prefer the URLs to look proper, without the query string.
On IIS, the default document(s) are set on the server. If index.php is
not in the default
That wasn't what I was asking. I meant is there an equivalent to
mod-rewrite for IIS?
No. At least nothing simple and free. Run a Google search for
mod_rewrite iis and you will see what I mean.
--
Crash
Committed to the search for intraterrestrial intelligence.
--
PHP General Mailing List
I have a series of questions.
How do I count the number of br / 's in a string?
How do I add text in the middle of a string, let's say after the
3rd br /?
If all you want to do is count the number of line breaks, then the
substr_count function that Micah recommends will do the job. I
I forgot to close a line with a semicolon.
this: $elements=count($para)
should be: $elements=count($para);
--
Crash
Committed to the search for intraterrestrial intelligence.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think Richard Heyes was working on some of these, actually.
Not positive if it was plotting or just display, though. If you
check the archives, you might find something. I'm CC'ing him
personally, too.
Here's one link of his I have from memory:
mike schreef:
Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown [EMAIL PROTECTED]
wrote:
I will get an error, but if I prefix the value with '@',
[EMAIL PROTECTED]q];
The @ is an error control operator, used to buffer the output
and store it in a variable - $php_errormsg. It's better to
I learned through osmosis that I could use the '@' sign to prevent an
error with an uncertain variable. For example, if there is no $_GET[]
value in this line,
$query=$_GET[q];
I will get an error, but if I prefix the value with '@',
[EMAIL PROTECTED]q];
and no value is available, a null
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
I don't see any braces, either. For the record:
brace = {}
bracket = []
parentheses = ()
comma = ,
semicolon = ;
To extract the partial string leading
You might use http://www.php.net/reserved.variables SERVER_ADDR
to get the address of the host you are running under if you wanted
to
access it from PHP only.
Ah, but there is a catch. If you looked at my snapshot, you saw that
there are two addresses, and the server address will not
Hope this isn't overkill but it is a module (read COM, or VBA module)
to manipulate the registry:
Overkill is a massive understatement. :-)
As noted elsewhere in this thread, I got what I wanted by using the PHP exec
command to execute a VB script, which has all the registry access I need.
I want to convert some ASP pages to PHP to go along with a transition from IIS
to Apache. One of the ASP script functions involves reading data from the
Windows registry. How does one read from the registry with PHP?
Also, is it possible to use ActiveX objects with PHP? The above mentioned script
PHP is server-side and cannot read client side info. You would need to
use something client-side, like JavaScript. JavaScript cannot read the
registry either. It's a security thing.
ASP is also server side and the registry I want to read is on the server
platform. I am not trying to read the
Crash: The COM extension (http://php.net/com) should let you do that
in essentially the same way ASP does.
Thank you. More stuff to confuse me! :-)
--
Crash
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I can't think of anything that a PHP app is going to need access to
the registry for, so I'm trying to verify that there actually is a need
for him to access the registry and/or use ActiveX via PHP. I'm
guessing that he doesn't need to at all.
I don't _need_ it for anything in the scripts or
The bad news is that there are no intrinsic PHP functions for accessing the
registry and my third party registry object is not a compatible COM object.
The good news is that I can run an external VBS script with the Exec command
that does everything I want and feeds the results back to the PHP
15 matches
Mail list logo