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




Forward A URL And Change A Component


I've just had to move a MediaWiki installation from one area of my site to a subdomain on another area. I need a way to forward URLs, so that whenever anyone requests a URL for the wiki at the old location, they are automatically forwarded to the URL on the new location. The system would need to add a subdomain, but also change the article pointer. For example: Code:




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Forward Email, Change Sender Address
Is there anyway I can set up a personal 'remailer' type of thing
on my domain ?

I can not email a friend at his workplace because his company
have put a 'block' on emails from my work address (the companies
we work for are considered rivals) - I am after a way to
'bounce' or forward an email, so my originating address isn't
shown.

I have tried email forwarding (in CPanel) using addresses set up
in my domain but when they forward, the original sender is
shown, therefore the block applies.

I have also tried using Bigfoot but again, the original sender
is shown.

Is there any way, using PHP or otherwise, that I could somehow
receive a message sent to an address in my domain, and forward
it on with a different "from" address ? (There would only be 1
specified address that I would want to forward on, to prevent
abuse!)

i.e.

from xxxx@company1.com => xxxx@mydomain.com, this then forwards
the original mail but from xxxx@mydomain.com =>
xxxx@company2.com

Unfortunately webmail isn't an option as we don't have web
access at work, and it has to be sent through the work Email
system, Outlook.

Component Strategy?
I have a home grown CMS built in PHP/MySQL (inspired by phpMySite). All management/site building is done through a web interface. Now I want to add functionality such as "check my email", "display rss feed", etc... these different components would then be associated w/ each page. For example, on the home page, show the "check my email" component.

I'd really like more advanced user's opinions on how best to implement this. I've thought about storing each PHP component directly in MySQL and then eval() 'ing it on it's way out, but I'm assuming I'm adding alot of process overhead.

I could simply create each component as a PHP .inc file in a component directory on the webserver and store meta data about each component in MySQL (i don't really like those loose associations though).

The goal is to let the site maintainers (not myself) pick and choose what components they want on what page. I'm not looking for THE answer, I'm just looking for opinions from those with more experience.

What Chart Component Is This Php Site Using?
I like their charts very much, I am trying to find out what charting
component they are using.

Component Based Php Architecture
I'm a java developer trying to get acquainted with PHP.

In java web development, the most popular web applications framework is
Struts, which is equivalent to Smarty.

The problem with both is that they don't give you a true rich web
application support. What I'm looking for is the equivalent of JSF,
tapestry etc.: creation of application components, registering
listeners to components, lifecycle management, navigation, exception
etc.

I would like to request for some pointers to such frameworks (if exist)
that are based on PHP.

Dynamic Web Pages Using The Checkbox Component
I am trying to create a page where my users choose from a list of topics with a checkbox, then have a page generated from the topics that they have chosen. How do I go about doing this or where I could find the script for this.

Comment Component With Nested Replies
I'm looking for a simple tutorial on how to create a comment section for a website that allows users to reply to previous comments, indenting them much in the same way a site like slashdot does.  I have a working script for a simple list but I'm not sure how to write a recursive function to deal with the rest of it. I've done quite a few searches for previous solutions but I get the feeling I'm not using the right terms.

AJAX Auto Complete Component: AutoAssist 0.8
AutoAssist is a AJAX auto complete component that writing AJAX features
like Google Suggest easy for developers who don't speak browser
quirks as a second language.

Free Component With 3D Bar Chart Plot Ability?
I am looking for a free component with 3D bar chart plot ability.

Component 'MSCOMCTL.OCX' Or One Of Its Dependencies Not Correctly Registered:
I've previously installed PHP on my Win2K machine at work with great success. Now I'm trying to load it onto my laptop (also Win2K) and I get the following:

Component 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid

Does anyone have any ideas about how I might fix this? PHP doesn't work on the laptop, and IIS/Windows/etc. were installed the same way on both machines.

Forward
Is it possible to forward to some page ?

like forward('aPage.php');

Mail Forward
how do i forward emails from aliases.

say i have an email address. foo@yahoo.com then im registered on a
site. i have an alias email add there: foo@site.com then when people
send their emails to foo@site.com, it will be redirected to
foo@yahoo.com.

how do i do this? and whats the proper term for this feature?

Getting Rid Of Forward Slashes...
I have the following string:
$test = "12/12/2007"

What would be the most effective way of removing the forward slashes to come up with a "12122007" result?

How To Forward A Page Using PHP
i have a code like

if (...)
{
forward to xxx.php
}

now this is conditional so i cant use javascript and i also dont want to use that, how to do this in PHP, by forwading i mean opening a new page

Flash To PHP Forward To New Url
I'm trying to make a link from flash work.  It may sound weird because yeah GetURL..., but I have to follow the rule allowNetworking="internal" on the emmbed tag.  Inturn I can only use sendAndLoad from flash.  So what I want to do is have a link in flash call a php file using sendAndLoad.  I have that all working now here's the hard part. I need the php file to then take the url var I sent and go to that url.   

I have tried header(location...), meta refresh, javascripts and auto submit form none of these work from the flash peice, but all work when I go straight to the php file.   The problem occurs because all header info and html info have already been loaded.  Does anyone know of a different way to make the php file go to a new URL?

Back And Forward With Sessions?
I am working on a website which is using sessions. What I want to do, is after the user is logged in, or logged out, when pushing the back or forward button not to change its current status(logged or not), if the destination page in history change this.

Possible To Forward If-expression In Variable?
I would like to forward an expression to an if-statement via a variable.
Like:
$a=10;
$b=20;

$expr="$a > $b";#this should be my if-expression

if ($expr) do something;#test should be if($a > $b)

Of course this does not work, as $expr is simply determined as being true.
Is there any chance to get this working?

Forward POST-variables
I have a form which should be submitted with either of two actions. Tried with javascript but this seems unreliable. Now looking at php and a processor page as the action of the form (process.php) which then sends the user to the different actionpages...can't figure out how to forward the post-variables to the different pages. Code:

Determine A Forward Email Addy
i have an application that sends out mail from flash. in each mail there is a link for the viewer to click on. when the viewer clicks the link blah.php?email=email@address.com it updates the database adding their email to the list of people who have clicked that link.

i want to be able to track emails that have been forwarded. the problem is if someone forwards, it will forward with their email attached to the link instead of the recipients.

is there any way i can grab the recipients email and put it in the link?

How To Make Pages That Auto-forward?
I made a form that someone can fill out ... then when he's done(provided everything was filled in properly) I want him to automatically to be taken back to the main page. (preferably after a 5 second delay or so) I was just curious if this is possible in php. I've seen it done in javascript, but I dont know javascript very well.

Fieldforwarder PHP Script Doesn't Forward Fields The Second Timearound
I'm new to this newsgroup and have tried to search through the archives
first, before posting this question. I don't think it has been addressed
before. Also, this question is about a script I found on zend.com, and I
have also emailed the author of the script, unfortunately without any
replies sofar.

Here goes:

I am working on a website for pizza delivery. Through this website people
need to be able to order a pizza or pasta online.

The ordering proces will be a form with multiple pages. The visitor will be
guided through the menu in 5 steps. Step 1 being the pizzas, step 2 the
pastas, and so on.
On each page there is always the possibility to add an "side-order" to their
order. So, on the right is always the same list of side-orders.

I am using a script called fieldforwarder.php (see this page for the script:
http://www.zend.com/zend/spotlight/...e7.php#Heading9)

It works perfectly, however one challenge still remains and it has to do
with the side-order. I think it has something to do with the
fieldforwarder.php file.

The side-orders can be choosen during any step. So, if one chooses a side
order in step 1, it needs to remain chosen in the following steps. I have
this working, by using if statements. One pulldown menu in the side-order
menu looks like this:

<select name="italianchefsalad_junior" class="orderpulldown"
id="italianchefsalad_junior">
<option value="0"<?php if ($italianchefsalad_junior==0) echo "selected";
?>>0</option>
<option value="1"<?php if ($italianchefsalad_junior==1) echo "selected";
?>>1</option>
<option value="2"<?php if ($italianchefsalad_junior==2) echo "selected";
?>>2</option>
</select>

Although starting from step 2 the code looks this actually.
Well, it does work in a way that it shows me when i clicked something in the
side orders on the first page. However, when i try to choose something in
step 2 (or 3 or 4 or 5) it won't "remember" it.
I guess that the fieldforwarder.php file doesn't check for changes in
fields, it already has indexed? I'm not quite sure, because the code of the
file is a little bit too advanced for me.

Hopefully someone on here can help me out. I really hope so.

Pass Info Forward From A Redirect Page
I have a main page with 75% constant contents. I want to change the other 25% depending on what page calls the main page. Example:

www.mysie.com/a.html
www.mysite.com/b.html
www.mysite.com/c.html
www.mysite/x/y/z/mainpage.php

Pages a, b, and c are redirect pages to mainpage.php How can I how can I open storya.txt in the mainpage.php when someone clicks on ~.com/a or storyb.txt if they click on ~ .com/b ?

Forward To Page Alongwith Variables In POST
How to forward a page to another page alongwith the parameters passed into it

I mean I have page a.php
which is called with some parameters in $_POST and I require to pass these to another page with same variables in $_POST

Setting Up A Forward Apache Https Proxy
I can't figure out how to setup a forward https proxy in apache. Here is what I have tried:


Code:
<VirtualHost *:443>
ServerName server.com
DocumentRoot /path
ProxyRequests On
ProxyVia Off
AllowCONNECT 80 443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
#<Proxy *>
#AuthUserFile .htpasswd
#AuthType Basic
#AuthName "private"
#<LIMIT GET POST CONNECT>
#require valid-user
#</LIMIT>
#</Proxy>
</VirtualHost>


I've tried it with and without the commented section, and tried various other combinations of commenting and uncommenting various parts of this. The only way I have gotten it to work is to comment out SSLEngine on, which defeats the purpose of what I'm trying to do. I've also tried to use several different combinations of the SSLProxy* functions, but have had no luck with that either.

Could anyone point me in the right direction? The apache documentation hasn't been too helpful for me and I can't even tell if what I am trying to do is supported or possible.

Need To Make A PHP Script Forward To An Html Page When Processed!
When a php script is processed, how can I then get the script to automatically forward to a confirmation page? The script in question is a mail script, and I need to get this to forward to an html page to basically say, 'mail is sent'.

Preventing Back/forward Button Form Resubmission
I have a site that is form intensive and would like to prevent users on my site from resubmitting forms when they press back or forward, which they will likely do at some point no matter how I program it. 

So, I am interested from hearing from people who 1) had the same need and 2) implemented something in PHP with which they were satisfied.  How did you go about doing this?

How To Change One Page To Change All?
i need to know how to create a page where i only have to change one thing on one page so it changes that text or image on every page of my site. in other words i want to be able to create a template, so if i do want to vchange something in the duture, i only have to change on page, instead of changing each individual page.

Cannot Change Php.ini
System info: PHP Version 4.3.11, Debian, 2.4.18-bf2.4
Configure Command './configure' '--with-ibm-db2=/usr/IBMdb2/V7.1'
'--with-apache=/usr/local/src/EMILLICANWORK/apache/apache/1.3.31'
'--with-gd' '--with-zlib-dir=/usr' '--with-jpeg-dir=/usr/local'
'--with-freetype-dir=/usr/local/src/EMILLICANWORK/apache/work/usr/local'
'--enable-sw_securid' '--with-sybase' '--with-pgsql' '--with-bz2'
'--enable-track-vars' '--enable-bcmath'

Configuration File (php.ini) Path /usr/local/lib

There was not a php file or director in /usr/local/lib, initally I
tried copying the one I had edited in /etc/php4/apache/php.ini. Then
have created the director /usr/local/lib/php, and put the php.ini file
there. Still no change from the default settings to the ones I have
made.

Hello, [XML] Is There Something To Change?
I'm a newbie in XML/XSLT trying to get some HTML output from a simple
XML source that starts with:

QUOTE:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="letter2text.xsl" version="1.0"?>
/QUOTE

I ran phpinfo();
Here is what I gathered:
QUOTE:
libxml
libXML support active
libXML Version 2.6.22
libXML streams enabled

SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.10 $
Schema support enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.22

xmlreader
XMLReader enabled

xmlwriter
XMLWriter enabled

/QUOTE

The problem is that I keep seeing the XML source in IE6, not the
formatted data.

How Can I Change Every Second Row?
I am making a html table builder, and would like every second row to be
blue. So for that purpose I need a number that changes on every
iteration of a while loop, for exampel so that a value is 0 then 1 then
0 a so forth.

Row Bg Change...
How do you make it so like the first background color of the row is red, then the next one is blue, then red, then blue, based on a bunch of items echo'ed from a db table. ??

How Do I Change A Dir Name?
I just want to know what function i should use for changing a folders name? i have looked at php.net but cant seem to find any function who can you this.

Can You Change A PNG From 8 Bit To 24 Bit Image?
Can you change a PNG from 8 bit to 24 bit image using PHP?

Change The Refferer
I'm looking for a way to change the refferer of the client clicking on
a link to an external site. In other words, the external site should not see where the visitor is coming from, or even better, if i could manipulate the referer so that in their web-server's logs it will show as if they are coming from their own site.

Permission Change
Change permissions to 'file.txt' for be writing by nobody (chmod a+rw). Excuse my ignorance, but what does this mean in english?

How To Change PHP To HTML...
Need to put a small website fully databased (that is 20-30 pages only - mostly pictures) on a CDRom.

Is there a way to automatically do the move or do I have to change everything manually (URL, A tag)?

Change The Standard Out
Is there any way to redirect the standard out to some variable ?

I meen, instead of seending the result to the browser, send it to a
variable.

How To Change Passowrd
I want to change my linux password through PHP script.

Syntax To Change Value
I am trying to change a value but cant quite grasp the syntax
<?
$vtfa=test
$dn=1
?>

<td><?= $vtfa.$dn ?></td>

<? $dn = $dn + 1 ?>
<td><?= $vtfa.$dn ?></td>
<? $dn = $dn + 1 ?>
<td><?= $vtfa.$dn ?></td>

What I want are the three cells to consist of test1, test2 and test3. As you

Any help appreciated



Change Color
Does anyone know how I would make each row of the result a different color:
here is what I have:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?
$connection=mysql_connect("localhost", "bla bla", "bla bla") or die
("could not connect");
mysql_select_db("yorkbia2_dbname");
$result = mysql_query("SELECT * FROM Board");
echo "<table border=0, table width=200%, bgcolor=#FFFFFF>
";
while ($myrow = mysql_fetch_row($result)) {
printf("<tr><td%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td>
<td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</tr>
",
$myrow[0], $myrow[1], $myrow[2], $myrow[3], $myrow[4], $myrow[5],
$myrow[6], $myrow[7], $myrow[8], $myrow[9], $myrow[10]);
}
echo "</table>
";
?>
</body>
</html>

How To Change A File Name
i want to change the name of an uploaded file from:myant.jpg -> to -> ID123.jpg
how do you do it?

what i want is to make a mysql database with pics but i don't want to load the pics on the database. i want to change the name of the picture to a picture_id name (and store the picture info on a table). otherwise i could never load another pic with the same name in a directory.

Layout Change
i made 2 layouts, but i want both of them to be displayed on the same page meaning index.php. Like i dont want layout one on index1.php and layout 2 on index2.php.

I want something like this website http://www.dbgtn.com/, do u see how those people have like 9 layouts and all the layouts appear on index.php page.

Change Case
I want to change the case of the first letter in a word. How would i do this via php? I've looked through the php manual and even searched this forum and i have come up with nothing. I'm sure there's a function.

Php Color Change
I have a form that I have designed with colors. I am using php code to color
it depending upon other values.

On my pc the colors are ok. From a friends pc every field with the word
email in had a different colour. When I change the spelling of "email" to
"emial" the colours displayed on his pc revert back to the colours I have
set. We are running identical versions of windows and msie. Except mine is
the Swedish version and he has the English version.

The offending field contains a text label and an input control. If either
the text label or the name of the input control contains the word "email"
the colors are morphed. The main problem with this was that the input field
was changed to yellow text on a yellow background.

Is this because I am supplying the colors by php code or is it a problem for
all forms? What I can not fathom is why he has different colors to the ones
I have designed and why this "feature" was not displayed on my pc. We both
use std settings in MSIE.

Why No Change In Fileatime?
When I write to a file, the fileatime does not update - how can I get the
mod date to update when writing to the file?

//increment counter value by 1
$counter=file($ctr);
$oldct=each($counter);
$newct=$oldct[value]+1;
//write new value to viscounter file
$fp=fopen($ctr, "w");
if (flock($fp, LOCK_EX))
{
fwrite($fp, $newct);
flock($fp, LOCK_UN);
}
//if cd not get lock, don't count this hit
fclose($fp);
echo "counter = ".$newct." visit at ".fileatime($ctr);
// fileatime($ctr) stays the same...

Change HTML
Can PHP be used to change my clients static HTML pages? By themselves?

Instead of having to download the HTML from the server, then use
dreamweaver and upload the file back?

Session Change From 4.2.3 -> 4.3.x?
To those that can save me from myself:

I have a site that has been working perfectly for a few years now, under
PHP 4.2.3. Since later versions of PHP run so much more quickly, I wanted
to update this site to one of those later versions. Being a very cautious
person, I started with 4.3.11, since it was the highest version of the next
PHP increment. When I tried this version, my session file kept getting
rebuilt (with the same name) as though the session file found was old. The
same thing has happened to me all the way to version 5.0.4.

The site runs on a Linux box. I am running the CGI version on all of these
PHP compiles. Other than the PHP version change, all else is the same (I
cloned my working box and only change the PHP executable on it).

How To Change Font In GD?
How can I change the font in GD?

Change Password
Im working on a change password.php. I want the user to have to type in there original password then there new password, followed by the confirmed new password.

I have pretty much written the code to do this however the password which is stored in the database is encryped using PASSWORD ('$password') at registration. This means that when I attempt to match the password in the database with the current password they do not match. How can I do this? I assume it must be something to do with how the current password is retrieved from the database so here is my code to retrieve the password from the database: Code:

Change Code From PHP 5 To PHP 4
i have copied code from a book that includes my_sqli which i have found that it is not compatible with the PHP 4 that my web hosts uses. Can any help make it compatible with PHP4? Code:


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