Moving To Another Webpage
Is there a way of jumping to another page from PHP. I've got a form that is submitted, and that data is entered into the database. I want the page to then go back to the original page. Can i do this?
View Complete Forum Thread with Replies
Related Forum Messages:
How To Move Arrays From Html Webpage To Webpage?
There are a couple techniques to move information from different html web page to web page. 1. URL; 2. Cookie; 3. Form; 4. Session; All the examples I found are move distinguished variables from page to page, such as "?weight=20&name='apple'". I need users choose from the first web page (the arrays will be generated), then use it in second and third html web pages. How do I transfer them (arrays) and which way is the best? For example, if I have two arrays, $fruit[] = array("apple", "pear", "orange"); and associative array $myCats["Me"]="Merry"; $myCats["Pi"]="Pippin"; $myCats["He"]="Hergie";
View Replies !
Moving To From ASP
I'm looking to change gears & start to do my sites in PHP rather than ASP. From what I'm reading, it sounds like the right thing to do. It also helps that I am now bringing on staff that know PHP rather than ASP...so, it's either have them convert to ASP or me to PHP. Would someone be able to suggest easy ways of learning PHP & transitioning over? Some tutorials, guides, etc?
View Replies !
Moving Things Around
i need to beabe to... for example ----------------------- item_id item price 1 widget 12.40 ----------------------- i need to move the item and price into a new table. here is the script i use at the moment but it only puts the item in to the item column i need the price in there as well. how do i acheive this? $sql="INSERT INTO order_line (item) SELECT shop.item FROM shop WHERE shop.item='widget'";
View Replies !
Moving Files
If there are files that are taken from the users, what would you call the files if you were copy them to places? $_FILES? For example, if I used PCLZIP to take zips from users, once I extract the files, how could I modify those files? How could I move them around? Uploading files uses is_uploaded_file, $file_array, move_uploaded_file, etc., but what about other processes?
View Replies !
Moving A Record
Is there way to move a record from one table to another ... or will i just have to get row put each field data in a variable and then insert to a new row and delete old row?
View Replies !
Moving Server
I wrote the code below to access tables that my Drupal installation created to insert information into a custom php page. Specifically it links pictures to a data type pulled from Druapl and makes them all nice. It was working just dandy before, but then 1and1 hosting decided they wanted to overcharge me and then make my site setup unavailable. I got over that quickly, got a new host, and now on the new host the code below is not working. The table is set up like this: What is happening is that the code pulls up the information from the same picture, and it will not put the correct number of images (as you can see in the picture, 3 images but on the report only 2 show). The image is posts is only for the image with "delta" of 0. Code:
View Replies !
Moving An Image....
i am trying to move an image to a directory and i am having no luck. i am working on this as a separate project to the other one i posted about because i have made a lot of progress as far as layout is concerned and the other project is supposed to be a secret anyway... here are the errors i get Warning: move_uploaded_file(/public_html/a/upload/0) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/me/public_html/a/insert.php on line 16 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php9U9t8g' to '/public_html/a/upload/0' in /home/me/public_html/a/insert.php on line 16 I have tried different permitations of the directory such as /upload/, /a/upload/ and /public_html/a/upload/ but still have no luck. the directories are CHMOD'd to 777 Code:
View Replies !
Moving Servers
Have recently moved a site that I had running sweet with a MySQL backend. The old server was an IIS server. I know. now an Apache Server. However some MySQL queries no longer work. this used to work just fine and now no longer does $query = "SELECT distinct(Name), ID FROM Level WHERE BID=ƌ' AND LevelName!='A' AND LevelName!='B'"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) This used to work great on IIS, so I was wondering if anyone knew why it doesn't work on Apache? I get this error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
View Replies !
Moving Pictures
I am using this code to move one picture to my server. Part of the code: if ($pic_size > 0) { mkdir("$dir/$date", 0777); $upload_file = system("/bin/cp $pic $dir/$date/big$fname", $retval); $convert = system("convert -scale 320x240 $pic $dir/$date/small$fname", $ret); $convert = system("convert -scale 160x120 $pic $dir/$date/thumbnail$fname", $ret); if ($retval==0) { " The $pic I take from the form. How can I move whole folder instead of one file?
View Replies !
Moving Picture
I want to write a script to move a picture from left to right on the screen, but it must move gradually and depending on the date or time or even days of the week.
View Replies !
Moving File
is there any php command i could use to either copy or cut file(s) on a directory to other directory i specified.
View Replies !
Moving To Php5
I wrote my code in php 4.4 and now my hosting company plan to update to php 5 Is there any changes i need to do in my code to make it work fine.
View Replies !
Moving Tables.
i've searched the forum but I didn't get any good results for my problem. I would like to be able to select 2 tables within 1 database , and to move all the data within table1 --> table2. [table1 - source] ---to---> [table2 - target] I've also searched on Google, but all that gave me was phpmyadmin and manual moving or a complete database move.
View Replies !
Moving Images
Is it hard to creating a moving image in php? I have several small thumbnails. I want to create a moving gif (does PNG move?) rotating each of them after about 5 seconds. Is there a simple way to do this on the fly? Or does it require creating a new file out of it?
View Replies !
Moving Up Directory
I've always used "../directory" to move up levels in the directory tree, but recently I've seen some paths that use just a single period - "./directory" (I noticed these in the phpMyAdmin config.inc.php file). What's the difference? Is there a reason to use one or the other? I mean hey, I could save typing a couple hundred periods a year! Time to send my fingers on a vacation.
View Replies !
Checking And Moving Variables ..
I have a variable called $Ident1 which is a few radio box selections and then I have $Ident2 which is a text box. What I'd like to do is check to see if $Ident1 is not empty [no selections were made] and move it to $Ident .. but if $Ident1 happens to be empty [data filled in for $Ident2] I'll move $Ident2 to $Ident .. both variables are not int, Does anyone understand this and knows how to go about doing it?
View Replies !
Moving, And Incrementing, And Readong.
I'm making a guestbook and right now I'm working on the administration options. Currently what I have makes the nessicary files, chmods them and changes the appearance of the guestbook. But I'm having problems reading the current entries (entrylog.txt) placing then in a new file (archivex.txt) and then incrementing the "archive" number by one and logging that in "count.txt". PHP Code:
View Replies !
Moving From -> To . For Object Operators?
Is there a way to change PHP's source and recompile so that I can use "." instead of "->" for the object operator? Of course, I would also change "." (the concat operator) to "&" or "+" for the concat operator. I think it's as simple as editing "zend_language_scanner.l" from the source, changing "." to "&", and "->" to ".", then recompiling, but I haven't tested this. Has anyone done that before?
View Replies !
Moving Uploaded File
I am trying to make a simple file upload page. It will not move the file properly. It only spits out the error message. Here's the code:
View Replies !
Array Issue Since Moving To 5.2.4 From 4.4.0
I have done queries like this for about 8 years. It may not be the best way but it's what 90% of my websites use... When I upgraded to 5.2.4 I realized it doesn't work. while($session->db->next_record()) { $menu->id = $session->db->f('sub_id'); $menu->name = stripslashes($session->db->f('sub_desc')); $menu->link = $session->db->f('link'); $menus[] = $menu; }Normally I can call this later with a simple statement. For simplicity lets just say for($m=0;$m<count($menus);$m++) { $menu = $menus[$m]; echo "<a href=$menu->link>$menu->name</a><BR>"; } Prior to new server this would list out all menus. Currently it lists (lets say 10 rows) of the last menu line. So instead of "Home,Login,Help" I get "Help,Help,Help" I am not looking for someone to say "Why don't you just query this way" because of the severity of this issue if I update 40+ websites to PHP 5.x. Is it purely 5.2 doing this? Or something else? Maybe I was using some bug all this time in the way Array[]'s are handled now or some kind of variable setting?
View Replies !
Moving Php Website To New Host
My boss bought new hosting, and I'm tasked with moving the php website to the new host. There's a digital drop box, and an email form, both broken now. First off, can anyone give me any "don't forget to" tips on editing a php website for a new host? Most of it's working; all except for the forms. Code:
View Replies !
Moving Fields From One Table To Another
Suppose there are two tables namely "table1" and "table2" in my database These fields are present in both tables: name age city I have 11 rows[names,age and id of 11 persons] in table2 and want to transfer any row[name,age and id of any one person] to table1, how can i do this using php.
View Replies !
Moving And Renaming An XML File
I am receiving xml files via ftp on a nightly basis. I have finally finished most of the scripts required to read these files(Some of you helped with this) into the mysql database. I am now working on a script that will look for the file, if it is there run the parsing script, and then move it to the appropriate folder with the date added to the name. Code:
View Replies !
Moving The Hyperlink In The Code
I want to change the hyperlink in the code ... but a hundred variations of jiggling with it won't work. The link is on the first field, of course. I want to make it the last field - on the simulated arrows, in fact. Code:
View Replies !
Moving Server To PC Problems
I have a script that currently runs fine on a linux box, but move it to my home PC with Windows 2000 (still running PHP4 on Apache) it seems to no longer be passing in the url variables: ...../1999.php?page=21
View Replies !
Moving Website From .htm To .php/mysql
I know that some people believe that mod_rewrite etc makes it easier to have a fully spidered website etc. Hwoever I'm more focused on a php site once fully spidered. Does anyone out there have a well established php/mysql website which in the past they migrated from being static .htm/.html? If there is, was there any negative affect on your search engine rankings compared to your static pages? I realise that this may be a bit of a difficult question to answer as SE algorithms change a lot, but what I really need to know is - based on other's experience - should I expect a fall in traffic when comparing the established php/mysql website against the established static website?
View Replies !
Moving Record Order
i have a table with 3 fields: ID Name Order ID is autonumber and primery key as example: (records order by Order Field) ID Name Order 4 book 1 3 tree 2 2 red 3 1 blue 4 5 black 5 i wan to change its order as example i want to move record with ID=1 to after the record with ID=4 new result must be: Code:
View Replies !
Moving A MySql Database
there is a way to move an entire MySql DB from a Linux box to another Linux box using some PHP statements or using some program wich is capable to do this?
View Replies !
Moving Record(s) From One Table To Another
I just started learning how to use MySQL with PHP and started to write my first major script. My problem is that I want users to be able to submit a form with a couple of feilds for example, first name and second name of about 10 different people, but it won't go into the main website untill aproved by an admin. Now I think I can work out everything else, but how can I get the submitted data saved into one table, then when aproved by an admin, moved into the main database. here are the SQL tables im useing. Code:
View Replies !
Moving Files Script
I'm trying to build a script to move existing files from one folder into another based on the fileID in the database, from ID1 to the last ID in the DB. Let me explain better what help I need. I need: - Select the fileID and verify if it is equal or minor than 500; - Verify if the file (ex. FILE2354.jpeg) is in each of the folders "Big", "Med", "Thumb" and "Square" according to its filename (the filename should be the same in each folder, only the sizes vary); - If it is, then move the file "FILE2354.jpeg", in each folder to the corresponding "001" subfolder (see folder structure) else mark the fileID in the DB as inactive.
View Replies !
Problem With Moving Files
i have two directory on my server 1. path/public_html/temp 2. path/public_html/media i have already uploaded file to temp folder via ftp. and want to move each individual file to media directory with php function, i had used rename() but doesn't work for this task, please can you help me with which function i can perform such a task .
View Replies !
Moving From ASP To Image Questions
I am in charge of migrating an already-made Content Mangement System from ASP to PHP. I do not know PHP -- yet! I am trying to foresee potential issues, and here is one. Image Specific Background: The ASP version of the CMS uses a 3rd party component to accept the uploading of images, and then to resize them so that thumbnails are made (as well as the original image) for photo albums. [color=blue] >From what I have researched, new releases of PHP have image[/color] manipulating abilities built-in to the language. But most of what I have seen is "real-time" conversion where the PHP spits out a stream of manipulated images. I want to be able to make a thumbnail for each image, which will be saved to the server, and then reference this thumbnail in a database. Code:
View Replies !
Moving An Uploaded File
as the title suggests i am having problems moving an uploaded file from tmp to a specified folder in server directory, here is the code that returns the error. PHP Code: copy($_FILES[itm_img][tmp_name],"/store/itm_img/".$_FILES[itm_img][name]) Â Â Â Â Â Â Â Â or die("Could Not Move File"); this is the error i get when i send the form: Warning: copy(/itm_img/Bullet.jpg): failed to open stream: No such file or directory in /home/www/mcccgf.hollosite.com/store/add.php on line 82.
View Replies !
Moving To New Line When Writing Out A File
What I'm trying to do is insert a new category into a array then write the array out to a file. This works, however, the text file uses carrage returns to seperate the items of the array. For example: cat1 cat2 cat3 What happens when I write the file is: cat1 newCatcat2 cat3 (assuming that newCat is sorted between 1 and 2) What I want is to have the next item in the array pushed to the next line, but I have not been able to do this. here's my code:
View Replies !
Moving To A Host Running Fastcgi PHP
My site is currently running on Linux/Apache with mod php. I have the option to move to a host running Redhat on Zeus servers with php running as fastcgi. Unfortunately I know nothing about fastcgi. Is this a sensible move? Would I have to change anything? I currently use a php template, includes, etc, and mod_rewrite in htaccess.
View Replies !
Sessions & Moving From Http->https
it appears that sometimes, when i transfer to a secure page from a nonsecure one, i lose track of my session. for example, when i fill out a long form on a nonsecure page and submit it, that data gets saved in the session so that the form is still complete if i come back to that page. then i click a button to continue on to a secure page to collect some sensitive information, and i fail the logged-in test that is at the top of all my scripts. it's not that the session gets destroyed- i can hit Back and then Refresh and that long form that i filled out is still okay. i'm not really logged out, because i can go back to my personal home page and everything is hunky-dory. maybe it's just a problem with misconfiguration or something (i hope it is). on the chance that somebody else has seen this sort of behavior before, what did you do to remedy the problem? does php keep two different sessions for http and https? fwiw, we're thinking of putting the entire site under secure sockets.
View Replies !
Problem With Moving Uploaded Files
I am having a little trouble uploading files (html form with post) with php... I am trying to copy the file from its temporary upload directory to the destination directory, however, the server threw this msg at me... what does it mean? and how do I circumvent it? $user_file_tmp_name = /tmp/phpTeA9Hs $dest_name = /home/free3/user_product_images/jamesjiao/Alizee18.jpg Warning: copy(): open_basedir restriction in effect. File(/tmp/phpTeA9Hs) is not within the allowed path(s): (/home/free3) in /home/free3/my-page-admin.php on line 91 I tried both the copy() function and the move_uploaded_file() function and got the same warning.
View Replies !
Moving A Query Result Into An Array
I have read all the array stuff done searches for examples, but am still not clear if there is a way to do a query from a MySQL table and move those vaules into an arry. I am sure it can be done, but I thought I would find a function that would do it. Am I just overlooking something? $resultID = mysql_query("SELECT DISTINCT slot FROM items"); while(list ($slot) = mysql_fetch_row($resultID)){echo"$slot";} So anyone have a good way to move the result into some array?
View Replies !
Moving Mails Using Imap Functions
i have 2 little questions about this issue: 1. how can i make sure that if i sent a mail that it goes into my sent folder using imapfunctions. 2. how can i move a mail from one folder to another using imapfunctions
View Replies !
Moving Data From A Javascript Form For Use In PHP GD
I'm building a browser app basically I've got a table full of data points (the number can vary anywhere from 5 points to 100+) then I've got a javascript function that analyzes that data and compiles an equation that can be used to create a quadratic regression plot. That's not really important though, just understand that I've got a lot of data of a dynamic quantity. I've started creating another file using PHP GD that I intend to use to create a graph of this data. Both sides of this application work great, the form page can run the calculation populate new fields and even save/recall data from the database. The GD graphing portion graphs the data properly when it's manually set. The problem is I don't know the best method to get the data from the javascript form into the php file that generates the graph. I can think of a few possible methods but I none of them strike me as particularly efficient or best practice especially when you consider the amount of data I'm trying to grab and that the amount varies. The key here is that the data is not coming from a database, the graph is to be used as a feedback tool so the user tweaks the data, checks the graph tweaks the data, check the graph etc. until they like what they see and then they save it to the database once they're done.
View Replies !
|