Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP






SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Problems Starting Mod Rewrite On Apache 2.0.52


I tried google and everything I check from there is not working. So I'll explain what I do and if someone know what do I do wrong: Code:


View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Apache Mod Rewrite
how to use apache mod rewrite with subdomains.

I have followed many tutorials, and i get error 500 pages.

Now what i want to do is basically, when a person types in...

http://test.domain.com

It reades the data from...

http://www.domain.com/index.php?page=test

Now i dont want it to redirect to index.php?page=test, i want it to read it from there and dipslay it at http://test.domain.com. I have followed many tutorials and i get error 500 pages.

View Replies !   View Related
Error When Starting Apache
I have an error when starting apache under win xp like this:

cannot load c:/php/sapi/php4apache.dll into server: the specified module could not be found

the fact is I have c:/php/sapi/php4apache.dll module exist.

View Replies !   View Related
Apache Rewrite Rule
I know it's not a PHP problem, but I can't find the right forum to post it, and my app is in PHP. I have this rules in the root .htaccess: RewriteEngine On RewriteBase, RewriteRule index.php - [L] RewriteRule ^(.*)$ index.php?aurl=$1, And I want to create a directory with another application but I want to avoid this rule for this directory.

View Replies !   View Related
Recognize Edited Php.ini After Re-starting Apache?
I changed the php.ini file. I am under the impression that I need to re-start apache. I've tried stopping then starting apache. I've also tried just restarting it. These commands seem to be working, but the changes I make to the php.ini file are not put into effect and do not show up when I call phpinfo(). Anyone have any ideas how I can get my new php.ini recognized?

View Replies !   View Related
Starting Apache 2.0.58 With PHP 5 Gives _zend_list_delete Error
I want to set up my own web server, so I first of all compiled Apache 2.0.58 (I've read that Apache 2.2.2 doesn't work with PHP 5).

I managed to compile it and get it to display some webpages. But of course no webserver is complete without PHP, so I proceeded to compiling PHP 5. I did everything exactly the way the instructions say at PHP.net, but when I try to run, I get the following error:

Cannot load /usr/lib/apache2/libphp5.so into server: /usr/lib/apache2/libphp5.so: undefined symbol: _zend_list_delete

Code:

View Replies !   View Related
Starting And Stoping Apache And On Extenal Meachine
Now the problam is that i dont wont to use the cmd.exe command line interface to controll the other pc for apache and php on my laptop or i lose fingers......

I have created a shered folder on each meachine and placed the shortcut's off apache to the folder of choice with shearing prevlages so now when i goto the laptop i see the folder i wont and the start and stop for apache are there all looks good. Code:

View Replies !   View Related
Starting Apache :: Make_sock: Could Not Bind To Address 0.0.0.0:80
I get this error:

(OS 10048)Only one usage of each socket address (protocol/network address/por
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80.

View Replies !   View Related
Mod Rewrite - Separate Rewrite Rule For Each?
I've been recently reading up on Apache's mod rewrite feature. At the moment I'm a bit puzzled about how it works exactly but I'll figure it out eventually.For instance, say I want news.php?cat=tech&id=2 to be like /news/tech/2/ and tutorials.php?cat=html&id=65 to be like /tutorials/html/65/, would I have to have a separate rewrite rule for each? 2 different pages = 2 different rules?

View Replies !   View Related
Starting .net
I require suggestions on how to get friends in the group to communicate
about the programming in .net and php etc.

View Replies !   View Related
Starting Out
Most of the messages in this newsgroup are specific problems or
questions. I have been scripting in mirc for a while so i have the
programming basics down but i was looking for your suggestions on
where to start with php.

View Replies !   View Related
Starting Php
i'm going to learn and implement php simultaneously. i'd like to know about useful links/resources about php available in booked formor online. i thought it would be effective if i get guidence from group before wandering around net.

View Replies !   View Related
Starting Out: PHPLIB ?
Are there any tutorials out there that detail how to use PHPLIB? I've read through the documentation, but it seems a little bit over my head.

View Replies !   View Related
Starting A Session
I have the simple code: PHP Code:

View Replies !   View Related
Starting Executable
I am trying to figure out how to get the CMD (dos) window to come up when I
call a executable. I have this working on a Win2000/apache machine and am
trying to use the same code on a identical machine.

Here is how I start the executable. It is initiated from the browser on the
machine itself:
pclose(popen("start " . $exe . $params, "r"));

What normally happens is a cmd window pops up showing the executable's
output to screen. My php code then gets the PID for the executable by
running a tlist.exe and searching for the name of the executable. I take
this PID and sleep till a certain time and then kill the executable.

When I do it on the new machine the executable runs but no cmd window comes
up. I also cannot get a PID for the executable because tlist output shows
the executable's PID but has no information about it. When I manually use
Tasklist I can see the name of the executable.

PHP and apache are setup identically on both machines so it must be
something in windows. From looking around I think it may have to do with
'apache not interacting with the desktop' ?

I need to have the cmd window come up and I feel if I can get that
accomplished the PID problem will be taken care of too.

View Replies !   View Related
Starting A Php Script
why is it some people use <? and others <?php ??

View Replies !   View Related
Session Not Starting
I am new in PHP. i am trying to start a session with

<?php
session_start();
?>
It gives me error:

Warning: open(/tmpsess_240edf6126abb0b892d4365f6348326d, O_RDWR) failed: No such file or directory (2) in c:phpdev5wwwpage2.php on line 2

Warning: open(/tmpsess_240edf6126abb0b892d4365f6348326d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

I changed the path in php.ini:
session.save_path = C:phpdev5www

View Replies !   View Related
Starting Tutorial
I have the php & mysqul for dummies books and have found a few old tutorials. I thought I'd ask if anyone knows of an up to date tutorial for installing apache, mysql, php in order to get a web site up and running.

View Replies !   View Related
Starting With XSLT
You can see that the specific complaint is blank ('') when I get this error. The first line of my xml file is:

<?xml version="1.0" encoding="UTF-8"?>

Which I gather is pretty much a standard.

I'm using a prefab script which gives me this output when I try to convert the XML file:

Something bad just happened. Here's some more information:
msgtype --> error
code --> 69
module --> Sablotron
URI --> http:/doc/dtd/StoreExport.dtd
line --> 1
msg --> unknown encoding ''


Any ideas where to start troubleshooting?

View Replies !   View Related
<? Vs <?PHP Starting Delimiter
I often see the former starting delimiter rather than the latter. Is there some rule about where the former can be used?

View Replies !   View Related
Starting A Project
I am working on a project where there are 6 main pages. I need to create a system whereby certain employess can login to PHPMYADMIN and dynamically update page information and maybe even create pages. I want to know if it would be more efficient to make tables for each different sub-directory (which contains page id's and page names) or if it is more effective to build one table that somehow references these sub-directories.

View Replies !   View Related
URL Rewrite In PHP
I know that mod-rewrite is really the way to go for rewriting URLs and such (when using Apache), but... I rent webspace on a shared server and cannot directly modify Apache config files. This leaves me with two options:

1). Using .htaccess files (which I have heard have a significant performance impact when used for mod_rewrite).

2). Handle URL rewriting through PHP itself (though this would only be a pseudo rewrite). Something similar to http://www.alistapart.com/stories/succeed/

I have concerns with both: on one hand, performance; on the other hand, security.

Any suggestions or feedback on which approach would be ideal?

View Replies !   View Related
Rewrite The Url
I'm using a get variable to enable a guest login via a hyperlink. Once
I've used it, is there a simple way of rewriting the url to remove ther
get details?

View Replies !   View Related
Mod-rewrite
I am stuck with a problem and hope that probably someone of you can help me out on that one: I did a mod rewrite on a search engine of mine. This is the mod rewrite code:

RewriteRule ^(([^.]+)|([^.]+)/([^.]+)(.html)?)$ index.php?search=$1

Now the rewrite works fine as long as the search term is only "abc" or "a-bc", but it doesn´t work for search terms that contain a dot like "a.bc". Does anyone know how I change the rewriterule that way, that it would work with dots as well?

View Replies !   View Related
How To Rewrite Url In Php
how i am rewrite url in php. i hav no idea about url rewritting. i am createing adynamic site and my url look like http://localhost/adminajax/home1.php?sub_cat_id=1
now i need url look like this http://localhost/adminajax/home1.php/animation automation.

View Replies !   View Related
URL Rewrite
I want to show one URL at browser and content of different URL.

Like user can see the URL at address bar like:

href="http://localhost/test/home/

or

http://localhost/test/tech/php/

but content of page will be

http://localhost/test/index.php

The URL of the address bar will never change to
http://localhost/test/index.php

View Replies !   View Related
Php Url Rewrite
i want to execute my code to rewriting url in on the fly and i have to get $_requet values in code

for example
original typed url in browser:

http://localhost/mypet1/a1
http://localhost/mypet1/a1/?page=sp_login
http://localhost/mypet1/a1/index.php
http://localhost/mypet1/a1/index.php?page=sp_login


execution url
http://localhost/mypet1/?sp=a1
http://localhost/mypet1/?sp=a1&page=sp_login
http://localhost/mypet1/index.php?sp=a1
http://localhost/mypet1/index.php?sp=a1&page=sp_login

i need to get in my code
$_REquest['sp']; value is a1 for above example.

View Replies !   View Related
Mod Rewrite
I got a totally dynamic website, and to improve my search engine
results, I would like to use mod rewrite.

From what I've understood so far, I have to put the necesarry lines
into my htacess file, right?

Anyway, I read some tutorials, but I can't quite grasp how to
do it in my case -

I have an url like that:

http://www.url.com/index.php?page=f...er2/subfolder3/

and I want it rewritten to:

www.url.com/folder1/subfolder2/subfolder3/

How can I get this done?

View Replies !   View Related
SSL And Rewrite
I have my php site running live and it now has an SSL certificate running as I need to integrate some new credit card payment pages, however, the test site that I am working on is on a subdomain (www.testsite.mysite.com) and the certificate only works for the www.mysite.com domain.

I am using apache mod_rewrites to rewrite the URLs to scripts anyway and I was wondering if it would therefore be possible to whack all of my www.testsite.mysite.com files into a folder within my 'www.mysite.com' domain and use a rewrite rule to make sure the 'testsite' pages run with the SSL certificate?

If so, what the hell will the rewrite rule be!

View Replies !   View Related
Rewrite
I want to know if anybody in the forum can help me to rewrite a php search results to a static pages using .htacces command

From:
web.php?search=keyword
index.php?search=keyword

To:
websearch-keyword.php
search-keyword.php

Im using Linux - CPANEL control panel.

View Replies !   View Related
How To Mod Rewrite Without Ids?
Not sure if this is the right place to post on apache mod rewrite, but its been discussed on these forums so here goes: How to some websites such as Blogs etc have a nice urls like: Code:

View Replies !   View Related
PHP Sessions Starting To Fail
we have a fairly busy server and we just started to have
problems with PHP sessions failing. We've never had this problem before and
to be honist, out server traffic is lower than it has been in prior months -
so I'm really not sure what could cause this.

Could anyone suggest some potentiol avenues to explore for reasons that
could cause PHP sessions to fail?

View Replies !   View Related
Starting Application In Background
On my main page I have several hyperlinks which point to a php page that plays different .wav files. In the play_sound.php page I just echo the .wav file and when the link is clicked in the calling page the browser (IE6) opens Winamp and plays the sound (since I output a header with Content-type: audio/wav).

It works great but is there any way to open the application in the background or at least minimized so you don't see it over the top of the main page?
Is it a setting in HTML that determines this or does it have to be done through php?

View Replies !   View Related
Starting & Stopping Httpd
What i want to do is to fire the functions in the httpd script to start, stop, restart, httpd for eg. from the console i would write ( from the init.d dir.)

httpd start. to start the Apache server. but how do i do it from a php script? I can open it with fopen().

View Replies !   View Related
Starting PHP, Netequite Question
I am learning php an I am amazed how easy a PHP noob like me can acheive
so much in little time.

I am planning to take part in the community and noticed these 3 newsgroups :

-alt.comp.lang.php
-comp.lang.php
-alt.php

Do these groups differ in purpose or is it allowed to crosspost in all 3
of these?

My guess is that my newsserver gets access to these 3 ones but other people
maybe can read only 1.

View Replies !   View Related
Remove All Lines Starting With B
Say I have the following file - dummy.txt:

a 4treg
a sdfas
a 4egdsag
b 1111
a ergdsfg
b 1111
c waefasdf

How would I go about removing all the lines that begin with a b? I
thought the following script (which I wrote with the intention of
replacing all such lines with the empty string) would but apparently it
doesn't:

<?
$contents = file_get_contents('dummy.txt');
echo "";
echo preg_replace('/^b.*?
/','',$contents);
?>

View Replies !   View Related
Starting File Download
Is there a way to make a browser start downloading a file, automaticly, no matter what type of file it is?

View Replies !   View Related
Starting A Process On The Server
after putting my self through hell trying to call an executable with Java. (which I was doing correctly according to the specs, but there is something f$#%ed up with the implementation of Runtime.exec() on this OS--Linux for those of you who are wondering, when I recomiled everything on NT it runs as expected, which is unfortunate)

Anyway, I was just curious, since I haven't really taken PHP very far, and haven't played with it since PHP3, what would one do to call an executable on the server file system? with arguments?

View Replies !   View Related
Values In Graph Not Starting At 0
I'm on a mission to dynamically generate stock quote line graphs. Stock quote graphs are usually very dramatic looking, even if the quote price changes slightly throughout the day. This is because the bottom label on the vertical side of the graph starts at an even increment just below or even with the lowest stock price of the day, instead of 0.

I'm getting close to making this happen for my project, but am not there yet. There may also be a better way to do what I'm doing? Sometimes my values fit within my labels. Sometimes my lowest value falls below my lowest label, which would make the line in my graph go below the chart. I'm sure that would make a bad impression on my client's investors. Code:

View Replies !   View Related
Starting Anew: OOP? PEAR?
I believe I can write basic procedural code but:

1) Should I be using the OOP method as much as possible (meaning I would have to crack the philosophy, too) ?

2) What about PEAR - is it something like CPAN in perl (I use perl now) and should I use it to shurtcut the development?

What I want to write is an application to do specialized reservation of multiple resources over time. The database model (E/R) based on the business needs is ready.

I would be gratefull just for being pointed to unbiased but focused information. I am not much interested in the Computer Science theories, I am interested in the practical php experience.

View Replies !   View Related
Starting Image Host
I am looking to start an Image hosting site to compete with imageshack. I need to know what this would entail, the level of difficulty, and if there are possibly any open source codes i could use.

View Replies !   View Related
Starting Up Using A Simple Database
Is it possible to create a table/array in a php-file and then collect data from it into another file by clicking a hyperlink..? I've never setup a database before. Some say I have to use MySql, Oracle and so on. In other terms.

Is it possible to make a database (simple table) in a php-file and then make a query without using mySql, Oracle and so on ? How could this easily be done (fetching data from an table and then preview the info in another site when clicking a hyperlink)?

View Replies !   View Related
Delete All Records Starting In R
PHP Code:

$result2 = mysql_query ("DELETE FROM r_CompTables WHERE CompID = R??") or die("DELETE error: ".mysql_error());

I have this code but I want it to delete anything start in R. R will be followed with a number so it could be R5 or R91.

View Replies !   View Related
XML And MySQL Starting Point !!!
I wondered if you could point me to the right direction as to what or how I should do about the following:

I have a few MySQL tables, accessing them via PHPmyAdmin 206
I use PHP 4.23

What I want to do is to use PHP via XML to get the data from MySQL database... my knowledge with XML with PHP and MySQL is zero... could someone please let me know where to start researching...

Do I have to create XML Schemas, then connect PHP to this and access the data.. I am totally lost here... Or do I have to download a few modules on either MySQL, PHP or Apache that will take care of this matter for me....

View Replies !   View Related
Mod Rewrite URL Problems
I created my .htaccess code and its working on my server, the only thing is my urls all have plus signs as spaces.. exp.

http://www.somesite.com/How+to+find+this.html

How do I change this to - signs?

I know this is a php topic, but hold on I'll explain...

here is my .htaccess coding which is working..

RewriteEngine on

RewriteRule ^(.+)Article([0-9]+).html(/)?$ articleDetail.php?id=$2&title=$1

RewriteRule ^(.+).html(/)?$ $1.php

and here is my php code for the urls

<a href="<?php echo stripslashes(urlencode($title));?>+Article<?php echo $id?>.html"><?php echo stripslashes($title);?>...</a>

I'm fairly sure its nothing to do with the htaccess coding... but the php coding.. which I had a friend help me with.. but he doesnt know how to fix it..

View Replies !   View Related
Sessions With Mod Rewrite
after building my last project and everything working fine, we decided we wanted to use mod_rewrite for better SEO. The rewrite rules are working as expected but there is one significant problem.

Suddenly the pages accessed with rewrite lose their sessions. I am guessing that I am missing some kind of header. Also when I click view source on the browser, Notepad comes out blank on the pages using rewrite. And sometimes the pages open a 'save as' dialog box. The output html does have the following head tags:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

I thought maybe this was a problem with the local server so I uploaded the site onto the live server and I have the same problem there.

I am using the following
Smarty 2.5
apache 1.3.27
slackware 8.0
php 4.3.2

My best guess is that I might need a header(); so that the browser fully understands what it is accepting. I just don't know which, I have trouble with headers sometimes.

View Replies !   View Related
URL Rewrite + Htaccess
I have a domain, and i want every query string
redirected to index.php?
so domain.com/foo/bar would actually be domain.com/index.php?/foo/bar
Then i want to be able to say in index.php,
if QUERY_STRING == foo, do this etc.
(How) can i do this with htaccess?

View Replies !   View Related
URL Rewrite + PHPSESSID?
I use session.use_trans_sid On to have the PHPSESSID attached to the URL. I do not start the session when the Googlebot is detected, so far Googlebot has begun to look a bit more deeper down other than just the home page.

I am trying to turn all the pages into static URL using rewriterules. Only problem is I still want the users to use the site without the cookie turned on by using the PHPSESSID. With the rewritten URL, use_trans_sid still attaches the sid to the URL, eg. I have tried a rewrite rule as:

RewriteRule ^test0/([^/]+).html?(PHPSESSID=[a-f0-9]+)$ /test.php?ID=$1&$2

It does not really work, it looks like rewriterule ignores "?" in the URL.

View Replies !   View Related
Url Rewrite On A GET Form?
is it possible to control the URL sent from a web form of the GET type? write now I have my little search form, user types word(s) hits search, but instead of "http://domain.com/search.php?words=word1+word2" I'd like to take advantage of my htaccess and rewrite to search/word1+word2.

I can do this easy in htaccess, but how do i get the FORM to send the url THIS way?

anyone with experience in controlling form urls?

View Replies !   View Related
URL Rewrite Question
I have enabled mod rewrite on my server, and added a few pages to the .htaccess. But when i use "localhost/myfiles/" it displays the file wich is myfiles.php, but it treats the it as a folder, so other links are "localhost/myfiles/login.php" but i wont to be "localhost/login.php" etc etc. Code:

View Replies !   View Related
Use Mode-rewrite
i want in my work that my links like www.abc.com/home.php?id=x&option=yz

must be shown as www.abc.com/home

by searching help about it i came to know that this can be done using mode-rewrite.

If any one have done this please help me, and send me some sample code abt it.

View Replies !   View Related
Mod Rewrite And Subdomains
There is a domain www.xxxxxxxxx.pl, I would like to enter: www.xxxxxxxxx.pl/adres/ and get www.xxxxxxxxx.pl/adres.php so I put in .htaccess a rule: RewriteRule (.*)/$ /$1.php [L] Everything works ok, but now I decided to make a subdomain "test". I enter: www.test.xxxxxxxxx.pl and my webbrowser connects to www.xxxxxxxxx.pl/test.php what can I do to use subdomains. Do you have any idea?

View Replies !   View Related
Mod Rewrite Rule
i have searched the forum and cant find the solution to my problem. I want a mod rewrite rule to convert index/12/13/14 to index.php?p=12&a=13&s=14 but i have the following code:

RewriteEngine on
RewriteRule index/(.*)/(.*)/(.*).html$ index.php?p=$1&a=$2&s=$3

but this provides a 500 internal server error.

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved